Re: [PATCH 21/30] stack-protector: test compiler capability in Kconfig and drop AUTO mode

2018-04-13 Thread Kees Cook
On Fri, Apr 13, 2018 at 11:11 AM, Linus Torvalds wrote: > config STACKPROTECTOR_FLAGS > string > default "-fstack-protector-strong" if CC_STACKPROTECTOR_STRONG > default "-fstack-protector" if CC_STACKPROTECTOR > default "-fno-stack-protector" if CC_HAS_STACKPRO

Re: [PATCH] lockdown: fix coordination of kernel module signature verification

2018-04-13 Thread Bruno E. O. Meneguele
On Fri, Apr 13, 2018 at 11:27:52AM -0400, Mimi Zohar wrote: > If both IMA-appraisal and sig_enforce are enabled, then both signatures > are currently required. If the IMA-appraisal signature verification > fails, it could rely on the appended signature verification; but with the > lockdown patch s

Re: Potential problem with 31e77c93e432dec7 ("sched/fair: Update blocked load when newly idle")

2018-04-13 Thread Niklas Söderlund
Hi Vincent, On 2018-04-12 13:15:19 +0200, Niklas Söderlund wrote: > Hi Vincent, > > Thanks for your feedback. > > On 2018-04-12 12:33:27 +0200, Vincent Guittot wrote: > > Hi Niklas, > > > > On 12 April 2018 at 11:18, Niklas Söderlund > > wrote: > > > Hi Vincent, > > > > > > I have observed iss

[PATCH] clk: qcom: Base rcg parent rate off plan frequency

2018-04-13 Thread Evan Green
_freq_tbl_determine_rate uses the pre_div found in the clock plan multiplied by the requested rate from the caller to determine the best parent rate to set. If the requested rate is not exactly equal to the rate that was found in the clock plan, then using the requested rate in parent rate calculat

[PATCH] fs/dcache.c: re-add cond_resched() in shrink_dcache_parent()

2018-04-13 Thread Khazhismel Kumykov
shrink_dcache_parent may spin waiting for a parallel shrink_dentry_list. In this case we may have 0 dentries to dispose, so we will never schedule out while waiting for the parallel shrink_dentry_list to complete. Tested that this fixes syzbot reports of stalls in shrink_dcache_parent() Fixes: 32

Linux 3.18.105

2018-04-13 Thread Greg KH
I'm announcing the release of the 3.18.105 kernel. All users of the 3.18 kernel series must upgrade. The updated 3.18.y git tree can be found at: git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-3.18.y and can be browsed at the normal kernel.org git web browser

Re: Linux 3.18.105

2018-04-13 Thread Greg KH
diff --git a/Makefile b/Makefile index 2eae8b1039aa..ba34e4e77d96 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ VERSION = 3 PATCHLEVEL = 18 -SUBLEVEL = 104 +SUBLEVEL = 105 EXTRAVERSION = NAME = Diseased Newt diff --git a/arch/arm/boot/dts/imx6qdl-wandboard.dtsi b/arch/arm/boot/dts/imx

Linux 4.4.128

2018-04-13 Thread Greg KH
I'm announcing the release of the 4.4.128 kernel. All users of the 4.4 kernel series must upgrade. The updated 4.4.y git tree can be found at: git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-4.4.y and can be browsed at the normal kernel.org git web browser:

Linux 4.9.94

2018-04-13 Thread Greg KH
I'm announcing the release of the 4.9.94 kernel. All users of the 4.9 kernel series must upgrade. The updated 4.9.y git tree can be found at: git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-4.9.y and can be browsed at the normal kernel.org git web browser:

Re: [PATCH 07/24] hibernate: Disable when the kernel is locked down

2018-04-13 Thread Pavel Machek
On Wed 2018-04-11 17:25:25, David Howells wrote: > From: Josh Boyer > > There is currently no way to verify the resume image when returning > from hibernate. This might compromise the signed modules trust model, > so until we can work with signed hibernate images we disable it when the > kernel

Re: [PATCH 24/24] debugfs: Restrict debugfs when the kernel is locked down

2018-04-13 Thread Pavel Machek
On Wed 2018-04-11 17:27:16, David Howells wrote: > Disallow opening of debugfs files that might be used to muck around when > the kernel is locked down as various drivers give raw access to hardware > through debugfs. Given the effort of auditing all 2000 or so files and > manually fixing each one

Re: [PATCH 02/24] Add a SysRq option to lift kernel lockdown

2018-04-13 Thread Pavel Machek
On Wed 2018-04-11 17:24:52, David Howells wrote: > From: Kyle McMartin > > Make an option to provide a sysrq key that will lift the kernel lockdown, > thereby allowing the running kernel image to be accessed and modified. > > On x86 this is triggered with SysRq+x, but this key may not be availab

Re: [PATCH 00/32] docs/vm: convert to ReST format

2018-04-13 Thread Matthew Wilcox
On Fri, Apr 13, 2018 at 01:55:51PM -0600, Jonathan Corbet wrote: > > I believe that keeping the mm docs together will give better visibility of > > what (little) mm documentation we have and will make the updates easier. > > The documents that fit well into a certain topic could be linked there. Fo

Re: [PATCH 1/6] fs: use << for MS_* flags

2018-04-13 Thread Greg KH
On Fri, Apr 13, 2018 at 09:45:01AM -0700, Randy Dunlap wrote: > On 04/13/2018 09:11 AM, Christian Brauner wrote: > > Consistenly use << to define MS_* constants. > > > > Signed-off-by: Christian Brauner > > --- > > include/uapi/linux/fs.h | 33 + > > 1 file change

Re: [PATCH] parisc: Switch to generic COMPAT_BINFMT_ELF

2018-04-13 Thread Guenter Roeck
On Fri, Apr 13, 2018 at 09:54:37PM +0200, Helge Deller wrote: > * Guenter Roeck : > > On Wed, Apr 11, 2018 at 09:09:53AM +0200, Helge Deller wrote: > > > Drop our own compat binfmt implementation in > > > arch/parisc/kernel/binfmt_elf32.c in favour of the generic > > > implementation with CONFIG_CO

Re: [PATCH] sched: support dynamiQ cluster

2018-04-13 Thread Joel Fernandes (Google)
On Fri, Apr 6, 2018 at 5:58 AM, Morten Rasmussen wrote: > On Thu, Apr 05, 2018 at 06:22:48PM +0200, Vincent Guittot wrote: >> Hi Morten, >> >> On 5 April 2018 at 17:46, Morten Rasmussen wrote: >> > On Wed, Apr 04, 2018 at 03:43:17PM +0200, Vincent Guittot wrote: >> >> On 4 April 2018 at 12:44, Va

Re: [PATCH 00/32] docs/vm: convert to ReST format

2018-04-13 Thread Jonathan Corbet
Sorry for the silence, I'm pedaling as fast as I can, honest... On Sun, 1 Apr 2018 09:38:58 +0300 Mike Rapoport wrote: > My thinking was to start with mechanical RST conversion and then to start > working on the contents and ordering of the documentation. Some of the > existing files, e.g. ksm.t

Re: [PATCH] parisc: Switch to generic COMPAT_BINFMT_ELF

2018-04-13 Thread Helge Deller
* Guenter Roeck : > On Wed, Apr 11, 2018 at 09:09:53AM +0200, Helge Deller wrote: > > Drop our own compat binfmt implementation in > > arch/parisc/kernel/binfmt_elf32.c in favour of the generic > > implementation with CONFIG_COMPAT_BINFMT_ELF. > > > > While cleaning up the dependencies, I noticed

Re: sparc/ppc/arm compat siginfo ABI regressions: sending SIGFPE via kill() returns wrong values in si_pid and si_uid

2018-04-13 Thread Linus Torvalds
On Fri, Apr 13, 2018 at 11:45 AM, Dave Martin wrote: > > Most uses I've seen do nothing more than use the FPE_xyz value to > format diagnostic messages while dying. I struggled to find code that > made a meaningful functional decision based on the value, though that's > not proof... Yeah. I've s

RE: [PATCH v1 4/7] platform: mellanox: add new ODM system types to mlx-platform

2018-04-13 Thread Vadim Pasternak
> -Original Message- > From: Darren Hart [mailto:dvh...@infradead.org] > Sent: Friday, April 13, 2018 7:55 PM > To: Vadim Pasternak > Cc: andy.shevche...@gmail.com; gre...@linuxfoundation.org; linux- > ker...@vger.kernel.org; platform-driver-...@vger.kernel.org; j...@resnulli.us; > Micha

RE: [PATCH v1 3/7] platform/mellanox: mlxreg-hotplug: add extra cycle for hotplug work queue

2018-04-13 Thread Vadim Pasternak
> -Original Message- > From: Darren Hart [mailto:dvh...@infradead.org] > Sent: Friday, April 13, 2018 7:47 PM > To: Vadim Pasternak > Cc: andy.shevche...@gmail.com; gre...@linuxfoundation.org; linux- > ker...@vger.kernel.org; platform-driver-...@vger.kernel.org; j...@resnulli.us; > Micha

[PULL REQUEST] i2c for 4.17

2018-04-13 Thread Wolfram Sang
Linus, the second pull request from I2C contains: - hot bugfix for i801 to make laptops with strange BIOS reboot again when using SMBUS Host notify - change to MAINTAINERS creating a specific fallback entry for I2C host drivers and settings its status to "Odd fixes" - a long overdue param c

Re: [PATCH] kasan: add no_sanitize attribute for clang builds

2018-04-13 Thread Andrey Ryabinin
On 04/13/2018 08:34 PM, Andrey Konovalov wrote: > On Fri, Apr 13, 2018 at 5:31 PM, Andrey Ryabinin > wrote: >> >> >> On 04/12/2018 08:29 PM, Andrey Konovalov wrote: >>> KASAN uses the __no_sanitize_address macro to disable instrumentation >>> of particular functions. Right now it's defined only

Re: sparc/ppc/arm compat siginfo ABI regressions: sending SIGFPE via kill() returns wrong values in si_pid and si_uid

2018-04-13 Thread Dave Martin
On Fri, Apr 13, 2018 at 07:50:17PM +0100, Russell King - ARM Linux wrote: > On Fri, Apr 13, 2018 at 07:35:38PM +0100, Dave Martin wrote: > > If that's the case though, I don't see how a userspace testsuite is > > hitting this code path. Maybe I've misunderstood the context of this > > thread. > >

[PATCH] trace_kprobe: Remove warning message "Could not insert probe at..."

2018-04-13 Thread Song Liu
This warning message is not very helpful, as the return value should already show information about the error. Also, this message will flush dmesg if the user space do something silly in a loop, like: for x in {0..5} do echo p:xx xx+$x >> /sys/kernel/debug/tracing/kprobe_events

Re: [PATCH] virtio_balloon: add array of stat names

2018-04-13 Thread Jonathan Helman
On 04/13/2018 06:44 AM, Michael S. Tsirkin wrote: Jason Wang points out that it's vary hard for users to build an array of s/vary/very stat names. The naive thing is to use VIRTIO_BALLOON_S_NR but that breaks if we add more stats. Let's add an array of reasonably readable names. Thanks f

Re: sparc/ppc/arm compat siginfo ABI regressions: sending SIGFPE via kill() returns wrong values in si_pid and si_uid

2018-04-13 Thread Russell King - ARM Linux
On Fri, Apr 13, 2018 at 07:35:38PM +0100, Dave Martin wrote: > If that's the case though, I don't see how a userspace testsuite is > hitting this code path. Maybe I've misunderstood the context of this > thread. It isn't hitting this exact case. The userspace testsuite is hitting an entirely dif

Re: [PATCH] Documentation/i2c: sync docs with current state of i2c-tools.

2018-04-13 Thread Jean Delvare
On Fri, 13 Apr 2018 09:02:03 -0700, Sam Hansen wrote: > On Fri, Apr 13, 2018 at 5:13 AM, Jean Delvare wrote: > > On Fri, 13 Apr 2018 00:24:57 +0200, Wolfram Sang wrote: > >> On Thu, Apr 12, 2018 at 02:33:42PM -0700, Sam Hansen wrote: > >> > - Not meant to be called directly; instead, use the

Re: [PATCH 1/3] USB: musb: dsps: drop duplicate phy initialisation

2018-04-13 Thread Uwe Kleine-König
On Fri, Apr 13, 2018 at 05:15:03PM +0200, Johan Hovold wrote: > Since commit 39cee200c23e ("usb: musb: core: call init and shutdown for > the usb phy") the musb USB phy is initialised by musb_core, but the > original initialisation in the dsps-glue init callback was left in > place resulting in two

Re: sparc/ppc/arm compat siginfo ABI regressions: sending SIGFPE via kill() returns wrong values in si_pid and si_uid

2018-04-13 Thread Dave Martin
On Fri, Apr 13, 2018 at 11:23:36AM -0700, Linus Torvalds wrote: > On Fri, Apr 13, 2018 at 10:54 AM, Russell King - ARM Linux > wrote: > > > > FPE_FLTINV means "floating point invalid operation". Does it really > > cover the case where hardware has failed, or is it intended to cover > > the case w

[PATCH v2] powerpc/sparse: fix plain integer as NULL pointer warning

2018-04-13 Thread Mathieu Malaterre
Trivial fix to remove the following sparse warnings: arch/powerpc/kernel/module_32.c:112:74: warning: Using plain integer as NULL pointer arch/powerpc/kernel/module_32.c:117:74: warning: Using plain integer as NULL pointer drivers/macintosh/via-pmu.c:1155:28: warning: Using plain integer a

Re: sparc/ppc/arm compat siginfo ABI regressions: sending SIGFPE via kill() returns wrong values in si_pid and si_uid

2018-04-13 Thread Dave Martin
On Fri, Apr 13, 2018 at 06:54:08PM +0100, Russell King - ARM Linux wrote: > On Fri, Apr 13, 2018 at 06:08:28PM +0100, Dave Martin wrote: > > On Fri, Apr 13, 2018 at 09:33:17AM -0700, Linus Torvalds wrote: > > > On Fri, Apr 13, 2018 at 2:42 AM, Russell King - ARM Linux > > > wrote: > > > > > > > >

Re: [PATCH v3 05/11] dt-bindings: input: touchscreen: resistive-adc-touch: create bindings

2018-04-13 Thread Rob Herring
On Tue, Apr 10, 2018 at 11:57:51AM +0300, Eugen Hristev wrote: > Added bindings for generic resistive touchscreen ADC. > > Signed-off-by: Eugen Hristev > --- > Changes in v3: > - renamed file and compatible to exclude "generic" keyword > - removed the pressure threshold property, added it as a

Re: [PATCH 2/6] statfs: use << to align with fs header

2018-04-13 Thread Christian Brauner
On Fri, Apr 13, 2018 at 10:55:23AM -0700, Randy Dunlap wrote: > On 04/13/2018 10:35 AM, Andreas Dilger wrote: > > On Apr 13, 2018, at 10:11 AM, Christian Brauner > > wrote: > >> > >> Consistenly use << to define ST_* constants. This also aligns them with > >> their MS_* counterparts in fs.h > >

Re: [PATCH v3 04/11] dt-bindings: input: touchscreen: add pressure threshold touchscreen property

2018-04-13 Thread Rob Herring
On Tue, Apr 10, 2018 at 11:57:50AM +0300, Eugen Hristev wrote: > Add a common touchscreen optional property that will specify > the minimum pressure applied to the screen that is needed > such that the driver will report the touch event. > > Signed-off-by: Eugen Hristev > --- > Documentation/dev

Re: [PATCH v4 5/8] dt-bindings: arm: Document the RZN1D-DB board

2018-04-13 Thread Rob Herring
On Tue, Apr 10, 2018 at 09:30:05AM +0100, Michel Pollet wrote: > This documents the RZ/N1 bindings for the RZN1D-DB board. > > Signed-off-by: Michel Pollet > --- > Documentation/devicetree/bindings/arm/shmobile.txt | 5 - > 1 file changed, 4 insertions(+), 1 deletion(-) Reviewed-by: Rob Her

Re: [PATCH] parisc: Switch to generic COMPAT_BINFMT_ELF

2018-04-13 Thread Guenter Roeck
On Wed, Apr 11, 2018 at 09:09:53AM +0200, Helge Deller wrote: > Drop our own compat binfmt implementation in > arch/parisc/kernel/binfmt_elf32.c in favour of the generic > implementation with CONFIG_COMPAT_BINFMT_ELF. > > While cleaning up the dependencies, I noticed that ELF_PLATFORM was strangel

Re: WARNING in up_write

2018-04-13 Thread Dmitry Vyukov
On Fri, Apr 6, 2018 at 4:01 AM, Dave Chinner wrote: > On Thu, Apr 05, 2018 at 05:13:25PM -0700, Eric Biggers wrote: >> On Fri, Apr 06, 2018 at 08:32:26AM +1000, Dave Chinner wrote: >> > On Wed, Apr 04, 2018 at 08:24:54PM -0700, Matthew Wilcox wrote: >> > > On Wed, Apr 04, 2018 at 11:22:00PM -0400,

Re: sparc/ppc/arm compat siginfo ABI regressions: sending SIGFPE via kill() returns wrong values in si_pid and si_uid

2018-04-13 Thread Linus Torvalds
On Fri, Apr 13, 2018 at 10:54 AM, Russell King - ARM Linux wrote: > > FPE_FLTINV means "floating point invalid operation". Does it really > cover the case where hardware has failed, or is it intended to cover > the case where userspace did something wrong and asked for an invalid > operation from

Re: [PATCH v2 2/3] usb: dwc3: Add Qualcomm DWC3 glue driver

2018-04-13 Thread Jack Pham
On Fri, Apr 13, 2018 at 11:32:04PM +0530, Manu Gautam wrote: > On 4/13/2018 11:03 PM, Jack Pham wrote: > > Are the extcon phandles bound to the glue node? I don't see the > > description in the bindings doc in PATCH 1/3. And if so, would it be > > a duplicate of the child node's extcon binding? The

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

2018-04-13 Thread Peter Zijlstra
On Tue, Apr 10, 2018 at 02:28:04PM -0700, Alexei Starovoitov wrote: > Instead of > #ifdef CC_HAVE_ASM_GOTO > we can replace it with > #ifndef __BPF__ > or some other name, I would prefer the BPF specific hack; otherwise we might be encouraging people to build the kernel proper without asm-goto.

[PATCH] PCI: Add PCIe to pcie_print_link_status() messages

2018-04-13 Thread Jakub Kicinski
Currently the pcie_print_link_status() will print PCIe bandwidth and link width information but does not mention it is pertaining to the PCIe. Since this and related functions are used exclusively by networking drivers today users may get confused into thinking that it's the NIC bandwidth that is

Re: [PATCH 2/3] dt-bindings: add binding for at91-usart in spi mode

2018-04-13 Thread Alexandre Belloni
On 13/04/2018 19:12:54+0200, Nicolas Ferre wrote: > > > diff --git > > > a/Documentation/devicetree/bindings/spi/microchip,at91-usart-spi.txt > > > b/Documentation/devicetree/bindings/spi/microchip,at91-usart-spi.txt > > > new file mode 100644 > > > index ..92d33ccdffae > > > --- /dev

Re: [PATCH 21/30] stack-protector: test compiler capability in Kconfig and drop AUTO mode

2018-04-13 Thread Linus Torvalds
On Fri, Apr 13, 2018 at 9:41 AM, Kees Cook wrote: > > How about something like this instead: I'd rather avoid the ifdef's in the Makefile if at all possible. I'd rather expose this as a Kconfig rule, and in the Kconfig just have an entry something like this config STACKPROTECTOR_FLAGS

[Regression] PCI / PM: Simplify device wakeup settings code

2018-04-13 Thread Joseph Salisbury
Hi Rafael, A kernel bug report was opened against Ubuntu [0].  After a kernel bisect, it was found that reverting the following two commits resolved this bug: 0ce3fcaff929 ("PCI / PM: Restore PME Enable after config space restoration") 0847684cfc5f("PCI / PM: Simplify device wakeup settings code"

Re: [RFC PATCH for 4.18 12/23] cpu_opv: Provide cpu_opv system call (v7)

2018-04-13 Thread Mathieu Desnoyers
- On Apr 13, 2018, at 12:37 PM, Linus Torvalds torva...@linux-foundation.org wrote: > On Fri, Apr 13, 2018 at 5:16 AM, Mathieu Desnoyers > wrote: >> The vmalloc space needed by cpu_opv is bound by the number of pages >> a cpu_opv call can touch. > > No it's not. > > You can have a thousand

Re: [PATCH v4 3/8] dt-bindings: mfd: renesas,rzn1-sysctrl: document RZ/N1 sysctrl node

2018-04-13 Thread Rob Herring
On Tue, Apr 10, 2018 at 09:30:03AM +0100, Michel Pollet wrote: > The Renesas RZ/N1 Family (Part #R9A06G0xx) has a multi-function > system controller. This documents the node used to encapsulate > it's sub drivers. > > Signed-off-by: Michel Pollet > --- > .../bindings/mfd/renesas,rzn1-sysctrl.txt

Re: [PATCH 1/2] dt-bindings/display/bridge: sii902x: add optional power supplies

2018-04-13 Thread Rob Herring
On Tue, Apr 10, 2018 at 07:19:26AM +0200, Philippe Cornu wrote: > Add the 3 optional power supplies using the exact description > found in the document named > "SiI9022A/SiI9024A HDMI Transmitter Data Sheet (August 2016)". > > Signed-off-by: Philippe Cornu > --- > Documentation/devicetree/bindin

Re: [PATCH] spi: cadence: Add usleep_range() for cdns_spi_fill_tx_fifo()

2018-04-13 Thread Mark Brown
On Mon, Apr 09, 2018 at 07:16:50PM +0800, sxauwsk wrote: > In case of xspi work in busy condition, may send bytes failed. > Add one bytes delay > while ((trans_cnt < CDNS_SPI_FIFO_DEPTH) && > (xspi->tx_bytes > 0)) { > + > + /* When xspi in busy condition, bytes may s

Re: [PATCH v2 2/3] usb: dwc3: Add Qualcomm DWC3 glue driver

2018-04-13 Thread Manu Gautam
Hi Jack, On 4/13/2018 11:03 PM, Jack Pham wrote: > Hi Manu, > > On Fri, Apr 13, 2018 at 10:21:23PM +0530, Manu Gautam wrote: >> DWC3 controller on Qualcomm SOCs has a Qscratch wrapper. >> Some of its uses are described below resulting in need to >> have a separate glue driver instead of using dwc

Re: Crashes/hung tasks with z3pool under memory pressure

2018-04-13 Thread Guenter Roeck
On Fri, Apr 13, 2018 at 05:40:18PM +, Vitaly Wool wrote: > On Fri, Apr 13, 2018, 7:35 PM Guenter Roeck wrote: > > > On Fri, Apr 13, 2018 at 05:21:02AM +, Vitaly Wool wrote: > > > Hi Guenter, > > > > > > > > > Den fre 13 apr. 2018 kl 00:01 skrev Guenter Roeck : > > > > > > > Hi all, > > >

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

2018-04-13 Thread Rob Herring
On Mon, Apr 09, 2018 at 04:00:38PM -0700, Eric Anholt wrote: > 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 node"), remove > the subsystem node usage and jus

Re: [PATCH 2/6] statfs: use << to align with fs header

2018-04-13 Thread Randy Dunlap
On 04/13/2018 10:35 AM, Andreas Dilger wrote: > On Apr 13, 2018, at 10:11 AM, Christian Brauner > wrote: >> >> Consistenly use << to define ST_* constants. This also aligns them with >> their MS_* counterparts in fs.h > > IMHO, using (1 << 10) makes the code harder to debug. If you see a field

[PATCH] proc: fix /proc/loadavg regression

2018-04-13 Thread Alexey Dobriyan
commit 95846ecf9dac5089aed4b144d912225f8ef86ae4 "pid: replace pid bitmap implementation with IDR API" changed last field of /proc/loadavg (last pid allocated) to be off by one: # unshare -p -f --mount-proc cat /proc/loadavg 0.00 0.00 0.00 1/60 2 <=== It should be 1 after first

Re: sparc/ppc/arm compat siginfo ABI regressions: sending SIGFPE via kill() returns wrong values in si_pid and si_uid

2018-04-13 Thread Russell King - ARM Linux
On Fri, Apr 13, 2018 at 06:08:28PM +0100, Dave Martin wrote: > On Fri, Apr 13, 2018 at 09:33:17AM -0700, Linus Torvalds wrote: > > On Fri, Apr 13, 2018 at 2:42 AM, Russell King - ARM Linux > > wrote: > > > > > > Yes, it does solve the problem at hand with strace - the exact patch I > > > tested ag

Re: [PATCH v2 0/2] tracing/events: block: bring more on a par with blktrace

2018-04-13 Thread Steven Rostedt
On Fri, 13 Apr 2018 18:36:20 +0200 Steffen Maier wrote: > I had the need to understand I/O request processing in detail. > But I also had the need to enrich block traces with other trace events > including my own dynamic kprobe events. So I preferred block trace events > over blktrace to get ever

Re: [PATCH 2/5] dt-bindings: display: atmel: add optional output-mode property

2018-04-13 Thread Rob Herring
On Mon, Apr 09, 2018 at 12:59:15PM +0200, Peter Rosin wrote: > Useful for beating cases where an output mode selection heuristic > fails. > > Signed-off-by: Peter Rosin > --- > Documentation/devicetree/bindings/display/atmel/hlcdc-dc.txt | 4 > 1 file changed, 4 insertions(+) > > diff --gi

[PATCH v3 2/3] Documentation/i2c: sync docs with current state of i2c-tools

2018-04-13 Thread Sam Hansen
Currently, Documentation/i2c/dev-interface describes the use of i2c_smbus_* helper routines as static inlined functions provided by linux/i2c-dev.h. Work has been done to refactor the linux/i2c-dev.h file in the i2c-tools project out into its own library. As a result, these docs have become stale

[PATCH v3 3/3] Documentation/i2c: adopt kernel commenting style in examples

2018-04-13 Thread Sam Hansen
The example I2C code is rewritten to adopt the preferred kernel block commenting style. Signed-off-by: Sam Hansen --- Changes from v2: 1. only the block comment is updated. 2. one-line comments are reverted to prior form. Documentation/i2c/dev-interface | 6 -- 1 file changed, 4 inserti

Re: [PATCH v2] base: dma-mapping: Postpone cpu addr translation on mmap()

2018-04-13 Thread Robin Murphy
On 13/04/18 18:25, Jacopo Mondi wrote: Postpone calling virt_to_page() translation on memory locations not guaranteed to be backed by a struct page. Try first to map memory from device's coherent memory pool, then perform translation if that fails. On some architectures, specifically SH when con

Re: [PATCH v5 01/10] drivers: qcom: rpmh-rsc: add RPMH controller for QCOM SoCs

2018-04-13 Thread Stephen Boyd
Quoting Lina Iyer (2018-04-13 08:37:25) > On Tue, Apr 10 2018 at 22:39 -0600, Stephen Boyd wrote: > >Quoting Lina Iyer (2018-04-05 09:18:25) > >> > >> diff --git a/drivers/soc/qcom/rpmh-internal.h > >> b/drivers/soc/qcom/rpmh-internal.h > >> new file mode 100644 > >> index ..aa73ec4b3e

[PATCH v3 1/3] Documentation/i2c: whitespace cleanup

2018-04-13 Thread Sam Hansen
This strips trailing whitespace in Documentation/i2c/dev-interface. Signed-off-by: Sam Hansen --- No changes from v2. Documentation/i2c/dev-interface | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Documentation/i2c/dev-interface b/Documentation/i2c/dev-interfac

[PATCH v1 1/1] usb: hub: Don't wait for connect state at resume for powered-off ports

2018-04-13 Thread sathyanarayanan . kuppuswamy
From: Dominik Bozek wait_for_connected() wait till a port change status to USB_PORT_STAT_CONNECTION, but this is not possible if the port is unpowered. The loop will only exit at timeout. Such case take place if an over-current incident happen while system is in S3. Then during resume wait_for_c

[PATCH v1 1/1] usb: core: Add quirk for HP v222w 16GB Mini

2018-04-13 Thread sathyanarayanan . kuppuswamy
From: Kamil Lulko Add DELAY_INIT quirk to fix the following problem with HP v222w 16GB Mini: usb 1-3: unable to read config index 0 descriptor/start: -110 usb 1-3: can't read configurations, error -110 usb 1-3: can't set config #1, error -110 Signed-off-by: Kamil Lulko Signed-off-by: Kuppuswam

Re: [PATCH 17/17] perf annotate: Handle variables in 'sub', 'or' and many other instructions

2018-04-13 Thread Andi Kleen
> What do I miss? Or where is it that I'm misinterpreting the calculations > that objdump did in its output? The calculations are right, but these are still two different address modes. You cannot just turn one silently into the other. I think it would be ok to use the syntax in the assembler sy

Re: [PATCH 1/5] dt-bindings: display: bridge: lvds-transmitter: add ti,ds90c185

2018-04-13 Thread Rob Herring
On Mon, Apr 09, 2018 at 12:59:14PM +0200, Peter Rosin wrote: > Start list of actual chips compatible with "lvds-encoder". > > Reviewed-by: Laurent Pinchart > Signed-off-by: Peter Rosin > --- > .../devicetree/bindings/display/bridge/lvds-transmitter.txt | 8 > +++- > 1 file changed, 7

Re: [PATCH v2 3/3] Documentation/i2c: adopt kernel commenting style in examples

2018-04-13 Thread Sam Hansen
On Fri, Apr 13, 2018 at 9:50 AM, Wolfram Sang wrote: > >> - int adapter_nr = 2; /* probably dynamically determined */ > > Such comments are actually OK. Ah, gotcha. Thanks for the correction. Standby for revised patch set. > >> -/* ERROR HANDLING; you can check errno to see what went wron

Re: [PATCH v2 3/9] Input: elan_i2c - add trackstick report

2018-04-13 Thread Rob Herring
On Mon, Apr 09, 2018 at 11:10:45AM +0200, Benjamin Tissoires wrote: > The Elan touchpads over I2C/SMBus also can handle a > trackstick. Unfortunately, nothing tells us if the > device supports trackstick (the information lies in > the PS/2 node), so rely on a platform data to enable > or not the tr

Re: Crashes/hung tasks with z3pool under memory pressure

2018-04-13 Thread Guenter Roeck
On Fri, Apr 13, 2018 at 05:21:02AM +, Vitaly Wool wrote: > Hi Guenter, > > > Den fre 13 apr. 2018 kl 00:01 skrev Guenter Roeck : > > > Hi all, > > > we are observing crashes with z3pool under memory pressure. The kernel > version > > used to reproduce the problem is v4.16-11827-g5d1365940a6

Re: [PATCH 2/6] statfs: use << to align with fs header

2018-04-13 Thread Andreas Dilger
On Apr 13, 2018, at 10:11 AM, Christian Brauner wrote: > > Consistenly use << to define ST_* constants. This also aligns them with > their MS_* counterparts in fs.h IMHO, using (1 << 10) makes the code harder to debug. If you see a field in a structure like 0x8354, it is non-trivial to map thi

Re: [PATCH] kasan: add no_sanitize attribute for clang builds

2018-04-13 Thread Andrey Konovalov
On Fri, Apr 13, 2018 at 5:31 PM, Andrey Ryabinin wrote: > > > On 04/12/2018 08:29 PM, Andrey Konovalov wrote: >> KASAN uses the __no_sanitize_address macro to disable instrumentation >> of particular functions. Right now it's defined only for GCC build, >> which causes false positives when clang i

Re: [PATCH 09/13] imx274: get rid of mode_index

2018-04-13 Thread kbuild test robot
Hi Luca, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on linuxtv-media/master] [also build test WARNING on v4.16 next-20180413] [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

Re: [PATCH v2 2/3] usb: dwc3: Add Qualcomm DWC3 glue driver

2018-04-13 Thread Jack Pham
Hi Manu, On Fri, Apr 13, 2018 at 10:21:23PM +0530, Manu Gautam wrote: > DWC3 controller on Qualcomm SOCs has a Qscratch wrapper. > Some of its uses are described below resulting in need to > have a separate glue driver instead of using dwc3-of-simple: > - It exposes register interface to override

[PATCH v2] IB: make INFINIBAND_ADDR_TRANS configurable

2018-04-13 Thread Greg Thelen
Allow INFINIBAND without INFINIBAND_ADDR_TRANS. Signed-off-by: Greg Thelen Cc: Tarick Bedeir Change-Id: I6fbbf8a432e467710fa65e4904b7d61880b914e5 --- drivers/infiniband/Kconfig | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/infiniband/Kconfig b/drivers/infiniban

Re: [PATCH net-next 2/3] dt-bindings: net: ave: add syscon-phy-mode property to configure phy-mode setting

2018-04-13 Thread Rob Herring
On Mon, Apr 09, 2018 at 03:38:44PM +0900, Kunihiko Hayashi wrote: > Add "socionext,syscon-phy-mode" property to specify system controller that > configures the settings about phy-mode. > > Signed-off-by: Kunihiko Hayashi > --- > Documentation/devicetree/bindings/net/socionext,uniphier-ave4.txt |

Re: [PATCH net-next 1/3] net: ethernet: ave: add multiple clocks and resets support as required property

2018-04-13 Thread Rob Herring
On Mon, Apr 09, 2018 at 03:38:43PM +0900, Kunihiko Hayashi wrote: > When the link is becoming up for Pro4 SoC, the kernel is stalled > due to some missing clocks and resets. > > The AVE block for Pro4 is connected to the GIO bus in the SoC. > Without its clock/reset, the access to the AVE register

[PATCH v2] base: dma-mapping: Postpone cpu addr translation on mmap()

2018-04-13 Thread Jacopo Mondi
Postpone calling virt_to_page() translation on memory locations not guaranteed to be backed by a struct page. Try first to map memory from device's coherent memory pool, then perform translation if that fails. On some architectures, specifically SH when configured with SPARSEMEM memory model, assu

Re: [PATCH v5 2/2] dt-bindings: usb: rt1711h device tree binding document

2018-04-13 Thread Rob Herring
On Mon, Apr 09, 2018 at 10:11:35AM +0800, ShuFan Lee wrote: > From: ShuFan Lee > > Add device tree binding document for Richtek RT1711H Type-C chip driver > > Signed-off-by: ShuFan Lee > --- > .../devicetree/bindings/usb/richtek,rt1711h.txt | 17 > + > 1 file changed,

INFO: rcu detected stall in vfs_rmdir

2018-04-13 Thread syzbot
Hello, syzbot hit the following crash on upstream commit 16e205cf42da1f497b10a4a24f563e6c0d574eec (Fri Apr 13 03:56:10 2018 +) Merge tag 'drm-fixes-for-v4.17-rc1' of git://people.freedesktop.org/~airlied/linux syzbot dashboard link: https://syzkaller.appspot.com/bug?extid=da69f0eccf07cdcf

Re: [PATCH 2/3] dt-bindings: interrupt-controller: New binding for Meson-AXG SoC

2018-04-13 Thread Rob Herring
On Sun, Apr 08, 2018 at 02:56:59PM +, Yixun Lan wrote: > Update the dt-binding documentation to support new compatible string > for the GPIO interrupt controller which found in Amlogic's Meson-AXG SoC. > > Signed-off-by: Yixun Lan > --- > .../devicetree/bindings/interrupt-controller/amlogic,

Re: [PATCH 17/17] perf annotate: Handle variables in 'sub', 'or' and many other instructions

2018-04-13 Thread Arnaldo Carvalho de Melo
Em Fri, Apr 13, 2018 at 09:20:43AM -0700, Andi Kleen escreveu: > On Fri, Apr 13, 2018 at 11:01:11AM -0300, Arnaldo Carvalho de Melo wrote: > > From: Arnaldo Carvalho de Melo > > Just like is done for 'mov' and others that can have as source or > > targets variables resolved by objdump, to make th

Re: [PATCH 1/3] dt-bindings: interrupt-controller: fix the double quotes

2018-04-13 Thread Rob Herring
On Sun, Apr 08, 2018 at 02:56:58PM +, Yixun Lan wrote: > The double quotes seems not ASCII type, fix it here. > > Signed-off-by: Yixun Lan > --- > .../bindings/interrupt-controller/amlogic,meson-gpio-intc.txt | 10 > +- > 1 file changed, 5 insertions(+), 5 deletions(-) Reviewed-by

Re: [PATCH v5 04/10] drivers: qcom: rpmh: add RPMH helper functions

2018-04-13 Thread Stephen Boyd
Quoting Bjorn Andersson (2018-04-10 17:01:20) > On Thu 05 Apr 09:18 PDT 2018, Lina Iyer wrote: > > > > > diff --git a/drivers/soc/qcom/rpmh.c b/drivers/soc/qcom/rpmh.c > > new file mode 100644 > > index ..e3c7491e7baf > > --- /dev/null > > +++ b/drivers/soc/qcom/rpmh.c > > @@ -0,0 +1

Re: [PATCH 2/3] dt-bindings: add binding for at91-usart in spi mode

2018-04-13 Thread Nicolas Ferre
On 13/04/2018 at 18:23, Alexandre Belloni wrote: On 13/04/2018 19:11:16+0300, Radu Pirea wrote: These are bindings for at91-usart IP in spi spi mode. There is no support for internal chip select. Only kind of chip selects available are gpio chip selects. Signed-off-by: Radu Pirea --- .../bin

Re: [PATCH RFC 2/8] mm: introduce PG_offline

2018-04-13 Thread Matthew Wilcox
On Fri, Apr 13, 2018 at 03:16:26PM +0200, David Hildenbrand wrote: > online_pages()/offline_pages() theoretically allows us to work on > sub-section sizes. This is especially relevant in the context of > virtualization. It e.g. allows us to add/remove memory to Linux in a VM in > 4MB chunks. > > W

Re: [virtio-dev] Re: [PATCH v2] virtio_balloon: export hugetlb page allocation counts

2018-04-13 Thread Jonathan Helman
On 04/13/2018 06:44 AM, Michael S. Tsirkin wrote: On Fri, Apr 13, 2018 at 03:01:11PM +0800, Jason Wang wrote: On 2018年04月12日 08:24, Jonathan Helman wrote: On 04/10/2018 08:12 PM, Jason Wang wrote: On 2018年04月10日 05:11, Jonathan Helman wrote: On 03/22/2018 07:38 PM, Jason Wang wrote:

Re: [PATCH v4 2/3] dt-bindings: power: supply: qcom_bms: Add bindings

2018-04-13 Thread Craig Tatlor
On 13 April 2018 18:08:54 BST, Craig Tatlor wrote: > > >On 13 April 2018 17:35:27 BST, Rob Herring wrote: >>On Sat, Apr 07, 2018 at 06:57:45PM +0100, Craig Tatlor wrote: >>> Add bindings for the Qualcomm Battery Monitoring system. >>> >>> Signed-off-by: Craig Tatlor >>> --- >>> .../bindings/

Re: [PATCH v4 2/3] dt-bindings: power: supply: qcom_bms: Add bindings

2018-04-13 Thread Craig Tatlor
On 13 April 2018 17:35:27 BST, Rob Herring wrote: >On Sat, Apr 07, 2018 at 06:57:45PM +0100, Craig Tatlor wrote: >> Add bindings for the Qualcomm Battery Monitoring system. >> >> Signed-off-by: Craig Tatlor >> --- >> .../bindings/power/supply/qcom_bms.txt| 93 >+++ >>

Re: [PATCH V4 2/2] mmc: sdhci-msm: support voltage pad switching

2018-04-13 Thread Doug Anderson
Hi, On Fri, Apr 6, 2018 at 2:48 AM, Vijay Viswanath wrote: > > > On 3/29/2018 4:23 AM, Doug Anderson wrote: >> >> Hi, >> >> On Wed, Mar 28, 2018 at 6:08 AM, Vijay Viswanath >> wrote: >>> >>> From: Krishna Konda >>> >>> The PADs for SD card are dual-voltage that support 3v/1.8v. Those PADs >>> h

Re: sparc/ppc/arm compat siginfo ABI regressions: sending SIGFPE via kill() returns wrong values in si_pid and si_uid

2018-04-13 Thread Dave Martin
On Fri, Apr 13, 2018 at 09:33:17AM -0700, Linus Torvalds wrote: > On Fri, Apr 13, 2018 at 2:42 AM, Russell King - ARM Linux > wrote: > > > > Yes, it does solve the problem at hand with strace - the exact patch I > > tested against 4.16 is below. > > Ok, good. > > > However, FPE_FLTUNK is not def

Re: [PATCH 1/5] random: fix crng_ready() test

2018-04-13 Thread Theodore Y. Ts'o
On Fri, Apr 13, 2018 at 03:05:01PM +0200, Stephan Mueller wrote: > > What I would like to point out that more and more folks change to > getrandom(2). As this call will now unblock much later in the boot cycle, > these systems see a significant departure from the current system behavior. > > E.

Re: [PATCH v2] block: ratelimite pr_err on IO path

2018-04-13 Thread Martin K. Petersen
Jinpu, [CC:ed the mpt3sas maintainers] The ratelimit patch is just an attempt to treat the symptom, not the cause. > Thanks for asking, we updated mpt3sas driver which enables DIX support > (prot_mask=0x7f), all disks are SATA SSDs, no DIF support. > After reboot, kernel reports the IO errors f

Re: [PATCH v1 4/7] platform: mellanox: add new ODM system types to mlx-platform

2018-04-13 Thread Darren Hart
On Tue, Mar 27, 2018 at 10:02:04AM +, Vadim Pasternak wrote: > Patch adds new ODM systems, matched according to DMI_BOARD_NAME. General nit. When writing your messages, please use the imperative (command) form. Rather than: "Patch adds" or "It changes" use the same form you use in the subject

[PATCH v2 3/3] usb: dwc3: core: Suspend PHYs on runtime suspend in host mode

2018-04-13 Thread Manu Gautam
Some PHY drivers (e.g. for Qualcomm QUSB2 and QMP PHYs) support runtime PM to reduce PHY power consumption during bus_suspend. Add changes to let core auto-suspend PHYs on host bus-suspend using GUSB2PHYCFG register if needed for a platform. Also perform PHYs runtime suspend/resume and let platform

[PATCH v2 2/3] usb: dwc3: Add Qualcomm DWC3 glue driver

2018-04-13 Thread Manu Gautam
DWC3 controller on Qualcomm SOCs has a Qscratch wrapper. Some of its uses are described below resulting in need to have a separate glue driver instead of using dwc3-of-simple: - It exposes register interface to override vbus-override and lane0-pwr-present signals going to hardware. These mus

[PATCH v2 1/3] dt-bindings: usb: Update documentation for Qualcomm DWC3 driver

2018-04-13 Thread Manu Gautam
Existing documentation has lot of incorrect information as it was originally added for a driver that no longer exists. Signed-off-by: Manu Gautam --- .../devicetree/bindings/usb/qcom,dwc3.txt | 78 -- 1 file changed, 57 insertions(+), 21 deletions(-) diff --git a/Do

[PATCH v2 0/3] usb: dwc3: support for Qualcomm DWC3 glue

2018-04-13 Thread Manu Gautam
Add separate dwc3-qcom glue driver for Qualcomm SOCs having dwc3 core. It is needed to support peripheral mode. Patches also add support to invoke PHY runtime PM functions on host mode bus-suspend. Changes since v1: - Move dwc3 core register accesses from glue driver to dwc3 core as per review

Re: [PATCH v2 2/3] Documentation/i2c: sync docs with current state of i2c-tools

2018-04-13 Thread Wolfram Sang
On Fri, Apr 13, 2018 at 09:44:04AM -0700, Sam Hansen wrote: > Currently, Documentation/i2c/dev-interface describes the use of > i2c_smbus_* helper routines as static inlined functions provided by > linux/i2c-dev.h. Work has been done to refactor the linux/i2c-dev.h file > in the i2c-tools project

Re: [PATCH v2 1/3] Documentation/i2c: whitespace cleanup

2018-04-13 Thread Wolfram Sang
On Fri, Apr 13, 2018 at 09:44:03AM -0700, Sam Hansen wrote: > This strips trailing whitespace in Documentation/i2c/dev-interface. > > Signed-off-by: Sam Hansen Looks good to me. But please send new series as seperate threads. signature.asc Description: PGP signature

Re: [PATCH v2 3/3] Documentation/i2c: adopt kernel commenting style in examples

2018-04-13 Thread Wolfram Sang
> - int adapter_nr = 2; /* probably dynamically determined */ Such comments are actually OK. > -/* ERROR HANDLING; you can check errno to see what went wrong */ Such as well. > - /* Using I2C Write, equivalent of > - i2c_smbus_write_word_data(file, reg, 0x6543) */ > + /* > + * Usi

<    1   2   3   4   5   6   7   >