[PATCH 4/4] x86/init: fix a couple typos in arch/x86/include/asm/x86_init.h

2016-12-09 Thread Dmitry Torokhov
Signed-off-by: Dmitry Torokhov --- arch/x86/include/asm/x86_init.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/x86/include/asm/x86_init.h b/arch/x86/include/asm/x86_init.h index 85b2ae5..7ba7e90 100644 --- a/arch/x86/include/asm/x86_init.h +++ b/arch/x86/include

[PATCH 2/4] Input: i8042 - trust firmware a bit more when probing on X86

2016-12-09 Thread Dmitry Torokhov
The error message "Can't read CTR while initializing i8042" appears on Cherry Trail-based devices at each boot time: i8042: PNP: No PS/2 controller found. Probing ports directly. i8042: Can't read CTR while initializing i8042 i8042: probe of i8042 failed with error -5 This happens because w

[PATCH 1/4] x86/init: add i8042 state to the platform data

2016-12-09 Thread Dmitry Torokhov
Add i8042 state to the platform data to help i8042 driver make decision whether to probe for i8042 or not. We recognize 3 states: platform/subarch ca not possible have i8042 (as is the case with Inrel MID platform), firmware (such as ACPI) reports that i8042 is absent from the device, or i8042 may

Re: [PATCH] devicetree: add vendor prefix for National Instruments

2016-12-09 Thread Rob Herring
On Fri, Dec 02, 2016 at 09:31:48AM -0600, Nathan Sullivan wrote: > Signed-off-by: Nathan Sullivan > --- > This is required by "gpio: mmio: add support for NI 169445 NAND GPIO" > > Documentation/devicetree/bindings/vendor-prefixes.txt | 1 + > 1 file changed, 1 insertion(+) Applied, thanks. Rob

[PATCH] pciehp: Fix race condition handling surprise link-down

2016-12-09 Thread Ashok Raj
Changes from v1: Address comments from Bjorn: Added p_slot->lock mutex around changes to p_slot->state Updated commit message to call out mutex names A surprise link down may retrain very quickly, causing the same slot to generate a link up event before hand

Re: [PATCH] gpio: mmio: add support for NI 169445 NAND GPIO

2016-12-09 Thread Rob Herring
On Fri, Dec 02, 2016 at 09:37:02AM -0600, Nathan Sullivan wrote: > The GPIO-based NAND controller on National Instruments 169445 hardware > exposes a set of simple lines for the control signals. > > Signed-off-by: Nathan Sullivan > --- > "devicetree: add vendor prefix for National Instruments" ad

[PATCH v4 6/9] mm/swap: Free swap slots in batch

2016-12-09 Thread Tim Chen
Add new functions that free unused swap slots in batches without the need to reacquire swap info lock. This improves scalability and reduce lock contention. Signed-off-by: Tim Chen Co-developed-by: "Huang, Ying" --- include/linux/swap.h | 1 + mm/swapfile.c| 155 +

[PATCH v4 9/9] mm/swap: Skip readahead only when swap slot cache is enabled

2016-12-09 Thread Tim Chen
From: Huang Ying Because during swap off, a swap entry may have swap_map[] == SWAP_HAS_CACHE (for example, just allocated). If we return NULL in __read_swap_cache_async(), the swap off will abort. So when swap slot cache is disabled, (for swap off), we will wait for page to be put into swap cac

[PATCH v12 4/5] iio: adc: mxs-lradc: Remove driver

2016-12-09 Thread Ksenija Stanojevic
Since the driver has been split into mfd there is no reason for it to stay, so remove it. Signed-off-by: Ksenija Stanojevic Acked-by: Jonathan Cameron Reviewed-by: Marek Vasut --- Changes in v12: - none Changes in v11: - none Changes in v10: - none Changes in v9: - none Changes in v8:

[PATCH v12 3/5] input: touchscreen: mxs-lradc: Add support for touchscreen

2016-12-09 Thread Ksenija Stanojevic
Add 4-wire/5-wire touchscreen controller. Signed-off-by: Ksenija Stanojevic Reviewed-by: Marek Vasut --- Changes in v12: - none Changes in v11: - use dev_get_drvdata instead dev_get_platdata - use writel instead mxs_lradc_reg_* functions Changes in v10: - none Changes in v9: - none Chan

[PATCH v12 5/5] mfd: Move binding document

2016-12-09 Thread Ksenija Stanojevic
The bindings, which are now used in MFD, need also to be documented in the MFD binding document. Signed-off-by: Ksenija Stanojevic Reviewed-by: Marek Vasut --- Changes in v12: - none Changes in v11: - none Changes in v10: - none Changes in v9: - format patch using -M option Changes in v8

[PATCH v12 2/5] iio: adc: mxs-lradc: Add support for adc driver

2016-12-09 Thread Ksenija Stanojevic
Add support for sixteen-channel 12-bit resolution ADC and its functions, which include general-purpose ADC readings, battery voltage measurement, and die temperature measurement. Signed-off-by: Ksenija Stanojevic Reviewed-by: Jonathan Cameron Reviewed-by: Marek Vasut --- Changes in v12: - none

Re: enabling COMPILE_TEST support for GCC plugins in v4.11

2016-12-09 Thread kugan
On 10/12/16 07:35, Arnd Bergmann wrote: On Friday, December 9, 2016 11:13:20 AM CET Kees Cook wrote: On Fri, Dec 9, 2016 at 3:33 AM, Arnd Bergmann wrote: On Thursday, December 8, 2016 11:00:42 AM CET Kees Cook wrote: If you have a moment, applying 215e2aa6c024[1] and reverting a519167e753e

[PATCH v4 5/9] mm/swap: Allocate swap slots in batches

2016-12-09 Thread Tim Chen
Currently, the swap slots are allocated one page at a time, causing contention to the swap_info lock protecting the swap partition on every page being swapped. This patch adds new functions get_swap_pages and scan_swap_map_slots to request multiple swap slots at once. This will reduces the lock co

[PATCH v4 2/9] mm/swap: Add cluster lock

2016-12-09 Thread Tim Chen
From: "Huang, Ying" This patch is to reduce the lock contention of swap_info_struct->lock via using a more fine grained lock in swap_cluster_info for some swap operations. swap_info_struct->lock is heavily contended if multiple processes reclaim pages simultaneously. Because there is only one l

Re: [RFC PATCH 0/3] staging: remove fbdev drivers

2016-12-09 Thread Benjamin Herrenschmidt
On Fri, 2016-12-09 at 14:35 +0100, Daniel Vetter wrote: > > As for multi userspace client, well, swapping an mmap between HW and > > memory backing store is a somewhat solved problem already. > > Hm, I didn't know that, but then all existing drm drivers have fairly > simplistic fbdev mmap implemen

[PATCH v4 8/9] mm/swap: Enable swap slots cache usage

2016-12-09 Thread Tim Chen
Initialize swap slots cache and enable it on swap on. Drain all swap slots on swap off. Signed-off-by: Tim Chen --- mm/swapfile.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/mm/swapfile.c b/mm/swapfile.c index 3a6cad1..2440cec 100644 --- a/mm/swapfile.c +++ b/mm/swapfile.c @@ -218

Re: [PATCH 3/3] pciehp: Fix race condition handling surprise link-down

2016-12-09 Thread Raj, Ashok
Hi Bjorn Thanks. I have resent the last patch again with consistent lock usage as you had requested. I did attempt to make things a bit more easier to understand in one my earlier experiments, but that resulted in very substantial changes. Certainly something we should look in future to make the

[PATCH v4 1/9] mm/swap: Fix kernel message in swap_info_get()

2016-12-09 Thread Tim Chen
From: "Huang, Ying" swap_info_get() is used not only in swap free code path but also in page_swapcount(), etc. So the original kernel message in swap_info_get() is not correct now. Fix it via replacing "swap_free" to "swap_info_get" in the message. Signed-off-by: "Huang, Ying" Signed-off-by:

[PATCH v4 0/9] mm/swap: Regular page swap optimizations

2016-12-09 Thread Tim Chen
Change Log: v4: 1. Fix a bug in unlock cluster in add_swap_count_continuation(). We should use unlock_cluster() instead of unlock_cluser_or_swap_info(). 2. During swap off, handle race when swap slot is marked unused but allocated, and not yet placed in swap cache. Wait for swap slot to be placed

[PATCH v12 0/5] mxs-lradc: Split driver into MFD

2016-12-09 Thread Ksenija Stanojevic
Split existing driver mxs-lradc into MFD with touchscreen and IIO part. Tested on I.MX28 Ksenija Stanojevic (5): mfd: mxs-lradc: Add support for mxs-lradc MFD iio: adc: mxs-lradc: Add support for adc driver input: touchscreen: mxs-lradc: Add support for touchscreen iio: adc: mxs-lradc: Re

[PATCH v4 3/9] mm/swap: Split swap cache into 64MB trunks

2016-12-09 Thread Tim Chen
From: "Huang, Ying" The patch is to improve the scalability of the swap out/in via using fine grained locks for the swap cache. In current kernel, one address space will be used for each swap device. And in the common configuration, the number of the swap device is very small (one is typical).

[PATCH v4 4/9] mm/swap: skip read ahead for unreferenced swap slots

2016-12-09 Thread Tim Chen
We can avoid needlessly allocating page for swap slots that are not used by anyone. No pages have to be read in for these slots. Signed-off-by: Tim Chen Co-developed-by: "Huang, Ying" --- include/linux/swap.h | 6 ++ mm/swap_state.c | 4 mm/swapfile.c| 47 +++

[PATCH v4 7/9] mm/swap: Add cache for swap slots allocation

2016-12-09 Thread Tim Chen
We add per cpu caches for swap slots that can be allocated and freed quickly without the need to touch the swap info lock. Two separate caches are maintained for swap slots allocated and swap slots returned. This is to allow the swap slots to be returned to the global pool in a batch so they will

[PATCH v12 1/5] mfd: mxs-lradc: Add support for mxs-lradc MFD

2016-12-09 Thread Ksenija Stanojevic
Add core files for low resolution analog-to-digital converter (mxs-lradc) MFD driver. Signed-off-by: Ksenija Stanojevic Reviewed-by: Marek Vasut --- Changes in v12: - use BIT macro Changes in v11: - create static struct mfd_cells - don't set platform data in mfd cells, set driver data instea

Re: [PATCH] MIPS: NI 169445 board support

2016-12-09 Thread Rob Herring
On Fri, Dec 02, 2016 at 09:42:09AM -0600, Nathan Sullivan wrote: > Support the National Instruments 169445 board. > > Signed-off-by: Nathan Sullivan > --- > "gpio: mmio: add support for NI 169445 NAND GPIO" and > "devicetree: add vendor prefix for National Instruments" are required for the > NAN

Re: md: Combine two kmalloc() calls into one in sb_equal()

2016-12-09 Thread Bernd Schubert
On 09.12.2016 20:54, SF Markus Elfring wrote: So where did you get the idea from that it is not checked immediately? Is another variable assignment performed so far before the return value is checked from a previous function call? Irrelevant, the variable is not used before checking it.

Re: btrfs_destroy_inode warn (outstanding extents)

2016-12-09 Thread Steven Rostedt
On Thu, Dec 01, 2016 at 10:32:09AM -0500, Dave Jones wrote: > > (function-graph screws up the RIP for some reason, 'return_to_handler' > should actually be btrfs_destroy_inode) That's because function_graph hijacks the return address and replaces it with return_to_handler. The back trace has cod

Re: [PATCH net-next 1/3] net/mlx5e: use %pad format string for dma_addr_t

2016-12-09 Thread Saeed Mahameed
On 12/08/2016 11:57 PM, Arnd Bergmann wrote: > On 32-bit ARM with 64-bit dma_addr_t I get this warning about an > incorrect format string: > > In file included from > /git/arm-soc/drivers/net/ethernet/mellanox/mlx5/core/alloc.c:42:0: > drivers/net/ethernet/mellanox/mlx5/core/alloc.c: In functio

Re: [PATCH v2 1/3] crypto: brcm: DT documentation for Broadcom SPU driver

2016-12-09 Thread Rob Herring
On Fri, Dec 02, 2016 at 04:34:57PM -0500, Rob Rice wrote: > Device tree documentation for Broadcom Secure Processing Unit > (SPU) crypto driver. > > Signed-off-by: Steve Lin > Signed-off-by: Rob Rice > --- > .../devicetree/bindings/crypto/brcm,spu-crypto.txt | 25 > ++ > 1

Re: [PATCH] md: Combine two kmalloc() calls into one in sb_equal()

2016-12-09 Thread Al Viro
On Fri, Dec 09, 2016 at 11:05:14AM -0800, Joe Perches wrote: > On Fri, 2016-12-09 at 19:30 +0100, SF Markus Elfring wrote: > > From: Markus Elfring > > Date: Fri, 9 Dec 2016 19:09:13 +0100 > > > > The function "kmalloc" was called in one case by the function "sb_equal" > > without checking immedi

Re: [PATCH] drivers: Update drv260x driver

2016-12-09 Thread Jingkui Wang
Make sense. Will do. Jingkui Wang On Thu, Dec 8, 2016 at 12:21 PM, Dan Murphy wrote: > On 12/08/2016 02:17 PM, Jingkui Wang wrote: >> Update driver drv260x to use generic device properties >> Remove platform data >> >> Signed-off-by: Jingkui Wang >> --- >> drivers/input/misc/drv260x.c | 43 >>

Re: usb:xhci: support disable usb2 LPM Remote Wakeup

2016-12-09 Thread Rob Herring
On Sun, Dec 04, 2016 at 07:42:01PM +0700, Thang Q. Nguyen wrote: > From: Thang Nguyen > > As per USB 2.0 link power management addendum ECN, table 1-2, page 4, > device or host initiated via resume signaling; device-initiated resumes > can be optionally enabled/disabled by software. This patch ad

Re: [PATCH v2] tools: usb: usbip: Add simple script to show how to setup vUDC

2016-12-09 Thread Shuah Khan
Hi Krzysztof, Thanks for getting to this so quickly. Couple of comments below: On 12/09/2016 10:15 AM, Krzysztof Opasiak wrote: > Add some simple script which creates a USB gadget using ConfigFS > and then exports it using vUDC. > > This may be useful for people who just started playing with > U

Re: Still OOM problems with 4.9er kernels

2016-12-09 Thread Vlastimil Babka
On 12/09/2016 07:01 PM, Gerhard Wiesinger wrote: > On 09.12.2016 18:30, Michal Hocko wrote: >> On Fri 09-12-16 17:58:14, Gerhard Wiesinger wrote: >>> On 09.12.2016 17:09, Michal Hocko wrote: >> [...] > [97883.882611] Mem-Info: > [97883.883747] active_anon:2915 inactive_anon:3376 isolated_an

Re: [PATCH RFC] user-namespaced file capabilities - now with even more magic

2016-12-09 Thread Eric W. Biederman
"Serge E. Hallyn" writes: > Quoting Eric W. Biederman (ebied...@xmission.com): >> "Serge E. Hallyn" writes: >> >> > On Thu, Dec 08, 2016 at 05:43:09PM +1300, Eric W. Biederman wrote: >> >> "Serge E. Hallyn" writes: >> >> >> Any chance of a singed-off-by? >> > >> > Yes, sorry, Stéphane had poi

Re: [RESEND x3][PATCH 1/2 v4] drm/bridge: adv7511: Add Audio support.

2016-12-09 Thread David Long
On 11/28/2016 08:22 PM, John Stultz wrote: This patch adds support to Audio for both adv7511 and adv7533 bridge chips. This patch was originally from [1] by Lars-Peter Clausen and was adapted by Archit Taneja and Srinivas Kandagatla . Then I heavily reworked it to use the hdmi-codec driver. A

[PATCH V3 linux-next] fs: add i_blocksize()

2016-12-09 Thread Fabian Frederick
replace all 1 << inode->i_blkbits and (1 << inode->i_blkbits) in fs branch This patch also fixes multiple checkpatch warnings: WARNING: Prefer 'unsigned int' to bare use of 'unsigned' Thanks to Andrew Morton for suggesting more appropriate function instead of macro. Signed-off-by: Fabian Frederi

Re: [PATCH 3/3] hv_netvsc: Implement VF matching based on serial numbers

2016-12-09 Thread Stephen Hemminger
On Fri, 9 Dec 2016 21:31:25 + Haiyang Zhang wrote: > > -Original Message- > > From: Stephen Hemminger [mailto:step...@networkplumber.org] > > Sent: Friday, December 9, 2016 3:30 PM > > To: Haiyang Zhang > > Cc: Greg KH ; KY Srinivasan > > ; o...@aepfle.de; linux-kernel@vger.kernel.or

Re: [RESEND x3][PATCH 2/2 v4] drm/bridge: adv7511: Enable the audio data and clock pads on adv7533

2016-12-09 Thread David Long
On 11/28/2016 08:22 PM, John Stultz wrote: From: Srinivas Kandagatla This patch enables the Audio Data and Clock pads to the adv7533 bridge. Without this patch audio can not be played. Cc: David Airlie Cc: Archit Taneja Cc: Laurent Pinchart Cc: Wolfram Sang Cc: Srinivas Kandagatla Cc: "Vi

RE: [PATCH 3/3] hv_netvsc: Implement VF matching based on serial numbers

2016-12-09 Thread Haiyang Zhang
> -Original Message- > From: Stephen Hemminger [mailto:step...@networkplumber.org] > Sent: Friday, December 9, 2016 3:30 PM > To: Haiyang Zhang > Cc: Greg KH ; KY Srinivasan > ; o...@aepfle.de; linux-kernel@vger.kernel.org; > bjorn.helg...@gmail.com; a...@canonical.com; de...@linuxdriver

[PATCH v2] drivers: Update drv260x driver

2016-12-09 Thread Jingkui Wang
Update driver drv260x to use generic device properties Remove platform data and corresponding header file Signed-off-by: Jingkui Wang --- Changes in v2: - Delete unused header file drivers/input/misc/drv260x.c| 43 ++--- include/linux/platform_data/drv260

[PATCH] net: mlx5: Fix Kconfig help text

2016-12-09 Thread Christopher Covington
Since the following commit, Infiniband and Ethernet have not been mutually exclusive. Fixes: 4aa17b28 mlx5: Enable mutual support for IB and Ethernet Signed-off-by: Christopher Covington --- drivers/net/ethernet/mellanox/mlx5/core/Kconfig | 2 -- 1 file changed, 2 deletions(-) diff --git a/dri

Re: [PATCH v2 2/2] staging: iio: ad7606: move out of staging

2016-12-09 Thread kbuild test robot
Hi Eva, [auto build test WARNING on iio/togreg] [also build test WARNING on next-20161209] [cannot apply to v4.9-rc8] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Eva-Rachel-Retuya/staging

Re: [PATCH] md: Combine two kmalloc() calls into one in sb_equal()

2016-12-09 Thread Joe Perches
On Fri, 2016-12-09 at 21:30 +, Al Viro wrote: > On Fri, Dec 09, 2016 at 11:05:14AM -0800, Joe Perches wrote: > > On Fri, 2016-12-09 at 19:30 +0100, SF Markus Elfring wrote: > > > From: Markus Elfring > > > Date: Fri, 9 Dec 2016 19:09:13 +0100 > > > > > > The function "kmalloc" was called in o

Re: md: Combine two kmalloc() calls into one in sb_equal()

2016-12-09 Thread SF Markus Elfring
> Irrelevant, the variable is not used before checking it. * Will it be more appropriate to attempt another memory allocation only if the previous one succeeded already? * Can it be a bit more efficient to duplicate only the required data in a single function call before? Regards, Markus

Re: [PATCH v6 1/2] sparc: fix a building error reported by kbuild

2016-12-09 Thread Sam Ravnborg
Hi Gonglei. On Thu, Dec 08, 2016 at 12:37:08PM +0800, Gonglei wrote: > >> arch/sparc/include/asm/topology_64.h:44:44: > error: implicit declaration of function 'cpu_data' > [-Werror=implicit-function-declaration] > > #define topology_physical_package_id(cpu) (cpu_data(cpu).proc_id) >

Re: [RFC 00/10] implement alternative and much simpler id allocator

2016-12-09 Thread Andrew Morton
On Thu, 8 Dec 2016 02:22:55 +0100 Rasmus Villemoes wrote: > TL;DR: these patches save 250 KB of memory, with more low-hanging > fruit ready to pick. > > While browsing through the lib/idr.c code, I noticed that the code at > the end of ida_get_new_above() probably doesn't work as intended: Mos

Re: md: Combine two kmalloc() calls into one in sb_equal()

2016-12-09 Thread Bernd Schubert
On 09.12.2016 22:58, SF Markus Elfring wrote: Irrelevant, the variable is not used before checking it. * Will it be more appropriate to attempt another memory allocation only if the previous one succeeded already? * Can it be a bit more efficient to duplicate only the required data in a

Re: [PATCH 3/3] hv_netvsc: Implement VF matching based on serial numbers

2016-12-09 Thread Stephen Hemminger
On Fri, 9 Dec 2016 21:53:49 + Haiyang Zhang wrote: > > -Original Message- > > From: Stephen Hemminger [mailto:step...@networkplumber.org] > > Sent: Friday, December 9, 2016 4:45 PM > > To: Haiyang Zhang > > Cc: Greg KH ; KY Srinivasan > > ; o...@aepfle.de; linux-kernel@vger.kernel.or

RE: [PATCH 3/3] hv_netvsc: Implement VF matching based on serial numbers

2016-12-09 Thread Haiyang Zhang
> -Original Message- > From: Stephen Hemminger [mailto:step...@networkplumber.org] > Sent: Friday, December 9, 2016 4:45 PM > To: Haiyang Zhang > Cc: Greg KH ; KY Srinivasan > ; o...@aepfle.de; linux-kernel@vger.kernel.org; > bjorn.helg...@gmail.com; a...@canonical.com; de...@linuxdriver

Re: [PATCH] x86/smpboot: Make logical package management more robust

2016-12-09 Thread Thomas Gleixner
On Thu, 8 Dec 2016, Thomas Gleixner wrote: Boris, can you please verify if that makes the topology_update_package_map() call which you placed into the Xen cpu starting code obsolete ? Thanks, tglx

Re: [V9fs-developer] [PATCH 4/5] 9p: introduce async read requests

2016-12-09 Thread Stefano Stabellini
On Fri, 9 Dec 2016, Dominique Martinet wrote: > Stefano Stabellini wrote on Thu, Dec 08, 2016: > > If the read is an async operation, send a 9p request and return > > EIOCBQUEUED. Do not wait for completion. > > > > Complete the read operation from a callback instead. > > > > Signed-off-by: Stefa

[GIT PULL] VFIO updates for v4.10-rc1

2016-12-09 Thread Alex Williamson
/vfio-mdev/mtty.c --- Merge note: Stephen Rothwell has identified an API change conflict in linux-next for get_user_pages_remote(). Depending on the ordering of merges versus akpm's branches, a fixup may be necessary as Stephen has provided in linux-next 20161

Re: [PATCH] sched/pid fix use-after free in task_tgid_vnr

2016-12-09 Thread Eric W. Biederman
Oleg Nesterov writes: > On 12/09, EunTaik Lee wrote: >> >> There is a use-after-free case with below call stack. >> >> pid_nr_ns+0x10/0x38 >> cgroup_pidlist_start+0x144/0x400 >> cgroup_seqfile_start+0x1c/0x24 >> kernfs_seq_start+0x54/0x90 >> seq_read+0x15c/0x3a8 >> kernfs_fop_read+0x38/0x160 >> _

[PATCH] tty: serial: fsl_lpuart: potential NULL dereference

2016-12-09 Thread Alexey Khoroshilov
tty_port_tty_get() might return a tty which is NULL if the port is not associated with a tty (e.g. due to close or hangup). But lpuart_start_rx_dma() dereferences tty without any check. Found by Linux Driver Verification project (linuxtesting.org). Signed-off-by: Alexey Khoroshilov --- drivers/

Re: [PATCH v2 1/4] net: hix5hd2_gmac: add generic compatible string

2016-12-09 Thread Rob Herring
On Mon, Dec 05, 2016 at 09:27:58PM +0800, Dongpo Li wrote: > The "hix5hd2" is SoC name, add the generic ethernet driver name. > The "hisi-gemac-v1" is the basic version and "hisi-gemac-v2" adds > the SG/TXCSUM/TSO/UFO features. > > Signed-off-by: Dongpo Li > --- > .../devicetree/bindings/net/his

Re: [PATCH 4.4 00/28] 4.4.38-stable review

2016-12-09 Thread Guenter Roeck
On Fri, Dec 09, 2016 at 05:17:42PM +0100, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 4.4.38 release. > There are 28 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me know.

Re: [PATCH 4.8 00/45] 4.8.14-stable review

2016-12-09 Thread Guenter Roeck
On Fri, Dec 09, 2016 at 05:20:29PM +0100, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 4.8.14 release. > There are 45 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me know.

Re: [PATCH v3 1/6] mfd: dt: Fix "indicates" typo in mfd bindings document

2016-12-09 Thread Rob Herring
On Tue, Dec 06, 2016 at 01:53:16PM +1100, Andrew Jeffery wrote: > Signed-off-by: Andrew Jeffery > --- > Documentation/devicetree/bindings/mfd/mfd.txt | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Acked-by: Rob Herring

RE: [PATCH 3/3] hv_netvsc: Implement VF matching based on serial numbers

2016-12-09 Thread Haiyang Zhang
> -Original Message- > From: Stephen Hemminger [mailto:step...@networkplumber.org] > Sent: Friday, December 9, 2016 1:21 PM > To: Greg KH > Cc: KY Srinivasan ; o...@aepfle.de; Haiyang Zhang > ; linux-kernel@vger.kernel.org; > bjorn.helg...@gmail.com; a...@canonical.com; de...@linuxdriver

[PATCH] PCI: pciehp: Optimize PCIe root resume time

2016-12-09 Thread Vaibhav Shankar
On Apollolake platforms, PCIe rootport takes a long time to resume from S3. With 100ms delay before read pci conf, rootport takes ~200ms during resume. commit 2f5d8e4ff947 ("PCI: pciehp: replace unconditional sleep with config space access check") is the one that added the 100ms delay before readi

Re: [PATCH v3 2/6] mfd: dt: ranges, #address-cells and #size-cells as optional properties

2016-12-09 Thread Rob Herring
On Tue, Dec 06, 2016 at 01:53:17PM +1100, Andrew Jeffery wrote: > Whilst describing a device and not a bus, simple-mfd is modelled on > simple-bus where child nodes are iterated and registered as platform > devices. Some complex devices, e.g. the Aspeed LPC controller, can > benefit from address sp

Re: [PATCH 18/22] m68k/mm: kmap - Modernize printing of kernel messages

2016-12-09 Thread Finn Thain
On Thu, 8 Dec 2016, I wrote: > > On Wed, 7 Dec 2016, Geert Uytterhoeven wrote: > > > - Convert from printk() to pr_*(), > > - Add missing continuations, > > - Remove #undef DEBUG. > > > > Note that "#ifdef DEBUG" is sometimes retained because pr_cont() is > > not optimized away when deb

RE: [PATCH 3/3] hv_netvsc: Implement VF matching based on serial numbers

2016-12-09 Thread Haiyang Zhang
> -Original Message- > From: Stephen Hemminger [mailto:step...@networkplumber.org] > Sent: Friday, December 9, 2016 5:05 PM > To: Haiyang Zhang > Cc: Greg KH ; KY Srinivasan > ; o...@aepfle.de; linux-kernel@vger.kernel.org; > bjorn.helg...@gmail.com; a...@canonical.com; de...@linuxdriver

Re: [PATCH v3 2/6] mfd: dt: ranges, #address-cells and #size-cells as optional properties

2016-12-09 Thread Andrew Jeffery
On Fri, 2016-12-09 at 16:49 -0600, Rob Herring wrote: > On Tue, Dec 06, 2016 at 01:53:17PM +1100, Andrew Jeffery wrote: > > Whilst describing a device and not a bus, simple-mfd is modelled on > > simple-bus where child nodes are iterated and registered as platform > > devices. Some complex devices,

Re: [PATCH] x86/kbuild: enable modversions for symbols exported from asm

2016-12-09 Thread Dodji Seketeli
Hello, Nicholas Piggin a écrit: [...] > That said, a dwarf based checker tool should be able to do as good a job > (maybe a bit better because report is very informative and it may pick up > compiler alignments or padding options). So, Nicholas was kind enough to send me the two Linux Kernel b

Re: [PATCH] x86/tsc: RFC: re-synchronize TSCs to boot cpu TSC

2016-12-09 Thread Thomas Gleixner
On Fri, 9 Dec 2016, Roland Scheidegger wrote: Cc'ed someone from Dell. > Am 09.12.2016 um 18:33 schrieb Thomas Gleixner: > > Can you add the patch below to gather more information? There is a hunk in > > there with an '#if 0' which sets the TSC ADJUST to 0 on boot, which you can > > turn on as s

Re: [PATCH] x86/smpboot: Make logical package management more robust

2016-12-09 Thread Boris Ostrovsky
On 12/09/2016 05:06 PM, Thomas Gleixner wrote: > On Thu, 8 Dec 2016, Thomas Gleixner wrote: > > Boris, can you please verify if that makes the > topology_update_package_map() call which you placed into the Xen cpu > starting code obsolete ? Will do. I did test your patch but without removing topol

Re: [PATCH] x86/smpboot: Make logical package management more robust

2016-12-09 Thread Thomas Gleixner
On Fri, 9 Dec 2016, Boris Ostrovsky wrote: > On 12/09/2016 05:06 PM, Thomas Gleixner wrote: > > On Thu, 8 Dec 2016, Thomas Gleixner wrote: > > > > Boris, can you please verify if that makes the > > topology_update_package_map() call which you placed into the Xen cpu > > starting code obsolete ? >

Remaining crypto API regressions with CONFIG_VMAP_STACK

2016-12-09 Thread Eric Biggers
In the 4.9 kernel, virtually-mapped stacks will be supported and enabled by default on x86_64. This has been exposing a number of problems in which on-stack buffers are being passed into the crypto API, which to support crypto accelerators operates on 'struct page' rather than on virtual memory.

Re: [PATCH] proc: mm: export PTE sizes directly in smaps (v3)

2016-12-09 Thread Dave Hansen
On 12/01/2016 06:50 AM, Andy Shevchenko wrote: >> > +static int size_shift(unsigned long long nr) >> > +{ >> > + if (nr < (1ULL<<10)) >> > + return 0; >> > + if (nr < (1ULL<<20)) >> > + return 10; >> > + if (nr < (1ULL<<30)) >> > + return

Re: [PATCH 1/1] dri: vc4: set error code on failure

2016-12-09 Thread Eric Anholt
Pan Bian writes: > Function vc4_cl_lookup_bos() does not set the error code when > drm_malloc_ab() returns a NULL pointer, and will return 0 (indicates > success). This patch fixes the bug, assigning "-ENOMEM" to the return > variable ret on the path that memory allocation fails. > > Bugzilla: ht

Re: [V9fs-developer] [PATCH 2/5] 9p: store req details and callback in struct p9_req_t

2016-12-09 Thread Stefano Stabellini
On Fri, 9 Dec 2016, Dominique Martinet wrote: > Nice. I like the idea of async I/Os :) > > Stefano Stabellini wrote on Thu, Dec 08, 2016: > > Add a few fields to struct p9_req_t. Callback is the function which will > > be called upon requestion completion. offset, rsize, pagevec and kiocb > > stor

Re: [PATCH 2/6] net: ethernet: ti: cpts: add support for ext rftclk selection

2016-12-09 Thread Grygorii Strashko
On 12/08/2016 06:47 PM, Stephen Boyd wrote: > On 12/06, Grygorii Strashko wrote: >> Subject: [PATCH] cpts refclk sel >> >> Signed-off-by: Grygorii Strashko >> --- >> arch/arm/boot/dts/keystone-k2e-netcp.dtsi | 10 +- >> drivers/net/ethernet/ti/cpts.c| 52 >>

Re: [PATCH RFC] user-namespaced file capabilities - now with even more magic

2016-12-09 Thread Eric W. Biederman
ebied...@xmission.com (Eric W. Biederman) writes: > "Serge E. Hallyn" writes: > >> Quoting Eric W. Biederman (ebied...@xmission.com): >>> "Serge E. Hallyn" writes: >>> >>> > On Thu, Dec 08, 2016 at 05:43:09PM +1300, Eric W. Biederman wrote: >>> >> "Serge E. Hallyn" writes: >>> >>> >> Any chan

[PATCH v3 1/4] mtd: lart: Rename partition defines to be prefixed with PART_

2016-12-09 Thread Florian Fainelli
In preparation for defining KERNEL_START on ARM, rename KERNEL_START to PART_KERNEL_START, and to be consistent, do this for all partition-related constants. Signed-off-by: Florian Fainelli --- drivers/mtd/devices/lart.c | 24 1 file changed, 12 insertions(+), 12 deletio

[PATCH v3 2/4] ARM: Define KERNEL_START and KERNEL_END

2016-12-09 Thread Florian Fainelli
In preparation for adding CONFIG_DEBUG_VIRTUAL support, define a set of common constants: KERNEL_START and KERNEL_END which abstract CONFIG_XIP_KERNEL vs. !CONFIG_XIP_KERNEL. Update the code where relevant. Signed-off-by: Florian Fainelli --- arch/arm/include/asm/memory.h | 7 +++ arch/arm/m

[PATCH v3 0/4] ARM: Add support for CONFIG_DEBUG_VIRTUAL

2016-12-09 Thread Florian Fainelli
This patch series builds on top of Laura's [PATCHv5 00/10] CONFIG_DEBUG_VIRTUAL for arm64 to add support for CONFIG_DEBUG_VIRTUAL for ARM. This was tested on a Brahma B15 platform (ARMv7 + HIGHMEM + LPAE). Note that the treewide changes would involve a huge CC list, which is why it has been purpo

[PATCH v3 4/4] ARM: treewide: Replace uses of virt_to_phys with __pa_symbol

2016-12-09 Thread Florian Fainelli
All low-level PM/SMP code using virt_to_phys() should actually use __pa_symbol() against kernel symbols. Update code where relevant to move away from virt_to_phys(). Signed-off-by: Florian Fainelli --- arch/arm/common/mcpm_entry.c | 12 ++-- arch/arm/mach-alpine/platsmp.c

[PATCH v3 3/4] ARM: Add support for CONFIG_DEBUG_VIRTUAL

2016-12-09 Thread Florian Fainelli
x86 has an option: CONFIG_DEBUG_VIRTUAL to do additional checks on virt_to_phys calls. The goal is to catch users who are calling virt_to_phys on non-linear addresses immediately. This includes caller using __virt_to_phys() on image addresses instead of __pa_symbol(). This is a generally useful deb

Re: [RFC 0/5] rcu: Introduce leaf_node_for_each_mask_possible_cpu() and its friend

2016-12-09 Thread Paul E. McKenney
On Fri, Dec 09, 2016 at 04:48:22PM +0800, Boqun Feng wrote: > Hi Paul, > > While reading the discussion at: > > https://marc.info/?l=linux-kernel&m=148044253400769 This discussion was for stalls specifically, rather than for routine scans of the bitmasks. But it does look to save some code, so

Re: [PATCH 0/4] x86: Trust firmware a bit more about presence of 8042

2016-12-09 Thread Marcos Paulo de Souza
Hi Dmitry, On Fri, Dec 09, 2016 at 12:57:37PM -0800, Dmitry Torokhov wrote: > Hi, > > Historically we did not trust PNP data regarding keyboard controllers on > X86, but more and more boards get upset with us if they try to tell us that > there is no keyboard controller and we still go and try to

Re: [PATCH 1/2] of: base: add support to get machine model name

2016-12-09 Thread Frank Rowand
On 12/09/16 08:03, Rob Herring wrote: > On Wed, Nov 23, 2016 at 4:25 AM, Sudeep Holla wrote: >> >> >> On 22/11/16 21:35, Rob Herring wrote: >>> >>> On Tue, Nov 22, 2016 at 12:44 PM, Frank Rowand >>> wrote: >> >> >> [...] >> This patch adds a function that leads to conflating the "model"

[PATCH] Input: i8042-x86ia64io.h - Comment else/endif of CONFIG_PNP

2016-12-09 Thread Marcos Paulo de Souza
As this define check if huge, this makes easier to read the code. Signed-off-by: Marcos Paulo de Souza --- While reviewing patches from Dmitry about presence of 8042, it makes it much easier to understand the ifdefs... drivers/input/serio/i8042-x86ia64io.h | 4 ++-- 1 file changed, 2 insertio

[PATCH] ACPI / CPPC: Fix per-CPU pointers management

2016-12-09 Thread Rafael J. Wysocki
From: Rafael J. Wysocki Enabling ACPI CPPC on x86 causes a NULL pointer dereference to occur (on boot on a "default" KVM setup) in acpi_cppc_processor_exit() due to a missing check against NULL in there: |BUG: unable to handle kernel NULL pointer dereference at (null) |IP: [] acpi_cppc

Re: [PATCH] perf annotate: check that objdump correctly works

2016-12-09 Thread Alexis Berlemont
Arnaldo Carvalho de Melo wrote: > Em Thu, Dec 01, 2016 at 01:04:36AM +0100, Alexis Berlemont escreveu: > > Before disassembling, the tool objdump is called just to be sure: > > * objdump is available in the path; > > * objdump is an executable binary; > > * objdump has no dependency issue or anythi

[GIT PULL] drm-vc4-next-2016-12-09

2016-12-09 Thread Eric Anholt
I just got the ack on the DT bindings for VEC, so I'd like to get it pulled if we can. If it's too late for 4.10, I'm fine waiting. Adding VEC support should have a low chance of regressions because it doesn't get a mode configured by default. This is due to it reporting unknown connector state

[PATCH] driver core: flush async calls before testing driver removal

2016-12-09 Thread Vladimir Zapolskiy
If CONFIG_DEBUG_TEST_DRIVER_REMOVE option is enabled a number of false positives are reported for ATA controller drivers, because ATA port probes are done asynchronously, and the same problem may also touch other asynchronously probed drivers. To reduce the rate of false reports on boot call async

Re: [PATCH 3/3] hv_netvsc: Implement VF matching based on serial numbers

2016-12-09 Thread Stephen Hemminger
On Fri, 9 Dec 2016 22:35:05 + Haiyang Zhang wrote: > > > > > > > > Emulated NIC is already excluded in start of netvc notifier handler. > > > > > > > > static int netvsc_netdev_event(struct notifier_block *this, > > > >unsigned long event, void *ptr) > > > > {

[PATCH] Add +~800M crashkernel explaination

2016-12-09 Thread Robert LeBlanc
When trying to configure crashkernel greater than about 800 MB, the kernel fails to allocate memory on x86 and x86_64. This is due to an undocumented limit that the crashkernel and other low memory items must be allocated below 896 MB unless the ",high" option is given. This updates the documentati

Should xhci_irq() call usb_hc_died()?

2016-12-09 Thread Bjorn Helgaas
Hi Mathias, ehci_irq(), ohci_irq(), fotg210_irq(), and oxu210_hcd_irq() contain code equivalent to this: status = ehci_readl(...); if (status == ~(u32) 0) { ... usb_hc_died(hcd); ... return IRQ_HANDLED; } xhci_irq() has a similar check, but does not call usb_hc_died(): s

Re: [PATCH] PCI: pciehp: Optimize PCIe root resume time

2016-12-09 Thread Bjorn Helgaas
[+cc Yinghai, author of 2f5d8e4ff947] On Fri, Dec 09, 2016 at 02:43:26PM -0800, Vaibhav Shankar wrote: > On Apollolake platforms, PCIe rootport takes a long time to resume > from S3. With 100ms delay before read pci conf, rootport takes > ~200ms during resume. > > commit 2f5d8e4ff947 ("PCI: pcieh

Re: [PATCH 01/22] m68k/atari: Modernize printing of kernel messages

2016-12-09 Thread Michael Schmitz
Hi Geert, Am 09.12.2016 um 01:22 schrieb Geert Uytterhoeven: > On Wed, Dec 7, 2016 at 11:36 PM, Finn Thain > wrote: >> On Wed, 7 Dec 2016, Geert Uytterhoeven wrote: >>> - Convert from printk() to pr_*(), >>> - Add missing continuations, to fix user-visible breakage, >>> - Drop useless WARN

Re: [RFC 0/5] rcu: Introduce leaf_node_for_each_mask_possible_cpu() and its friend

2016-12-09 Thread Boqun Feng
On Fri, Dec 09, 2016 at 03:49:45PM -0800, Paul E. McKenney wrote: > On Fri, Dec 09, 2016 at 04:48:22PM +0800, Boqun Feng wrote: > > Hi Paul, > > > > While reading the discussion at: > > > > https://marc.info/?l=linux-kernel&m=148044253400769 > > This discussion was for stalls specifically, rathe

[PATCH] jump label: pass kbuild_cflags when checking for asm goto support

2016-12-09 Thread David Lin
Some versions of ARM GCC compiler such as Android toolchain throws in a '-fpic' flag by default. This causes the gcc-goto check script to fail although some config would have '-fno-pic' flag in the KBUILD_CFLAGS. This patch passes the KBUILD_CFLAGS to the check script so that the script does not r

Re: [PATCH 7/7] hwrng: core: Remove two unused include

2016-12-09 Thread kbuild test robot
Hi Corentin, [auto build test ERROR on char-misc/char-misc-testing] [also build test ERROR on v4.9-rc8 next-20161209] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Corentin-Labbe/hwrng-core-do

Re: [PATCH 0/2] Determine kernel text mapping size at runtime for x86_64

2016-12-09 Thread Baoquan He
On 12/08/16 at 02:00pm, Dave Anderson wrote: > > > - Original Message - > > On Wed, Dec 7, 2016 at 11:56 PM, Baoquan He wrote: > > > Dave Anderson ever told in Crash utility he makes judgement whether it's > > > a kaslr kernel by size of KERNEL_IMAGE_SIZE. As long as it's 1G, it's > > >

Re: [PATCH 09/10] s390/cputime: delayed accounting of system time

2016-12-09 Thread Frederic Weisbecker
On Tue, Dec 06, 2016 at 03:32:22AM +0100, Frederic Weisbecker wrote: > From: Martin Schwidefsky > > The account_system_time() function is called with a cputime that > occurred while running in the kernel. The function detects which > context the CPU is currently running in and accounts the time t

Re: [PATCH 4/5] 9p: introduce async read requests

2016-12-09 Thread Al Viro
On Thu, Dec 08, 2016 at 12:59:05PM -0800, Stefano Stabellini wrote: > + } else { > + req = p9_client_get_req(clnt, P9_TREAD, "dqd", > fid->fid, offset, rsize); > + if (IS_ERR(req)) { > + *err = PTR_ERR(req); > +

<    1   2   3   4   5   6   7   >