Re: [PATCH v3 2/2] drivers: remove force dma flag from buses

2018-04-10 Thread Bjorn Helgaas
On Fri, Mar 30, 2018 at 01:24:45PM +0530, Nipun Gupta wrote: > With each bus implementing its own DMA configuration callback, > there is no need for bus to explicitly have force_dma in its > global structure. This patch modifies of_dma_configure API to > accept an input parameter which specifies if

Re: [GIT PULL] platform-drivers-x86 for 4.17-1

2018-04-10 Thread Linus Torvalds
On Tue, Apr 10, 2018 at 10:12 AM, Andy Shevchenko wrote: > > This is first batch of Platform Drivers x86 for v4.17 cycle. Due to few > duplication the merge will have conflicts which would be resolved by > using `git merge -X no-renames ...` followed by choose of our version of > two failed one-li

[PATCH v2] ipc/shm: fix use-after-free of shm file via remap_file_pages()

2018-04-10 Thread Eric Biggers
From: Eric Biggers syzbot reported a use-after-free of shm_file_data(file)->file->f_op in shm_get_unmapped_area(), called via sys_remap_file_pages(). Unfortunately it couldn't generate a reproducer, but I found a bug which I think caused it. When remap_file_pages() is passed a full System V shar

Re: [v3 PATCH] mm: introduce arg_lock to protect arg_start|end and env_start|end in mm_struct

2018-04-10 Thread Yang Shi
On 4/10/18 12:17 PM, Cyrill Gorcunov wrote: On Tue, Apr 10, 2018 at 11:28:13AM -0700, Yang Shi wrote: At the first glance, it looks feasible to me. Will look into deeper later. A further look told me this might be *not* feasible. It looks the new lock will not break check_data_rlimit since i

Re: [PATCH v5 02/10] dt-bindings: introduce RPMH RSC bindings for Qualcomm SoCs

2018-04-10 Thread Bjorn Andersson
On Mon 09 Apr 09:08 PDT 2018, Lina Iyer wrote: > On Fri, Apr 06 2018 at 19:14 -0600, Stephen Boyd wrote: > > Quoting Lina Iyer (2018-04-05 09:18:26) > > > diff --git a/Documentation/devicetree/bindings/soc/qcom/rpmh-rsc.txt > > > b/Documentation/devicetree/bindings/soc/qcom/rpmh-rsc.txt [..] > >

Re: [PATCH, RESEND, pci, v2] pci: Delete PCI disabling informational messages

2018-04-10 Thread Bjorn Helgaas
On Wed, Apr 04, 2018 at 12:10:35PM -0300, Desnes A. Nunes do Rosario wrote: > The disabling informational messages on the PCI subsystem should be deleted > since they do not represent any real value for the system logs. > > These messages are either not presented, or presented for all PCI devices

Re: [PATCH v2] cpufreq/schedutil: Cleanup, document and fix iowait boost

2018-04-10 Thread Peter Zijlstra
On Tue, Apr 10, 2018 at 04:59:31PM +0100, Patrick Bellasi wrote: > The iowait boosting code has been recently updated to add a progressive > boosting behavior which allows to be less aggressive in boosting tasks > doing only sporadic IO operations, thus being more energy efficient for > example on

Re: [PATCH 1/3] drm/vc4: Remove the need for the GPU-subsystem DT node.

2018-04-10 Thread Eric Anholt
Stefan Wahren writes: > Hi Eric, > >> Eric Anholt hat am 10. April 2018 um 01:00 geschrieben: >> >> >> The GPU subsystem node was a workaround to have a central device to >> bind V3D and display to. Following the lead of 246774d17fc0 >> ("drm/etnaviv: remove the need for a gpu-subsystem DT no

[PATCH v6 09/11] firmware: xilinx: Add debugfs for clock control APIs

2018-04-10 Thread Jolly Shah
From: Rajan Vaja Add debugfs file to control clocks using firmware APIs through debugfs interface. Signed-off-by: Rajan Vaja Signed-off-by: Jolly Shah --- drivers/firmware/xilinx/zynqmp-debug.c | 48 ++ 1 file changed, 48 insertions(+) diff --git a/drivers/fir

[PATCH v6 05/11] firmware: xilinx: Add clock APIs

2018-04-10 Thread Jolly Shah
From: Rajan Vaja Add clock APIs to control clocks through firmware interface. Signed-off-by: Rajan Vaja Signed-off-by: Jolly Shah --- drivers/firmware/xilinx/zynqmp.c | 186 ++- include/linux/firmware/xlnx-zynqmp.h | 30 ++ 2 files changed, 214 inserti

[PATCH v6 08/11] firmware: xilinx: Add debugfs for query data API

2018-04-10 Thread Jolly Shah
From: Rajan Vaja Add debugfs file to query platform specific data from firmware using debugfs interface. Signed-off-by: Rajan Vaja Signed-off-by: Jolly Shah --- drivers/firmware/xilinx/zynqmp-debug.c | 27 +++ 1 file changed, 27 insertions(+) diff --git a/drivers/firm

[PATCH v6 10/11] dt-bindings: clock: Add bindings for ZynqMP clock driver

2018-04-10 Thread Jolly Shah
From: Rajan Vaja Add documentation to describe Xilinx ZynqMP clock driver bindings. Signed-off-by: Rajan Vaja Signed-off-by: Jolly Shah --- .../firmware/xilinx/xlnx,zynqmp-firmware.txt | 53 ++ include/dt-bindings/clock/xlnx,zynqmp-clk.h| 116 + 2 fi

[PATCH v6 03/11] firmware: xilinx: Add zynqmp IOCTL API for device control

2018-04-10 Thread Jolly Shah
From: Rajan Vaja Add ZynqMP firmware IOCTL API to control and configure devices like PLLs, SD, Gem, etc. Signed-off-by: Rajan Vaja Signed-off-by: Jolly Shah --- drivers/firmware/xilinx/zynqmp.c | 20 include/linux/firmware/xlnx-zynqmp.h | 2 ++ 2 files changed, 22 in

[PATCH v6 02/11] firmware: xilinx: Add Zynqmp firmware driver

2018-04-10 Thread Jolly Shah
From: Rajan Vaja This patch is adding communication layer with firmware. Firmware driver provides an interface to firmware APIs. Interface APIs can be used by any driver to communicate to PMUFW(Platform Management Unit). All requests go through ATF. Signed-off-by: Rajan Vaja Signed-off-by: Joll

Re: [PATCH] PCI: quirk HT1100 & HT2000 and one HT2100 Root Ports for Extended Tags

2018-04-10 Thread Bjorn Helgaas
On Wed, Apr 04, 2018 at 06:50:09PM -0400, Sinan Kaya wrote: > Per PCIe r3.1, sec 2.2.6.2 and 7.8.4, a Requester may not use 8-bit Tags > unless its Extended Tag Field Enable is set, but all Receivers/Completers > must handle 8-bit Tags correctly regardless of their Extended Tag Field > Enable. > >

[PATCH v6 04/11] firmware: xilinx: Add query data API

2018-04-10 Thread Jolly Shah
From: Rajan Vaja Add ZynqMP firmware query data API to query platform specific information(clocks, pins) from firmware. Signed-off-by: Rajan Vaja Signed-off-by: Jolly Shah --- drivers/firmware/xilinx/zynqmp.c | 14 ++ include/linux/firmware/xlnx-zynqmp.h | 20 +

[PATCH v6 11/11] drivers: clk: Add ZynqMP clock driver

2018-04-10 Thread Jolly Shah
This patch adds CCF compliant clock driver for ZynqMP. Clock driver queries supported clock information from firmware and regiters pll and output clocks with CCF. Signed-off-by: Rajan Vaja Signed-off-by: Tejas Patel Signed-off-by: Shubhrajyoti Datta Signed-off-by: Jolly Shah --- drivers/clk/K

[PATCH v6 07/11] firmware: xilinx: Add debugfs for IOCTL API

2018-04-10 Thread Jolly Shah
From: Rajan Vaja Add debugfs file to set/get IOCTL using debugfs interface. Signed-off-by: Rajan Vaja Signed-off-by: Jolly Shah --- drivers/firmware/xilinx/zynqmp-debug.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/drivers/firmware/xilinx/zynqmp-debug.c b/drivers/firmware

[PATCH v6 00/11] drivers: Introduce firmware dnd clock river for ZynqMP core

2018-04-10 Thread Jolly Shah
This patchset is adding communication layer with firmware and clock driver who uses those APIs to communicate with PMU. Firmware driver provides an interface to firmware APIs.Interface APIs can be used by any driver to communicate to PMUFW(Platform Management Unit). All requests go through ATF.

Re: [PATCH v3] sparse: add -Wpointer-arith flag to toggle sizeof(void) warnings

2018-04-10 Thread Luc Van Oostenryck
On Mon, Apr 09, 2018 at 03:02:04PM -1000, Joey Pabalinas wrote: > Recent changes to the min()/max() macros in include/linux/kernel.h > have added a lot of noise when compiling the kernel with Sparse checking > enabled. This mostly is due to the *huge* increase in the number of > sizeof(void) warnin

Re: [RFC] mm, slab: reschedule cache_reap() on the same CPU

2018-04-10 Thread Vlastimil Babka
On 04/10/2018 04:12 PM, Christopher Lameter wrote: > On Tue, 10 Apr 2018, Vlastimil Babka wrote: > >> cache_reap() is initially scheduled in start_cpu_timer() via >> schedule_delayed_work_on(). But then the next iterations are scheduled via >> schedule_delayed_work(), thus using WORK_CPU_UNBOUND.

[PATCH v6 01/11] dt-bindings: firmware: Add bindings for ZynqMP firmware

2018-04-10 Thread Jolly Shah
From: Rajan Vaja Add documentation to describe Xilinx ZynqMP firmware driver bindings. Firmware driver provides an interface to firmware APIs. Interface APIs can be used by any driver to communicate to PMUFW (Platform Management Unit). Signed-off-by: Rajan Vaja Signed-off-by: Jolly Shah --- .

[PATCH v6 06/11] firmware: xilinx: Add debugfs interface

2018-04-10 Thread Jolly Shah
From: Rajan Vaja Firmware-debug provides debugfs interface to all APIs. Debugfs can be used to call firmware APIs with required parameters. Usage: * Calling firmware API through debugfs: # echo " .. " > /sys/.../zynqmp-firmware/pm * Read output of last called firmware API: # cat /sys/.../z

[PATCH v2 1/2] MAINTAINERS: remove me as maintainer for I2C host drivers

2018-04-10 Thread Wolfram Sang
The number of I2C host controller drivers keeps increasing, and although I had some success acquiring specific driver maintainers, my bandwidth is by far not enough to act as a fallback for the rest of the drivers. To reflect this status-quo in MAINTAINERS, add a seperate entry for I2C host drivers

[PATCH v2 2/2] MAINTAINERS: add maintainer for Renesas I2C related drivers

2018-04-10 Thread Wolfram Sang
From: Wolfram Sang Intentionally missing i2c-riic here, Chris Brandt will add himself for that one later. Signed-off-by: Wolfram Sang --- Changes since v1: * add EMEV2 and PINCTRL DEMUX drivers MAINTAINERS | 16 1 file changed, 16 insertions(+) diff --git a/MAINTAINERS b/MA

Re: [PATCH] PCI: quirk HT1100 & HT2000 and one HT2100 Root Ports for Extended Tags

2018-04-10 Thread Bjorn Helgaas
On Tue, Apr 10, 2018 at 02:41:44PM -0500, Bjorn Helgaas wrote: > On Wed, Apr 04, 2018 at 06:50:09PM -0400, Sinan Kaya wrote: > > Per PCIe r3.1, sec 2.2.6.2 and 7.8.4, a Requester may not use 8-bit Tags > > unless its Extended Tag Field Enable is set, but all Receivers/Completers > > must handle 8-b

Re: [RFC] mm, slab: reschedule cache_reap() on the same CPU

2018-04-10 Thread Tejun Heo
Hello, On Tue, Apr 10, 2018 at 09:40:19PM +0200, Vlastimil Babka wrote: > On 04/10/2018 04:12 PM, Christopher Lameter wrote: > > On Tue, 10 Apr 2018, Vlastimil Babka wrote: > > > >> cache_reap() is initially scheduled in start_cpu_timer() via > >> schedule_delayed_work_on(). But then the next ite

Re: [PATCH, RESEND, pci, v2] pci: Delete PCI disabling informational messages

2018-04-10 Thread Bjorn Helgaas
On Tue, Apr 10, 2018 at 02:36:31PM -0500, Bjorn Helgaas wrote: > On Wed, Apr 04, 2018 at 12:10:35PM -0300, Desnes A. Nunes do Rosario wrote: > > The disabling informational messages on the PCI subsystem should be deleted > > since they do not represent any real value for the system logs. > > > > T

Re: [PATCH 5/5] powerpc:dts:pm: add power management node

2018-04-10 Thread Li Yang
On Wed, Mar 28, 2018 at 8:31 PM, Ran Wang wrote: > Enable Power Management feature on device tree, including MPC8536, > MPC8544, MPC8548, MPC8572, P1010, P1020, P1021, P1022, P2020, P2041, > P3041, T104X, T1024. There are no device tree bindings documented for the properties and compatible string

Re: perf: fuzzer leads to trace_kprobe: Could not insert message flood

2018-04-10 Thread Song Liu
> On Apr 10, 2018, at 7:48 AM, Vince Weaver wrote: > > Author: Song Liu > Date: Wed Dec 6 14:45:15 2017 -0800 > > When running the perf_fuzzer on a current git checkout my logs are flooded > with messages such as this: > [71487.869077] trace_kprobe: Could not insert probe at unknown+0: -22

Re: [PATCH, RESEND, pci, v2] pci: Delete PCI disabling informational messages

2018-04-10 Thread Desnes A. Nunes do Rosario
Bjorn, On 04/10/2018 04:55 PM, Bjorn Helgaas wrote: On Tue, Apr 10, 2018 at 02:36:31PM -0500, Bjorn Helgaas wrote: On Wed, Apr 04, 2018 at 12:10:35PM -0300, Desnes A. Nunes do Rosario wrote: The disabling informational messages on the PCI subsystem should be deleted since they do not represent

Re: [PATCH] x86: fix pgprotval_t format string

2018-04-10 Thread Dave Hansen
On 04/10/2018 01:43 AM, Arnd Bergmann wrote: > --- a/arch/x86/include/asm/pgtable.h > +++ b/arch/x86/include/asm/pgtable.h > @@ -533,11 +533,11 @@ static inline pgprotval_t check_pgprot(pgprot_t pgprot) > /* mmdebug.h can not be included here because of dependencies */ > #ifdef CONFIG_DEBUG_

Re: [PATCH v2] selftests/livepatch: introduce tests

2018-04-10 Thread Josh Poimboeuf
On Tue, Apr 10, 2018 at 11:15:54AM -0400, Joe Lawrence wrote: > +static void test_klp_shadow_vars_exit(void) > +{ > +} > + > +module_init(test_klp_shadow_vars_init); > +module_init(test_klp_shadow_vars_exit); For this last line, s/module_init/module_exit/, though I think the exit function can just

Re: [PATCH v2] Add livepatch kselftests

2018-04-10 Thread Josh Poimboeuf
On Tue, Apr 10, 2018 at 11:15:53AM -0400, Joe Lawrence wrote: > Questions for v3: > > - Should we split off the atomic replace and shadow variable update > tests so that the this patchset could be merged before the ones > listed above? Don't split it up on my account. We can just merge

Re: [PATCH 4/7] sched/core: uclamp: add utilization clamping to the CPU controller

2018-04-10 Thread Tejun Heo
Hello, On Tue, Apr 10, 2018 at 06:16:12PM +0100, Patrick Bellasi wrote: > > I'm not too enthusiastic about util_min/max given that it can easily > > be read as actual utilization based bandwidth control when what's > > actually implemented, IIUC, is affecting CPU frequency selection. > > Right no

Re: [v3 PATCH] mm: introduce arg_lock to protect arg_start|end and env_start|end in mm_struct

2018-04-10 Thread Cyrill Gorcunov
On Tue, Apr 10, 2018 at 12:33:35PM -0700, Yang Shi wrote: ... > > The race condition is just valid when protecting start_brk, brk, start_data > and end_data with the new lock, but keep using mmap_sem in brk path. > > So, we should just need make a little tweak to have mmap_sem protect > start_brk

[PATCH v4 1/2] Documentation: Documentation for qcom, llcc

2018-04-10 Thread Rishabh Bhatnagar
Documentation for last level cache controller device tree bindings, client bindings usage examples. Signed-off-by: Channagoud Kadabi Signed-off-by: Rishabh Bhatnagar --- .../devicetree/bindings/arm/msm/qcom,llcc.txt | 58 ++ 1 file changed, 58 insertions(+) create mode

[PATCH v4 0/2] SDM845 System Cache Driver

2018-04-10 Thread Rishabh Bhatnagar
This series implements system cache or LLCC(Last Level Cache Controller) driver for SDM845 SOC. The purpose of the driver is to partition the system cache and program the settings such as priortiy, lines to probe while doing a look up in the system cache, low power related settings etc. The partiti

[PATCH v4 2/2] drivers: soc: Add LLCC driver

2018-04-10 Thread Rishabh Bhatnagar
LLCC (Last Level Cache Controller) provides additional cache memory in the system. LLCC is partitioned into multiple slices and each slice gets its own priority, size, ID and other config parameters. LLCC driver programs these parameters for each slice. Clients that are assigned to use LLCC need to

[PATCH] x86, boot: initialize __default_kernel_pte_mask in KASLR code

2018-04-10 Thread Dave Hansen
The somewhat discrete arch/x86/boot/compressed code shares headers with the main kernel, but needs its own copies of some variables. The copy of __default_kernel_pte_mask did not get initialized correctly and has been reported to cause boot failures when KASLR is in use by Tom Lendacky and Mike G

Re: [PATCH] hwmon: (scmi) handle absence of few types of sensors

2018-04-10 Thread Guenter Roeck
On Fri, Apr 06, 2018 at 04:30:47PM +0100, Sudeep Holla wrote: > Currently the loop checks for non-zero count of sensors for each type > of sensors which is completely wrong. It also results in aborting the > registration of sensors if one or more types of sensors are completely > not supported by t

Re: [RFC] mm, slab: reschedule cache_reap() on the same CPU

2018-04-10 Thread Vlastimil Babka
On 04/10/2018 09:53 PM, Tejun Heo wrote: > Hello, > > On Tue, Apr 10, 2018 at 09:40:19PM +0200, Vlastimil Babka wrote: >> On 04/10/2018 04:12 PM, Christopher Lameter wrote: >>> On Tue, 10 Apr 2018, Vlastimil Babka wrote: >>> cache_reap() is initially scheduled in start_cpu_timer() via sc

Re: [PATCH] PCI: quirk HT1100 & HT2000 and one HT2100 Root Ports for Extended Tags

2018-04-10 Thread Sinan Kaya
On 4/10/2018 3:50 PM, Bjorn Helgaas wrote: > On Tue, Apr 10, 2018 at 02:41:44PM -0500, Bjorn Helgaas wrote: >> On Wed, Apr 04, 2018 at 06:50:09PM -0400, Sinan Kaya wrote: >>> Per PCIe r3.1, sec 2.2.6.2 and 7.8.4, a Requester may not use 8-bit Tags >>> unless its Extended Tag Field Enable is set, bu

Re: [PATCH 1/4] ARM: Allow this header to be included by assembly files

2018-04-10 Thread Mylène Josserand
Hello, On Fri, 23 Feb 2018 13:09:20 -0800 Florian Fainelli wrote: > From: Doug Berger > > The constants defined in this file are equally useful in assembly and C > source files. The arm64 architecture version of this file allows > inclusion in both assembly and C source files, so this this com

Re: [PATCH 1/2] slab: __GFP_ZERO is incompatible with a constructor

2018-04-10 Thread Christopher Lameter
On Tue, 10 Apr 2018, Matthew Wilcox wrote: > > Objects can be freed and reused and still be accessed from code that > > thinks the object is the old and not the new object > > Yes, I know, that's the point of RCU typesafety. My point is that an > object *which has never been used* can't be ac

Inbox SMTP, Inbox Webmail, I Sell Sure Spamming Toolz

2018-04-10 Thread Mr Spamming
I Sell Sure Spamming Toolz What we have on Stock Daily Inbox Webmail Inbox SMTP Fresh USA email leads Fresh Canada email leads Fresh Loan email leads Fresh Business emails leads Real Eastate email leads Conference delegates email leads Fresh Job Seaker emails cPanel HTTP and HTTPs Shell Zip/Unzi

Re: [RFC] mm, slab: reschedule cache_reap() on the same CPU

2018-04-10 Thread Tejun Heo
Hello, On Tue, Apr 10, 2018 at 10:13:33PM +0200, Vlastimil Babka wrote: > > For percpu work items, they'll keep executing on the same cpu it > > started on unless the cpu goes down while executing. > > Right, but before this patch, with just schedule_delayed_work() i.e. > non-percpu? If such work

RE: [PATCH] tpm: tpm_crb: relinquish locality on error path.

2018-04-10 Thread Winkler, Tomas
> > On Tue, 2018-04-10 at 09:00 +, Winkler, Tomas wrote: > > > > > > On Sat, 2018-04-07 at 19:12 +0300, Tomas Winkler wrote: > > > > In crb_map_io() function, __crb_request_locality() is called prior > > > > to crb_cmd_ready(), but if one of the consecutive function fails > > > > the flow bail

[PATCH v2] gpiolib: add hogs support for machine code

2018-04-10 Thread Bartosz Golaszewski
Board files constitute a significant part of the users of the legacy GPIO framework. In many cases they only export a line and set its desired value. We could use GPIO hogs for that like we do for DT and ACPI but there's no support for that in machine code. This patch proposes to extend the machin

Re: [PATCH] gpiolib: add hogs support for machine code

2018-04-10 Thread Bartosz Golaszewski
2018-04-10 19:05 GMT+02:00 kbuild test robot : > Hi Bartosz, > > I love your patch! Yet something to improve: > > [auto build test ERROR on gpio/for-next] > [also build test ERROR on v4.16 next-20180410] > [if your patch is applied to the wrong git tree, please drop us a no

Re: [PATCH v4 2/2] drivers: soc: Add LLCC driver

2018-04-10 Thread Jordan Crouse
On Tue, Apr 10, 2018 at 01:08:13PM -0700, Rishabh Bhatnagar wrote: > LLCC (Last Level Cache Controller) provides additional cache memory > in the system. LLCC is partitioned into multiple slices and each > slice gets its own priority, size, ID and other config parameters. > LLCC driver programs the

Re: [PATCH] memory-model: fix cheat sheet typo

2018-04-10 Thread Paul E. McKenney
On Mon, Apr 09, 2018 at 11:42:58AM -0700, Paul E. McKenney wrote: > On Mon, Apr 09, 2018 at 06:50:15PM +0200, Paolo Bonzini wrote: > > "RWM" should be "RMW", and that's more or less the extent to which I > > can claim to change the document. :) In particular, "Self" is not > > documented and the d

[PATCH v5] ARM: dts: tpc: Device tree description of the iMX6Q TPC board

2018-04-10 Thread Lukasz Majewski
This commit adds device tree description of Kieback & Peter GmbH iMX6Q TPC board. Signed-off-by: Lukasz Majewski Reviewed-by: Fabio Estevam --- Changes for v5: - Use 'interpolation-steps' to fill the brightness level table - Remove not needed status = "okay" properties - Replace goodix_ts -> to

Re: [GIT PULL] platform-drivers-x86 for 4.17-1

2018-04-10 Thread Andy Shevchenko
On Tue, Apr 10, 2018 at 10:22 PM, Linus Torvalds wrote: > On Tue, Apr 10, 2018 at 10:12 AM, Andy Shevchenko > wrote: >> >> This is first batch of Platform Drivers x86 for v4.17 cycle. Due to few >> duplication the merge will have conflicts which would be resolved by >> using `git merge -X no-rena

Re: [PATCH v3] writeback: safer lock nesting

2018-04-10 Thread Andrew Morton
On Mon, 9 Apr 2018 17:59:08 -0700 Greg Thelen wrote: > lock_page_memcg()/unlock_page_memcg() use spin_lock_irqsave/restore() if > the page's memcg is undergoing move accounting, which occurs when a > process leaves its memcg for a new one that has > memory.move_charge_at_immigrate set. > > unlo

Re: [PATCH v2] resource: Fix integer overflow at reallocation

2018-04-10 Thread Andrew Morton
On Tue, 10 Apr 2018 06:54:11 +0200 Takashi Iwai wrote: > On Tue, 10 Apr 2018 02:23:26 +0200, > Andrew Morton wrote: > > > > On Sun, 8 Apr 2018 09:20:26 +0200 Takashi Iwai wrote: > > > > > We've got a bug report indicating a kernel panic at booting on an > > > x86-32 system, and it turned out

[PATCH] x86/cpufeature: guard asm_volatile_goto usage with CC_HAVE_ASM_GOTO

2018-04-10 Thread Yonghong Song
Commit d0266046ad54 ("x86: Remove FAST_FEATURE_TESTS") removed X86_FAST_FEATURE_TESTS and make macro static_cpu_has() always use __always_inline function _static_cpu_has() funciton. The static_cpu_has() uses gcc feature asm_volatile_goto construct, which is not supported by clang. Currently, for B

Re: [PATCH v2 1/2] mm: introduce ARCH_HAS_PTE_SPECIAL

2018-04-10 Thread Palmer Dabbelt
On Tue, 10 Apr 2018 09:09:32 PDT (-0700), wi...@infradead.org wrote: On Tue, Apr 10, 2018 at 05:25:50PM +0200, Laurent Dufour wrote: arch/powerpc/include/asm/pte-common.h | 3 --- arch/riscv/Kconfig | 1 + arch/s390/Kconfig

Re: [PATCH] blk-mq: Directly schedule q->timeout_work when aborting a request

2018-04-10 Thread Martin Steigerwald
Martin Steigerwald - 10.04.18, 20:43: > Tejun Heo - 03.04.18, 00:04: > > Request abortion is performed by overriding deadline to now and > > scheduling timeout handling immediately. For the latter part, the > > code was using mod_timer(timeout, 0) which can't guarantee that the > > timer runs afte

[GIT PULL] Please pull NFS client updates for 4.17

2018-04-10 Thread Anna Schumaker
Hi Linus, The following changes since commit 661e50bc853209e41a5c14a290ca4decc43cbfd1: Linux 4.16-rc4 (2018-03-04 14:54:11 -0800) are available in the Git repository at: git://git.linux-nfs.org/projects/anna/linux-nfs.git tags/nfs-for-4.17-1 for you to fetch changes up to 98de9ce6f6660d02a

Re: [PATCH v3] writeback: safer lock nesting

2018-04-10 Thread Andrew Morton
On Tue, 10 Apr 2018 08:33:57 +0200 Michal Hocko wrote: > > Reported-by: Wang Long > > Signed-off-by: Greg Thelen > > Change-Id: Ibb773e8045852978f6207074491d262f1b3fb613 > > Not a stable material IMHO Why's that? Wang Long said he's observed the deadlock three times?

Re: [PATCH v2] selftests/livepatch: introduce tests

2018-04-10 Thread Joe Lawrence
On 04/10/2018 04:00 PM, Josh Poimboeuf wrote: > On Tue, Apr 10, 2018 at 11:15:54AM -0400, Joe Lawrence wrote: >> +static void test_klp_shadow_vars_exit(void) >> +{ >> +} >> + >> +module_init(test_klp_shadow_vars_init); >> +module_init(test_klp_shadow_vars_exit); > > For this last line, s/module_in

Re: [PATCH v2 1/2] mm: introduce ARCH_HAS_PTE_SPECIAL

2018-04-10 Thread David Rientjes
On Tue, 10 Apr 2018, Laurent Dufour wrote: > > On Tue, Apr 10, 2018 at 05:25:50PM +0200, Laurent Dufour wrote: > >> arch/powerpc/include/asm/pte-common.h | 3 --- > >> arch/riscv/Kconfig | 1 + > >> arch/s390/Kconfig

Re: [PATCH v29 1/4] mm: support reporting free page blocks

2018-04-10 Thread Andrew Morton
On Tue, 10 Apr 2018 21:19:31 +0300 "Michael S. Tsirkin" wrote: > > Andrew, were your questions answered? If yes could I bother you for an ack on > this? > Still not very happy that readers are told that "this function may sleep" when it clearly doesn't do so. If we wish to be able to change

Re: [Bug]: mtd: onenand: omap2plus: kernel panic with OneNAND on OMAP3 (DM3730) device GTA04A5

2018-04-10 Thread Ladislav Michl
Hi Nikolaus, On Tue, Apr 10, 2018 at 06:25:17PM +0200, H. Nikolaus Schaller wrote: > Hi, > we just started testing the v4.16 kernel and found the > device no longer bootable (works with v4.15). It turned > out that there was a harmful modification somewhere between > v4.15.0 and v4.16-rc1. > > A

Re: [lkp-robot] [bisect done] e71e836f46 [ 17.567570] WARNING: CPU: 0 PID: 1 at arch/x86/include/asm/pgtable.h:540 __change_page_attr_set_clr

2018-04-10 Thread Dave Hansen
On 04/09/2018 06:12 PM, kernel test robot wrote: > +---+++++ > | | > 64c8075940 | e71e836f46 | 0564258fb2 | 87e1

[PATCH V2] drm/amdgpu: limit DMA size to PAGE_SIZE for scatter-gather buffers

2018-04-10 Thread Sinan Kaya
Code is expecing to observe the same number of buffers returned from dma_map_sg() function compared to sg_alloc_table_from_pages(). This doesn't hold true universally especially for systems with IOMMU. IOMMU driver tries to combine buffers into a single DMA address as much as it can. The right thi

Re: KASAN: null-ptr-deref Read in xattr_getsecurity

2018-04-10 Thread Tetsuo Handa
Eric W. Biederman wrote: > Tetsuo Handa writes: > > > From 904d07a6eb014f3df0c5a1ebfcfd4323276a9a76 Mon Sep 17 00:00:00 2001 > > From: Tetsuo Handa > > Date: Tue, 10 Apr 2018 15:15:16 +0900 > > Subject: [PATCH] commoncap: Handle memory allocation failure. > > > > syzbot is reporting NULL pointer

Re: [PATCH v13 6/6] PCI/DPC: Do not do recovery for hotplug enabled system

2018-04-10 Thread Bjorn Helgaas
On Mon, Apr 09, 2018 at 10:41:54AM -0400, Oza Pawandeep wrote: > DPC and AER should attempt recovery in the same way, except the > cases where system is with hotplug enabled. What's the connection with hotplug? I see from the patch that for hotplug bridges you remove the tree below the bridge, an

Re: [PATCH] x86/cpufeature: guard asm_volatile_goto usage with CC_HAVE_ASM_GOTO

2018-04-10 Thread Peter Zijlstra
On Tue, Apr 10, 2018 at 01:42:59PM -0700, Yonghong Song wrote: > Commit d0266046ad54 ("x86: Remove FAST_FEATURE_TESTS") > removed X86_FAST_FEATURE_TESTS and make macro static_cpu_has() always > use __always_inline function _static_cpu_has() funciton. > The static_cpu_has() uses gcc feature asm_vola

Re: [PATCH] memory-model: fix cheat sheet typo

2018-04-10 Thread Paolo Bonzini
On 10/04/2018 22:32, Paul E. McKenney wrote: > On Mon, Apr 09, 2018 at 11:42:58AM -0700, Paul E. McKenney wrote: >> On Mon, Apr 09, 2018 at 06:50:15PM +0200, Paolo Bonzini wrote: >>> "RWM" should be "RMW", and that's more or less the extent to which I >>> can claim to change the document. :) In pa

Re: [PATCH v4] Protected FIFOs and regular files

2018-04-10 Thread Kees Cook
On Wed, Feb 28, 2018 at 1:22 AM, Salvatore Mesoraca wrote: > 2018-02-27 21:22 GMT+01:00 Kees Cook : >> On Tue, Feb 27, 2018 at 11:47 AM, Kees Cook wrote: >>> On Tue, Feb 27, 2018 at 3:00 AM, Salvatore Mesoraca >>> wrote: Disallows open of FIFOs or regular files not owned by the user in worl

Re: [PATCH v5 1/1] security: Add mechanism to safely (un)load LSMs after boot time

2018-04-10 Thread Sargun Dhillon
On Sun, Apr 8, 2018 at 10:25 PM, Tetsuo Handa wrote: > Sargun Dhillon wrote: >> > Remove SECURITY_HOOK_COUNT and "struct security_hook_list"->owner and >> > the exception in randomize_layout_plugin.c because preventing module >> > unloading won't work as expected. >> > >> >> Rather than comp

Re: [PATCH] x86/cpufeature: guard asm_volatile_goto usage with CC_HAVE_ASM_GOTO

2018-04-10 Thread Alexei Starovoitov
On 4/10/18 2:07 PM, Peter Zijlstra wrote: On Tue, Apr 10, 2018 at 01:42:59PM -0700, Yonghong Song wrote: Commit d0266046ad54 ("x86: Remove FAST_FEATURE_TESTS") removed X86_FAST_FEATURE_TESTS and make macro static_cpu_has() always use __always_inline function _static_cpu_has() funciton. The stati

[GIT PULL] UML changes for 4.17-rc1

2018-04-10 Thread Richard Weinberger
Linus, The following changes since commit 91ab883eb21325ad80f3473633f794c78ac87f51: Linux 4.16-rc2 (2018-02-18 17:29:42 -0800) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/rw/uml.git for you to fetch changes up to e40238dedb484c8a19f8257e4ef5d77d03

[GIT PULL] UBI/UBIFS changes for 4.17-rc1

2018-04-10 Thread Richard Weinberger
Linus, The following changes since commit 0adb32858b0bddf4ada5f364a84ed60b196dbcda: Linux 4.16 (2018-04-01 14:20:27 -0700) are available in the git repository at: git://git.infradead.org/linux-ubifs.git tags/upstream-4.17-rc1 for you to fetch changes up to b5094b7f135be34630e3ea8a98fa21571

[PATCH 1/3] drm/panel: Add RGB666 variant of Innolux AT070TN92

2018-04-10 Thread Paul Kocialkowski
This adds timings for the RGB666 variant of the Innolux AT070TN92 panel, as found on the Ainol AW1 tablet. Signed-off-by: Paul Kocialkowski --- drivers/gpu/drm/panel/panel-simple.c | 26 ++ 1 file changed, 26 insertions(+) diff --git a/drivers/gpu/drm/panel/panel-simple.

[PATCH 2/3] ARM: dts: sun7i: Add RGB666 pins definition

2018-04-10 Thread Paul Kocialkowski
This adds the pins definition for RGB666 LCD panels on the A20. It was imported from the A33 definition, that concernes the same set of pins. Signed-off-by: Paul Kocialkowski --- arch/arm/boot/dts/sun7i-a20.dtsi | 8 1 file changed, 8 insertions(+) diff --git a/arch/arm/boot/dts/sun7i-

[PATCH 3/3] ARM: dts: sun7i: Add support for the Ainol AW1 tablet

2018-04-10 Thread Paul Kocialkowski
This adds support for the Ainol AW1, an A20-based 7" tablet from Ainol. The following board-specific features are supported: * LCD panel * Backlight * USB OTG * Buttons * Touchscreen (doesn't work without non-free firmware) * Accelerometer * Battery The following are untested: * Audio output * Au

Re: [PATCH] memory-model: fix cheat sheet typo

2018-04-10 Thread Paul E. McKenney
On Tue, Apr 10, 2018 at 11:10:06PM +0200, Paolo Bonzini wrote: > On 10/04/2018 22:32, Paul E. McKenney wrote: > > On Mon, Apr 09, 2018 at 11:42:58AM -0700, Paul E. McKenney wrote: > >> On Mon, Apr 09, 2018 at 06:50:15PM +0200, Paolo Bonzini wrote: > >>> "RWM" should be "RMW", and that's more or les

Re: [PATCH v2] selftests/livepatch: introduce tests

2018-04-10 Thread Josh Poimboeuf
On Tue, Apr 10, 2018 at 04:50:51PM -0400, Joe Lawrence wrote: > On 04/10/2018 04:00 PM, Josh Poimboeuf wrote: > > On Tue, Apr 10, 2018 at 11:15:54AM -0400, Joe Lawrence wrote: > >> +static void test_klp_shadow_vars_exit(void) > >> +{ > >> +} > >> + > >> +module_init(test_klp_shadow_vars_init); > >>

Re: [PATCH 3/3] ARM: dts: sun7i: Add support for the Ainol AW1 tablet

2018-04-10 Thread Paul Kocialkowski
Le mardi 10 avril 2018 à 23:31 +0200, Paul Kocialkowski a écrit : > This adds support for the Ainol AW1, an A20-based 7" tablet from > Ainol. This version didn't use the dedicated binding for the panel and will be fixed in v2 and onwards. > The following board-specific features are supported: > *

Re: [PATCH v2] selftests/livepatch: introduce tests

2018-04-10 Thread Jiri Kosina
On Tue, 10 Apr 2018, Josh Poimboeuf wrote: > I think CONFIG_LOCKDEP is always a good idea. FWIW CONFIG_LOCKDEP mostly enables the infrastructure, but CONFIG_PROVE_LOCKING is what turns most of the cleverness on. -- Jiri Kosina SUSE Labs

Re: [RFC PATCH 1/1 v2] vmscan: Support multiple kswapd threads per node

2018-04-10 Thread Buddy Lumpkin
> On Apr 6, 2018, at 12:38 AM, Michal Hocko wrote: > > On Thu 05-04-18 23:25:14, Buddy Lumpkin wrote: >> >>> On Apr 4, 2018, at 11:10 PM, Michal Hocko wrote: >>> >>> On Wed 04-04-18 21:49:54, Buddy Lumpkin wrote: v2: - Make update_kswapd_threads_node less racy - Handle locking

Re: [PATCH] checkpatch: Add a --strict test for structs with bool member definitions

2018-04-10 Thread Andrew Morton
On Tue, 10 Apr 2018 11:19:54 -0700 Joe Perches wrote: > A struct with a bool member can have different sizes on various > architectures because neither bool size nor alignment is standardized. > > So emit a message on the use of bool in structs only in .h files and > not .c files. > > There is

Re: [PATCH] drm/i2c: tda998x: Remove VLA usage

2018-04-10 Thread Laura Abbott
On 04/09/2018 03:21 PM, Russell King - ARM Linux wrote: On Mon, Apr 09, 2018 at 02:07:03PM -0700, Laura Abbott wrote: There's an ongoing effort to remove VLAs[1] from the kernel to eventually turn on -Wvla. The vla in reg_write_range is based on the length of data passed. The one use of a non-co

Re: [PATCH] checkpatch: Add a --strict test for structs with bool member definitions

2018-04-10 Thread Joe Perches
On Tue, 2018-04-10 at 14:39 -0700, Andrew Morton wrote: > On Tue, 10 Apr 2018 11:19:54 -0700 Joe Perches wrote: > > > A struct with a bool member can have different sizes on various > > architectures because neither bool size nor alignment is standardized. > > What's wrong with bools in structs?

Re: [PATCH] checkpatch: Add a --strict test for structs with bool member definitions

2018-04-10 Thread Andrew Morton
On Tue, 10 Apr 2018 14:53:51 -0700 Joe Perches wrote: > On Tue, 2018-04-10 at 14:39 -0700, Andrew Morton wrote: > > On Tue, 10 Apr 2018 11:19:54 -0700 Joe Perches wrote: > > > > > A struct with a bool member can have different sizes on various > > > architectures because neither bool size nor a

Re: [PATCH] sched/rt.c: pick and check task if double_lock_balance() unlock the rq

2018-04-10 Thread Steven Rostedt
Peter, Going through my inbox, I stumbled across this one. And it doesn't appear to be addressed. I think this patch is a reasonable solution. One small nit below though, but other than that. Reviewed-by: Steven Rostedt (VMware) On Mon, 11 Sep 2017 14:51:49 +0800 Zhou Chengming wrote: > p

Re: [PATCH] drm/i2c: tda998x: Remove VLA usage

2018-04-10 Thread Russell King - ARM Linux
On Tue, Apr 10, 2018 at 02:52:35PM -0700, Laura Abbott wrote: > On 04/09/2018 03:21 PM, Russell King - ARM Linux wrote: > >On Mon, Apr 09, 2018 at 02:07:03PM -0700, Laura Abbott wrote: > >>There's an ongoing effort to remove VLAs[1] from the kernel to eventually > >>turn on -Wvla. The vla in reg_wr

Re: [PATCH v3] sparse: add -Wpointer-arith flag to toggle sizeof(void) warnings

2018-04-10 Thread Joey Pabalinas
On Tue, Apr 10, 2018 at 09:41:19PM +0200, Luc Van Oostenryck wrote: > Thank you very much. > > There is just a problem with the test but it's my fault as I > pointed to you to my tree but the master tree lack a lot of fixes > and have problems when dereferencing function pointers. > So, for the ma

[PATCH] selftests/intel_pstate: Improve test, minor fixes

2018-04-10 Thread Daniel Díaz
A few changes improve the overall usability of the test: * fix a hard-coded maximum frequency (3300), * don't adjust the CPU frequency if only evaluating results, * fix a comparison for multiple frequencies. A symptom of that last issue looked like this: ./run.sh: line 107: [: too many arguments

Re: [PATCH v2 0/4] ARM: amba: driver_override improvements and fixes

2018-04-10 Thread Russell King - ARM Linux
On Tue, Apr 10, 2018 at 03:21:42PM +0200, Geert Uytterhoeven wrote: > Hi Greg, > > This patch series contains improvements to driver_override handling in > the AMBA bus driver, including two bugfixes that are based on similar > fixes for the PCI and platform buses, and which Todd Kjos would

[PATCH 4.16 00/18] 4.16.2-stable review

2018-04-10 Thread Greg Kroah-Hartman
This is the start of the stable review cycle for the 4.16.2 release. There are 18 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. Responses should be made by Thu Apr 12 21:27:41 UTC 2018. Anything receive

[PATCH 4.16 02/18] arp: fix arp_filter on l3slave devices

2018-04-10 Thread Greg Kroah-Hartman
4.16-stable review patch. If anyone has any objections, please let me know. -- From: Miguel Fadon Perlines [ Upstream commit 58b35f27689b5eb514fc293c332966c226b1b6e4 ] arp_filter performs an ip_route_output search for arp source address and checks if output device is the same

[PATCH 4.16 15/18] ip6_tunnel: better validate user provided tunnel names

2018-04-10 Thread Greg Kroah-Hartman
4.16-stable review patch. If anyone has any objections, please let me know. -- From: Eric Dumazet [ Upstream commit db7a65e3ab78e5b1c4b17c0870ebee35a4ee3257 ] Use valid_name() to make sure user does not provide illegal device name. Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2") Si

[PATCH 4.16 04/18] net/ipv6: Increment OUTxxx counters after netfilter hook

2018-04-10 Thread Greg Kroah-Hartman
4.16-stable review patch. If anyone has any objections, please let me know. -- From: Jeff Barnhill <0xeff...@gmail.com> [ Upstream commit 71a1c915238c970cd9bdd5bf158b1279d6b6d55b ] At the end of ip6_forward(), IPSTATS_MIB_OUTFORWDATAGRAMS and IPSTATS_MIB_OUTOCTETS are incremen

[PATCH 4.16 06/18] pptp: remove a buggy dst release in pptp_connect()

2018-04-10 Thread Greg Kroah-Hartman
4.16-stable review patch. If anyone has any objections, please let me know. -- From: Eric Dumazet [ Upstream commit bfacfb457b36911a10140b8cb3ce76a74883ac5a ] Once dst has been cached in socket via sk_setup_caps(), it is illegal to call ip_rt_put() (or dst_release()), since s

[PATCH 4.16 14/18] ip6_gre: better validate user provided tunnel names

2018-04-10 Thread Greg Kroah-Hartman
4.16-stable review patch. If anyone has any objections, please let me know. -- From: Eric Dumazet [ Upstream commit 5f42df013b8bc1b6511af7a04bf93b014884ae2a ] Use dev_valid_name() to make sure user does not provide illegal device name. syzbot caught the following bug : BUG:

[PATCH 4.16 18/18] nfp: use full 40 bits of the NSP buffer address

2018-04-10 Thread Greg Kroah-Hartman
4.16-stable review patch. If anyone has any objections, please let me know. -- From: Dirk van der Merwe [ Upstream commit 1489bbd10e16079ce30a53d3c22a431fd47af791 ] The NSP default buffer is a piece of NFP memory where additional command data can be placed. Its format has be

<    3   4   5   6   7   8   9   10   11   12   >