[PATCH v9 5/7] tracing: Centralize preemptirq tracepoints and unify their usage

2018-06-28 Thread Joel Fernandes
From: "Joel Fernandes (Google)" This patch detaches the preemptirq tracepoints from the tracers and keeps it separate. Advantages: * Lockdep and irqsoff event can now run in parallel since they no longer have their own calls. * This unifies the usecase of adding hooks to an irqsoff and irqson

[PATCH v9 6/7] lib: Add module to simulate atomic sections for testing preemptoff tracers

2018-06-28 Thread Joel Fernandes
From: "Joel Fernandes (Google)" In this patch we introduce a test module for simulating a long atomic section in the kernel which the preemptoff or irqsoff tracers can detect. This module is to be used only for test purposes and is default disabled. Following is the expected output (only

[PATCH v9 1/7] srcu: Add notrace variants of srcu_read_{lock,unlock}

2018-06-28 Thread Joel Fernandes
From: Paul McKenney This is needed for a future tracepoint patch that uses srcu, and to make sure it doesn't call into lockdep. tracepoint code already calls notrace variants for rcu_read_lock_sched so this patch does the same for srcu which will be used in a later patch. Keeps it consistent

[PATCH v9 1/7] srcu: Add notrace variants of srcu_read_{lock,unlock}

2018-06-28 Thread Joel Fernandes
From: Paul McKenney This is needed for a future tracepoint patch that uses srcu, and to make sure it doesn't call into lockdep. tracepoint code already calls notrace variants for rcu_read_lock_sched so this patch does the same for srcu which will be used in a later patch. Keeps it consistent

[PATCH v9 7/7] kselftests: Add tests for the preemptoff and irqsoff tracers

2018-06-28 Thread Joel Fernandes
From: "Joel Fernandes (Google)" Here we add unit tests for the preemptoff and irqsoff tracer by using a kernel module introduced previously to trigger atomic sections in the kernel. Reviewed-by: Masami Hiramatsu Acked-by: Masami Hiramatsu Signed-off-by: Joel Fernandes (Google) ---

[PATCH v9 1/7] srcu: Add notrace variants of srcu_read_{lock,unlock}

2018-06-28 Thread Joel Fernandes
From: Paul McKenney This is needed for a future tracepoint patch that uses srcu, and to make sure it doesn't call into lockdep. tracepoint code already calls notrace variants for rcu_read_lock_sched so this patch does the same for srcu which will be used in a later patch. Keeps it consistent

[PATCH v9 7/7] kselftests: Add tests for the preemptoff and irqsoff tracers

2018-06-28 Thread Joel Fernandes
From: "Joel Fernandes (Google)" Here we add unit tests for the preemptoff and irqsoff tracer by using a kernel module introduced previously to trigger atomic sections in the kernel. Reviewed-by: Masami Hiramatsu Acked-by: Masami Hiramatsu Signed-off-by: Joel Fernandes (Google) ---

[PATCH v9 1/7] srcu: Add notrace variants of srcu_read_{lock,unlock}

2018-06-28 Thread Joel Fernandes
From: Paul McKenney This is needed for a future tracepoint patch that uses srcu, and to make sure it doesn't call into lockdep. tracepoint code already calls notrace variants for rcu_read_lock_sched so this patch does the same for srcu which will be used in a later patch. Keeps it consistent

[PATCH v9 0/7] Centralize and unify usage of preempt/irq tracepoints

2018-06-28 Thread Joel Fernandes
From: "Joel Fernandes (Google)" This is a posting of v9 preempt/irq tracepoint clean up series rebased onto v4.18-rc2. No changes in the series, just a rebase + repost. All patches have a Reviewed-by tags now from reviewers. This series has been well tested and is a simplification/refactoring

[PATCH v9 0/7] Centralize and unify usage of preempt/irq tracepoints

2018-06-28 Thread Joel Fernandes
From: "Joel Fernandes (Google)" This is a posting of v9 preempt/irq tracepoint clean up series rebased onto v4.18-rc2. No changes in the series, just a rebase + repost. All patches have a Reviewed-by tags now from reviewers. This series has been well tested and is a simplification/refactoring

Re: [PATCH] platform/x86: intel-hid: Add support for Device Specific Methods

2018-06-28 Thread Srinivas Pandruvada
Sorry, ignore this version. Accidentally sent without version change. On Thu, 2018-06-28 at 11:12 -0700, Srinivas Pandruvada wrote: > In some of the recent platforms, it is possible that stand alone > methods > for HEBC() or other methods used in this driver may not exist. In > this > case

Re: [PATCH] platform/x86: intel-hid: Add support for Device Specific Methods

2018-06-28 Thread Srinivas Pandruvada
Sorry, ignore this version. Accidentally sent without version change. On Thu, 2018-06-28 at 11:12 -0700, Srinivas Pandruvada wrote: > In some of the recent platforms, it is possible that stand alone > methods > for HEBC() or other methods used in this driver may not exist. In > this > case

[PATCH v2] platform/x86: intel-hid: Add support for Device Specific Methods

2018-06-28 Thread Srinivas Pandruvada
In some of the recent platforms, it is possible that stand alone methods for HEBC() or other methods used in this driver may not exist. In this case intel-hid driver will fail to load and power button will not be functional. It is also possible that some quirks in this driver added for some

[PATCH v2] platform/x86: intel-hid: Add support for Device Specific Methods

2018-06-28 Thread Srinivas Pandruvada
In some of the recent platforms, it is possible that stand alone methods for HEBC() or other methods used in this driver may not exist. In this case intel-hid driver will fail to load and power button will not be functional. It is also possible that some quirks in this driver added for some

Re: [[LINUX PATCH v10] 4/4] mtd: rawnand: pl353: Add basic driver for arm pl353 smc nand interface

2018-06-28 Thread Linus Walleij
On Thu, Jun 28, 2018 at 2:13 PM Naga Sureshkumar Relli wrote: > > This driver has the same problem as the other patches: > > use the ARM_AMBA primecell magic numbers detection, and the PrimeCell bus. > > Here the child is NAND controller and the parent is PL353 SMC, > so do we need to update

Re: [[LINUX PATCH v10] 4/4] mtd: rawnand: pl353: Add basic driver for arm pl353 smc nand interface

2018-06-28 Thread Linus Walleij
On Thu, Jun 28, 2018 at 2:13 PM Naga Sureshkumar Relli wrote: > > This driver has the same problem as the other patches: > > use the ARM_AMBA primecell magic numbers detection, and the PrimeCell bus. > > Here the child is NAND controller and the parent is PL353 SMC, > so do we need to update

[PATCH v2 6/6] MAINTAINERS: Add entry for Actions Semi OWL I2C driver

2018-06-28 Thread Manivannan Sadhasivam
Add entry for Actions Semi OWL I2C driver and its binding under ARM/ACTIONS Signed-off-by: Manivannan Sadhasivam --- MAINTAINERS | 2 ++ 1 file changed, 2 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 09b54e9ebc6f..5084c62712fa 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@

[PATCH v2 5/6] i2c: Add Actions Semi OWL family S900 I2C driver

2018-06-28 Thread Manivannan Sadhasivam
Add Actions Semi OWL family S900 I2C driver. Signed-off-by: Manivannan Sadhasivam --- drivers/i2c/busses/Kconfig | 7 + drivers/i2c/busses/Makefile | 1 + drivers/i2c/busses/i2c-owl.c | 471 +++ 3 files changed, 479 insertions(+) create mode 100644

[PATCH v2 6/6] MAINTAINERS: Add entry for Actions Semi OWL I2C driver

2018-06-28 Thread Manivannan Sadhasivam
Add entry for Actions Semi OWL I2C driver and its binding under ARM/ACTIONS Signed-off-by: Manivannan Sadhasivam --- MAINTAINERS | 2 ++ 1 file changed, 2 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 09b54e9ebc6f..5084c62712fa 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@

[PATCH v2 5/6] i2c: Add Actions Semi OWL family S900 I2C driver

2018-06-28 Thread Manivannan Sadhasivam
Add Actions Semi OWL family S900 I2C driver. Signed-off-by: Manivannan Sadhasivam --- drivers/i2c/busses/Kconfig | 7 + drivers/i2c/busses/Makefile | 1 + drivers/i2c/busses/i2c-owl.c | 471 +++ 3 files changed, 479 insertions(+) create mode 100644

[PATCH] platform/x86: intel-hid: Add support for Device Specific Methods

2018-06-28 Thread Srinivas Pandruvada
In some of the recent platforms, it is possible that stand alone methods for HEBC() or other methods used in this driver may not exist. In this case intel-hid driver will fail to load and power button will not be functional. It is also possible that some quirks in this driver added for some

[PATCH] platform/x86: intel-hid: Add support for Device Specific Methods

2018-06-28 Thread Srinivas Pandruvada
In some of the recent platforms, it is possible that stand alone methods for HEBC() or other methods used in this driver may not exist. In this case intel-hid driver will fail to load and power button will not be functional. It is also possible that some quirks in this driver added for some

[PATCH v2 2/6] arm64: dts: actions: Add Actions Semi S900 I2C controller nodes

2018-06-28 Thread Manivannan Sadhasivam
Add I2C controller nodes for Actions Semi S900 SoC. Signed-off-by: Manivannan Sadhasivam --- arch/arm64/boot/dts/actions/s900.dtsi | 60 +++ 1 file changed, 60 insertions(+) diff --git a/arch/arm64/boot/dts/actions/s900.dtsi b/arch/arm64/boot/dts/actions/s900.dtsi

[PATCH v2 3/6] arm64: dts: actions: Add pinctrl definition for S900 I2C controller

2018-06-28 Thread Manivannan Sadhasivam
Add pinctrl definition for Actions Semi S900 I2C controller. Pinctrl definitions are only available for I2C0, I2C1, and I2C2. Signed-off-by: Manivannan Sadhasivam --- .../dts/actions/s900-bubblegum-96-pins.dtsi | 29 +++ 1 file changed, 29 insertions(+) create mode 100644

[PATCH v2 2/6] arm64: dts: actions: Add Actions Semi S900 I2C controller nodes

2018-06-28 Thread Manivannan Sadhasivam
Add I2C controller nodes for Actions Semi S900 SoC. Signed-off-by: Manivannan Sadhasivam --- arch/arm64/boot/dts/actions/s900.dtsi | 60 +++ 1 file changed, 60 insertions(+) diff --git a/arch/arm64/boot/dts/actions/s900.dtsi b/arch/arm64/boot/dts/actions/s900.dtsi

[PATCH v2 3/6] arm64: dts: actions: Add pinctrl definition for S900 I2C controller

2018-06-28 Thread Manivannan Sadhasivam
Add pinctrl definition for Actions Semi S900 I2C controller. Pinctrl definitions are only available for I2C0, I2C1, and I2C2. Signed-off-by: Manivannan Sadhasivam --- .../dts/actions/s900-bubblegum-96-pins.dtsi | 29 +++ 1 file changed, 29 insertions(+) create mode 100644

[PATCH v2 4/6] arm64: dts: actions: Enable I2C1 and I2C2 in Bubblegum-96 board

2018-06-28 Thread Manivannan Sadhasivam
Enable I2C1 and I2C2 exposed on the low speed expansion connector in Bubblegum-96 board. Signed-off-by: Manivannan Sadhasivam --- arch/arm64/boot/dts/actions/s900-bubblegum-96.dts | 11 +++ 1 file changed, 11 insertions(+) diff --git a/arch/arm64/boot/dts/actions/s900-bubblegum-96.dts

[PATCH v2 4/6] arm64: dts: actions: Enable I2C1 and I2C2 in Bubblegum-96 board

2018-06-28 Thread Manivannan Sadhasivam
Enable I2C1 and I2C2 exposed on the low speed expansion connector in Bubblegum-96 board. Signed-off-by: Manivannan Sadhasivam --- arch/arm64/boot/dts/actions/s900-bubblegum-96.dts | 11 +++ 1 file changed, 11 insertions(+) diff --git a/arch/arm64/boot/dts/actions/s900-bubblegum-96.dts

[PATCH v2 1/6] dt-bindings: i2c: Add binding for Actions Semi OWL I2C controller

2018-06-28 Thread Manivannan Sadhasivam
Add devicetree binding for Actions Semi OWL I2C controller Signed-off-by: Manivannan Sadhasivam --- .../devicetree/bindings/i2c/i2c-owl.txt | 27 +++ 1 file changed, 27 insertions(+) create mode 100644 Documentation/devicetree/bindings/i2c/i2c-owl.txt diff --git

[PATCH v2 1/6] dt-bindings: i2c: Add binding for Actions Semi OWL I2C controller

2018-06-28 Thread Manivannan Sadhasivam
Add devicetree binding for Actions Semi OWL I2C controller Signed-off-by: Manivannan Sadhasivam --- .../devicetree/bindings/i2c/i2c-owl.txt | 27 +++ 1 file changed, 27 insertions(+) create mode 100644 Documentation/devicetree/bindings/i2c/i2c-owl.txt diff --git

[PATCH v2 0/6] Add Actions Semi S900 I2C support

2018-06-28 Thread Manivannan Sadhasivam
This patchset adds I2C controller support for Actions Semi S900 SoC. This driver has been structured in a way such that there will be only one controller driver for the whole OWL family series (S500, S700 and S900 SoCs). There are 6 I2C controllers with separate memory mapped register space. The

[PATCH v2 0/6] Add Actions Semi S900 I2C support

2018-06-28 Thread Manivannan Sadhasivam
This patchset adds I2C controller support for Actions Semi S900 SoC. This driver has been structured in a way such that there will be only one controller driver for the whole OWL family series (S500, S700 and S900 SoCs). There are 6 I2C controllers with separate memory mapped register space. The

Re: [[LINUX PATCH v10] 2/4] memory: pl353: Add driver for arm pl353 static memory controller

2018-06-28 Thread Linus Walleij
On Thu, Jun 28, 2018 at 2:11 PM Naga Sureshkumar Relli wrote: > Sorry for the wrong name. Hehe. > > Hi Linux, > Linus. Everybody does this. Even myself. Yours, Linus Walleij

Re: [[LINUX PATCH v10] 2/4] memory: pl353: Add driver for arm pl353 static memory controller

2018-06-28 Thread Linus Walleij
On Thu, Jun 28, 2018 at 2:11 PM Naga Sureshkumar Relli wrote: > Sorry for the wrong name. Hehe. > > Hi Linux, > Linus. Everybody does this. Even myself. Yours, Linus Walleij

Re: [PATCH v8 2/2] regulator: add QCOM RPMh regulator driver

2018-06-28 Thread David Collins
Hello Mark, On 06/28/2018 03:18 AM, Mark Brown wrote: > On Wed, Jun 27, 2018 at 09:28:03AM -0700, Doug Anderson wrote: > >> OK, great. I guess I'm confused about the "|| COMPILE_TEST" causing >> problems then? I was worried that anyone trying to do "COMPILE_TEST" >> on your tree (or linuxnext

Re: [PATCH v8 2/2] regulator: add QCOM RPMh regulator driver

2018-06-28 Thread David Collins
Hello Mark, On 06/28/2018 03:18 AM, Mark Brown wrote: > On Wed, Jun 27, 2018 at 09:28:03AM -0700, Doug Anderson wrote: > >> OK, great. I guess I'm confused about the "|| COMPILE_TEST" causing >> problems then? I was worried that anyone trying to do "COMPILE_TEST" >> on your tree (or linuxnext

Re: [PATCH tip/core/rcu 16/27] rcu: Add comment documenting how rcu_seq_snap works

2018-06-28 Thread Paul E. McKenney
On Wed, Jun 27, 2018 at 10:10:28PM -0700, Joel Fernandes wrote: > On Wed, Jun 27, 2018 at 11:27:26AM -0700, Joel Fernandes wrote: > [..] > > > > > s = __ALIGN_MASK(s, RCU_SEQ_STATE_MASK); > > > > > > > > > > > > > I agree with Peter's suggestions for both the verbiage reduction in the > >

Re: [PATCH tip/core/rcu 16/27] rcu: Add comment documenting how rcu_seq_snap works

2018-06-28 Thread Paul E. McKenney
On Wed, Jun 27, 2018 at 10:10:28PM -0700, Joel Fernandes wrote: > On Wed, Jun 27, 2018 at 11:27:26AM -0700, Joel Fernandes wrote: > [..] > > > > > s = __ALIGN_MASK(s, RCU_SEQ_STATE_MASK); > > > > > > > > > > > > > I agree with Peter's suggestions for both the verbiage reduction in the > >

[PATCH 1/2] kvm/x86: Move MSR_K7_HWCR to svm.c

2018-06-28 Thread Borislav Petkov
From: Borislav Petkov This is an AMD-specific MSR. Put it where it belongs. Signed-off-by: Borislav Petkov --- arch/x86/kvm/svm.c | 14 ++ arch/x86/kvm/x86.c | 12 2 files changed, 14 insertions(+), 12 deletions(-) diff --git a/arch/x86/kvm/svm.c b/arch/x86/kvm/svm.c

[PATCH 1/2] kvm/x86: Move MSR_K7_HWCR to svm.c

2018-06-28 Thread Borislav Petkov
From: Borislav Petkov This is an AMD-specific MSR. Put it where it belongs. Signed-off-by: Borislav Petkov --- arch/x86/kvm/svm.c | 14 ++ arch/x86/kvm/x86.c | 12 2 files changed, 14 insertions(+), 12 deletions(-) diff --git a/arch/x86/kvm/svm.c b/arch/x86/kvm/svm.c

[PATCH 2/2] x86/kvm: Implement MSR_HWCR support

2018-06-28 Thread Borislav Petkov
From: Borislav Petkov The hardware configuration register has some useful bits which can be used by guests. Implement McStatusWrEn which can be used by guests when injecting MCEs with the in-kernel mce-inject module. For that, we need to set bit 18 - McStatusWrEn - first, before writing the

[PATCH 2/2] x86/kvm: Implement MSR_HWCR support

2018-06-28 Thread Borislav Petkov
From: Borislav Petkov The hardware configuration register has some useful bits which can be used by guests. Implement McStatusWrEn which can be used by guests when injecting MCEs with the in-kernel mce-inject module. For that, we need to set bit 18 - McStatusWrEn - first, before writing the

[PATCH 0/2] x86/kvm: Enable MCE injection in the guest v2

2018-06-28 Thread Borislav Petkov
From: Borislav Petkov Hi all, here's v2, dropping patch 3 and incorporating hopefully all of Radim's feedback. Thx. v1 cover letter: there's this mce-inject.ko module in the kernel which allows for injecting real MCEs and thus test the MCE handling code. It is doubly useful to be able to

[PATCH 0/2] x86/kvm: Enable MCE injection in the guest v2

2018-06-28 Thread Borislav Petkov
From: Borislav Petkov Hi all, here's v2, dropping patch 3 and incorporating hopefully all of Radim's feedback. Thx. v1 cover letter: there's this mce-inject.ko module in the kernel which allows for injecting real MCEs and thus test the MCE handling code. It is doubly useful to be able to

[PATCH v1 0/2] sparse_init rewrite

2018-06-28 Thread Pavel Tatashin
In sparse_init() we allocate two large buffers to temporary hold usemap and memmap for the whole machine. However, we can avoid doing that if we changed sparse_init() to operated on per-node bases instead of doing it on the whole machine beforehand. As shown by Baoquan

[PATCH v1 0/2] sparse_init rewrite

2018-06-28 Thread Pavel Tatashin
In sparse_init() we allocate two large buffers to temporary hold usemap and memmap for the whole machine. However, we can avoid doing that if we changed sparse_init() to operated on per-node bases instead of doing it on the whole machine beforehand. As shown by Baoquan

[PATCH v1 1/2] mm/sparse: add sparse_init_nid()

2018-06-28 Thread Pavel Tatashin
sparse_init() requires to temporary allocate two large buffers: usemap_map and map_map. Baoquan He has identified that these buffers are so large that Linux is not bootable on small memory machines, such as a kdump boot. Baoquan provided a fix, which reduces these sizes of these buffers, but it

[PATCH v1 1/2] mm/sparse: add sparse_init_nid()

2018-06-28 Thread Pavel Tatashin
sparse_init() requires to temporary allocate two large buffers: usemap_map and map_map. Baoquan He has identified that these buffers are so large that Linux is not bootable on small memory machines, such as a kdump boot. Baoquan provided a fix, which reduces these sizes of these buffers, but it

Re: [PATCH] arm64: acpi: reenumerate topology ids

2018-06-28 Thread Andrew Jones
On Thu, Jun 28, 2018 at 05:30:51PM +0100, Sudeep Holla wrote: > I am not sure if we can ever guarantee that DT and ACPI will get the > same ids whatever counter we use as it depends on the order presented in > the firmware(DT or ACPI). So I am not for generating ids for core and > threads in that

Re: [PATCH] arm64: acpi: reenumerate topology ids

2018-06-28 Thread Andrew Jones
On Thu, Jun 28, 2018 at 05:30:51PM +0100, Sudeep Holla wrote: > I am not sure if we can ever guarantee that DT and ACPI will get the > same ids whatever counter we use as it depends on the order presented in > the firmware(DT or ACPI). So I am not for generating ids for core and > threads in that

[PATCH v1 2/2] mm/sparse: start using sparse_init_nid(), and remove old code

2018-06-28 Thread Pavel Tatashin
Change sprase_init() to only find the pnum ranges that belong to a specific node and call sprase_init_nid() for that range from sparse_init(). Delete all the code that became obsolete with this change. Signed-off-by: Pavel Tatashin --- include/linux/mm.h | 5 - mm/sparse-vmemmap.c | 39

[PATCH v1 2/2] mm/sparse: start using sparse_init_nid(), and remove old code

2018-06-28 Thread Pavel Tatashin
Change sprase_init() to only find the pnum ranges that belong to a specific node and call sprase_init_nid() for that range from sparse_init(). Delete all the code that became obsolete with this change. Signed-off-by: Pavel Tatashin --- include/linux/mm.h | 5 - mm/sparse-vmemmap.c | 39

Re: general protection fault in vmx_vcpu_run

2018-06-28 Thread Jim Mattson
22: 0f 01 c3 vmresume 25: 48 89 4c 24 08mov%rcx,0x8(%rsp) 2a: 59pop%rcx : 2b: 0f 96 81 88 56 00 00 setbe 0x5688(%rcx) 32: 48 89 81 00 03 00 00 mov%rax,0x300(%rcx) 39: 48 89 99 18 03 00 00 mov%rbx,0x318(%rcx) %rcx should be

Re: general protection fault in vmx_vcpu_run

2018-06-28 Thread Jim Mattson
22: 0f 01 c3 vmresume 25: 48 89 4c 24 08mov%rcx,0x8(%rsp) 2a: 59pop%rcx : 2b: 0f 96 81 88 56 00 00 setbe 0x5688(%rcx) 32: 48 89 81 00 03 00 00 mov%rax,0x300(%rcx) 39: 48 89 99 18 03 00 00 mov%rbx,0x318(%rcx) %rcx should be

Re: [PATCHv3 1/9] sched: Add static_key for asymmetric cpu capacity optimizations

2018-06-28 Thread Dietmar Eggemann
On 06/28/2018 10:48 AM, Morten Rasmussen wrote: On Wed, Jun 27, 2018 at 05:41:22PM +0200, Dietmar Eggemann wrote: On 06/22/2018 04:36 PM, Morten Rasmussen wrote: On Fri, Jun 22, 2018 at 09:22:22AM +0100, Quentin Perret wrote: [...] What would happen if you hotplugged an entire cluster ?

Re: [PATCHv3 1/9] sched: Add static_key for asymmetric cpu capacity optimizations

2018-06-28 Thread Dietmar Eggemann
On 06/28/2018 10:48 AM, Morten Rasmussen wrote: On Wed, Jun 27, 2018 at 05:41:22PM +0200, Dietmar Eggemann wrote: On 06/22/2018 04:36 PM, Morten Rasmussen wrote: On Fri, Jun 22, 2018 at 09:22:22AM +0100, Quentin Perret wrote: [...] What would happen if you hotplugged an entire cluster ?

Re: [PATCH 2/3] pinctrl: msm: Mux out gpio function with gpio_request()

2018-06-28 Thread Stephen Boyd
Quoting Linus Walleij (2018-06-28 07:25:46) > On Fri, Jun 22, 2018 at 8:29 PM Bjorn Andersson > wrote: > > On Fri 22 Jun 10:58 PDT 2018, Bjorn Andersson wrote: > > > On Mon 18 Jun 13:52 PDT 2018, Stephen Boyd wrote: > > > > > > > We rely on devices to use pinmuxing configurations in DT to select

Re: [PATCH 2/3] pinctrl: msm: Mux out gpio function with gpio_request()

2018-06-28 Thread Stephen Boyd
Quoting Linus Walleij (2018-06-28 07:25:46) > On Fri, Jun 22, 2018 at 8:29 PM Bjorn Andersson > wrote: > > On Fri 22 Jun 10:58 PDT 2018, Bjorn Andersson wrote: > > > On Mon 18 Jun 13:52 PDT 2018, Stephen Boyd wrote: > > > > > > > We rely on devices to use pinmuxing configurations in DT to select

Re: [PATCH] arm64: acpi: reenumerate topology ids

2018-06-28 Thread Jeremy Linton
Hi, On 06/28/2018 11:30 AM, Sudeep Holla wrote: On 28/06/18 15:51, Andrew Jones wrote: When booting with devicetree, and the devicetree has the cpu-map node, the topology IDs that are visible from sysfs are generated with counters. ACPI, on the other hand, uses ACPI table pointer offsets,

Re: [PATCH] arm64: acpi: reenumerate topology ids

2018-06-28 Thread Jeremy Linton
Hi, On 06/28/2018 11:30 AM, Sudeep Holla wrote: On 28/06/18 15:51, Andrew Jones wrote: When booting with devicetree, and the devicetree has the cpu-map node, the topology IDs that are visible from sysfs are generated with counters. ACPI, on the other hand, uses ACPI table pointer offsets,

Re: [PATCH] PCI: hv: fix spelling mistake: "reqquest" -> "request"

2018-06-28 Thread Lorenzo Pieralisi
On Tue, May 08, 2018 at 10:49:46PM +0100, Colin King wrote: > From: Colin Ian King > > Trivial fix to spelling mistake in dev_err error message > > Signed-off-by: Colin Ian King > --- > drivers/pci/host/pci-hyperv.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Hi Colin, patch

Re: [PATCH] PCI: hv: fix spelling mistake: "reqquest" -> "request"

2018-06-28 Thread Lorenzo Pieralisi
On Tue, May 08, 2018 at 10:49:46PM +0100, Colin King wrote: > From: Colin Ian King > > Trivial fix to spelling mistake in dev_err error message > > Signed-off-by: Colin Ian King > --- > drivers/pci/host/pci-hyperv.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Hi Colin, patch

[PATCH] staging: rtl8723bs: remove pointless if else in rtw_sdio_resume()

2018-06-28 Thread Michael Straube
Whether any of the conditions is true or not, the return variable is always set to rtw_resume_process(padapter). Replace the if else construct with a single call to rtw_resume_process(). Also remove the now unused local variable pwrpriv. Signed-off-by: Michael Straube ---

[PATCH] staging: rtl8723bs: remove pointless if else in rtw_sdio_resume()

2018-06-28 Thread Michael Straube
Whether any of the conditions is true or not, the return variable is always set to rtw_resume_process(padapter). Replace the if else construct with a single call to rtw_resume_process(). Also remove the now unused local variable pwrpriv. Signed-off-by: Michael Straube ---

Re: [RFC PATCH for 4.18 2/2] rseq: check that rseq->rseq_cs padding is zero

2018-06-28 Thread Will Deacon
Hi Mathieu, On Thu, Jun 28, 2018 at 12:23:59PM -0400, Mathieu Desnoyers wrote: > On 32-bit kernels, the rseq->rseq_cs_padding field is never read by the > kernel. However, 64-bit kernels dealing with 32-bit compat tasks read the > full 64-bit in its entirety, and terminates the offending process

Re: [RFC PATCH for 4.18 2/2] rseq: check that rseq->rseq_cs padding is zero

2018-06-28 Thread Will Deacon
Hi Mathieu, On Thu, Jun 28, 2018 at 12:23:59PM -0400, Mathieu Desnoyers wrote: > On 32-bit kernels, the rseq->rseq_cs_padding field is never read by the > kernel. However, 64-bit kernels dealing with 32-bit compat tasks read the > full 64-bit in its entirety, and terminates the offending process

Re: [PATCH 0/2] tools/memory-model: remove ACCESS_ONCE()

2018-06-28 Thread Andrea Parri
> 1bc179880fba docs: atomic_ops: Describe atomic_set as a write operation > > The above patches need at least one additional Acked-by > or Reviewed-by. If any of you gets a chance, please do > look them over. Glad this came out. ;-) No objection to the patch: feel free to add

[PATCH bpf-next 06/14] bpf/verifier: introduce BPF_PTR_TO_MAP_VALUE

2018-06-28 Thread Roman Gushchin
BPF_MAP_TYPE_CGROUP_STORAGE maps are special in a way that the access from the bpf program side is lookup-free. That means the result is guaranteed to be a valid pointer to the cgroup storage; no NULL-check is required. This patch introduces BPF_PTR_TO_MAP_VALUE return type, which is required to

Re: [PATCH 0/2] tools/memory-model: remove ACCESS_ONCE()

2018-06-28 Thread Andrea Parri
> 1bc179880fba docs: atomic_ops: Describe atomic_set as a write operation > > The above patches need at least one additional Acked-by > or Reviewed-by. If any of you gets a chance, please do > look them over. Glad this came out. ;-) No objection to the patch: feel free to add

[PATCH bpf-next 06/14] bpf/verifier: introduce BPF_PTR_TO_MAP_VALUE

2018-06-28 Thread Roman Gushchin
BPF_MAP_TYPE_CGROUP_STORAGE maps are special in a way that the access from the bpf program side is lookup-free. That means the result is guaranteed to be a valid pointer to the cgroup storage; no NULL-check is required. This patch introduces BPF_PTR_TO_MAP_VALUE return type, which is required to

Re: [PATCH tip/core/rcu 2/2] rcu: Make expedited GPs handle CPU 0 being offline

2018-06-28 Thread Paul E. McKenney
On Wed, Jun 27, 2018 at 09:15:31AM -0700, Paul E. McKenney wrote: > On Wed, Jun 27, 2018 at 10:42:01AM +0800, Boqun Feng wrote: > > On Tue, Jun 26, 2018 at 12:27:47PM -0700, Paul E. McKenney wrote: > > > On Tue, Jun 26, 2018 at 07:46:52PM +0800, Boqun Feng wrote: > > > > On Tue, Jun 26, 2018 at

Re: [PATCH tip/core/rcu 2/2] rcu: Make expedited GPs handle CPU 0 being offline

2018-06-28 Thread Paul E. McKenney
On Wed, Jun 27, 2018 at 09:15:31AM -0700, Paul E. McKenney wrote: > On Wed, Jun 27, 2018 at 10:42:01AM +0800, Boqun Feng wrote: > > On Tue, Jun 26, 2018 at 12:27:47PM -0700, Paul E. McKenney wrote: > > > On Tue, Jun 26, 2018 at 07:46:52PM +0800, Boqun Feng wrote: > > > > On Tue, Jun 26, 2018 at

Re: [PATCH 3/3] rseq/selftests: Add support for arm64

2018-06-28 Thread Will Deacon
Hi Mathieu, On Tue, Jun 26, 2018 at 12:11:52PM -0400, Mathieu Desnoyers wrote: > - On Jun 26, 2018, at 11:14 AM, Will Deacon will.dea...@arm.com wrote: > > On Mon, Jun 25, 2018 at 02:10:10PM -0400, Mathieu Desnoyers wrote: > >> I notice you are using the instructions > >> > >> adrp > >>

Re: [PATCH 3/3] rseq/selftests: Add support for arm64

2018-06-28 Thread Will Deacon
Hi Mathieu, On Tue, Jun 26, 2018 at 12:11:52PM -0400, Mathieu Desnoyers wrote: > - On Jun 26, 2018, at 11:14 AM, Will Deacon will.dea...@arm.com wrote: > > On Mon, Jun 25, 2018 at 02:10:10PM -0400, Mathieu Desnoyers wrote: > >> I notice you are using the instructions > >> > >> adrp > >>

Re: [RFC PATCH] arm64: topology: Map PPTT node offset to logic physical package id

2018-06-28 Thread Sudeep Holla
On 28/06/18 16:44, Yang, Shunyong wrote: > Hi, All > >> On Jun 28, 2018, at 22:51, Andrew Jones >> wrote: >> >>> On Thu, Jun 28, 2018 at 03:09:19PM +0100, Sudeep Holla wrote: >>> >>> On 28/06/18 14:19, Jeremy Linton wrote: Hi, On 06/28/2018 07:12 AM, Sudeep Holla wrote: >>> >>>

Re: [RFC PATCH] arm64: topology: Map PPTT node offset to logic physical package id

2018-06-28 Thread Sudeep Holla
On 28/06/18 16:44, Yang, Shunyong wrote: > Hi, All > >> On Jun 28, 2018, at 22:51, Andrew Jones >> wrote: >> >>> On Thu, Jun 28, 2018 at 03:09:19PM +0100, Sudeep Holla wrote: >>> >>> On 28/06/18 14:19, Jeremy Linton wrote: Hi, On 06/28/2018 07:12 AM, Sudeep Holla wrote: >>> >>>

Re: sched/core warning triggers on rcu torture test

2018-06-28 Thread Paul E. McKenney
On Thu, Jun 28, 2018 at 06:33:24PM +0200, Frederic Weisbecker wrote: > On Wed, Jun 27, 2018 at 07:25:29AM -0700, Paul E. McKenney wrote: > > On Wed, Jun 27, 2018 at 12:40:15PM +0200, Frederic Weisbecker wrote: > > > On Tue, Jun 26, 2018 at 10:48:26AM -0700, Paul E. McKenney wrote: > > > > On Tue,

Re: sched/core warning triggers on rcu torture test

2018-06-28 Thread Paul E. McKenney
On Thu, Jun 28, 2018 at 06:33:24PM +0200, Frederic Weisbecker wrote: > On Wed, Jun 27, 2018 at 07:25:29AM -0700, Paul E. McKenney wrote: > > On Wed, Jun 27, 2018 at 12:40:15PM +0200, Frederic Weisbecker wrote: > > > On Tue, Jun 26, 2018 at 10:48:26AM -0700, Paul E. McKenney wrote: > > > > On Tue,

[PATCH v5 2/2] timers: Don't search for expired timers while TIMER_SOFTIRQ is scheduled

2018-06-28 Thread Haris Okanovic
This change avoids needlessly searching for more timers in run_local_timers() (hard interrupt context) when they can't fire. For example, when ktimersoftd/run_timer_softirq() is scheduled but preempted due to cpu contention. When it runs, run_timer_softirq() will discover newly expired timers up

[PATCH v5 2/2] timers: Don't search for expired timers while TIMER_SOFTIRQ is scheduled

2018-06-28 Thread Haris Okanovic
This change avoids needlessly searching for more timers in run_local_timers() (hard interrupt context) when they can't fire. For example, when ktimersoftd/run_timer_softirq() is scheduled but preempted due to cpu contention. When it runs, run_timer_softirq() will discover newly expired timers up

[PATCH v5 1/2] timers: Don't wake ktimersoftd on every tick

2018-06-28 Thread Haris Okanovic
Collect expired timers in interrupt context to avoid overhead of waking ktimersoftd on every scheduler tick. This is implemented by storing lists of expired timers in the timer_base struct, which is updated by the interrupt routing on each tick in run_local_timers(). TIMER softirq (ktimersoftd)

[PATCH v5 1/2] timers: Don't wake ktimersoftd on every tick

2018-06-28 Thread Haris Okanovic
Collect expired timers in interrupt context to avoid overhead of waking ktimersoftd on every scheduler tick. This is implemented by storing lists of expired timers in the timer_base struct, which is updated by the interrupt routing on each tick in run_local_timers(). TIMER softirq (ktimersoftd)

Re: [PATCH v4 1/2] timers: Don't wake ktimersoftd on every tick

2018-06-28 Thread Haris Okanovic
I found the problem: Running `dumpcap -D` (E.g. by wireshark) creates a timer that's sometimes re-armed with 0 timeout in it's callback function prb_retire_rx_blk_timer_expired(). My change introduced a subtle change in __run_timers()'s stop condition, which causes ktimersoftd to spin when

Re: [PATCH v4 1/2] timers: Don't wake ktimersoftd on every tick

2018-06-28 Thread Haris Okanovic
I found the problem: Running `dumpcap -D` (E.g. by wireshark) creates a timer that's sometimes re-armed with 0 timeout in it's callback function prb_retire_rx_blk_timer_expired(). My change introduced a subtle change in __run_timers()'s stop condition, which causes ktimersoftd to spin when

[PATCHv2 2/2] ARM: dts: imx53: PPD: Rename usbphy nodes

2018-06-28 Thread Sebastian Reichel
This renames usbphy nodes 2 & 3, so that they follow the same format as usbphy node 0 & 1 from imx53.dtsi. Signed-off-by: Sebastian Reichel --- arch/arm/boot/dts/imx53-ppd.dts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/boot/dts/imx53-ppd.dts

[PATCHv2 1/2] ARM: dts: imx53: PPD: Add fixed-regulator information

2018-06-28 Thread Sebastian Reichel
Add information about 3V3 power rail to avoid kernel warnings, that dummy regulators have been added. Signed-off-by: Sebastian Reichel --- Changes since PATCHv1: * split usbphy rename into its own patch * drop useless regulator-boot-on --- arch/arm/boot/dts/imx53-ppd.dts | 32

[PATCHv2 2/2] ARM: dts: imx53: PPD: Rename usbphy nodes

2018-06-28 Thread Sebastian Reichel
This renames usbphy nodes 2 & 3, so that they follow the same format as usbphy node 0 & 1 from imx53.dtsi. Signed-off-by: Sebastian Reichel --- arch/arm/boot/dts/imx53-ppd.dts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/boot/dts/imx53-ppd.dts

[PATCHv2 1/2] ARM: dts: imx53: PPD: Add fixed-regulator information

2018-06-28 Thread Sebastian Reichel
Add information about 3V3 power rail to avoid kernel warnings, that dummy regulators have been added. Signed-off-by: Sebastian Reichel --- Changes since PATCHv1: * split usbphy rename into its own patch * drop useless regulator-boot-on --- arch/arm/boot/dts/imx53-ppd.dts | 32

Re: sched/core warning triggers on rcu torture test

2018-06-28 Thread Frederic Weisbecker
On Wed, Jun 27, 2018 at 07:25:29AM -0700, Paul E. McKenney wrote: > On Wed, Jun 27, 2018 at 12:40:15PM +0200, Frederic Weisbecker wrote: > > On Tue, Jun 26, 2018 at 10:48:26AM -0700, Paul E. McKenney wrote: > > > On Tue, Jun 26, 2018 at 06:32:55PM +0200, Peter Zijlstra wrote: > > > > On Tue, Jun

Re: sched/core warning triggers on rcu torture test

2018-06-28 Thread Frederic Weisbecker
On Wed, Jun 27, 2018 at 07:25:29AM -0700, Paul E. McKenney wrote: > On Wed, Jun 27, 2018 at 12:40:15PM +0200, Frederic Weisbecker wrote: > > On Tue, Jun 26, 2018 at 10:48:26AM -0700, Paul E. McKenney wrote: > > > On Tue, Jun 26, 2018 at 06:32:55PM +0200, Peter Zijlstra wrote: > > > > On Tue, Jun

Re: [PATCH] arm64: acpi: reenumerate topology ids

2018-06-28 Thread Sudeep Holla
On 28/06/18 15:51, Andrew Jones wrote: > When booting with devicetree, and the devicetree has the cpu-map > node, the topology IDs that are visible from sysfs are generated > with counters. ACPI, on the other hand, uses ACPI table pointer > offsets, which, while guaranteed to be unique, look a

Re: [PATCH] arm64: acpi: reenumerate topology ids

2018-06-28 Thread Sudeep Holla
On 28/06/18 15:51, Andrew Jones wrote: > When booting with devicetree, and the devicetree has the cpu-map > node, the topology IDs that are visible from sysfs are generated > with counters. ACPI, on the other hand, uses ACPI table pointer > offsets, which, while guaranteed to be unique, look a

[PATCH] sched/nohz: Skip remote tick on idle task entirely

2018-06-28 Thread Frederic Weisbecker
Some people have reported that the warning in sched_tick_remote() occasionally triggers, especially in favour of some RCU-Torture pressure: WARNING: CPU: 11 PID: 906 at kernel/sched/core.c:3138 sched_tick_remote+0xb6/0xc0 Modules linked in: CPU: 11 PID: 906 Comm:

[PATCH] sched/nohz: Skip remote tick on idle task entirely

2018-06-28 Thread Frederic Weisbecker
Some people have reported that the warning in sched_tick_remote() occasionally triggers, especially in favour of some RCU-Torture pressure: WARNING: CPU: 11 PID: 906 at kernel/sched/core.c:3138 sched_tick_remote+0xb6/0xc0 Modules linked in: CPU: 11 PID: 906 Comm:

Re: [PATCH 0/4] x86/hyper-v: optimize PV IPIs

2018-06-28 Thread Vitaly Kuznetsov
Vitaly Kuznetsov writes: > Wanpeng Li writes: > >> Hi Vitaly, (fix my reply mess this time) >> On Sat, 23 Jun 2018 at 01:09, Vitaly Kuznetsov wrote: >>> >>> When reviewing my "x86/hyper-v: use cheaper HVCALL_FLUSH_VIRTUAL_ADDRESS_ >>> {LIST,SPACE} hypercalls when possible" patch Michael

Re: [PATCH 0/4] x86/hyper-v: optimize PV IPIs

2018-06-28 Thread Vitaly Kuznetsov
Vitaly Kuznetsov writes: > Wanpeng Li writes: > >> Hi Vitaly, (fix my reply mess this time) >> On Sat, 23 Jun 2018 at 01:09, Vitaly Kuznetsov wrote: >>> >>> When reviewing my "x86/hyper-v: use cheaper HVCALL_FLUSH_VIRTUAL_ADDRESS_ >>> {LIST,SPACE} hypercalls when possible" patch Michael

[RFC PATCH for 4.18 2/2] rseq: check that rseq->rseq_cs padding is zero

2018-06-28 Thread Mathieu Desnoyers
On 32-bit kernels, the rseq->rseq_cs_padding field is never read by the kernel. However, 64-bit kernels dealing with 32-bit compat tasks read the full 64-bit in its entirety, and terminates the offending process with a segmentation fault if the upper 32 bits are set due to failure of

[RFC PATCH for 4.18 2/2] rseq: check that rseq->rseq_cs padding is zero

2018-06-28 Thread Mathieu Desnoyers
On 32-bit kernels, the rseq->rseq_cs_padding field is never read by the kernel. However, 64-bit kernels dealing with 32-bit compat tasks read the full 64-bit in its entirety, and terminates the offending process with a segmentation fault if the upper 32 bits are set due to failure of

Re: 答复: KVM guest sometimes failed to boot because of kernel stack overflow if KPTI is enabled on a hisilicon ARM64 platform.

2018-06-28 Thread Mark Rutland
On Thu, Jun 28, 2018 at 04:08:24PM +, Wangxuefeng (E) wrote: > Hi, mark > Your means is that DMB must make sure the completion of prior load/store > or CMO and make sure the data is visible to all obsevers (no matter device or > cacheable). DMB not only keep order? Not quite -- DMB

Re: 答复: KVM guest sometimes failed to boot because of kernel stack overflow if KPTI is enabled on a hisilicon ARM64 platform.

2018-06-28 Thread Mark Rutland
On Thu, Jun 28, 2018 at 04:08:24PM +, Wangxuefeng (E) wrote: > Hi, mark > Your means is that DMB must make sure the completion of prior load/store > or CMO and make sure the data is visible to all obsevers (no matter device or > cacheable). DMB not only keep order? Not quite -- DMB

<    1   2   3   4   5   6   7   8   9   10   >