Re: [v2] powernv:idle: Fix bug due to labeling ambiguity in power_enter_stop

2017-03-07 Thread Michael Ellerman
On Mon, 2017-02-27 at 05:40:07 UTC, "Gautham R. Shenoy" wrote: > From: "Gautham R. Shenoy" > > Commit 09206b600c76 ("powernv: Pass PSSCR value and mask to > power9_idle_stop") added additional code in power_enter_stop() to > distinguish between stop requests whose PSSCR had ESL=EC=1 from those >

Re: [v3, 1/2] powerpc: Emulation support for load/store instructions on LE

2017-03-07 Thread Michael Ellerman
On Tue, 2017-02-14 at 09:16:42 UTC, Ravi Bangoria wrote: > emulate_step() uses a number of underlying kernel functions that were > initially not enabled for LE. This has been rectified since. So, fix > emulate_step() for LE for the corresponding instructions. > > Reported-by: Anton Blanchard > Si

[PATCH v4 7/7] arm: imx_v6_v7_defconfig: Select hid-multitouchdriver

2017-03-07 Thread Jagan Teki
From: Jagan Teki Select CONFIG_HID_MULTITOUCH so that we can have multi touchscreen funtionality via USB by default on Engicam i.CoreM6 Quad with OpenFrame Cap 10.1 display boards. Cc: Matteo Lisi Cc: Michael Trimarchi Cc: Shawn Guo Signed-off-by: Jagan Teki --- Changes for v4: - Newly added

[PATCH 1/2] x86/efi: Correct a tiny mistake in code comment

2017-03-07 Thread Baoquan He
EFI allocate runtime services regions down from EFI_VA_START, -4G. It should be top-down handling. Signed-off-by: Baoquan He --- arch/x86/platform/efi/efi_64.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/platform/efi/efi_64.c b/arch/x86/platform/efi/efi_64.c inde

[PATCH] mips: add missing include files

2017-03-07 Thread Arnd Bergmann
After the split of linux/sched.h, several platforms in arch/mips stopped building, This add the respective additional #include statements to fix the problem I first tried adding these into asm/processor.h, but ran into circular header dependencies with that which I could not figure out. The com

[PATCH 2/2] x86/mm/KASLR: Correct the upper boundary of KALSR mm regions if adjacent to EFI

2017-03-07 Thread Baoquan He
EFI allocates runtime services regions top-down, starting from EFI_VA_START to EFI_VA_END. So EFI_VA_START is bigger than EFI_VA_END and is the end of EFI region. The upper boundary of memory regions randomized by KASLR should be EFI_VA_END if it's adjacent to EFI region, but not EFI_VA_START. Cor

Re: [PATCH 24/29] drivers: convert iblock_req.pending from atomic_t to refcount_t

2017-03-07 Thread Nicholas A. Bellinger
Hi Elena, On Mon, 2017-03-06 at 16:21 +0200, Elena Reshetova wrote: > refcount_t type and corresponding API should be > used instead of atomic_t when the variable is used as > a reference counter. This allows to avoid accidental > refcounter overflows that might lead to use-after-free > situations

Re: [PATCH 0/2] ARM: dts: sunxi: Remove no longer used pinctrl/sun4i-a10.h header

2017-03-07 Thread Maxime Ripard
On Wed, Mar 08, 2017 at 11:28:19AM +0800, Chen-Yu Tsai wrote: > Hi Maxime, > > This series gets rid of the last usage of the Allwinner specific pinconf > bindings, and drops inclusion of dt-bindings/pinctrl/sun4i-a10.h across > the tree. > > Patch 1 gets rid of the last occurrence of Allwinner sp

Re: [PATCH] mm, vmalloc: use __GFP_HIGHMEM implicitly

2017-03-07 Thread Vlastimil Babka
On 03/07/2017 07:57 PM, Matthew Wilcox wrote: > On Tue, Mar 07, 2017 at 10:28:41AM -0800, Matthew Wilcox wrote: >> On Tue, Mar 07, 2017 at 03:10:20PM +0100, Michal Hocko wrote: >>> This patch simply uses __GFP_HIGHMEM implicitly when allocating pages to >>> be mapped to the vmalloc space. Current u

[PATCH -v6 0/9] THP swap: Delay splitting THP during swapping out

2017-03-07 Thread Huang, Ying
From: Huang Ying Hi, Andrew, could you help me to check whether the overall design is reasonable? Hi, Hugh, Shaohua, Minchan and Rik, could you help me to review the swap part of the patchset? Especially [1/9], [3/9], [4/9], [5/9], [6/9], [9/9]. Hi, Andrea could you help me to review the THP p

[PATCH -mm -v6 3/9] mm, THP, swap: Add swap cluster allocate/free functions

2017-03-07 Thread Huang, Ying
From: Huang Ying The swap cluster allocation/free functions are added based on the existing swap cluster management mechanism for SSD. These functions don't work for the rotating hard disks because the existing swap cluster management mechanism doesn't work for them. The hard disks support may

[PATCH -mm -v6 4/9] mm, THP, swap: Add get_huge_swap_page()

2017-03-07 Thread Huang, Ying
From: Huang Ying A variation of get_swap_page(), get_huge_swap_page(), is added to allocate a swap cluster (HPAGE_PMD_NR swap slots) based on the swap cluster allocation function. A fair simple algorithm is used, that is, only the first swap device in priority list will be tried to allocate the

[PATCH -mm -v6 5/9] mm, THP, swap: Support to clear SWAP_HAS_CACHE for huge page

2017-03-07 Thread Huang, Ying
From: Huang Ying __swapcache_free() is added to support to clear the SWAP_HAS_CACHE flag for the huge page. This will free the specified swap cluster now. Because now this function will be called only in the error path to free the swap cluster just allocated. So the corresponding swap_map[i] ==

[PATCH -mm -v6 6/9] mm, THP, swap: Support to add/delete THP to/from swap cache

2017-03-07 Thread Huang, Ying
From: Huang Ying With this patch, a THP (Transparent Huge Page) can be added/deleted to/from the swap cache as a set of (HPAGE_PMD_NR) sub-pages. This will be used for the THP (Transparent Huge Page) swap support. Where one THP may be added/delted to/from the swap cache. This will batch the swa

[PATCH -mm -v6 7/9] mm, THP: Add can_split_huge_page()

2017-03-07 Thread Huang, Ying
From: Huang Ying Separates checking whether we can split the huge page from split_huge_page_to_list() into a function. This will help to check that before splitting the THP (Transparent Huge Page) really. This will be used for delaying splitting THP during swapping out. Where for a THP, we wil

[PATCH -mm -v6 9/9] mm, THP, swap: Delay splitting THP during swap out

2017-03-07 Thread Huang, Ying
From: Huang Ying In this patch, splitting huge page is delayed from almost the first step of swapping out to after allocating the swap space for the THP (Transparent Huge Page) and adding the THP into the swap cache. This will reduce lock acquiring/releasing for the locks used for the swap cache

[PATCH -mm -v6 2/9] mm, memcg: Support to charge/uncharge multiple swap entries

2017-03-07 Thread Huang, Ying
From: Huang Ying This patch make it possible to charge or uncharge a set of continuous swap entries in the swap cgroup. The number of swap entries is specified via an added parameter. This will be used for the THP (Transparent Huge Page) swap support. Where a swap cluster backing a THP may be a

[PATCH -mm -v6 8/9] mm, THP, swap: Support to split THP in swap cache

2017-03-07 Thread Huang, Ying
From: Huang Ying This patch enhanced the split_huge_page_to_list() to work properly for the THP (Transparent Huge Page) in the swap cache during swapping out. This is used for delaying splitting the THP during swapping out. Where for a THP to be swapped out, we will allocate a swap cluster, add

Re: iommu/rockchip: Fix bugs and enable on ARM64

2017-03-07 Thread Caesar Wang
Shunqian, something is depending on these patches, can you resend these patches to solve the compile errors? -Caesar 在 2016年07月16日 00:16, Joerg Roedel 写道: On Fri, Jul 15, 2016 at 05:32:02PM +0200, Matthias Brugger wrote: The drm rockchip patches are dependent on iommu/rockchip patches, can yo

[PATCH v4 3/7] arm: dts: imx6q: Add Engicam i.CoreM6 Quad/Dual OpenFrame Cap 12.3 initial support

2017-03-07 Thread Jagan Teki
From: Jagan Teki i.CoreM6 Quad/Dual OpenFrame modules are "system on modules plus openframe display carriers" which are good solution for develop user friendly graphic user interface. General features: CPU NXP i.MX6Q rev1.2 at 792 MHz RAM 1GB, 32, 64 bit, DDR3-800/1066 NAND

Re: [PATCH v5 1/5] arm64: dts: exynos: Add the burst and esc clock frequency properties to DSI node

2017-03-07 Thread Krzysztof Kozlowski
On Wed, Mar 08, 2017 at 01:54:08PM +0900, Hoegeun Kwon wrote: > Add the burst and esc clock frequency properties to the parent (DSI node). > Currently the clock is parsed from the port node, while it should be > taken from the dsi node. > > Signed-off-by: Hoegeun Kwon > Reviewed-by: Andrzej Hajda

[PATCH v4 4/7] arm: dts: imx6q-icore: Add LVDS support

2017-03-07 Thread Jagan Teki
From: Jagan Teki Add LVDS display support for OpenFrame Capacitive touch 7 inc display which is supported by Engicam i.CoreM6 QDL Starter Kit. Cc: Domenico Acri Cc: Matteo Lisi Cc: Michael Trimarchi Cc: Shawn Guo Signed-off-by: Jagan Teki --- Changes for v4: - Fix checkpatch.pl Errors/Warni

random-dev misses merge window?

2017-03-07 Thread Jason A. Donenfeld
Hey Ted, I was disappointed to see that this series: https://git.kernel.org/cgit/linux/kernel/git/tytso/random.git/log/?h=dev missed 4.11-rc1, especially considering those patches were ready since January, and I had sent you several reminders to even get them merged in your random.git tree. Did

[PATCH v4 6/7] arm: imx_v6_v7_defconfig: Select max11801_ts touchscreen driver

2017-03-07 Thread Jagan Teki
From: Jagan Teki Select CONFIG_TOUCHSCREEN_MAX11801 so that we can have touchscreen funtionality by default on Engicam i.CoreM6 Quad boards. Cc: Matteo Lisi Cc: Michael Trimarchi Cc: Shawn Guo Signed-off-by: Jagan Teki --- Changes for v4: - Newly added patch. arch/arm/boot/dts/imx6q-icore.

[PATCH v4 5/7] arm: dts: imx6q-icore: Add touchscreen node

2017-03-07 Thread Jagan Teki
From: Jagan Teki max11801 touchscreen on Engicam iCoreM6 Quad module is connected via i2c1, so add tc: max11801@48 on i2c1. Cc: Domenico Acri Cc: Matteo Lisi Cc: Michael Trimarchi Cc: Shawn Guo Signed-off-by: Jagan Teki --- Changes for v4: - Newly added patch. arch/arm/boot/dts/imx6q-icor

Re: [PATCH v5 2/5] arm: dts: Add the burst and esc clock frequency properties to DSI node

2017-03-07 Thread Krzysztof Kozlowski
On Wed, Mar 08, 2017 at 01:54:09PM +0900, Hoegeun Kwon wrote: > Add the burst and esc clock frequency properties to the parent (DSI node). > Currently the clock is parsed from the port node, while it should be > taken from the dsi node. > > Signed-off-by: Hoegeun Kwon > Reviewed-by: Andrzej Hajda

Re: [RFC PATCH v4 25/28] x86: Access the setup data through sysfs decrypted

2017-03-07 Thread Dave Young
On 02/16/17 at 09:47am, Tom Lendacky wrote: > Use memremap() to map the setup data. This will make the appropriate > decision as to whether a RAM remapping can be done or if a fallback to > ioremap_cache() is needed (similar to the setup data debugfs support). > > Signed-off-by: Tom Lendacky > -

Re: [PATCH v4 3/4] dt-bindings: phy: Add support for QMP phy

2017-03-07 Thread Vivek Gautam
On 03/07/2017 07:30 PM, Stephen Boyd wrote: (Not sure I replied so here it is) On 01/27, Vivek Gautam wrote: On 01/27/2017 05:13 AM, Stephen Boyd wrote: On 01/24, Vivek Gautam wrote: From "./Documentation/devicetree/bindings/graph.txt" - "The device tree graph bindings described herein ab

Re: [RFC v2 10/10] mm, page_alloc: introduce MIGRATE_MIXED migratetype

2017-03-07 Thread Vlastimil Babka
On 03/08/2017 03:16 AM, Yisheng Xie wrote: > Hi Vlastimil , > > On 2017/2/11 1:23, Vlastimil Babka wrote: >> @@ -1977,7 +1978,7 @@ static void steal_suitable_fallback(struct zone *zone, >> struct page *page, >> unsigned int current_order = page_order(page); >> struct free_area *area; >>

Re: [RFC PATCH v4 24/28] x86: Access the setup data through debugfs decrypted

2017-03-07 Thread Dave Young
On 02/16/17 at 09:47am, Tom Lendacky wrote: > Use memremap() to map the setup data. This simplifies the code and will > make the appropriate decision as to whether a RAM remapping can be done > or if a fallback to ioremap_cache() is needed (which includes checking > PageHighMem). > > Signed-off-b

Re: [RFC PATCH v4 14/28] Add support to access boot related data in the clear

2017-03-07 Thread Dave Young
On 02/16/17 at 09:45am, Tom Lendacky wrote: [snip] > + * This function determines if an address should be mapped encrypted. > + * Boot setup data, EFI data and E820 areas are checked in making this > + * determination. > + */ > +static bool memremap_should_map_encrypted(resource_size_t phys_addr, >

Re: [RFC 06/11] mm: remove SWAP_MLOCK in ttu

2017-03-07 Thread Minchan Kim
On Tue, Mar 07, 2017 at 06:24:37PM +0300, Kirill A. Shutemov wrote: > On Mon, Mar 06, 2017 at 11:15:08AM +0900, Minchan Kim wrote: > > Hi Anshuman, > > > > On Fri, Mar 03, 2017 at 06:06:38PM +0530, Anshuman Khandual wrote: > > > On 03/02/2017 12:09 PM, Minchan Kim wrote: > > > > ttu don't need to

Re: [PATCH v5 2/5] arm: dts: Add the burst and esc clock frequency properties to DSI node

2017-03-07 Thread Krzysztof Kozlowski
On Wed, Mar 08, 2017 at 01:54:09PM +0900, Hoegeun Kwon wrote: > Add the burst and esc clock frequency properties to the parent (DSI node). > Currently the clock is parsed from the port node, while it should be > taken from the dsi node. > > Signed-off-by: Hoegeun Kwon > Reviewed-by: Andrzej Hajda

Re: [PATCH v5 1/5] arm64: dts: exynos: Add the burst and esc clock frequency properties to DSI node

2017-03-07 Thread Krzysztof Kozlowski
On Wed, Mar 08, 2017 at 01:54:08PM +0900, Hoegeun Kwon wrote: > Add the burst and esc clock frequency properties to the parent (DSI node). > Currently the clock is parsed from the port node, while it should be > taken from the dsi node. > > Signed-off-by: Hoegeun Kwon > Reviewed-by: Andrzej Hajda

RE: [PATCH v17 2/3] usb: USB Type-C connector class

2017-03-07 Thread Peter Chen
>>> You mean type-C trigger an ACPI event, and this ACPI event can notify >>> related USB controller driver doing role switch? >> >> No (firmware programs the dual-role hw/registers), but never mind. >> That could be the case. >> >>> If it is correct, there is a notifier between type-C and USB >>

Re: [PATCH v3 0/4] fujitsu_init() cleanup

2017-03-07 Thread Jonathan Woithe
On Tue, Mar 07, 2017 at 11:15:12AM +0100, Micha?? K??pie?? wrote: > These patches should make fujitsu_init() a bit more palatable. No > changes are made to platform device code yet, for clarity these will be > posted in a separate series after this one gets applied. I will test and review these a

Re: [PATCH v11 3/3] arm64: dts: exynos: Add support for S6E3HA2 panel device on TM2 board

2017-03-07 Thread Krzysztof Kozlowski
On Wed, Mar 08, 2017 at 10:42:37AM +0900, Hoegeun Kwon wrote: > From: Hyungwon Hwang > > This patch add the panel device tree node for S6E3HA2 display > controller to TM2 dts. > > Signed-off-by: Hyungwon Hwang > Signed-off-by: Andrzej Hajda > Signed-off-by: Chanwoo Choi > Signed-off-by: Hoege

Re: [RFC 05/11] mm: make the try_to_munlock void function

2017-03-07 Thread Minchan Kim
On Tue, Mar 07, 2017 at 06:17:47PM +0300, Kirill A. Shutemov wrote: > On Thu, Mar 02, 2017 at 03:39:19PM +0900, Minchan Kim wrote: > > try_to_munlock returns SWAP_MLOCK if the one of VMAs mapped > > the page has VM_LOCKED flag. In that time, VM set PG_mlocked to > > the page if the page is not pte-

Re: [RFC 01/11] mm: use SWAP_SUCCESS instead of 0

2017-03-07 Thread Minchan Kim
Hi Kirill, On Tue, Mar 07, 2017 at 05:19:33PM +0300, Kirill A. Shutemov wrote: > On Thu, Mar 02, 2017 at 03:39:15PM +0900, Minchan Kim wrote: > > SWAP_SUCCESS defined value 0 can be changed always so don't rely on > > it. Instead, use explict macro. > > I'm okay with this as long as it's preparti

Re: [RFC 04/11] mm: remove SWAP_MLOCK check for SWAP_SUCCESS in ttu

2017-03-07 Thread Minchan Kim
On Tue, Mar 07, 2017 at 05:26:43PM +0300, Kirill A. Shutemov wrote: > On Thu, Mar 02, 2017 at 03:39:18PM +0900, Minchan Kim wrote: > > If the page is mapped and rescue in ttuo, page_mapcount(page) == 0 cannot > > be true so page_mapcount check in ttu is enough to return SWAP_SUCCESS. > > IOW, SWAP_

RE: [PATCH] Input: elan_i2c - add ASUS EeeBook X205TA special touchpad fw

2017-03-07 Thread 廖崇榮
Hi Matjaz, -Original Message- From: Matjaž Hegedič [mailto:matjaz.hege...@gmail.com] Sent: Tuesday, March 07, 2017 6:52 PM To: 廖崇榮; 'Dmitry Torokhov' Cc: linux-in...@vger.kernel.org; linux-kernel@vger.kernel.org; 黃世鵬 經理; miller_w...@emc.com.tw Subject: Re: [PATCH] Input: elan_i2c - add A

Re: [PATCH v2] staging: wilc1000: Fix sparse warnings incorrect type assignment

2017-03-07 Thread Dan Carpenter
I think this change is buggy. On Tue, Mar 07, 2017 at 10:36:53PM +0100, Andrea Ghittino wrote: > Fixed sparse warnings related to the conversion of le16 and le32 to u16 and > u32, during the update of internal structures > > Fixed sparse warnings: > drivers/staging/wilc1000//wilc_wfi_cfgoperatio

[PATCH] drm/rockchip: Refactor the component match logic.

2017-03-07 Thread Jeffy Chen
Currently we are adding all components from the dts, if one of their drivers been disabled, we would not be able to bring up others. Refactor component match logic, follow exynos drm. Signed-off-by: Jeffy Chen --- drivers/gpu/drm/rockchip/Kconfig| 10 +- drivers/gpu/drm/rockc

Re: [PATCH v7 kernel 3/5] virtio-balloon: implementation of VIRTIO_BALLOON_F_CHUNK_TRANSFER

2017-03-07 Thread Michael S. Tsirkin
On Fri, Mar 03, 2017 at 01:40:28PM +0800, Wei Wang wrote: > From: Liang Li > > The implementation of the current virtio-balloon is not very > efficient, because the pages are transferred to the host one by one. > Here is the breakdown of the time in percentage spent on each > step of the balloon

Re: [PATCH 2/2] Staging: comedi: comedi_fops: Fix "out of minor numbers for board device files"

2017-03-07 Thread Dan Carpenter
On Sun, Mar 05, 2017 at 03:22:33AM +0800, Cheah Kok Cheong wrote: > If comedi module is loaded with the following max allowed parameter > [comedi_num_legacy_minors=48], subsequent loading of an auto-configured > device will fail. Don't set comedi_num_legacy_minors=48, then? This doesn't seem like

Re: [PATCH V5 6/6] proc: show MADV_FREE pages info in smaps

2017-03-07 Thread Minchan Kim
Hi Andrew, On Tue, Mar 07, 2017 at 02:43:38PM -0800, Andrew Morton wrote: > On Tue, 7 Mar 2017 11:05:45 +0100 Michal Hocko wrote: > > > On Fri 03-03-17 16:10:27, Andrew Morton wrote: > > > On Thu, 2 Mar 2017 17:30:54 +0100 Michal Hocko wrote: > > > > > > > > It's not that I think you're wrong:

Re: [PATCH] zram: set physical queue limits to avoid array out of bounds accesses

2017-03-07 Thread Minchan Kim
Hi Johannes, On Tue, Mar 07, 2017 at 10:51:45AM +0100, Johannes Thumshirn wrote: > On 03/07/2017 09:55 AM, Minchan Kim wrote: > > On Tue, Mar 07, 2017 at 08:48:06AM +0100, Hannes Reinecke wrote: > >> On 03/07/2017 08:23 AM, Minchan Kim wrote: > >>> Hi Hannes, > >>> > >>> On Tue, Mar 7, 2017 at 4:0

Re: [PATCH] mm: Do not use double negation for testing page flags

2017-03-07 Thread Minchan Kim
Hi Anshuman, On Tue, Mar 07, 2017 at 09:31:18PM +0530, Anshuman Khandual wrote: > On 03/07/2017 12:06 PM, Minchan Kim wrote: > > With the discussion[1], I found it seems there are every PageFlags > > functions return bool at this moment so we don't need double > > negation any more. > > Although i

[PATCH] ARM: dts: mvebu: linksys: enable buffer manager support

2017-03-07 Thread Ralph Sennhauser
Add appropriate properties to devices in the Linksys WRT AC Series for the mvneta driver to use hardware buffer management. Also update "soc" ranges property and set the status of bm and bm-bppi to "okay" (SRAM). Signed-off-by: Ralph Sennhauser --- arch/arm/boot/dts/armada-385-linksys.dtsi

Re: [PATCH v3 3/3] printk: fix double printing with earlycon

2017-03-07 Thread Sergey Senozhatsky
Hello, sorry for the delay. On (03/07/17 15:54), Aleksey Makarov wrote: > On 03/06/2017 03:59 PM, Sergey Senozhatsky wrote: > > On (03/03/17 18:49), Aleksey Makarov wrote: > > [..] > > > +static enum { CONSOLE_MATCH, CONSOLE_MATCH_RETURN, CONSOLE_MATCH_NEXT } > > > +match_console(struct console *

[PATCH 2/2] ARM: dts: sunxi: Remove no longer used pinctrl/sun4i-a10.h header

2017-03-07 Thread Chen-Yu Tsai
All dts files for the sunxi platform have been switched to the generic pinconf bindings. As a result, the sunxi specific pinctrl macros are no longer used. Remove the #include entry with the following command: sed --follow-symlinks -i -e '/pinctrl\/sun4i-a10.h/D' \ arch/arm/boot/dts/s

[PATCH 1/2] ARM: dts: sun8i-a23-q8-tablet: Drop pinmux setting for codec PA gpio

2017-03-07 Thread Chen-Yu Tsai
The old sunxi specific pinctrl bindings are deprecated, in favor of the new generic pinconf bindings. Also, we are moving towards handling GPIO pinmux settings that don't require extra bias or drive strength settings to use the GPIO bindings only. This patch removes the last instance of the sunxi

[PATCH 0/2] ARM: dts: sunxi: Remove no longer used pinctrl/sun4i-a10.h header

2017-03-07 Thread Chen-Yu Tsai
Hi Maxime, This series gets rid of the last usage of the Allwinner specific pinconf bindings, and drops inclusion of dt-bindings/pinctrl/sun4i-a10.h across the tree. Patch 1 gets rid of the last occurrence of Allwinner specific pinconf properties, which is actually a GPIO pinmux. Patch 2 drops t

Re: linux-next: build failure after merge of the rcu tree

2017-03-07 Thread Paul E. McKenney
On Wed, Mar 08, 2017 at 12:16:05PM +1100, Stephen Rothwell wrote: > Hi Paul, > > On Mon, 13 Feb 2017 17:43:24 +1100 Stephen Rothwell > wrote: > > > > On Sun, 12 Feb 2017 20:37:48 -0800 "Paul E. McKenney" > > wrote: > > > > > > I chickened out on that commit for this merge window, so it will co

Re: [PATCH 6/7] xen/9pfs: receive responses

2017-03-07 Thread Stefano Stabellini
On Tue, 7 Mar 2017, Boris Ostrovsky wrote: > On 03/06/2017 03:01 PM, Stefano Stabellini wrote: > > Upon receiving a notification from the backend, schedule the > > p9_xen_response work_struct. p9_xen_response checks if any responses are > > available, if so, it reads them one by one, calling p9_cli

Re: nios2 crash/hang in mainline due to 'lib: update LZ4 compressor module'

2017-03-07 Thread Guenter Roeck
On 03/07/2017 04:46 AM, Tobias Klauser wrote: On 2017-03-03 at 04:04:41 +0100, Guenter Roeck wrote: On 03/02/2017 08:38 AM, Tobias Klauser wrote: On 2017-03-01 at 20:45:21 +0100, Guenter Roeck wrote: On Wed, Mar 01, 2017 at 07:58:17PM +0100, Sven Schmidt wrote: Hi Guenter, Tobias and Sandra

Re: [PATCH v17 2/3] usb: USB Type-C connector class

2017-03-07 Thread Guenter Roeck
On 03/07/2017 02:30 PM, Mats Karrman wrote: [ ... ] I'm still struggling to catch up on what you guys have been up to during the last year or so :-) and came across some patches of Guenter from last October: http://www.mail-archive.com/linux-kernel@vger.kernel.org/msg1243527.html What happene

[PATCH v5 0/5] Fix the parse_dt of exynos dsi and remove the OF graph

2017-03-07 Thread Hoegeun Kwon
Hi All, The dsi + panel is a parental relationship, so OF grpah is not needed. Therefore, the current dsi_parse_dt function will throw an error, because there is no linked OF graph for case such as fimd + dsi + panel. So the 1/5 patch parse the Pll, burst and esc clock frequency properties in dsi

[PATCH v5 5/5] arm: dts: Remove the OF graph from DSI node

2017-03-07 Thread Hoegeun Kwon
The OF graph is not needed because the panel is a child of dsi. Remove the ports node in DSI node, and port node in panel node. Signed-off-by: Hoegeun Kwon Reviewed-by: Andrzej Hajda Reviewed-by: Andi Shyti --- arch/arm/boot/dts/exynos3250-rinato.dts | 21 - arch/arm/boot/d

Re: [PATCH 10/15] drm/sun4i: tcon: Switch mux on only for composite

2017-03-07 Thread Stefan Monnier
>> + if (encoder->encoder_type == DRM_MODE_ENCODER_TVDAC) >> + val = 1; >> + else >> + val = 0; Isn't this better written as val = (encoder->encoder_type == DRM_MODE_ENCODER_TVDAC); -- Stefan

Re: [PATCH v7 kernel 4/5] virtio-balloon: define flags and head for host request vq

2017-03-07 Thread Michael S. Tsirkin
On Fri, Mar 03, 2017 at 01:40:29PM +0800, Wei Wang wrote: > From: Liang Li > > Define the flags and head struct for a new host request virtual > queue. Guest can get requests from host and then responds to > them on this new virtual queue. > Host can make use of this virtqueue to request the gues

[PATCH v5 1/5] arm64: dts: exynos: Add the burst and esc clock frequency properties to DSI node

2017-03-07 Thread Hoegeun Kwon
Add the burst and esc clock frequency properties to the parent (DSI node). Currently the clock is parsed from the port node, while it should be taken from the dsi node. Signed-off-by: Hoegeun Kwon Reviewed-by: Andrzej Hajda Reviewed-by: Andi Shyti --- arch/arm64/boot/dts/exynos/exynos5433-tm2-

[PATCH v5 3/5] drm/exynos: dsi: Fix the parse_dt function

2017-03-07 Thread Hoegeun Kwon
The dsi + panel is a parental relationship, so OF grpah is not needed. Therefore, the current dsi_parse_dt function will throw an error, because there is no linked OF graph for the case fimd + dsi + panel. Parse the Pll burst and esc clock frequency properties in dsi_parse_dt() and create a bridge

[PATCH v5 2/5] arm: dts: Add the burst and esc clock frequency properties to DSI node

2017-03-07 Thread Hoegeun Kwon
Add the burst and esc clock frequency properties to the parent (DSI node). Currently the clock is parsed from the port node, while it should be taken from the dsi node. Signed-off-by: Hoegeun Kwon Reviewed-by: Andrzej Hajda Reviewed-by: Andi Shyti --- arch/arm/boot/dts/exynos3250-rinato.dts |

[PATCH v5 4/5] arm64: dts: exynos: Remove the OF graph from DSI node

2017-03-07 Thread Hoegeun Kwon
The OF graph is not needed because the panel is a child of dsi. Remove the ports node in DSI node. Signed-off-by: Hoegeun Kwon Reviewed-by: Andrzej Hajda Reviewed-by: Andi Shyti --- arch/arm64/boot/dts/exynos/exynos5433-tm2-common.dtsi | 14 -- 1 file changed, 14 deletions(-) diff

Re: net: heap out-of-bounds in fib6_clean_node/rt6_fill_node/fib6_age/fib6_prune_clone

2017-03-07 Thread David Ahern
On 3/7/17 2:21 AM, Dmitry Vyukov wrote: > I've commented that warning just to see I can obtain more information. > Then I also got this: > > [ cut here ] > WARNING: CPU: 2 PID: 3990 at net/ipv6/ip6_fib.c:991 > fib6_add+0x2e12/0x3290 net/ipv6/ip6_fib.c:991 net/ipv6/ip6_fib.c

Re: [PATCH] reset: sunxi: fix for 64-bit compilation

2017-03-07 Thread Chen-Yu Tsai
On Mon, Mar 6, 2017 at 9:35 AM, Andre Przywara wrote: > The Allwinner reset controller has 32-bit registers, so translating > the reset cell number into a register and bit offset should not use > any architecture dependent data size. Otherwise this breaks for 64-bit > architectures like arm64. > F

Re: [PATCH 11/15] drm/sun4i: tcon: Fix tcon channel 1 backporch calculation

2017-03-07 Thread Chen-Yu Tsai
On Tue, Mar 7, 2017 at 4:56 PM, Maxime Ripard wrote: > It seems like what's called a backporch in the datasheet is actually the > backporch plus the sync period. Fix that in our driver. > > Signed-off-by: Maxime Ripard > --- > drivers/gpu/drm/sun4i/sun4i_tcon.c | 5 ++--- > 1 file changed, 2 ins

Re: [PATCH V2 0/5] thermal: minor cleanup/fixes

2017-03-07 Thread Viresh Kumar
On 24-02-17, 14:19, Viresh Kumar wrote: > On 21-02-17, 14:30, Zhang Rui wrote: > > On Mon, 2017-02-20 at 15:59 +0530, Viresh Kumar wrote: > > > On 07-02-17, 09:39, Viresh Kumar wrote: > > > > > > > > Hi, > > > > > > > > This series contains minor fixes/cleanups for thermal cooling > > > > drivers

[PATCHv3 11/16] module: Use set_memory.h header

2017-03-07 Thread Laura Abbott
set_memory_* functions have moved to set_memory.h. Switch to this explicitly. Acked-by: Jessica Yu Signed-off-by: Laura Abbott --- v3: #ifdef protection --- kernel/module.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/kernel/module.c b/kernel/module.c index 7eba6de..992a100 100644 --

Re: [PATCH 3/3] cpufreq: schedutil: remove redundant code from sugov_next_freq_shared()

2017-03-07 Thread Viresh Kumar
On 07-03-17, 14:19, Rafael J. Wysocki wrote: > On Tue, Mar 7, 2017 at 11:31 AM, Viresh Kumar wrote: > > Why do you think so? I thought all CPU in the policy can have the RT/DL > > flag set > > and the probability of all of them is just the same. > > Well, yes, but if the current CPU has that fla

[PATCH v2 3/3] arm64: KVM: add guest SEI support

2017-03-07 Thread Xie XiuQi
Add ghes handling for SEI so that the host kernel could parse and report detailed error information for SEI which occur in the guest kernel. Signed-off-by: Xie XiuQi --- arch/arm64/include/asm/system_misc.h | 1 + arch/arm64/kernel/traps.c| 18 ++ arch/arm64/kvm/hand

[PATCH v2 1/3] arm64: RAS: add ras extension runtime detection

2017-03-07 Thread Xie XiuQi
According to <> document, we add RAS extension feature runtime detection, which would be used for error recovery in the future. Signed-off-by: Xie XiuQi Reviewed-by: Kefeng Wang --- arch/arm64/include/asm/cpucaps.h | 3 ++- arch/arm64/include/asm/sysreg.h | 2 ++ arch/arm64/kernel/cpufeature

[PATCH v2 0/3] arm64: acpi: apei: handle SEI notification type for ARMv8

2017-03-07 Thread Xie XiuQi
ARM APEI extension proposal added SEI (asynchronous SError interrupt) notification type for ARMv8. Add a new GHES error source handling function for SEI. In firmware first mode, if an error source's notification type is SEI. Then GHES could parse and report the detail error information. This seri

[PATCH] don't forget to call pd_online_fn when activate policy

2017-03-07 Thread Zhou Chengming
From: z00354408 Signed-off-by: z00354408 --- block/blk-cgroup.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/block/blk-cgroup.c b/block/blk-cgroup.c index 8ba0af7..0dd9e76 100644 --- a/block/blk-cgroup.c +++ b/block/blk-cgroup.c @@ -1254,6 +1254,12 @@ int blkcg_activate_policy(stru

Re: [PATCH v7 kernel 2/5] virtio-balloon: VIRTIO_BALLOON_F_CHUNK_TRANSFER

2017-03-07 Thread Michael S. Tsirkin
On Fri, Mar 03, 2017 at 01:40:27PM +0800, Wei Wang wrote: > From: Liang Li > > Add a new feature bit, VIRTIO_BALLOON_F_CHUNK_TRANSFER. Please check > the implementation patch commit for details about this feature. better squash into next patch. > Signed-off-by: Liang Li > Signed-off-by: Wei W

Re: [tpmdd-devel] [PATCH] vTPM: Fix missing NULL check

2017-03-07 Thread Hon Ching(Vicky) Lo
On Mon, 2017-03-06 at 16:19 -0700, Jason Gunthorpe wrote: > On Mon, Mar 06, 2017 at 05:32:15PM -0500, Hon Ching(Vicky) Lo wrote: > > The current code passes the address of tpm_chip as the argument to > > dev_get_drvdata() without prior NULL check in > > tpm_ibmvtpm_get_desired_dma. This resulted a

Re: [PATCH v5 05/15] livepatch/powerpc: add TIF_PATCH_PENDING thread flag

2017-03-07 Thread Michael Ellerman
Josh Poimboeuf writes: > Add the TIF_PATCH_PENDING thread flag to enable the new livepatch > per-task consistency model for powerpc. The bit getting set indicates > the thread has a pending patch which needs to be applied when the thread > exits the kernel. > > The bit is included in the _TIF_US

[PATCH v2 2/3] acpi: apei: handle SEI notification type for ARMv8

2017-03-07 Thread Xie XiuQi
ARM APEI extension proposal added SEI (asynchronous SError interrupt) notification type for ARMv8. Add a new GHES error source handling function for SEI. In firmware first mode, if an error source's notification type is SEI. Then GHES could parse and report the detail error information. Signed-of

Re: [PATCH v17 2/3] usb: USB Type-C connector class

2017-03-07 Thread Guenter Roeck
On 03/07/2017 12:57 AM, Heikki Krogerus wrote: On Tue, Mar 07, 2017 at 01:36:29AM +, Peter Chen wrote: On Mon, Mar 06, 2017 at 09:15:51AM +0800, Peter Chen wrote: What interface you use when you receive this event to handle dual-role switch? I am wonder if a common dual-role class is needed

Re: [PATCH 10/15] drm/sun4i: tcon: Switch mux on only for composite

2017-03-07 Thread Chen-Yu Tsai
On Tue, Mar 7, 2017 at 4:56 PM, Maxime Ripard wrote: > Even though that mux is undocumented, it seems like it needs to be set to 1 > when using composite, and 0 when using HDMI. > > Signed-off-by: Maxime Ripard > --- > drivers/gpu/drm/sun4i/sun4i_tcon.c | 7 ++- > 1 file changed, 6 insertion

Re: [linux-sunxi] [PATCH 14/15] ARM: sun5i: a10s: Add the HDMI controller node

2017-03-07 Thread Chen-Yu Tsai
Hi, On Tue, Mar 7, 2017 at 4:56 PM, Maxime Ripard wrote: > The A10s has an HDMI controller connected to the second TCON channel. Add > it to our DT. > > Signed-off-by: Maxime Ripard > --- > arch/arm/boot/dts/sun5i-a10s.dtsi | 34 - > arch/arm/boot/dts/sun5i.dtsi

Re: [PATCH v3 1/1] mtk-vcodec: check the vp9 decoder buffer index from VPU.

2017-03-07 Thread Tiffany Lin
On Wed, 2017-03-08 at 11:40 +0800, Wu-Cheng Li wrote: > From: Wu-Cheng Li > > VPU firmware has a bug and may return invalid buffer index for > some vp9 videos. Check the buffer indexes before accessing the > buffer. > Acked-by: Tiffany Lin > Signed-off-by: Wu-Cheng Li > --- > drivers/media/

Re: [PATCH 8/15] drm/sun4i: tcon: Add channel debug

2017-03-07 Thread Chen-Yu Tsai
On Tue, Mar 7, 2017 at 4:56 PM, Maxime Ripard wrote: > While all functions have debug logs, the channel enable and disable are not > logged. Make sure this is the case. > > Signed-off-by: Maxime Ripard Acked-by: Chen-Yu Tsai

[PATCH v2] dmaengine: rcar-dmac: enable descriptor mode on 40bit

2017-03-07 Thread Kuninori Morimoto
From: Kuninori Morimoto SYS-DMAC can use 40bit address transfer, and it supports Descriptor Mode too. Current SYS-DMAC driver disables Descriptor Mode if it was 40bit address today. But it can use Descriptor Mode with 40bit if transfer Source/Destination address are located in same 4GiB region in

Re: [PATCH 7/15] dt-bindings: display: sun4i: Add allwinner,tcon-channel property

2017-03-07 Thread Chen-Yu Tsai
On Tue, Mar 7, 2017 at 4:56 PM, Maxime Ripard wrote: > The Allwinner Timings Controller has two, mutually exclusive, channels. > When the binding has been introduced, it was assumed that there would be > only a single user per channel in the system. > > While this is likely for the channel 0 which

Re: [PATCH 15/15] ARM: sun5i: a10s-olinuxino: Enable HDMI

2017-03-07 Thread Chen-Yu Tsai
On Tue, Mar 7, 2017 at 4:56 PM, Maxime Ripard wrote: > The A10s Olinuxino has an HDMI connector. Make sure we can use it. > > Signed-off-by: Maxime Ripard Acked-by: Chen-Yu Tsai

Re: [PATCH 1/2] device: Stop requiring that struct device is embedded in struct pci_dev

2017-03-07 Thread Benjamin Herrenschmidt
On Tue, 2017-03-07 at 05:52 +0100, Greg Kroah-Hartman wrote: > On Mon, Mar 06, 2017 at 04:35:48PM -0800, Bart Van Assche wrote: > > The dma mapping operations of several architectures and also of > > several I/O MMU implementations need to translate a struct > > device pointer into a struct pci_dev

[v6 PATCH 04/21] x86/mpx, x86/insn: Relocate insn util functions to a new insn-kernel

2017-03-07 Thread Ricardo Neri
Other kernel submodules can benefit from using the utility functions defined in mpx.c to obtain the addresses and values of operands contained in the general purpose registers. An instance of this is the emulation code used for instructions protected by the Intel User-Mode Instruction Prevention fe

Re: [PATCH 6/15] dt-bindings: display: sun4i: Add HDMI display bindings

2017-03-07 Thread Chen-Yu Tsai
On Tue, Mar 7, 2017 at 4:56 PM, Maxime Ripard wrote: > One of the possible output of the display pipeline, on the SoCs that have > it, is the HDMI controller. > > Add a binding for it. > > Signed-off-by: Maxime Ripard Acked-by: Chen-Yu Tsai TODO: A31 will also need a DDC clock.

[PATCH v3 1/1] mtk-vcodec: check the vp9 decoder buffer index from VPU.

2017-03-07 Thread Wu-Cheng Li
From: Wu-Cheng Li VPU firmware has a bug and may return invalid buffer index for some vp9 videos. Check the buffer indexes before accessing the buffer. Signed-off-by: Wu-Cheng Li --- drivers/media/platform/mtk-vcodec/mtk_vcodec_dec.c | 33 +- drivers/media/platform/mtk-vcod

[PATCH v3 0/1] mtk-vcodec: check the vp9 decoder buffer index from VPU

2017-03-07 Thread Wu-Cheng Li
From: Wu-Cheng Li v2: also check the result of vdec_if_decode in mtk_vdec_worker. v3: set buffer status to VB2_BUF_STATE_ERROR. Move printk out of lock. Wu-Cheng Li (1): mtk-vcodec: check the vp9 decoder buffer index from VPU. drivers/media/platform/mtk-vcodec/mtk_vcodec_dec.c | 33 +

[PATCH RT 8/9] lockdep: Fix compilation error for !CONFIG_MODULES and

2017-03-07 Thread Julia Cartwright
4.1.38-rt46-rc1 stable review patch. If you have any objection to the inclusion of this patch, let me know. --- 8< --- 8< --- 8< --- From: Dan Murphy When CONFIG_MODULES is not set then it fails to compile in lockdep: |kernel/locking/lockdep.c: In function 'look_up_lock_class': |kernel/locking/

Re: [PATCH] mtd: spi-nor: hisi: do not ignore clk_prepare_enable() failure

2017-03-07 Thread Cyrille Pitchen
Le 18/02/2017 à 16:23, Marek Vasut a écrit : > On 02/17/2017 11:08 PM, Alexey Khoroshilov wrote: >> hisi_spi_nor_probe() ignores clk_prepare_enable() error code. >> The patch fixes that. >> >> Found by Linux Driver Verification project (linuxtesting.org). >> >> Signed-off-by: Alexey Khoroshilov >

Re: [PATCH net] rxrpc: Call state should be read with READ_ONCE() under some circumstances

2017-03-07 Thread David Miller
From: David Howells Date: Sat, 04 Mar 2017 00:01:41 + > The call state may be changed at any time by the data-ready routine in > response to received packets, so if the call state is to be read and acted > upon several times in a function, READ_ONCE() must be used unless the call > state lock

Re: [PATCH v2 1/1] mtk-vcodec: check the vp9 decoder buffer index from VPU.

2017-03-07 Thread Tiffany Lin
On Tue, 2017-03-07 at 22:42 +0800, Wu-Cheng Li wrote: > From: Wu-Cheng Li > > VPU firmware has a bug and may return invalid buffer index for > some vp9 videos. Check the buffer indexes before accessing the > buffer. > > Signed-off-by: Wu-Cheng Li > --- > drivers/media/platform/mtk-vcodec/mtk_v

linux-next: build warnings after merge of the overlayfs tree

2017-03-07 Thread Stephen Rothwell
Hi Miklos, After merging the overlayfs tree, today's linux-next build (powerpc ppc64_defconfig) produced these warnings: fs/overlayfs/inode.c:322:30: warning: 'ovl_i_mutex_key' defined but not used [-Wunused-variable] static struct lock_class_key ovl_i_mutex_key[FILESYSTEM_MAX_STACK_DEPTH];

Re: rcu: WARNING in rcu_seq_end

2017-03-07 Thread Paul E. McKenney
On Wed, Mar 08, 2017 at 07:05:13AM +0800, Boqun Feng wrote: > On Tue, Mar 07, 2017 at 07:27:15AM -0800, Paul E. McKenney wrote: > > On Tue, Mar 07, 2017 at 03:43:42PM +0100, Dmitry Vyukov wrote: > > > On Tue, Mar 7, 2017 at 3:27 PM, Boqun Feng wrote: > > > > On Tue, Mar 07, 2017 at 08:05:19AM +010

linux-next: Tree for Mar 8

2017-03-07 Thread Stephen Rothwell
Hi all, Changes since 20170307: The sunxi tree lost its build failure. The rcu tree gained conflicts against Linus', the powerpc-fixes and drm-intel trees. The staging tree lost its build failures. Non-merge commits (relative to Linus' tree): 1850 2729 files changed, 270120

Re: rcu: WARNING in rcu_seq_end

2017-03-07 Thread Paul E. McKenney
On Wed, Mar 08, 2017 at 10:44:17AM +0800, Boqun Feng wrote: > On Tue, Mar 07, 2017 at 06:26:03PM -0800, Paul E. McKenney wrote: > > On Wed, Mar 08, 2017 at 09:39:13AM +0800, Boqun Feng wrote: > > > On Tue, Mar 07, 2017 at 03:31:54PM -0800, Paul E. McKenney wrote: > > > > On Wed, Mar 08, 2017 at 07:

  1   2   3   4   5   6   7   8   9   10   >