[PATCH 4.4 02/24] tpm: self test failure should not cause suspend to fail

2018-06-12 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Chris Chiu commit 0803d7befa15cab5717d667a97a66214d2a4c083 upstream. The Acer Acer Veriton X4110G has a TPM device detected as: tpm_tis 00:0b: 1.2 TPM (device-id 0xFE, rev-id 71) After the f

Re: [PATCH 1/4] Staging:rtl8192e Replace function names by using __func__ identifier

2018-06-12 Thread Andy Shevchenko
On Fri, Jun 8, 2018 at 7:32 AM, Janani Sankara Babu wrote: > This patch is created to solve the warning shown by checkpatch script > Prefer using '"%s...", __func__' to using ', this function's name, > in a string Have you even tried to compile it? NAK > > Signed-off-by: Janani Sankara Babu >

Re: [PATCH v6 3/4] powerpc/lib: implement strlen() in assembly

2018-06-12 Thread Christophe LEROY
Le 12/06/2018 à 16:53, Segher Boessenkool a écrit : On Tue, Jun 12, 2018 at 09:14:53AM +, Christophe Leroy wrote: --- Not tested on PPC64. It won't be acceptable until that happens. It also is likely quite bad performance on all 64-bit CPUs from the last fifteen years or so. Or you di

Re: [PATCH] drivers/of: Add devm_of_iomap()

2018-06-12 Thread Andy Shevchenko
On Tue, Jun 12, 2018 at 1:28 PM, Benjamin Herrenschmidt wrote: > On Tue, 2018-06-12 at 11:35 +0300, Andy Shevchenko wrote: >> On Tue, Jun 12, 2018 at 3:01 AM, Benjamin Herrenschmidt >> wrote: >> > There are still quite a few cases where a device might want to get to a >> > different node of the d

[PATCH 4.4 18/24] packet: fix reserve calculation

2018-06-12 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Willem de Bruijn [ Upstream commit 9aad13b087ab0a588cd68259de618f100053360e ] Commit b84bbaf7a6c8 ("packet: in packet_snd start writing at link layer allocation") ensures that packet_snd always

[PATCH 4.4 14/24] isdn: eicon: fix a missing-check bug

2018-06-12 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Wenwen Wang [ Upstream commit 6009d1fe6ba3bb2dab55921da60465329cc1cd89 ] In divasmain.c, the function divas_write() firstly invokes the function diva_xdi_open_adapter() to open the adapter that

[PATCH 4.4 12/24] ip6mr: only set ip6mr_table from setsockopt when ip6mr_new_table succeeds

2018-06-12 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Sabrina Dubroca [ Upstream commit 848235edb5c93ed086700584c8ff64f6d7fc778d ] Currently, raw6_sk(sk)->ip6mr_table is set unconditionally during ip6_mroute_setsockopt(MRT6_TABLE). A subsequent at

Re: [PATCH V6] powercap/drivers/idle_injection: Add an idle injection framework

2018-06-12 Thread Daniel Lezcano
On 12/06/2018 17:58, Peter Zijlstra wrote: > On Tue, Jun 12, 2018 at 04:37:17PM +0200, Daniel Lezcano wrote: >> On 12/06/2018 16:06, Peter Zijlstra wrote: >>> On Tue, Jun 12, 2018 at 03:02:14PM +0200, Daniel Lezcano wrote: On 12/06/2018 14:52, Peter Zijlstra wrote: > In this case, you can

[PATCH 4.4 13/24] ipv4: remove warning in ip_recv_error

2018-06-12 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Willem de Bruijn [ Upstream commit 730c54d59403658a62af6517338fa8d4922c1b28 ] A precondition check in ip_recv_error triggered on an otherwise benign race. Remove the warning. The warning trigg

[PATCH 4.4 01/24] tpm: do not suspend/resume if power stays on

2018-06-12 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Enric Balletbo i Serra commit b5d0ebc99bf5d0801a5ecbe958caa3d68b8eaee8 upstream. The suspend/resume behavior of the TPM can be controlled by setting "powered-while-suspended" in the DTS. This i

[PATCH 4.9 16/31] net/packet: refine check for priv area size

2018-06-12 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Eric Dumazet [ Upstream commit eb73190f4fbeedf762394e92d6a4ec9ace684c88 ] syzbot was able to trick af_packet again [1] Various commits tried to address the problem in the past, but failed to t

[PATCH 4.9 10/31] enic: set DMA mask to 47 bit

2018-06-12 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Govindarajulu Varadarajan [ Upstream commit 322eaa06d55ebc1402a4a8d140945cff536638b4 ] In commit 624dbf55a359b ("driver/net: enic: Try DMA 64 first, then failover to DMA") DMA mask was changed

[PATCH 4.9 14/31] kcm: Fix use-after-free caused by clonned sockets

2018-06-12 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Kirill Tkhai [ Upstream commit eb7f54b90bd8f469834c5e86dcf72ebf9a629811 ] (resend for properly queueing in patchwork) kcm_clone() creates kernel socket, which does not take net counter. Thus,

[PATCH 4.9 12/31] ipv4: remove warning in ip_recv_error

2018-06-12 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Willem de Bruijn [ Upstream commit 730c54d59403658a62af6517338fa8d4922c1b28 ] A precondition check in ip_recv_error triggered on an otherwise benign race. Remove the warning. The warning trigg

Re: [PATCH 2/6] PCI: iproc: Add INTx support with better modeling

2018-06-12 Thread Ray Jui
On 6/12/2018 1:52 AM, p...@codeaurora.org wrote: On 2018-05-30 03:28, Ray Jui wrote: Add PCIe legacy interrupt INTx support to the iProc PCIe driver by modeling it with its own IRQ domain. All 4 interrupts INTA, INTB, INTC, INTD share the same interrupt line connected to the GIC in the system

Re: [PATCH] mmc: dw_mmc should depend on COMMON_CLK

2018-06-12 Thread Andy Shevchenko
+Cc: Geert On Wed, Jun 6, 2018 at 9:43 PM, Corentin Labbe wrote: > This patch fix the following build failure on m68k: > ERROR: "clk_set_rate" [drivers/mmc/host/dw_mmc.ko] undefined! > > Signed-off-by: Corentin Labbe > --- > drivers/mmc/host/Kconfig | 2 +- > 1 file changed, 1 insertion(+), 1 d

[PATCH v7 0/4] Introduce GENI SE Controller Driver

2018-06-12 Thread Karthikeyan Ramasubramanian
Generic Interface (GENI) firmware based Qualcomm Universal Peripheral (QUP) Wrapper is a next generation programmable module for supporting a wide range of serial interfaces like UART, SPI, I2C, I3C, etc. A single QUP module can provide upto 8 Serial Interfaces using its internal Serial Engines (SE

[PATCH v7 2/4] MAINTAINERS: Add Qualcomm Generic Interface I2C driver maintainer

2018-06-12 Thread Karthikeyan Ramasubramanian
Add Alok Chauhan and myself as maintainers for Qualcomm GENI I2C master controller driver. Signed-off-by: Karthikeyan Ramasubramanian --- MAINTAINERS | 8 1 file changed, 8 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 868be4a..08a6b6c 100644 --- a/MAINTAINERS +++ b/MAINTA

[PATCH v7 4/4] arm64: dts: sdm845: Add support for an instance of I2C controller

2018-06-12 Thread Karthikeyan Ramasubramanian
Add one instance of GENI based I2C master controller to enable testing I2C driver using EEPROM slave. Signed-off-by: Karthikeyan Ramasubramanian Reviewed-by: Douglas Anderson --- arch/arm64/boot/dts/qcom/sdm845-mtp.dts | 19 +++ arch/arm64/boot/dts/qcom/sdm845.dtsi| 28 +

[PATCH v7 1/4] i2c: i2c-qcom-geni: Add bus driver for the Qualcomm GENI I2C controller

2018-06-12 Thread Karthikeyan Ramasubramanian
This bus driver supports the GENI based i2c hardware controller in the Qualcomm SOCs. The Qualcomm Generic Interface (GENI) is a programmable module supporting a wide range of serial interfaces including I2C. The driver supports FIFO mode and DMA mode of transfer and switches modes dynamically depe

Re: [PATCH 4.9 00/31] 4.9.108-stable review

2018-06-12 Thread Nathan Chancellor
On Tue, Jun 12, 2018 at 06:46:03PM +0200, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 4.9.108 release. > There are 31 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 v2 09/11] misc: throttler: Add core support for non-thermal throttling

2018-06-12 Thread Matthias Kaehlcke
Hi, On Mon, Jun 11, 2018 at 06:49:13PM -0700, Brian Norris wrote: > Hi! > > A few comments, but I didn't get to finish a thorough review yet. > > > On Thu, Jun 07, 2018 at 11:12:12AM -0700, Matthias Kaehlcke wrote: > > The purpose of the throttler is to provide support for non-thermal > > throt

Re: [PATCH 3/3] riscv: fix __user annotation for __copy_user()

2018-06-12 Thread Palmer Dabbelt
On Mon, 11 Jun 2018 20:00:08 PDT (-0700), luc.vanoostenr...@gmail.com wrote: On Mon, Jun 11, 2018 at 12:01:37PM -0700, Palmer Dabbelt wrote: On Sat, 09 Jun 2018 14:42:12 PDT (-0700), luc.vanoostenr...@gmail.com wrote: > On Sat, Jun 09, 2018 at 01:00:08PM -0700, Palmer Dabbelt wrote: > > On Fri,

[PATCH v7 3/4] arm64: dts: sdm845: Add serial console support

2018-06-12 Thread Karthikeyan Ramasubramanian
From: Rajendra Nayak Add the qup uart node and geni se instance needed to support the serial console on the MTP. Signed-off-by: Rajendra Nayak Signed-off-by: Karthikeyan Ramasubramanian --- arch/arm64/boot/dts/qcom/sdm845-mtp.dts | 41 + arch/arm64/boot/dts/qco

Quilt vs gmail (Was: [PATCH 0/3] sched/swait: Convert to full exclusive mode)

2018-06-12 Thread Peter Zijlstra
On Tue, Jun 12, 2018 at 09:47:34AM -0700, Linus Torvalds wrote: > I do note how quilt emails are really hard to read, because that: > > Content-Disposition: inline > > makes gmail think it's flowed. > > Which works horribly badly for patches, surprise surprise. > > So I really wish quilt w

Re: [PATCH v6] pidns: introduce syscall translate_pid

2018-06-12 Thread Nagarathnam Muthusamy
On 06/01/2018 12:18 PM, Konstantin Khlebnikov wrote: Each process have different pids, one for each pid namespace it belongs. When interaction happens within single pid-ns translation isn't required. More complicated scenarios needs special handling. For example: - reading pid-files or logs w

Re: [v2,4/6] ARM: drop no-thumb-interwork in EABI mode

2018-06-12 Thread Guenter Roeck
On Sun, Mar 25, 2018 at 08:09:57PM +0200, Stefan Agner wrote: > According to GCC documentation -m(no-)thumb-interwork is > meaningless in AAPCS configurations. Also clang does not It appears that this is only correct for recent versions of gcc. With gcc 4.9.2, this patch causes the qemu collie em

Re: [PATCH v2 2/3] mm, memcg: propagate memory effective protection on setting memory.min/low

2018-06-12 Thread Roman Gushchin
On Tue, Jun 12, 2018 at 11:52:42AM -0400, Johannes Weiner wrote: > On Mon, Jun 11, 2018 at 10:54:17AM -0700, Roman Gushchin wrote: > > Explicitly propagate effective memory min/low values down by the tree. > > > > If there is the global memory pressure, it's not really necessary. > > Effective mem

Re: [v2,4/6] ARM: drop no-thumb-interwork in EABI mode

2018-06-12 Thread Stefan Agner
On 12.06.2018 19:19, Guenter Roeck wrote: > On Sun, Mar 25, 2018 at 08:09:57PM +0200, Stefan Agner wrote: >> According to GCC documentation -m(no-)thumb-interwork is >> meaningless in AAPCS configurations. Also clang does not > > It appears that this is only correct for recent versions of gcc. >

Re: [PATCH v6 00/29] FPGA Device Feature List (DFL) Device Drivers

2018-06-12 Thread Alan Tull
On Tue, Jun 12, 2018 at 5:10 AM, Wu Hao wrote: > Hi All, > > Here is v6 patch-series adding drivers for FPGA DFL devices. I pushed this patchset to a branch on my linux-fpga kernel.org git repo for the robots to test. Alan > > This patch series provides a common framework to support FPGA Device

Re: [PATCH V6] powercap/drivers/idle_injection: Add an idle injection framework

2018-06-12 Thread Peter Zijlstra
On Tue, Jun 12, 2018 at 07:02:57PM +0200, Daniel Lezcano wrote: > Mmh, it is unclear for me if the park() vs wakeup() can happen at the > same time. > > If the park() function is called, that means the hotplug is allowed. No, it means we're inside hot-un-plug, but that doesn't stop the hrtimer fr

Re: [PATCH v2 2/2] tpm: add support for nonblocking operation

2018-06-12 Thread Tadeusz Struk
On 06/11/2018 07:53 PM, kbuild test robot wrote: > Hi Tadeusz, > # save the attached .config to linux build tree > make ARCH=i386 > > All error/warnings (new ones prefixed by >>): > >>> drivers/char//tpm/tpm-dev-common.c:223:1: warning: data definition has no >>> type or storage

Re: [PATCH] drivers/of: Add devm_of_iomap()

2018-06-12 Thread Rob Herring
On Mon, Jun 11, 2018 at 6:01 PM, Benjamin Herrenschmidt wrote: > There are still quite a few cases where a device might want to get to a > different node of the device-tree, obtain the resources and map them. > > Drivers doing that currently open code the whole thing, which is error > proe. > > We

Re: [GIT PULL] Please pull NFS client changes for 4.18

2018-06-12 Thread Linus Torvalds
On Tue, Jun 12, 2018 at 6:39 AM Trond Myklebust wrote: > > NeilBrown (4): > rculist: add list_for_each_entry_from_rcu() Oh christ, people. Not another one of these. We need to start having a real rule in place where people DO NOT PLAY GAMES WITH RCU LISTS. Adding Paul McKenney to the list

Re: [PATCH v2 3/5] PCI: iproc: Disable MSI parsing in certain PAXC blocks

2018-06-12 Thread poza
On 2018-06-12 22:28, Ray Jui wrote: On 6/12/2018 1:29 AM, p...@codeaurora.org wrote: On 2018-06-12 05:51, Ray Jui wrote: The internal MSI parsing logic in certain revisions of PAXC root complexes does not work properly and can casue corruptions on the writes. They need to be disabled Signed-of

[PATCH 3.18 07/21] fix io_destroy()/aio_complete() race

2018-06-12 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: Al Viro commit 4faa99965e027cc057c5145ce45fa772caa04e8d upstream. If io_destroy() gets to cancelling everything that can be cancelled and gets to kiocb_cancel() calling the function driver has

Re: [intel-sgx-kernel-dev] [PATCH v11 13/13] intel_sgx: in-kernel launch enclave

2018-06-12 Thread Neil Horman
On Mon, Jun 11, 2018 at 09:55:29PM -0700, Andy Lutomirski wrote: > On Mon, Jun 11, 2018 at 4:52 AM Neil Horman wrote: > > > > On Sun, Jun 10, 2018 at 10:17:13PM -0700, Andy Lutomirski wrote: > > > > On Jun 9, 2018, at 10:39 PM, Andy Lutomirski wrote: > > > > > > > > On Fri, Jun 8, 2018 at 10:32 A

Re: [PATCH 4.9 00/31] 4.9.108-stable review

2018-06-12 Thread Greg Kroah-Hartman
On Tue, Jun 12, 2018 at 10:10:35AM -0700, Nathan Chancellor wrote: > On Tue, Jun 12, 2018 at 06:46:03PM +0200, Greg Kroah-Hartman wrote: > > This is the start of the stable review cycle for the 4.9.108 release. > > There are 31 patches in this series, all will be posted as a response > > to this on

[PATCH 5/5] sched: SIS_CORE to disable idle core search

2018-06-12 Thread subhra mazumdar
Use SIS_CORE to disable idle core search. For some workloads select_idle_core becomes a scalability bottleneck, removing it improves throughput. Also there are workloads where disabling it can hurt latency, so need to have an option. Signed-off-by: subhra mazumdar --- kernel/sched/fair.c | 8 +++

[RFC/RFT V2 PATCH 0/5] Improve scheduler scalability for fast path

2018-06-12 Thread subhra mazumdar
Current select_idle_sibling first tries to find a fully idle core using select_idle_core which can potentially search all cores and if it fails it finds any idle cpu using select_idle_cpu. select_idle_cpu can potentially search all cpus in the llc domain. This doesn't scale for large llc domains an

[PATCH 1/5] sched: limit cpu search in select_idle_cpu

2018-06-12 Thread subhra mazumdar
Put upper and lower limit on cpu search of select_idle_cpu. The lower limit is amount of cpus in a core while upper limit is twice that. This ensures for any architecture we will usually search beyond a core. The upper limit also helps in keeping the search cost low and constant. Signed-off-by: su

[PATCH 2/5] sched: introduce per-cpu var next_cpu to track search limit

2018-06-12 Thread subhra mazumdar
Introduce a per-cpu variable to track the limit upto which idle cpu search was done in select_idle_cpu(). This will help to start the search next time from there. This is necessary for rotating the search window over entire LLC domain. Signed-off-by: subhra mazumdar --- kernel/sched/core.c | 2

[PATCH 3/5] sched: rotate the cpu search window for better spread

2018-06-12 Thread subhra mazumdar
Rotate the cpu search window for better spread of threads. This will ensure an idle cpu will quickly be found if one exists. Signed-off-by: subhra mazumdar --- kernel/sched/fair.c | 10 -- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/kernel/sched/fair.c b/kernel/sched/fa

[PATCH 4/5] sched: add sched feature to disable idle core search

2018-06-12 Thread subhra mazumdar
Add a new sched feature SIS_CORE to have an option to disable idle core search (select_idle_core). Signed-off-by: subhra mazumdar --- kernel/sched/features.h | 1 + 1 file changed, 1 insertion(+) diff --git a/kernel/sched/features.h b/kernel/sched/features.h index 85ae848..de15733 100644 --- a/

[PATCH v3 1/2] tpm: add ptr to the tpm_space struct to file_priv

2018-06-12 Thread Tadeusz Struk
Add a ptr to struct tpm_space to the file_priv to have an easy access to it in the async job without the need to allocate memory. This also allows to consolidate of the write operations for the two interfaces. Signed-off-by: Tadeusz Struk --- drivers/char/tpm/tpm-dev-common.c |8 +--- dr

[PATCH v3 2/2] tpm: add support for nonblocking operation

2018-06-12 Thread Tadeusz Struk
Currently the TPM driver only supports blocking calls, which doesn't allow asynchronous IO operations to the TPM hardware. This patch changes it and adds support for nonblocking write and a new poll function to enable applications, which want to take advantage of this. Signed-off-by: Tadeusz Struk

[PATCH v3 0/2] tpm: add support for nonblocking operation

2018-06-12 Thread Tadeusz Struk
The TCG SAPI specification [1] defines a set of functions, which allows applications to use the TPM device in either blocking or non-blocking fashion. Each command defined by the specification has a corresponding Tss2_Sys__Prepare() and Tss2_Sys__Complete() call, which together with Tss2_Sys_Execut

[PATCH] mm, swap: fix swap_count comment about nonexistent SWAP_HAS_CONT

2018-06-12 Thread Daniel Jordan
570a335b8e22 ("swap_info: swap count continuations") introduces COUNT_CONTINUED but refers to it incorrectly as SWAP_HAS_CONT in a comment in swap_count. Fix it. Fixes: 570a335b8e22 ("swap_info: swap count continuations") Signed-off-by: Daniel Jordan Cc: "Huang, Ying" Cc: Hugh Dickins --- mm/

Re: [GIT PULL] Please pull NFS client changes for 4.18

2018-06-12 Thread Linus Torvalds
On Tue, Jun 12, 2018 at 10:42 AM Linus Torvalds wrote: > > So could we please have a cursor entry for RCU walking, and actually > have a agreed-upon way to do this? Maybe even using the low bit in the > "next" field to mark a cursor entry generically - the same way we > already do for the HEAD fie

Re: [GIT PULL] Please pull NFS client changes for 4.18

2018-06-12 Thread Linus Torvalds
Final note (for now) on this: I've merged the nfs code, but I really am obviously not happy with these crazy random ad-hoc cursor-not-cursor list games. Linus

Re: [PATCH v5 1/3] of: cache phandle nodes to reduce cost of of_find_node_by_phandle()

2018-06-12 Thread Alan Tull
On Sun, Mar 4, 2018 at 6:14 PM, wrote: Hi Frank, I'm investigating a refcount use-after-free warning that happens after overlays are applied, removed, reapplied a few (typically three) times (see below). This is new in v4.17, didn't happen in v4.16. As I was investigating I found that rebuild

Re: [PATCH 4.4 00/24] 4.4.137-stable review

2018-06-12 Thread Nathan Chancellor
On Tue, Jun 12, 2018 at 06:51:44PM +0200, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 4.4.137 release. > There are 24 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 v2 1/2] dt-bindings: arm: mediatek: Document Mediatek X20 Development Board

2018-06-12 Thread Rob Herring
On Tue, Jun 05, 2018 at 10:04:41PM +0530, Manivannan Sadhasivam wrote: > Document Mediatek X20 Development Board which is a 96Boards Consumer > Edition platform based on MT6797 SoC. > > Signed-off-by: Manivannan Sadhasivam > --- > Documentation/devicetree/bindings/arm/mediatek.txt | 3 +++ > 1 f

Re: [PATCHv4 1/3] scripts: Preprocess module-common.lds

2018-06-12 Thread Laura Abbott
help improve the system] url: https://github.com/0day-ci/linux/commits/Laura-Abbott/scripts-Preprocess-module-common-lds/20180612-083632 config: i386-randconfig-a1-201823 (attached as .config) compiler: gcc-4.9 (Debian 4.9.4-2) 4.9.4 reproduce: # save the attached .config to linux

Re: [PATCH 3.18 00/21] 3.18.113-stable review

2018-06-12 Thread Nathan Chancellor
On Tue, Jun 12, 2018 at 06:51:57PM +0200, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 3.18.113 release. > There are 21 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 kno

Re: [PATCH 3/3] riscv: fix __user annotation for __copy_user()

2018-06-12 Thread Luc Van Oostenryck
On Tue, Jun 12, 2018 at 7:12 PM, Palmer Dabbelt wrote: > On Mon, 11 Jun 2018 20:00:08 PDT (-0700), luc.vanoostenr...@gmail.com wrote: >> On Mon, Jun 11, 2018 at 12:01:37PM -0700, Palmer Dabbelt wrote: >>> >>> OK, I'll try and figure out what's going on. We've had a handful of >>> headaches trying

Re: [PATCH 3.18 00/21] 3.18.113-stable review

2018-06-12 Thread Harsh Shandilya
On 12 June 2018 10:21:57 PM IST, Greg Kroah-Hartman wrote: >This is the start of the stable review cycle for the 3.18.113 release. >There are 21 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. > >Respo

Re: [PATCH v2 2/2] dt-bindings: iio: dac: Add docs for AD5758 DAC

2018-06-12 Thread Rob Herring
On Sun, Jun 10, 2018 at 02:59:23PM +0100, Jonathan Cameron wrote: > On Thu, 7 Jun 2018 16:11:05 +0300 > Stefan Popa wrote: > > > Signed-off-by: Stefan Popa > Hmm. The first part number I've ever googled where the top hit has > been a flight number. > Rio de Janeiro to Campinas is apparently on

Re: [PATCH] ARM64: dts: rockchip: add some pins to rk3399

2018-06-12 Thread klaus . goger
Hi Randy, > On 12.06.2018, at 17:25, Randy Li wrote: > > Those pins would be used by many boards. > > Signed-off-by: Randy Li > --- > arch/arm64/boot/dts/rockchip/rk3399.dtsi | 97 +++- > 1 file changed, 83 insertions(+), 14 deletions(-) > > diff --git a/arch/arm64/

Re: [PATCH 14/39] ovl: stack file ops

2018-06-12 Thread Al Viro
On Tue, Jun 12, 2018 at 11:24:39AM +0200, Miklos Szeredi wrote: > > Note that anything that uses file_dentry() anywhere near ->open(), > > ->read_iter() or ->write_iter() is an instant trouble with your scheme. > > Such as > > int nfs_open(struct inode *inode, struct file *filp) > > { > >

Re: [PATCH v7 3/5] dt-bindings: timer: add i.MX EPIT timer binding

2018-06-12 Thread Rob Herring
On Mon, Jun 11, 2018 at 05:49:59PM +0200, Clément Péron wrote: > From: Clément Peron > > Add devicetree binding document for NXP's i.MX SoC specific > EPIT timer driver. > > Signed-off-by: Clément Peron > Reviewed-by: Vladimir Zapolskiy > --- > .../devicetree/bindings/timer/fsl,imxepit.txt |

Re: [PATCH v7 2/4] random: Return nbytes filled from hw RNG

2018-06-12 Thread Steven Rostedt
On Tue, 12 Jun 2018 11:39:56 +0300 Andy Shevchenko wrote: > On Tue, Jun 12, 2018 at 3:39 AM, Tobin C. Harding wrote: > > Currently the function get_random_bytes_arch() has return value 'void'. > > If the hw RNG fails we currently fall back to using get_random_bytes(). > > This defeats the purpos

Re: [PATCH 14/39] ovl: stack file ops

2018-06-12 Thread Al Viro
On Tue, Jun 12, 2018 at 07:24:23PM +0100, Al Viro wrote: > On Tue, Jun 12, 2018 at 11:24:39AM +0200, Miklos Szeredi wrote: > > > > Note that anything that uses file_dentry() anywhere near ->open(), > > > ->read_iter() or ->write_iter() is an instant trouble with your scheme. > > > Such as > > > in

Re: [PATCH] arm64: dts: freescale: Update to use SPDX identifiers

2018-06-12 Thread Fabio Estevam
Hi Li, On Tue, Jun 12, 2018 at 3:28 PM, Li Yang wrote: > diff --git a/arch/arm64/boot/dts/freescale/fsl-ls1012a-frdm.dts > b/arch/arm64/boot/dts/freescale/fsl-ls1012a-frdm.dts > index 7286b1e..f90c040 100644 > --- a/arch/arm64/boot/dts/freescale/fsl-ls1012a-frdm.dts > +++ b/arch/arm64/boot/dts/

Re: [PATCH v4 1/6] mtd: rawnand: add Reed-Solomon error correction algorithm

2018-06-12 Thread Rob Herring
On Mon, Jun 11, 2018 at 10:52:19PM +0200, Stefan Agner wrote: > Add Reed-Solomon (RS) to the enumeration of ECC algorithms. > > Signed-off-by: Stefan Agner > Reviewed-by: Boris Brezillon > --- > Documentation/devicetree/bindings/mtd/nand.txt | 2 +- Acked-by: Rob Herring > drivers/mtd/nand/r

[PATCH] arm64: dts: freescale: Update to use SPDX identifiers

2018-06-12 Thread Li Yang
Replace license text with corresponding SPDX identifiers and update the format of existing SPDX identifiers to follow the new guideline Documentation/process/license-rules.rst. Note that some of the files mentioned X11 license previously but the license text actually matches MIT license. Signed-o

Re: [GIT PULL] KVM changes for 4.18 merge window

2018-06-12 Thread Linus Torvalds
On Tue, Jun 12, 2018 at 7:03 AM Paolo Bonzini wrote: > > git://git.kernel.org/pub/scm/virt/kvm/kvm.git tags/for-linus Grr. Several tedious conflicts. I fixed them all up, and they all looked trivial, but since most of them were to ARM cases, I couldn't even test the end result. I suspect the '

Re: [PATCH v7 3/4] vsprintf: Use hw RNG for ptr_key

2018-06-12 Thread Steven Rostedt
On Tue, 12 Jun 2018 10:39:13 +1000 "Tobin C. Harding" wrote: > Currently we must wait for enough entropy to become available before > hashed pointers can be printed. We can remove this wait by using the > hw RNG if available. > > Use hw RNG to get keying material. > > Cc: Steven Rostedt (VMwar

Re: [PATCH 4.4 051/268] asm-generic: provide generic_pmdp_establish()

2018-06-12 Thread Greg Kroah-Hartman
On Mon, Jun 11, 2018 at 01:55:17PM +0100, Ben Hutchings wrote: > On Mon, 2018-05-28 at 12:00 +0200, Greg Kroah-Hartman wrote: > > 4.4-stable review patch.  If anyone has any objections, please let me know. > > > > -- > > > > From: "Kirill A. Shutemov" > > > > [ Upstream commit c

Re: [PATCH 4.4 00/24] 4.4.137-stable review

2018-06-12 Thread Greg Kroah-Hartman
On Tue, Jun 12, 2018 at 11:17:25AM -0700, Nathan Chancellor wrote: > On Tue, Jun 12, 2018 at 06:51:44PM +0200, Greg Kroah-Hartman wrote: > > This is the start of the stable review cycle for the 4.4.137 release. > > There are 24 patches in this series, all will be posted as a response > > to this on

[PATCH] ubifs: Fix memory leak in lprobs self-check

2018-06-12 Thread Richard Weinberger
Allocate the buffer after we return early. Otherwise memory is being leaked. Cc: Fixes: 1e51764a3c2a ("UBIFS: add new flash file system") Signed-off-by: Richard Weinberger --- fs/ubifs/lprops.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/fs/ubifs/lprops.c b/fs/ub

Re: [PATCH 3.18 00/21] 3.18.113-stable review

2018-06-12 Thread Greg Kroah-Hartman
On Tue, Jun 12, 2018 at 11:50:36PM +0530, Harsh Shandilya wrote: > On 12 June 2018 10:21:57 PM IST, Greg Kroah-Hartman > wrote: > >This is the start of the stable review cycle for the 3.18.113 release. > >There are 21 patches in this series, all will be posted as a response > >to this one. If an

Re: [PATCH] arm64: dts: freescale: Update to use SPDX identifiers

2018-06-12 Thread Li Yang
On Tue, Jun 12, 2018 at 1:32 PM, Fabio Estevam wrote: > Hi Li, > > On Tue, Jun 12, 2018 at 3:28 PM, Li Yang wrote: > >> diff --git a/arch/arm64/boot/dts/freescale/fsl-ls1012a-frdm.dts >> b/arch/arm64/boot/dts/freescale/fsl-ls1012a-frdm.dts >> index 7286b1e..f90c040 100644 >> --- a/arch/arm64/boo

Re: [PATCH v2] ARM: dts: BCM5301X: Make usb3 phy use mdio phy driver

2018-06-12 Thread Florian Fainelli
On Mon, 9 Apr 2018 18:31:53 -0400, Vivek Unune wrote: > Currently, usb3 phy in bcm5301x.dtsi uses platform driver which > requires register range "ccb-mii" <0x18003000 0x1000>. This range > overlaps with mdio cmd and param registers (<0x18003000 0x8>). > Essentially, the platform driver partly ac

Re: [patch V5 01/11] Documentation: Add license-rules.rst to describe how to properly identify file licenses

2018-06-12 Thread Yang Li
On Thu, Dec 28, 2017 at 4:17 PM, Thomas Gleixner wrote: > On Thu, 28 Dec 2017, Thomas Gleixner wrote: > > Sorry for the spam. I somehow missed to refresh the patch before generating > the mbox. Find below the correct version of that one which has ALL braces > removed which we don't need. Hi Thoma

[PATCH v4 9/9] x86: jump-labels: use macros instead of inline assembly

2018-06-12 Thread Nadav Amit
Use assembly macros for jump-labels and call them from inline assembly. This not only makes the code more readable, but also improves compilation decision, specifically inline decisions which GCC base on the number of new lines in inline assembly. As a result the code size is slightly increased.

Re: [PATCH v3 6/7] soc: qcom: Add RPMh Power domain driver

2018-06-12 Thread Rob Herring
On Tue, Jun 12, 2018 at 10:10:51AM +0530, Rajendra Nayak wrote: > The RPMh Power domain driver aggregates the corner votes from various > consumers for the ARC resources and communicates it to RPMh. > > We also add data for all power domains on sdm845 SoC as part of the patch. > The driver can be

[PATCH v4 8/9] x86: cpufeature: use macros instead of inline assembly

2018-06-12 Thread Nadav Amit
Use assembly macros for static_cpu_has() and call them from inline assembly. This not only makes the code more readable, but also improves compilation decision, specifically inline decisions which GCC base on the number of new lines in inline assembly. The patch slightly increases the kernel size

[PATCH v4 1/9] Makefile: Prepare for using macros for inline asm

2018-06-12 Thread Nadav Amit
Using macros for inline assembly improves both readability and compilation decisions that are distorted by big assembly blocks that use alternative sections. Compile macros.S and use it to assemble all C files. Currently, only x86 will use it. Cc: Masahiro Yamada Cc: Michal Marek Cc: Thomas Glei

[PATCH v4 0/9] x86: macrofying inline asm for better compilation

2018-06-12 Thread Nadav Amit
This patch-set deals with an interesting yet stupid problem: kernel code that does not get inlined despite its simplicity. There are several causes for this behavior: "cold" attribute on __init, different function optimization levels; conditional constant computations based on __builtin_constant_p(

[PATCH v4 5/9] x86: bug: prevent gcc distortions

2018-06-12 Thread Nadav Amit
GCC considers the number of statements in inlined assembly blocks, according to new-lines and semicolons, as an indication to the cost of the block in time and space. This data is distorted by the kernel code, which puts information in alternative sections. As a result, the compiler may perform inc

[PATCH v4 6/9] x86: prevent inline distortion by paravirt ops

2018-06-12 Thread Nadav Amit
GCC considers the number of statements in inlined assembly blocks, according to new-lines and semicolons, as an indication to the cost of the block in time and space. This data is distorted by the kernel code, which puts information in alternative sections. As a result, the compiler may perform inc

Re: [PATCH v2 10/11] dt-bindings: misc: add bindings for cros_ec_throttler

2018-06-12 Thread Rob Herring
On Thu, Jun 07, 2018 at 11:12:13AM -0700, Matthias Kaehlcke wrote: > The cros_ec_throttler monitors events from the Chrome OS Embedded > Controller to throttle the system if needed, using the mechanisms > provided by the throttler core. > > Signed-off-by: Matthias Kaehlcke > --- > Changes in v2:

[PATCH v4 3/9] x86: refcount: prevent gcc distortions

2018-06-12 Thread Nadav Amit
GCC considers the number of statements in inlined assembly blocks, according to new-lines and semicolons, as an indication to the cost of the block in time and space. This data is distorted by the kernel code, which puts information in alternative sections. As a result, the compiler may perform inc

[PATCH v4] staging: comedi: Improved readability of function comedi_nsamples_left.

2018-06-12 Thread Chris Opperman
Changes since v3: a) Reverted u64 to unsigned long long and u32 to unsigned int. b) Added patch versioning. c) Changed type of scans_left to unsigned long long to avoid cast. d) Clarified and updated changelog. >8---8< Improve re

Re: [PATCH v2 1/4] dt-bindings: add bindings for px30 clock controller

2018-06-12 Thread Rob Herring
On Fri, Jun 08, 2018 at 02:31:56PM +0800, Elaine Zhang wrote: > Add devicetree bindings for Rockchip cru which found on > Rockchip SoCs. > > Signed-off-by: Elaine Zhang > --- > .../bindings/clock/rockchip,px30-cru.txt | 67 > ++ > 1 file changed, 67 insertions(+) >

[PATCH v4 7/9] x86: extable: use macros instead of inline assembly

2018-06-12 Thread Nadav Amit
Use assembly macros for exception-tables and call them from inline assembly. This not only makes the code more readable and allows to avoid the duplicate implementation, but also improves compilation decision, specifically inline decisions which GCC base on the number of new lines in inline assemb

[PATCH v4 2/9] x86: objtool: use asm macro for better compiler decisions

2018-06-12 Thread Nadav Amit
GCC considers the number of statements in inlined assembly blocks, according to new-lines and semicolons, as an indication to the cost of the block in time and space. This data is distorted by the kernel code, which puts information in alternative sections. As a result, the compiler may perform inc

[PATCH v4 4/9] x86: alternatives: macrofy locks for better inlining

2018-06-12 Thread Nadav Amit
GCC considers the number of statements in inlined assembly blocks, according to new-lines and semicolons, as an indication to the cost of the block in time and space. This data is distorted by the kernel code, which puts information in alternative sections. As a result, the compiler may perform inc

Re: [PATCH v2 2/4] clk: rockchip: add dt-binding header for px30

2018-06-12 Thread Rob Herring
On Fri, Jun 08, 2018 at 02:31:57PM +0800, Elaine Zhang wrote: > Add the dt-bindings header for the px30, that gets shared between > the clock controller and the clock references in the dts. > Add softreset ID for px30. > > Signed-off-by: Elaine Zhang > --- > include/dt-bindings/clock/px30-cru.h

KMSAN: uninit-value in do_msgrcv

2018-06-12 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:8fc8ecd1c58a kmsan: unpoison regs in arch_uprobe_exception.. git tree: https://github.com/google/kmsan.git/master console output: https://syzkaller.appspot.com/x/log.txt?x=1481799f80 kernel config: https://syzkaller.appspot.c

Re: [patch V5 01/11] Documentation: Add license-rules.rst to describe how to properly identify file licenses

2018-06-12 Thread Thomas Gleixner
Yang, On Tue, 12 Jun 2018, Yang Li wrote: > On Thu, Dec 28, 2017 at 4:17 PM, Thomas Gleixner wrote: > > On Thu, 28 Dec 2017, Thomas Gleixner wrote: > > > > Sorry for the spam. I somehow missed to refresh the patch before generating > > the mbox. Find below the correct version of that one which ha

Re: [PATCH v2 4/5] thermal: tsens: Add support for SDM845

2018-06-12 Thread Rob Herring
On Tue, Jun 12, 2018 at 01:54:56PM +0300, Amit Kucheria wrote: > SDM845 uses the TSENS v2 IP block > > Signed-off-by: Amit Kucheria > --- > Documentation/devicetree/bindings/thermal/qcom-tsens.txt | 1 + Acked-by: Rob Herring > drivers/thermal/qcom/Makefile| 2 +-

Re: [PATCH v2 2/5] dt: qcom: 8996: thermal: Move to DT initialisation

2018-06-12 Thread Bjorn Andersson
On Tue 12 Jun 03:54 PDT 2018, Amit Kucheria wrote: > We also split up the regmap address space into two, one for the TM > registers, the other for the SROT registers. This was required to deal with > different address offsets for the TM and SROT registers across different > SoC families. > > Sinc

Re: [PATCH 3/3] riscv: fix __user annotation for __copy_user()

2018-06-12 Thread Palmer Dabbelt
On Tue, 12 Jun 2018 11:19:57 PDT (-0700), luc.vanoostenr...@gmail.com wrote: On Tue, Jun 12, 2018 at 7:12 PM, Palmer Dabbelt wrote: On Mon, 11 Jun 2018 20:00:08 PDT (-0700), luc.vanoostenr...@gmail.com wrote: On Mon, Jun 11, 2018 at 12:01:37PM -0700, Palmer Dabbelt wrote: OK, I'll try and fi

Re: [PATCH v3 6/7] soc: qcom: Add RPMh Power domain driver

2018-06-12 Thread Matthias Kaehlcke
Hi, On Tue, Jun 12, 2018 at 10:10:51AM +0530, Rajendra Nayak wrote: > The RPMh Power domain driver aggregates the corner votes from various > consumers for the ARC resources and communicates it to RPMh. > > We also add data for all power domains on sdm845 SoC as part of the patch. > The driver ca

Re: [PATCH v2 3/5] thermal: tsens: Move 8996 get_temp() to common code for reuse

2018-06-12 Thread Bjorn Andersson
On Tue 12 Jun 03:54 PDT 2018, Amit Kucheria wrote: > diff --git a/drivers/thermal/qcom/tsens-8996.c > b/drivers/thermal/qcom/tsens-8996.c [..] > static const struct tsens_ops ops_8996 = { > .init = init_common, > - .get_temp = get_temp_8996, > + .get_temp = get

Re: [PATCH v2 5/5] thermal: tsens: Check if we have valid data before reading

2018-06-12 Thread Bjorn Andersson
On Tue 12 Jun 03:54 PDT 2018, Amit Kucheria wrote: > Signed-off-by: Amit Kucheria Reviewed-by: Bjorn Andersson Regards, Bjorn > --- > drivers/thermal/qcom/tsens-common.c | 9 + > 1 file changed, 9 insertions(+) > > diff --git a/drivers/thermal/qcom/tsens-common.c > b/drivers/therma

Re: [PATCH] PM / core: Fix supplier device runtime PM usage counter imbalance

2018-06-12 Thread Ulf Hansson
On 12 June 2018 at 14:44, Marek Szyprowski wrote: > Hi Rafael, > > On 2018-06-12 13:00, Rafael J. Wysocki wrote: >> From: Rafael J. Wysocki >> >> If a device link is added via device_link_add() by the driver of the >> link's consumer device, the supplier's runtime PM usage counter is >> going to

Re: [PATCH] mfd: cros_ec: remove unused __remove function

2018-06-12 Thread Gwendal Grignou
On Sun, Jun 10, 2018 at 11:08 PM Lee Jones wrote: > > On Fri, 08 Jun 2018, Benson Leung wrote: > > > > > On Fri, Jun 08, 2018 at 04:48:06PM +0200, Arnd Bergmann wrote: > > > This function is no longer called, so we get a harmless > > > warning until it is removed as well: > > > > > > drivers/mfd/c

<    1   2   3   4   5   6   7   >