Re: [PATCH 07/24] thunderbolt: Convert switch to a device

2017-05-24 Thread Mika Westerberg
On Wed, May 24, 2017 at 03:53:59PM +0200, Lukas Wunner wrote: > On Wed, May 24, 2017 at 02:43:22PM +0300, Mika Westerberg wrote: > > On Wed, May 24, 2017 at 01:09:08PM +0200, Lukas Wunner wrote: > > > On Thu, May 18, 2017 at 05:38:57PM +0300, Mika Westerberg wrote: > > > > Thunderbolt domain consis

Re: MIPS: Alchemy: Delete an error message for a failed memory allocation in alchemy_pci_probe()

2017-05-24 Thread SF Markus Elfring
>> How do you think about to achieve a small code reduction also for this >> software module? > > Generally speaking, sure. Thanks for your interest in such a direction. > But why remove just this one? Is it because it loosely follows a > pattern that was deemed removable in that slidedeck yo

Re: [PATCH 3/5] Add the ability to lock down access to the running kernel image

2017-05-24 Thread David Howells
Casey Schaufler wrote: > > +#ifdef CONFIG_LOCK_DOWN_KERNEL > > +extern bool kernel_is_locked_down(void); > > +#else > > +static inline bool kernel_is_locked_down(void) > > Should this be a bool or an int? I can imagine that someone is going to want > various different degrees of lock down for ke

[PATCH -mm 03/13] mm, THP, swap: Make reuse_swap_page() works for THP swapped out

2017-05-24 Thread Huang, Ying
From: Huang Ying After supporting to delay THP (Transparent Huge Page) splitting after swapped out, it is possible that some page table mappings of the THP are turned into swap entries. So reuse_swap_page() need to check the swap count in addition to the map count as before. This patch done tha

[PATCH v8 1/5] irqchip/aspeed-i2c-ic: binding docs for Aspeed I2C Interrupt Controller

2017-05-24 Thread Brendan Higgins
Added device tree binding documentation for Aspeed I2C Interrupt Controller. Signed-off-by: Brendan Higgins --- Added in v6: - Pulled "aspeed_i2c_controller" out into a interrupt controller since that is what it actually does. Changes for v7: - None Changes for v8: - None --- .../inter

[PATCH -mm 04/13] mm, THP, swap: Don't allocate huge cluster for file backed swap device

2017-05-24 Thread Huang, Ying
From: Huang Ying It's hard to write a whole transparent huge page (THP) to a file backed swap device during swapping out and the file backed swap device isn't very popular. So the huge cluster allocation for the file backed swap device is disabled. Signed-off-by: "Huang, Ying" Cc: Johannes Wei

[PATCH v8 4/5] i2c: aspeed: added driver for Aspeed I2C

2017-05-24 Thread Brendan Higgins
Added initial master support for Aspeed I2C controller. Supports fourteen busses present in AST24XX and AST25XX BMC SoCs by Aspeed. Signed-off-by: Brendan Higgins --- Changes for v2: - Added single module_init (multiple was breaking some builds). Changes for v3: - Removed "bus" device tree pa

[PATCH v8 5/5] i2c: aspeed: added slave support for Aspeed I2C driver

2017-05-24 Thread Brendan Higgins
Added slave support for Aspeed I2C controller. Supports fourteen busses present in AST24XX and AST25XX BMC SoCs by Aspeed. Signed-off-by: Brendan Higgins --- Added in v6: - Pulled slave support out of initial driver commit into its own commit. - No longer arbitrarily restrict bus to be slave

[PATCH v8 3/5] i2c: aspeed: added documentation for Aspeed I2C driver

2017-05-24 Thread Brendan Higgins
Added device tree binding documentation for Aspeed I2C busses. Signed-off-by: Brendan Higgins --- Changes for v2: - None Changes for v3: - Removed reference to "bus" device tree param Changes for v4: - None Changes for v5: - None Changes for v6: - Replaced the controller property with a

[PATCH v8 2/5] irqchip/aspeed-i2c-ic: Add I2C IRQ controller for Aspeed

2017-05-24 Thread Brendan Higgins
The Aspeed 24XX/25XX chips share a single hardware interrupt across 14 separate I2C busses. This adds a dummy irqchip which maps the single hardware interrupt to software interrupts for each of the busses. Signed-off-by: Brendan Higgins --- Added in v6: - Pulled "aspeed_i2c_controller" out into

Re: [PATCH 0/6] refine and rename slub sysfs

2017-05-24 Thread Michal Hocko
On Wed 24-05-17 23:21:24, Wei Yang wrote: > On Wed, May 24, 2017 at 02:03:18PM +0200, Michal Hocko wrote: > >On Wed 24-05-17 17:54:50, Wei Yang wrote: > >> On Tue, May 23, 2017 at 08:39:11AM +0200, Michal Hocko wrote: > >[...] > >> >Is this worth risking breakage of the userspace which consume this

[PATCH -mm 05/13] block, THP: Make block_device_operations.rw_page support THP

2017-05-24 Thread Huang, Ying
From: Huang Ying The .rw_page in struct block_device_operations is used by the swap subsystem to read/write the page contents from/into the corresponding swap slot in the swap device. To support the THP (Transparent Huge Page) swap optimization, the .rw_page is enhanced to support to read/write

[PATCH -mm 00/13] mm, THP, swap: Delay splitting THP after swapped out

2017-05-24 Thread Huang, Ying
From: Huang Ying Hi, Andrew, could you help me to check whether the overall design is reasonable? Hi, Johannes and Minchan, Thanks a lot for your review to the first step of the THP swap optimization! Could you help me to review the second step in this patchset? Hi, Hugh, Shaohua, Minchan and

[PATCH v8 0/5] i2c: aspeed: added driver for Aspeed I2C

2017-05-24 Thread Brendan Higgins
Addressed comments from: - Ben in: http://www.spinics.net/lists/devicetree/msg174576.html and: https://www.spinics.net/lists/kernel/msg2496151.html - Wolfram in: https://www.spinics.net/lists/kernel/msg2504011.html - Cedric in: https://www.spinics.net/lists/kernel/msg2506531.html Changes

[PATCH -mm 06/13] block: Increase BIO_MAX_PAGES to PMD size if THP_SWAP enabled

2017-05-24 Thread Huang, Ying
From: Huang Ying In this patch, BIO_MAX_PAGES is changed from 256 to HPAGE_PMD_NR if CONFIG_THP_SWAP is enabled and HPAGE_PMD_NR > 256. This is to support THP (Transparent Huge Page) swap optimization. Where the THP will be write to disk as a whole instead of HPAGE_PMD_NR normal pages to batch

Re: [PATCH v2] mlock: fix mlock count can not decrease in race condition

2017-05-24 Thread Yisheng Xie
Hi Vlastimil, Thanks for comment! On 2017/5/25 14:32, Vlastimil Babka wrote: > On 05/25/2017 04:13 AM, Yisheng Xie wrote: >> Kefeng reported that when run the follow test the mlock count > >> in meminfo >> cannot be decreased: > > "increases permanently."? Yes if I am not mis-understanding what

[PATCH -mm 09/13] memcg, THP, swap: Support move mem cgroup charge for THP swapped out

2017-05-24 Thread Huang, Ying
From: Huang Ying PTE mapped THP (Transparent Huge Page) will be ignored when moving memory cgroup charge. But for THP which is in the swap cache, the memory cgroup charge for the swap of a tail-page may be moved in current implementation. That isn't correct, because the swap charge for all sub-

[PATCH -mm 13/13] mm, THP, swap: Add THP swapping out fallback counting

2017-05-24 Thread Huang, Ying
From: Huang Ying When swapping out THP (Transparent Huge Page), instead of swapping out the THP as a whole, sometimes we have to fallback to split the THP into normal pages before swapping, because no free swap clusters are available, or cgroup limit is exceeded, etc. To count the number of the

[PATCH -mm 11/13] memcg, THP, swap: Make mem_cgroup_swapout() support THP

2017-05-24 Thread Huang, Ying
From: Huang Ying This patch makes mem_cgroup_swapout() works for the transparent huge page (THP). Which will move the memory cgroup charge from memory to swap for a THP. This will be used for the THP swap support. Where a THP may be swapped out as a whole to a set of (HPAGE_PMD_NR) continuous

[PATCH -mm 10/13] memcg, THP, swap: Avoid to duplicated charge THP in swap cache

2017-05-24 Thread Huang, Ying
From: Huang Ying For a THP (Transparent Huge Page), tail_page->mem_cgroup is NULL. So to check whether the page is charged already, we need to check the head page. This is not an issue before because it is impossible for a THP to be in the swap cache before. But after we add delaying splitting

[PATCH -mm 12/13] mm, THP, swap: Delay splitting THP after swapped out

2017-05-24 Thread Huang, Ying
From: Huang Ying In this patch, splitting transparent huge page (THP) during swapping out is delayed from after adding the THP into the swap cache to after swapping out finishes. After the patch, more operations for the anonymous THP reclaiming, such as writing the THP to the swap device, removi

[PATCH -mm 08/13] mm, THP, swap: Support to split THP for THP swapped out

2017-05-24 Thread Huang, Ying
From: Huang Ying After adding swapping out support for THP (Transparent Huge Page), it is possible that a THP in swap cache (partly swapped out) need to be split. To split such a THP, the swap cluster backing the THP need to be split too, that is, the CLUSTER_FLAG_HUGE flag need to be cleared fo

[PATCH -mm 07/13] mm, THP, swap: Support to write THP to swap device as a whole

2017-05-24 Thread Huang, Ying
From: Huang Ying In the patch, the swap writing is enhanced to support to write a THP (Transparent Huge Page) as a whole. This is a part of the THP swap optimization and will improve swap write IO performance for the more large continuous IOs. Signed-off-by: "Huang, Ying" Cc: Johannes Weiner

[PATCH -mm 02/13] mm, THP, swap: Support to reclaim swap space for THP swapped out

2017-05-24 Thread Huang, Ying
From: Huang Ying The normal swap slot reclaiming can be done when the swap count reaches SWAP_HAS_CACHE. But for the swap slot which is backing a THP, all swap slots backing one THP must be reclaimed together, because the swap slot may be used again when the THP is swapped out again later. So th

[PATCH -mm 01/13] mm, THP, swap: Support to clear swap cache flag for THP swapped out

2017-05-24 Thread Huang, Ying
From: Huang Ying Previously, swapcache_free_cluster() is used only in the error path of shrink_page_list() to free the swap cluster just allocated if the THP (Transparent Huge Page) is failed to be split. In this patch, it is enhanced to clear the swap cache flag (SWAP_HAS_CACHE) for the swap cl

Re: [PATCH] staging: iio: light: Replace snprintf calls with scnprintf

2017-05-24 Thread Greg KH
On Wed, May 24, 2017 at 07:22:11PM -0400, Harinath Nampally wrote: > This patch fixes the miscoded use of return value of snprintf > by using the scnprintf function which returns the length of actual > string created in the buffer. > > Signed-off-by: Harinath Nampally > --- > drivers/staging/iio

Re: [PATCH v2] mlock: fix mlock count can not decrease in race condition

2017-05-24 Thread Vlastimil Babka
On 05/25/2017 04:13 AM, Yisheng Xie wrote: > Kefeng reported that when run the follow test the mlock count > in meminfo > cannot be decreased: "increases permanently."? > [1] testcase > linux:~ # cat test_mlockal > grep Mlocked /proc/meminfo > for j in `seq 0 10` > do > for i in `se

Re: [RFC PATCH 1/2] mm, memory_hotplug: drop artificial restriction on online/offline

2017-05-24 Thread Michal Hocko
On Wed 24-05-17 16:50:56, Reza Arbab wrote: > On Wed, May 24, 2017 at 02:24:10PM +0200, Michal Hocko wrote: > >74d42d8fe146 ("memory_hotplug: ensure every online node has NORMAL > >memory") has added can_offline_normal which checks the amount of > >memory in !movable zones as long as CONFIG_MOVABLE

Re: [RFC PATCH 2/2] mm, memory_hotplug: drop CONFIG_MOVABLE_NODE

2017-05-24 Thread Michal Hocko
On Wed 24-05-17 17:17:08, Vlastimil Babka wrote: > On 05/24/2017 03:42 PM, Michal Hocko wrote: [...] > >>> --- a/mm/Kconfig > >>> +++ b/mm/Kconfig > >>> @@ -149,32 +149,6 @@ config NO_BOOTMEM > >>> config MEMORY_ISOLATION > >>> bool > >>> > >>> -config MOVABLE_NODE > >>> - bool "Enable to assi

Re: [PATCH 4/4] iio: hi8435: cleanup reset gpio

2017-05-24 Thread Nikita Yushchenko
> Reset GPIO is active low. > > Currently driver uses gpiod_set_value(1) to clean reset, which depends > on device tree to contain GPIO_ACTIVE_HIGH - that does not match reality. > > This fixes driver to use _raw version of gpiod_set_value() to enforce > active-low seman

Re: [PATCH] x86/ftrace: Make sure that ftrace trampolines are not RWX

2017-05-24 Thread Thomas Gleixner
On Wed, 24 May 2017, Steven Rostedt wrote: > The trampolines uses the module allocation, and it appears, that needs > to become rw before freeing again. Indeed. I realized that when enabling more debug options, which led to a reliable triple fault. How intuitive. > I applied this patch, and it a

Re: [PATCH] MIPS: Alchemy: Delete an error message for a failed memory allocation in alchemy_pci_probe()

2017-05-24 Thread Manuel Lauss
On Wed, May 24, 2017 at 8:15 PM, SF Markus Elfring wrote: >>> +++ b/arch/mips/pci/pci-alchemy.c >>> @@ -377,7 +377,6 @@ static int alchemy_pci_probe(struct platform_device >>> *pdev) >>> >>> ctx = kzalloc(sizeof(*ctx), GFP_KERNEL); >>> if (!ctx) { >>> - dev_err(&pdev

Re: [Patch 2/2]: powerpc/hotplug/mm: Fix hot-add memory node assoc

2017-05-24 Thread Michael Ellerman
Michael Bringmann writes: > On 05/24/2017 06:19 AM, Michael Ellerman wrote: >> Michael Bringmann writes: >>> >>> With or without 3af229f2071f, we would still need to add something, >>> somewhere to add new >>> bits to the 'node_possible_map'. That is not being done. >> >> You mustn't add bits

Re: [PATCH v4] x86/efi: Correct ident mapping of efi old_map when kalsr enabled

2017-05-24 Thread Dave Young
Hi Baoquan, On 05/18/17 at 02:39pm, Baoquan He wrote: > For EFI with 'efi=old_map' kernel option specified, Kernel will panic > when kaslr is enabled. > > The back trace is: > > BUG: unable to handle kernel paging request at 7febd57e > IP: 0x7febd57e > PGD 1025a067 > PUD 0 > > Oops: 0010

Re: pxa3xx-nand failing to find device on linux-next

2017-05-24 Thread Boris Brezillon
nd f10d.flash: failed to scan nand at cs 0 > >>>>>> > >>>>>> This was working around 4.11. I'll try to do some more digging tomorrow > >>>>>> to narrow down a failure point but I thought I'd send this out now just > >&

RE: [PATCH 2/2] Revert "ACPI / button: Change default behavior to lid_init_state=open"

2017-05-24 Thread Zheng, Lv
Hi, > >> >> >> Benjamin, my understanding is that this is the case, is it correct? > >> >> > > >> >> > That is correct. This patch I reverted introduces regression for > >> >> > professional > >> >> > laptops that expect the LID switch to be reported accurately. > >> >> > >> >> And from a user's

Re: [PATCH v2 0/15] [dt-bindings] [media] Add document file and driver for Sony CXD2880 DVB-T2/T tuner + demodulator

2017-05-24 Thread Takiguchi, Yasunari
Hi, all I sent the patch series of Sony CXD2880 DVB-T2/T tuner + demodulator driver on Apr/14. Are there any comments, advices and review results for them? I'd like to get better understanding of current review status for our codes. Regards, Takiguchi

Re: [RFC PATCH tip/master] kprobes: Use synchronize_rcu_tasks() for optprobe wit CONFIG_PREEMPT

2017-05-24 Thread Ingo Molnar
* Masami Hiramatsu wrote: > --- a/kernel/kprobes.c > +++ b/kernel/kprobes.c > @@ -377,6 +377,23 @@ static inline void copy_kprobe(struct kprobe *ap, struct > kprobe *p) > static bool kprobes_allow_optimization; > > /* > + * Synchronizing wait on trampline code for interrupted tasks/threads.

Re: Patch 0727d35de ("Make initramfs honor CONFIG_DEVTMPFS_MOUNT") breaks boot

2017-05-24 Thread Michael Ellerman
Hi Rob, This is breaking a bunch of my powerpc boxes, for the exact same reason, they use a config that has DEVTMPFS_MOUNT=y and that trips up the initramfs. Rob Landley writes: > On 05/23/2017 03:01 AM, Yury Norov wrote: >> On Mon, May 22, 2017 at 09:07:54PM -0500, Rob Landley wrote: >>> Your u

Re: [PATCH] modpost: abort if a module name is too long

2017-05-24 Thread Wanlong Gao
Folks, Any comments? On 2017/5/20 15:46, Xie XiuQi wrote: > From: Wanlong Gao > > Module name has a limited length, but currently the build system > allows the build finishing even if the module name is too long. > > CC > /root/kprobe_example/abcdefghijklmnopqrstuvwxyzabcdefghijklmnop

Re: [PATCH 05/24] thunderbolt: Rework capability handling

2017-05-24 Thread Lukas Wunner
On Sun, May 21, 2017 at 09:09:37PM +0200, Andreas Noever wrote: > (and of course I have to request > this at least once: you should definitely release the spec - I highly > doubt that Intel's competitive advantage depends on keeping this > linked list technology secret ;) ). "next year Intel plans

Re: [Question] Mlocked count will not be decreased

2017-05-24 Thread Vlastimil Babka
On 05/25/2017 03:16 AM, Xishi Qiu wrote: > On 2017/5/24 21:16, Vlastimil Babka wrote: I agree about yisheng's fix (but v2 didn't address my comments). I don't think we should add the hunk below, as that deviates from the rest of the design. >>> >>> Hi Vlastimil, >>> >>> The rest

[PATCH] net: llc: add lock_sock in llc_ui_bind to avoid a race condition

2017-05-24 Thread Lin Zhang
There is a race condition in llc_ui_bind if two or more processes/threads try to bind a same socket. If more processes/threads bind a same socket success that will lead to two problems, one is this action is not what we expected, another is will lead to kernel in unstable status or oops(in my s

[PATCH] perf/annotate/powerpc: Fix branch instruction with multiple operands

2017-05-24 Thread Ravi Bangoria
Perf annotate is dropping the cr* fields from branch instructions. Fix it by adding support to display branch instructions having multiple operands. Objdump of int_sqrt: 20.36 | c04d2694: subf r10,r10,r3 | c04d2698: v bgtcr6,c04d26a0 1.82 | c04d2

RE: [PATCH 1/2] watchdog: uniphier: add UniPhier watchdog driver

2017-05-24 Thread yamada.masahiro
Hi Hayashibara-san > a/Documentation/devicetree/bindings/watchdog/uniphier-wdt.txt > b/Documentation/devicetree/bindings/watchdog/uniphier-wdt.txt > new file mode 100644 > index 000..a59d1ba > --- /dev/null > +++ b/Documentation/devicetree/bindings/watchdog/uniphier-wdt.txt > @@ -0,0 +1,20 @@

Re: Patch 0727d35de ("Make initramfs honor CONFIG_DEVTMPFS_MOUNT") breaks boot

2017-05-24 Thread Rob Landley
On 05/23/2017 06:08 PM, Yury Norov wrote: >> It was 2 years ago, but AFAIR I took the Ubuntu image here: >> http://cdimage.ubuntu.com/ubuntu-base/releases/14.04.1/release/ubuntu-base-14.04.1-core-arm64.tar.gz Have you applied updates since then? (Maybe they fixed their init script since 2 years ag

Re: [patch] compiler, clang: suppress warning for unused static inline functions

2017-05-24 Thread Ingo Molnar
* Matthias Kaehlcke wrote: > El Wed, May 24, 2017 at 02:01:15PM -0700 David Rientjes ha dit: > > > GCC explicitly does not warn for unused static inline functions for > > -Wunused-function. The manual states: > > > > Warn whenever a static function is declared but not defined or > > a

Re: Fwd: Watchdog detected hard lockup.

2017-05-24 Thread Sergey Senozhatsky
On (05/25/17 11:14), Sumit Gemini wrote: >Thanks Sergey and i forgot to add other guys in discussion. >  > >[1]lkml.kernel.org/r/20170509082859.854-1-sergey.senozhat...@gmail.com > >Now I'm going for backporting the kernel with RFC, as you suggested me >yesterday. or you can

Re: [PATCH/RFC] iio: hi8435: do not enable all events by default

2017-05-24 Thread Nikita Yushchenko
24.05.2017 22:27, Jonathan Cameron wrote: > On Tue, 23 May 2017 11:08:30 +0300 > Nikita Yushchenko wrote: > >> Having all events enabled by default is misleading. >> Userspace should explicitly enable events they want to receive. >> >> Signed-off-by: Nikita Yushchenko > I agree in principle, b

[PATCH v5 03/10] VAS: Define vas_init() and vas_exit()

2017-05-24 Thread Sukadev Bhattiprolu
Implement vas_init() and vas_exit() functions for a new VAS module. This VAS module is essentially a library for other device drivers and kernel users of the NX coprocessors like NX-842 and NX-GZIP. In the future this will be extended to add support for user space to access the NX coprocessors. VA

[PATCH v5 02/10] Move GET_FIELD/SET_FIELD to vas.h

2017-05-24 Thread Sukadev Bhattiprolu
Move the GET_FIELD and SET_FIELD macros to vas.h as VAS and other users of VAS, including NX-842 can use those macros. There is a lot of related code between the VAS/NX kernel drivers and skiboot. For consistency switch the order of parameters in SET_FIELD to match the order in skiboot. Signed-of

[PATCH v5 06/10] VAS: Define helpers to alloc/free windows

2017-05-24 Thread Sukadev Bhattiprolu
Define helpers to allocate/free VAS window objects. These will be used in follow-on patches when opening/closing windows. Signed-off-by: Sukadev Bhattiprolu --- arch/powerpc/platforms/powernv/vas-window.c | 61 + 1 file changed, 61 insertions(+) diff --git a/arch/pow

[PATCH v5 08/10] VAS: Define vas_win_close() interface

2017-05-24 Thread Sukadev Bhattiprolu
Define the vas_win_close() interface which should be used to close a send or receive windows. While the hardware configurations required to open send and receive windows differ, the configuration to close a window is the same for both. So we use a single interface to close the window. Signed-off-

[PATCH v5 10/10] VAS: Define copy/paste interfaces

2017-05-24 Thread Sukadev Bhattiprolu
Define interfaces (wrappers) to the 'copy' and 'paste' instructions (which are new in PowerISA 3.0). These are intended to be used to by NX driver(s) to submit Coprocessor Request Blocks (CRBs) to the NX hardware engines. Signed-off-by: Sukadev Bhattiprolu --- Changelog[v4] - Export symb

[PATCH v5 09/10] VAS: Define vas_tx_win_open()

2017-05-24 Thread Sukadev Bhattiprolu
Define an interface to open a VAS send window. This interface is intended to be used the Nest Accelerator (NX) driver(s) to open a send window and use it to submit compression/encryption requests to a VAS receive window. The receive window, identified by the [vasid, cop] parameters, must already b

[PATCH v5 05/10] VAS: Define helpers to init window context

2017-05-24 Thread Sukadev Bhattiprolu
Define helpers to initialize window context registers of the VAS hardware. These will be used in follow-on patches when opening/closing VAS windows. Signed-off-by: Sukadev Bhattiprolu --- Changelog[v5] - Fix: Copy the FIFO address into LFIFO_BAR register as is (don't shift addre

[PATCH v5 04/10] VAS: Define helpers for access MMIO regions

2017-05-24 Thread Sukadev Bhattiprolu
Define some helper functions to access the MMIO regions. We use these in a follow-on patches to read/write VAS hardware registers. These helpers are also used to later issue 'paste' instructions to submit requests to the NX hardware engines. Signed-off-by: Sukadev Bhattiprolu --- Changelog [v5]:

[PATCH v5 07/10] VAS: Define vas_rx_win_open() interface

2017-05-24 Thread Sukadev Bhattiprolu
Define the vas_rx_win_open() interface. This interface is intended to be used by the Nest Accelerator (NX) driver(s) to setup receive windows for one or more NX engines (which implement compression/encryption algorithms in the hardware). Follow-on patches will provide an interface to close the win

[PATCH v5 00/11] Enable VAS

2017-05-24 Thread Sukadev Bhattiprolu
Power9 introduces a hardware subsystem referred to as the Virtual Accelerator Switchboard (VAS). VAS allows kernel subsystems and user space processes to directly access the Nest Accelerator (NX) engines which implement compression and encryption algorithms in the hardware. NX has been in Power pr

[PATCH v5 01/10] VAS: Define macros, register fields and structures

2017-05-24 Thread Sukadev Bhattiprolu
Define macros for the VAS hardware registers and bit-fields as well as couple of data structures needed by the VAS driver. Signed-off-by: Sukadev Bhattiprolu --- Changelog[v4] - [Michael Neuling] Move VAS code to arch/powerpc; Reorg vas.h and vas-internal.h to kernel and uapi ve

Re: [PATCH] mm/vmalloc: a slight change of compare target in __insert_vmap_area()

2017-05-24 Thread Michal Hocko
On Wed 24-05-17 23:07:30, Wei Yang wrote: > On Wed, May 24, 2017 at 02:11:35PM +0200, Michal Hocko wrote: > >On Wed 24-05-17 18:03:47, Wei Yang wrote: > >> The vmap RB tree store the elements in order and no overlap between any of > >> them. The comparison in __insert_vmap_area() is to decide which

Re: [PATCH] mm/zsmalloc: fix -Wunneeded-internal-declaration warning

2017-05-24 Thread Minchan Kim
On Tue, May 23, 2017 at 10:38:57PM -0700, Nick Desaulniers wrote: > is_first_page() is only called from the macro VM_BUG_ON_PAGE() which is > only compiled in as a runtime check when CONFIG_DEBUG_VM is set, > otherwise is checked at compile time and not actually compiled in. > > Fixes the followin

[PATCH] tpm, tpmrm: Mark tpmrm_write as static

2017-05-24 Thread Peter Huewe
sparse complains that tpmrm_write can be made static, and since it is right we make it static. Signed-off-by: Peter Huewe --- drivers/char/tpm/tpmrm-dev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/char/tpm/tpmrm-dev.c b/drivers/char/tpm/tpmrm-dev.c index c636e7f

Aw: Re: [PATCH] tpm: remove struct tpm_pcrextend_in

2017-05-24 Thread Peter Huewe
> Removed struct tpm_pcrextend_in as it is not used for anything anymore. > > Signed-off-by: Jarkko Sakkinen LGTM. Reviewed-by: Peter Huewe > --- > drivers/char/tpm/tpm.h | 6 -- > 1 file changed, 6 deletions(-) > > diff --git a/drivers/char/tpm/tpm.h b/drivers/char/tpm/tpm.h > index dd117342

Re: [PATCH v4 04/11] VAS: Define vas_init() and vas_exit()

2017-05-24 Thread Sukadev Bhattiprolu
Tyrel Datwyler [tyr...@linux.vnet.ibm.com] wrote: > > + vinst = &vas_instances[0]; > > + for_each_node_by_name(dn, "vas") { > > + rc = init_vas_instance(dn, vinst); > > + if (rc) { > > + pr_err("Error %d initializing VAS instance %ld\n", rc, > > +

Aw: Re: [PATCH] tpm, tpm_infineon: remove useless snprintf() calls

2017-05-24 Thread Peter Huewe
> The memory copy from rodata to stack is useless. > > Signed-off-by: Jarkko Sakkinen After review, yes that should work. Reviewed-by: Peter Huewe > --- > drivers/char/tpm/tpm_infineon.c | 8 > 1 file changed, 4 insertions(+), 4 deletions(-) > > diff --git a/drivers/char/tpm/tpm_infineo

[PATCH v2 2/3] rtmutex: update rt-mutex

2017-05-24 Thread Alex Shi
The rtmutex remove a pending owner bit in in rt_mutex::owner, in commit 8161239a8bcc ("rtmutex: Simplify PI algorithm and make highest prio task get lock") But the document was changed accordingly. Updating it to a meaningful state. BTW, as 'Steven Rostedt' mentioned: There is still technically a

[PATCH 3/3] rtmutex: remove unnecessary adjust prio

2017-05-24 Thread Alex Shi
We don't need to adjust prio before new pi_waiter adding. The prio only need update after pi_waiter change or task priority change. Signed-off-by: Alex Shi Cc: Steven Rostedt Cc: Sebastian Siewior Cc: Mathieu Poirier Cc: Juri Lelli Cc: Thomas Gleixner To: linux-kernel@vger.kernel.org To: Ing

[PATCH v3 1/3] rtmutex: update rt-mutex-design

2017-05-24 Thread Alex Shi
The rt-mutex-design documents didn't gotten meaningful update from its first version. Even after owner's pending bit was removed in commit 8161239a8bcc ("rtmutex: Simplify PI algorithm and make highest prio task get lock") and priority list 'plist' changed to rbtree. And Peter Zijlstra did some cle

Re: [PATCH] Staging: bcm2835-audio: bcm2835-ctl.c: Fixed a comment coding style issue.

2017-05-24 Thread srishti sharma
On Thu, May 25, 2017 at 4:58 AM, Tobin C. Harding wrote: > On Wed, May 24, 2017 at 08:03:14PM +0530, srishti sharma wrote: > > This driver is not in Greg KH's staging tree. You may like to work off > of that tree when doing staging patches. > > https://git.kernel.org/pub/scm/linux/kernel/git/gregk

[PATCH] mtd: nand: check ecc->total sanity in nand_scan_tail

2017-05-24 Thread Masahiro Yamada
Drivers are supposed to set correct ecc->{size,strength,bytes} before calling nand_scan_tail(), but it does not complain about ecc->total bigger than oobsize. In this case, chip->scan_bbt() crashes due to memory corruption, but it is hard to debug. It would be kind to fail it earlier with a clear

[PATCH v3 1/2] phy: add PCIe PHY driver for Mediatek SoCs

2017-05-24 Thread Ryder Lee
This patch adds a generic PCIe PHY driver for Mediatek SoCs. Signed-off-by: Ryder Lee --- drivers/phy/Kconfig | 8 ++ drivers/phy/Makefile| 1 + drivers/phy/phy-mediatek-pcie.c | 290 3 files changed, 299 insertions(+) create

[PATCH v3 0/2] Add PCIe phy driver for some Mediatek SoCs

2017-05-24 Thread Ryder Lee
Hi, This patch series add PCIe phy driver and related dt-binding file for Mediatek SoCs. The PICe host driver has been applied to pci/host-mediatek for v4.13. Changes since v3: - rename both the driver and the binding document to make it more generic so that we could reuse the driver if needed

[PATCH v3 2/2] dt-bindings: phy: Add documentation for Mediatek PCIe PHY

2017-05-24 Thread Ryder Lee
Add dt-binding information for Mediatek PCIe PHY Signed-off-by: Ryder Lee Acked-by: Rob Herring --- .../devicetree/bindings/phy/phy-mediatek-pcie.txt | 64 ++ 1 file changed, 64 insertions(+) create mode 100644 Documentation/devicetree/bindings/phy/phy-mediatek-pcie.txt d

[RFC PATCH 3/5] ARM: imx: add gpiod_lookup_table for spi chip-selects

2017-05-24 Thread Chris Packham
This is a preparatory step which will allow the conversion of spi-imx.c to gpiod. Signed-off-by: Chris Packham --- arch/arm/mach-imx/mach-mx27_3ds.c | 21 + arch/arm/mach-imx/mach-pca100.c | 13 + 2 files changed, 34 insertions(+) diff --git a/arch/arm/mach-imx

[RFC PATCH 0/5] spi: moving to struct gpio_desc

2017-05-24 Thread Chris Packham
This is my attempt to move spi over to using struct gpio_desc. I've stopped at converting struct spi_master to gather some feedback. ep93xx wasn't as hard as I'd expected so I'm pretty happy with those changes. imx on the other hand has an annoying habit of conflating the GPIO and native chip-sele

[RFC PATCH 5/5] ARM: ep93xx: remove chipselect from ep93xx_spi_info

2017-05-24 Thread Chris Packham
Now that the driver has been updated to use gpiod there is no need to have platform data to define the SPI chipselects. We still need to define the number of chipselects used. Signed-off-by: Chris Packham --- arch/arm/mach-ep93xx/edb93xx.c | 7 +-- arch/arm/mach-ep93xx/simone.c

[RFC PATCH 4/5] spi: core: convert spi_master to use gpio_desc

2017-05-24 Thread Chris Packham
Instead of numeric gpios make struct spi_master hold an array of struct gpio_desc. For now struct spi_device still maintains a numeric gpio which will be updated in a subsequent change. Signed-off-by: Chris Packham --- drivers/spi/spi-ep93xx.c | 18 -- drivers/spi/spi-imx.c|

[RFC PATCH 1/5] spi: use gpio_desc instead of numeric gpio

2017-05-24 Thread Chris Packham
By using a gpio_desc and gpiod_set_value() instead of a numeric gpio and gpio_set_value() the gpio flags are taken into account. This is useful when using a gpio chip-select to supplement a controllers native chip-select. Signed-off-by: Chris Packham --- (I've included this in this series for con

[RFC PATCH 2/5] ARM: ep93xx: add gpiod_lookup_table for spi chip-selects

2017-05-24 Thread Chris Packham
This is a preparatory step which will allow the conversion of spi-ep93xx.c to gpiod. Signed-off-by: Chris Packham --- arch/arm/mach-ep93xx/edb93xx.c | 12 arch/arm/mach-ep93xx/simone.c| 11 +++ arch/arm/mach-ep93xx/vision_ep9307.c | 15 +++ 3 files

Re: [PATCH v2] firmware: fix sending -ERESTARTSYS due to signal on fallback

2017-05-24 Thread Andy Lutomirski
On Wed, May 24, 2017 at 3:38 PM, Luis R. Rodriguez wrote: > On Wed, May 24, 2017 at 3:00 PM, Andy Lutomirski wrote: >> On Wed, May 24, 2017 at 2:40 PM, Luis R. Rodriguez wrote: >>> From: Martin Fuzzey >>> >>> Commit 0cb64249ca500 ("firmware_loader: abort request if wait_for_completion >>> is in

Re: [PATCH] sparc64: Add 16GB hugepage support

2017-05-24 Thread Nitin Gupta
On 5/24/17 8:45 PM, David Miller wrote: > From: Paul Gortmaker > Date: Wed, 24 May 2017 23:34:42 -0400 > >> [[PATCH] sparc64: Add 16GB hugepage support] On 24/05/2017 (Wed 17:29) Nitin >> Gupta wrote: >> >>> Orabug: 25362942 >>> >>> Signed-off-by: Nitin Gupta >> >> If this wasn't an accidental

[PATCH v4 2/9] dt-bindings: arm: mediatek: add bindings for mediatek MT7623a SoC Platform

2017-05-24 Thread sean.wang
From: Sean Wang This adds DT binding documentation for Mediatek MT7623a Signed-off-by: Sean Wang Acked-by: Rob Herring --- Documentation/devicetree/bindings/arm/mediatek.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/arm/mediatek.txt b/Documentation

[PATCH v4 1/9] dt-bindings: arm: mediatek: update for MT7623n SoC and relevant boards

2017-05-24 Thread sean.wang
From: Sean Wang Because there are two versions of MT7623 SoC that is MT7623a and MT7623n respectively. So update the part of MT7623n bindings to allow that people tend to differentiate which MT7623 SoC the boards applies. And "mediatek,mt7623-evb" can be safely changed to "mediatek,mt7623n-rfb-n

[PATCH v4 0/9] arm: dts: extend mt7623 support

2017-05-24 Thread sean.wang
From: Sean Wang Changes since v3: - explain in the commit message why this binding is changed - patches for dt-binding is reordered at the beginning of patch list - be concise wigh using SPDX-License-Identifier in new dts file Changes since v2: - exclude those patch are already queued into v4.11

[PATCH] spi: st-ssc4: whitespace cleanup

2017-05-24 Thread Chris Packham
Remove stray single spaces after a leading hard-tab. Signed-off-by: Chris Packham --- drivers/spi/spi-st-ssc4.c | 38 +++--- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/drivers/spi/spi-st-ssc4.c b/drivers/spi/spi-st-ssc4.c index e54b59638458..a

[PATCH v4 9/9] arm: dts: mt7623: add dts file for Bananapi R2 (BPI-R2) board

2017-05-24 Thread sean.wang
From: Sean Wang Add support for the Bananapi R2 (BPI-R2) development board from BIPAI KEJI. Detailed hardware information for BPI-R2 which could be found on http://www.banana-pi.org/r2.html The patch currently only adds Mediatek GMAC, MT7530 Switch, the crypto engine, USB, IR, I2S, I2C, UART, SP

[PATCH v4 7/9] arm: dts: mt7623: enable the usb device on the mt7623n rfb

2017-05-24 Thread sean.wang
From: John Crispin All versions of the mt7623n RFB have an USB port so enable the device. There is a gpio that gets used to power up the port supply. Add support for this gpio using the fixed-regulator driver. Signed-off-by: John Crispin Signed-off-by: Sean Wang --- arch/arm/boot/dts/mt7623n-

[PATCH v4 5/9] ARM: mediatek: add MT7623a smp bringup code

2017-05-24 Thread sean.wang
From: Sean Wang Add support for booting secondary CPUs on MT7623a. Signed-off-by: Sean Wang --- arch/arm/mach-mediatek/mediatek.c | 2 ++ arch/arm/mach-mediatek/platsmp.c | 1 + 2 files changed, 3 insertions(+) diff --git a/arch/arm/mach-mediatek/mediatek.c b/arch/arm/mach-mediatek/mediatek

[PATCH v4 8/9] arm: dts: mt7623: enable the nand device on the mt7623n nand rfb

2017-05-24 Thread sean.wang
From: John Crispin Enable the nand device and setup pinmux on the mt7632m rfb with nand support. Signed-off-by: John Crispin Signed-off-by: Sean Wang --- arch/arm/boot/dts/mt7623n-rfb-nand.dts | 88 ++ 1 file changed, 88 insertions(+) diff --git a/arch/arm/boo

[PATCH v4 6/9] arm: dts: mt7623: cleanup the mt7623n rfb uart nodes

2017-05-24 Thread sean.wang
From: John Crispin This patch does a cleanup of the uart nodes in the dts file of the RFB. It adds aliases, enables 2 more uarts and explicitly sets the uart mode of the console. Signed-off-by: John Crispin Signed-off-by: Sean Wang --- arch/arm/boot/dts/mt7623n-rfb.dtsi | 16 +++-

Re: [linux-sunxi] [PATCH v3 3/9] ASoC: sun8i-codec-analog: add support for V3s SoC

2017-05-24 Thread Chen-Yu Tsai
On Wed, May 24, 2017 at 6:06 PM, Icenowy Zheng wrote: > From: Icenowy Zheng > > The V3s SoC features an analog codec with headphone support but without > mic2 and linein. > > Add support for it. > > Signed-off-by: Icenowy Zheng Reviewed-by: Chen-Yu Tsai Mark, please hold off on applying this

[PATCH v4 3/9] arm: dts: mt7623: add mt7623-mt6323.dtsi file

2017-05-24 Thread sean.wang
From: John Crispin MediaTek produces various PMICs. Which one is used depends on the actual circuit design. Instead of adding the correct PMIC node to every dts file we instead add a new intermediate dtsi file which adds the PMIC node. Additionally we also add the phandles for the regulators to v

[PATCH v4 4/9] arm: dts: mt7623: rename mt7623-evb.dts to arch/arm/boot/dts/mt7623n-rfb.dtsi

2017-05-24 Thread sean.wang
From: Sean Wang There are 2 versions of the MT7623 SoC, the one is MT7623n and the other is MT7623a. MT7623n is almost identical to MT7623a but has some additional multimedia features. The reference boards are available as NAND or MMC and might have a different ethernet setup. In order to reduce

[PATCH] pinctrl: amd: don't load pinctrl-amd on Gigabyte AM4 boards

2017-05-24 Thread Kai-Heng Feng
On Gigabyte AM4 boards, pinctrl-amd generates tons of irq, makes the system not able to boot properly. Don't load the module until Gigabyte fixes the issue. BugLink: https://bugs.launchpad.net/bugs/1671360 Signed-off-by: Kai-Heng Feng --- drivers/pinctrl/pinctrl-amd.c | 25 +

Re: [linux-sunxi] [PATCH v3 2/9] ASoC: sun8i-codec-analog: prepare a mixer control/widget/route set for V3s

2017-05-24 Thread Chen-Yu Tsai
On Wed, May 24, 2017 at 6:06 PM, Icenowy Zheng wrote: > Allwinner V3s has an analog codec without MIC2 and Line In, which will > need a special set of mixer controls/widgets/routes, otherwise meaningless > controls will be exported to userspace and confuse the user. > > Add the special set, and us

Re: [PATCH] sparc64: Add 16GB hugepage support

2017-05-24 Thread David Miller
From: Paul Gortmaker Date: Wed, 24 May 2017 23:34:42 -0400 > [[PATCH] sparc64: Add 16GB hugepage support] On 24/05/2017 (Wed 17:29) Nitin > Gupta wrote: > >> Orabug: 25362942 >> >> Signed-off-by: Nitin Gupta > > If this wasn't an accidental git send-email misfire, then there should > be a lo

Re: [PATCH] drm/mediatek: hdmi: Filter interlaced resolutions

2017-05-24 Thread CK Hu
On Wed, 2017-05-24 at 14:24 +0200, Daniel Vetter wrote: > On Wed, May 24, 2017 at 05:20:45PM +0800, CK Hu wrote: > > On Tue, 2017-05-23 at 15:12 +0200, Daniel Vetter wrote: > > > On Tue, May 23, 2017 at 05:28:15PM +0800, CK Hu wrote: > > > > Hi, Bibby: > > > > > > > > I've applied this patch to my

Re: [PATCH v2 3/3] regulator: tps65917: Add support for SMPS12

2017-05-24 Thread Keerthy
On Wednesday 24 May 2017 10:50 PM, Mark Brown wrote: > On Tue, May 23, 2017 at 05:46:56PM +0530, Keerthy wrote: >> App support for SMPS12 dual phase regulator. >> >> Signed-off-by: Keerthy >> Acked-by: Lee Jones > > What's the relationship between this and support for the lp87565? Nothing rel

Re: [PATCH] sparc64: Add 16GB hugepage support

2017-05-24 Thread Paul Gortmaker
[[PATCH] sparc64: Add 16GB hugepage support] On 24/05/2017 (Wed 17:29) Nitin Gupta wrote: > Orabug: 25362942 > > Signed-off-by: Nitin Gupta If this wasn't an accidental git send-email misfire, then there should be a long log indicating the use case, the perforamnce increase, the testing that w

  1   2   3   4   5   6   7   8   9   10   >