Re: [PATCH v2] arm64: kprobe: make page to RO mode when allocate it

2018-10-30 Thread Ard Biesheuvel
Hi Anders, > On 30 Oct 2018, at 08:38, Anders Roxell wrote: > > Commit 1404d6f13e47 ("arm64: dump: Add checking for writable and exectuable > pages") > has successfully identified code that leaves a page with W+X > permissions. > > [3.245140] arm64/mm: Found insecure W+X mapping at

Re: [PATCH v2] arm64: kprobe: make page to RO mode when allocate it

2018-10-30 Thread Ard Biesheuvel
Hi Anders, > On 30 Oct 2018, at 08:38, Anders Roxell wrote: > > Commit 1404d6f13e47 ("arm64: dump: Add checking for writable and exectuable > pages") > has successfully identified code that leaves a page with W+X > permissions. > > [3.245140] arm64/mm: Found insecure W+X mapping at

Re: [PATCH v2] arm64: kprobe: make page to RO mode when allocate it

2018-10-30 Thread Will Deacon
On Tue, Oct 30, 2018 at 12:38:50PM +0100, Anders Roxell wrote: > Commit 1404d6f13e47 ("arm64: dump: Add checking for writable and exectuable > pages") > has successfully identified code that leaves a page with W+X > permissions. > > [3.245140] arm64/mm: Found insecure W+X mapping at address

Re: [PATCH v2] arm64: kprobe: make page to RO mode when allocate it

2018-10-30 Thread Will Deacon
On Tue, Oct 30, 2018 at 12:38:50PM +0100, Anders Roxell wrote: > Commit 1404d6f13e47 ("arm64: dump: Add checking for writable and exectuable > pages") > has successfully identified code that leaves a page with W+X > permissions. > > [3.245140] arm64/mm: Found insecure W+X mapping at address

Re: [RFC PATCH v2 3/3] mm, oom: hand over MMF_OOM_SKIP to exit path if it is guranteed to finish

2018-10-30 Thread Michal Hocko
On Tue 30-10-18 18:47:43, Tetsuo Handa wrote: > On 2018/10/30 15:31, Michal Hocko wrote: > > On Tue 30-10-18 13:45:22, Tetsuo Handa wrote: > >> Michal Hocko wrote: > >>> @@ -3156,6 +3166,13 @@ void exit_mmap(struct mm_struct *mm) > >>> vma = remove_vma(vma); > >>> } > >>>

Re: [RFC PATCH v2 3/3] mm, oom: hand over MMF_OOM_SKIP to exit path if it is guranteed to finish

2018-10-30 Thread Michal Hocko
On Tue 30-10-18 18:47:43, Tetsuo Handa wrote: > On 2018/10/30 15:31, Michal Hocko wrote: > > On Tue 30-10-18 13:45:22, Tetsuo Handa wrote: > >> Michal Hocko wrote: > >>> @@ -3156,6 +3166,13 @@ void exit_mmap(struct mm_struct *mm) > >>> vma = remove_vma(vma); > >>> } > >>>

[PATCH v2] arm64: kprobe: make page to RO mode when allocate it

2018-10-30 Thread Anders Roxell
Commit 1404d6f13e47 ("arm64: dump: Add checking for writable and exectuable pages") has successfully identified code that leaves a page with W+X permissions. [3.245140] arm64/mm: Found insecure W+X mapping at address (ptrval)/0x00d9 [3.245771] WARNING: CPU: 0 PID: 1

[PATCH v2] arm64: kprobe: make page to RO mode when allocate it

2018-10-30 Thread Anders Roxell
Commit 1404d6f13e47 ("arm64: dump: Add checking for writable and exectuable pages") has successfully identified code that leaves a page with W+X permissions. [3.245140] arm64/mm: Found insecure W+X mapping at address (ptrval)/0x00d9 [3.245771] WARNING: CPU: 0 PID: 1

[PATCH v2 2/2] writeback: don't decrement wb->refcnt if !wb->bdi

2018-10-30 Thread Anders Roxell
This happened while running in qemu-system-aarch64, the AMBA PL011 UART driver when enabling CONFIG_DEBUG_TEST_DRIVER_REMOVE. arch_initcall(pl011_init) came before subsys_initcall(default_bdi_init), devtmpfs' handle_remove() crashes because the reference count is a NULL pointer only because

[PATCH v2 2/2] writeback: don't decrement wb->refcnt if !wb->bdi

2018-10-30 Thread Anders Roxell
This happened while running in qemu-system-aarch64, the AMBA PL011 UART driver when enabling CONFIG_DEBUG_TEST_DRIVER_REMOVE. arch_initcall(pl011_init) came before subsys_initcall(default_bdi_init), devtmpfs' handle_remove() crashes because the reference count is a NULL pointer only because

[PATCH v2 1/2] serial: set suppress_bind_attrs flag only if builtin

2018-10-30 Thread Anders Roxell
When the test 'CONFIG_DEBUG_TEST_DRIVER_REMOVE=y' is enabled, arch_initcall(pl011_init) came before subsys_initcall(default_bdi_init). devtmpfs gets killed because we try to remove a file and decrement the wb reference count before the noop_backing_device_info gets initialized. [0.332075]

[PATCH v2 1/2] serial: set suppress_bind_attrs flag only if builtin

2018-10-30 Thread Anders Roxell
When the test 'CONFIG_DEBUG_TEST_DRIVER_REMOVE=y' is enabled, arch_initcall(pl011_init) came before subsys_initcall(default_bdi_init). devtmpfs gets killed because we try to remove a file and decrement the wb reference count before the noop_backing_device_info gets initialized. [0.332075]

[PATCH] bluetooth: hci_intel: clean an indentation issue, remove extraneous spaces

2018-10-30 Thread Colin King
From: Colin Ian King Trivial fix to clean up an indentation issue, remove spaces Signed-off-by: Colin Ian King --- drivers/bluetooth/hci_intel.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/bluetooth/hci_intel.c b/drivers/bluetooth/hci_intel.c index

[PATCH] bluetooth: hci_intel: clean an indentation issue, remove extraneous spaces

2018-10-30 Thread Colin King
From: Colin Ian King Trivial fix to clean up an indentation issue, remove spaces Signed-off-by: Colin Ian King --- drivers/bluetooth/hci_intel.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/bluetooth/hci_intel.c b/drivers/bluetooth/hci_intel.c index

Re: [PATCH v13 08/12] KVM: x86: Add Intel PT context switch for each vcpu

2018-10-30 Thread Alexander Shishkin
Paolo Bonzini writes: >> If you "have to enable or disable anything" it means you have to >> override the default. But the default in this patches is "no change >> compared to before the patches", leaving tracing of both host and guest >> entirely to the host, so I don't understand your remark.

Re: [PATCH v13 08/12] KVM: x86: Add Intel PT context switch for each vcpu

2018-10-30 Thread Alexander Shishkin
Paolo Bonzini writes: >> If you "have to enable or disable anything" it means you have to >> override the default. But the default in this patches is "no change >> compared to before the patches", leaving tracing of both host and guest >> entirely to the host, so I don't understand your remark.

Re: [PATCH] tpm: tpm_ibmvtpm: fix kdoc warnings

2018-10-30 Thread Jarkko Sakkinen
On Fri, 26 Oct 2018, Tomas Winkler wrote: Remove redundant lines in the kdoc: Fixes kdoc warnings: drivers/char/tpm/tpm_ibmvtpm.c:42: warning: Cannot understand * on line 42 - I thought it was a doc line drivers/char/tpm/tpm_ibmvtpm.c:57: warning: Cannot understand * on line 57 - I thought

Re: [PATCH v3] xhci: Add quirk to workaround the errata seen on Cavium Thunder-X2 Soc

2018-10-30 Thread Mathias Nyman
On 30.10.2018 12:48, Cherian, George wrote: Implement workaround for ThunderX2 Errata-129 (documented in CN99XX Known Issues" available at Cavium support site). As per ThunderX2errata-129, USB 2 device may come up as USB 1 if a connection to a USB 1 device is followed by another connection to a

Re: [PATCH] tpm: tpm_ibmvtpm: fix kdoc warnings

2018-10-30 Thread Jarkko Sakkinen
On Fri, 26 Oct 2018, Tomas Winkler wrote: Remove redundant lines in the kdoc: Fixes kdoc warnings: drivers/char/tpm/tpm_ibmvtpm.c:42: warning: Cannot understand * on line 42 - I thought it was a doc line drivers/char/tpm/tpm_ibmvtpm.c:57: warning: Cannot understand * on line 57 - I thought

Re: [PATCH v3] xhci: Add quirk to workaround the errata seen on Cavium Thunder-X2 Soc

2018-10-30 Thread Mathias Nyman
On 30.10.2018 12:48, Cherian, George wrote: Implement workaround for ThunderX2 Errata-129 (documented in CN99XX Known Issues" available at Cavium support site). As per ThunderX2errata-129, USB 2 device may come up as USB 1 if a connection to a USB 1 device is followed by another connection to a

Re: linux-next: manual merge of the compiler-attributes tree with the kbuild tree

2018-10-30 Thread Miguel Ojeda
On Tue, Oct 30, 2018 at 12:49 AM Stephen Rothwell wrote: > > Hi all, > > On Tue, 30 Oct 2018 10:46:37 +1100 Stephen Rothwell > wrote: > > > > Today's linux-next merge of the compiler-attributes tree got a conflict > > in: > > > > include/linux/compiler-gcc.h > > > > between commit: > > > >

Re: linux-next: manual merge of the compiler-attributes tree with the kbuild tree

2018-10-30 Thread Miguel Ojeda
On Tue, Oct 30, 2018 at 12:49 AM Stephen Rothwell wrote: > > Hi all, > > On Tue, 30 Oct 2018 10:46:37 +1100 Stephen Rothwell > wrote: > > > > Today's linux-next merge of the compiler-attributes tree got a conflict > > in: > > > > include/linux/compiler-gcc.h > > > > between commit: > > > >

Re: Can VFIO pin only a specific region of guest mem when use pass through devices?

2018-10-30 Thread Simon Guo
On Tue, Oct 30, 2018 at 11:00:51AM +0800, Peter Xu wrote: > On Mon, Oct 29, 2018 at 12:29:22PM -0600, Alex Williamson wrote: > > On Mon, 29 Oct 2018 17:14:46 +0800 > > Jason Wang wrote: > > > > > On 2018/10/29 上午10:42, Simon Guo wrote: > > > > Hi, > > > > > > > > I am using network device pass

Re: Can VFIO pin only a specific region of guest mem when use pass through devices?

2018-10-30 Thread Simon Guo
On Tue, Oct 30, 2018 at 11:00:51AM +0800, Peter Xu wrote: > On Mon, Oct 29, 2018 at 12:29:22PM -0600, Alex Williamson wrote: > > On Mon, 29 Oct 2018 17:14:46 +0800 > > Jason Wang wrote: > > > > > On 2018/10/29 上午10:42, Simon Guo wrote: > > > > Hi, > > > > > > > > I am using network device pass

Re: [RFC PATCH] Implement /proc/pid/kill

2018-10-30 Thread Christian Brauner
On Tue, Oct 30, 2018 at 12:12 PM Daniel Colascione wrote: > > On Tue, Oct 30, 2018 at 11:04 AM, Christian Brauner > wrote: > > On Tue, Oct 30, 2018 at 11:48 AM Daniel Colascione > > wrote: > >> > >> On Tue, Oct 30, 2018 at 10:40 AM, Christian Brauner > >> wrote: > >> > On Tue, Oct 30, 2018 at

Re: [RFC PATCH] Implement /proc/pid/kill

2018-10-30 Thread Christian Brauner
On Tue, Oct 30, 2018 at 12:12 PM Daniel Colascione wrote: > > On Tue, Oct 30, 2018 at 11:04 AM, Christian Brauner > wrote: > > On Tue, Oct 30, 2018 at 11:48 AM Daniel Colascione > > wrote: > >> > >> On Tue, Oct 30, 2018 at 10:40 AM, Christian Brauner > >> wrote: > >> > On Tue, Oct 30, 2018 at

Re: Regression found (Stop-marking-clocks-as-CLK_IS_CRITICAL)

2018-10-30 Thread Hans de Goede
Hi Dean, Attached are 2 different attempts at fixing this. When trying these patches do not forget to remove the revert of the "Stop-marking-clocks-as-CLK_IS_CRITICAL" commit. Please first try the 0001-ASoC-intel-cht_bsw_max98090_ti-Use-pmc_plt_clk_0-ins.patch patch I expect that one to do

Re: Regression found (Stop-marking-clocks-as-CLK_IS_CRITICAL)

2018-10-30 Thread Hans de Goede
Hi Dean, Attached are 2 different attempts at fixing this. When trying these patches do not forget to remove the revert of the "Stop-marking-clocks-as-CLK_IS_CRITICAL" commit. Please first try the 0001-ASoC-intel-cht_bsw_max98090_ti-Use-pmc_plt_clk_0-ins.patch patch I expect that one to do

[PATCH] staging: xgifb: clean an indentation issue

2018-10-30 Thread Colin King
From: Colin Ian King Trivial fix to clean up an indentation issue Signed-off-by: Colin Ian King --- drivers/staging/xgifb/XGI_main_26.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/staging/xgifb/XGI_main_26.c b/drivers/staging/xgifb/XGI_main_26.c index

[PATCH] staging: xgifb: clean an indentation issue

2018-10-30 Thread Colin King
From: Colin Ian King Trivial fix to clean up an indentation issue Signed-off-by: Colin Ian King --- drivers/staging/xgifb/XGI_main_26.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/staging/xgifb/XGI_main_26.c b/drivers/staging/xgifb/XGI_main_26.c index

Re: [PATCH] intel_th: Fix a missing-check bug

2018-10-30 Thread Alexander Shishkin
Wenwen Wang writes: > Hello, > > Can anyone confirm this bug? Thanks! Commonly this burden lies with the author of the patch. If you fix a bug, you need to be able to demonstrate it. If it's a mere hypothesis, there needs to be a detailed analysis of how exactly can this be exploited and what

Re: [PATCH] intel_th: Fix a missing-check bug

2018-10-30 Thread Alexander Shishkin
Wenwen Wang writes: > Hello, > > Can anyone confirm this bug? Thanks! Commonly this burden lies with the author of the patch. If you fix a bug, you need to be able to demonstrate it. If it's a mere hypothesis, there needs to be a detailed analysis of how exactly can this be exploited and what

[PATCH] staging: vt6656: clean up few indentation issues

2018-10-30 Thread Colin King
From: Colin Ian King Trivial fix to clean up indentation issues Signed-off-by: Colin Ian King --- drivers/staging/vt6656/firmware.c | 2 +- drivers/staging/vt6656/main_usb.c | 8 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/staging/vt6656/firmware.c

[PATCH] staging: vt6656: clean up few indentation issues

2018-10-30 Thread Colin King
From: Colin Ian King Trivial fix to clean up indentation issues Signed-off-by: Colin Ian King --- drivers/staging/vt6656/firmware.c | 2 +- drivers/staging/vt6656/main_usb.c | 8 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/staging/vt6656/firmware.c

Re: [RFC PATCH] Implement /proc/pid/kill

2018-10-30 Thread Daniel Colascione
On Tue, Oct 30, 2018 at 11:04 AM, Christian Brauner wrote: > On Tue, Oct 30, 2018 at 11:48 AM Daniel Colascione wrote: >> >> On Tue, Oct 30, 2018 at 10:40 AM, Christian Brauner >> wrote: >> > On Tue, Oct 30, 2018 at 11:39:11AM +0100, Christian Brauner wrote: >> >> On Tue, Oct 30, 2018 at

Re: INFO: rcu detected stall in do_idle

2018-10-30 Thread Juri Lelli
On 30/10/18 11:45, Peter Zijlstra wrote: [...] > Hurm.. right. We knew of this issue back when we did it. > I suppose now it hurts and we need to figure something out. > > By virtue of being a real-time class, we do indeed need to have deadline > on the wall-clock. But if we then don't account

Re: [RFC PATCH] Implement /proc/pid/kill

2018-10-30 Thread Daniel Colascione
On Tue, Oct 30, 2018 at 11:04 AM, Christian Brauner wrote: > On Tue, Oct 30, 2018 at 11:48 AM Daniel Colascione wrote: >> >> On Tue, Oct 30, 2018 at 10:40 AM, Christian Brauner >> wrote: >> > On Tue, Oct 30, 2018 at 11:39:11AM +0100, Christian Brauner wrote: >> >> On Tue, Oct 30, 2018 at

Re: INFO: rcu detected stall in do_idle

2018-10-30 Thread Juri Lelli
On 30/10/18 11:45, Peter Zijlstra wrote: [...] > Hurm.. right. We knew of this issue back when we did it. > I suppose now it hurts and we need to figure something out. > > By virtue of being a real-time class, we do indeed need to have deadline > on the wall-clock. But if we then don't account

[PATCH] soc: ti: QMSS: Fix usage of irq_set_affinity_hint

2018-10-30 Thread Marc Zyngier
The Keystone QMSS driver is pretty damaged, in the sense that it does things like this: irq_set_affinity_hint(irq, to_cpumask(_map)); where cpu_map is a local variable. As we leave the function, this will point to nowhere-land, and things will end-up badly. Instead, let's use a proper

[PATCH] soc: ti: QMSS: Fix usage of irq_set_affinity_hint

2018-10-30 Thread Marc Zyngier
The Keystone QMSS driver is pretty damaged, in the sense that it does things like this: irq_set_affinity_hint(irq, to_cpumask(_map)); where cpu_map is a local variable. As we leave the function, this will point to nowhere-land, and things will end-up badly. Instead, let's use a proper

[PATCH] staging: speakup: clean up few indentation issues

2018-10-30 Thread Colin King
From: Colin Ian King Trivial fix to clean up indentation issues across the driver Signed-off-by: Colin Ian King --- drivers/staging/speakup/kobjects.c | 2 +- drivers/staging/speakup/speakup_decpc.c | 6 +++--- drivers/staging/speakup/speakup_keypc.c | 2 +- 3 files changed, 5

[PATCH] staging: speakup: clean up few indentation issues

2018-10-30 Thread Colin King
From: Colin Ian King Trivial fix to clean up indentation issues across the driver Signed-off-by: Colin Ian King --- drivers/staging/speakup/kobjects.c | 2 +- drivers/staging/speakup/speakup_decpc.c | 6 +++--- drivers/staging/speakup/speakup_keypc.c | 2 +- 3 files changed, 5

Re: INFO: rcu detected stall in do_idle

2018-10-30 Thread luca abeni
Hi Peter, On Tue, 30 Oct 2018 11:45:54 +0100 Peter Zijlstra wrote: [...] > > 2. This is related to perf_event_open syscall reproducer does > > before becoming DEADLINE and entering the busy loop. Enabling of > > perf swevents generates lot of hrtimers load that happens in the > > reproducer

Re: INFO: rcu detected stall in do_idle

2018-10-30 Thread luca abeni
Hi Peter, On Tue, 30 Oct 2018 11:45:54 +0100 Peter Zijlstra wrote: [...] > > 2. This is related to perf_event_open syscall reproducer does > > before becoming DEADLINE and entering the busy loop. Enabling of > > perf swevents generates lot of hrtimers load that happens in the > > reproducer

[PATCH] mmc: sdhci-cadence: include instead of

2018-10-30 Thread Masahiro Yamada
The reason of including here is just for BIT() and GENMASK() macros. Since commit 8bd9cb51daac8 ("locking/atomics, asm-generic: Move some macros from to a new file"), is enough for such compile-time macros. Signed-off-by: Masahiro Yamada --- drivers/mmc/host/sdhci-cadence.c | 2 +- 1 file

[PATCH] mmc: sdhci-cadence: include instead of

2018-10-30 Thread Masahiro Yamada
The reason of including here is just for BIT() and GENMASK() macros. Since commit 8bd9cb51daac8 ("locking/atomics, asm-generic: Move some macros from to a new file"), is enough for such compile-time macros. Signed-off-by: Masahiro Yamada --- drivers/mmc/host/sdhci-cadence.c | 2 +- 1 file

Re: [RFC PATCH] Implement /proc/pid/kill

2018-10-30 Thread Christian Brauner
On Tue, Oct 30, 2018 at 11:48 AM Daniel Colascione wrote: > > On Tue, Oct 30, 2018 at 10:40 AM, Christian Brauner > wrote: > > On Tue, Oct 30, 2018 at 11:39:11AM +0100, Christian Brauner wrote: > >> On Tue, Oct 30, 2018 at 08:50:22AM +, Daniel Colascione wrote: > >> > On Tue, Oct 30, 2018 at

Re: [RFC PATCH] Implement /proc/pid/kill

2018-10-30 Thread Christian Brauner
On Tue, Oct 30, 2018 at 11:48 AM Daniel Colascione wrote: > > On Tue, Oct 30, 2018 at 10:40 AM, Christian Brauner > wrote: > > On Tue, Oct 30, 2018 at 11:39:11AM +0100, Christian Brauner wrote: > >> On Tue, Oct 30, 2018 at 08:50:22AM +, Daniel Colascione wrote: > >> > On Tue, Oct 30, 2018 at

Re: Regression found (Stop-marking-clocks-as-CLK_IS_CRITICAL)

2018-10-30 Thread Hans de Goede
Hi, On 30-10-18 11:17, Hans de Goede wrote: Hi Pierre-Louis, On 29-10-18 23:03, Pierre-Louis Bossart wrote: On 10/29/18 2:08 PM, Dean Wallace wrote: On 29-10-18, Andy Shevchenko wrote: On Mon, Oct 29, 2018 at 7:52 PM Andy Shevchenko wrote: Cc: Pierre as well. On Mon, Oct 29, 2018 at

Re: Regression found (Stop-marking-clocks-as-CLK_IS_CRITICAL)

2018-10-30 Thread Hans de Goede
Hi, On 30-10-18 11:17, Hans de Goede wrote: Hi Pierre-Louis, On 29-10-18 23:03, Pierre-Louis Bossart wrote: On 10/29/18 2:08 PM, Dean Wallace wrote: On 29-10-18, Andy Shevchenko wrote: On Mon, Oct 29, 2018 at 7:52 PM Andy Shevchenko wrote: Cc: Pierre as well. On Mon, Oct 29, 2018 at

Re: [PATCH v5 2/2] sched/fair: update scale invariance of PELT

2018-10-30 Thread Vincent Guittot
Hi Pavan, On Tue, 30 Oct 2018 at 10:19, Pavan Kondeti wrote: > > Hi Vincent, > > On Fri, Oct 26, 2018 at 06:11:43PM +0200, Vincent Guittot wrote: > > diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c > > index 6806c27..7a69673 100644 > > --- a/kernel/sched/fair.c > > +++

Re: [PATCH v5 2/2] sched/fair: update scale invariance of PELT

2018-10-30 Thread Vincent Guittot
Hi Pavan, On Tue, 30 Oct 2018 at 10:19, Pavan Kondeti wrote: > > Hi Vincent, > > On Fri, Oct 26, 2018 at 06:11:43PM +0200, Vincent Guittot wrote: > > diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c > > index 6806c27..7a69673 100644 > > --- a/kernel/sched/fair.c > > +++

Re: [RFC PATCH] Implement /proc/pid/kill

2018-10-30 Thread Daniel Colascione
On Tue, Oct 30, 2018 at 10:40 AM, Christian Brauner wrote: > On Tue, Oct 30, 2018 at 11:39:11AM +0100, Christian Brauner wrote: >> On Tue, Oct 30, 2018 at 08:50:22AM +, Daniel Colascione wrote: >> > On Tue, Oct 30, 2018 at 3:21 AM, Joel Fernandes wrote: >> > > On Mon, Oct 29, 2018 at 3:11 PM

Re: [RFC PATCH] Implement /proc/pid/kill

2018-10-30 Thread Daniel Colascione
On Tue, Oct 30, 2018 at 10:40 AM, Christian Brauner wrote: > On Tue, Oct 30, 2018 at 11:39:11AM +0100, Christian Brauner wrote: >> On Tue, Oct 30, 2018 at 08:50:22AM +, Daniel Colascione wrote: >> > On Tue, Oct 30, 2018 at 3:21 AM, Joel Fernandes wrote: >> > > On Mon, Oct 29, 2018 at 3:11 PM

[PATCH v2 2/2] irqchip: Add support for Renesas RZ/N1 GPIO interrupt multiplexer

2018-10-30 Thread Phil Edworthy
On RZ/N1 devices, there are 3 Synopsys DesignWare GPIO blocks each configured to have 32 interrupt outputs, so we have a total of 96 GPIO interrupts. All of these are passed to the GPIO IRQ Muxer, which selects 8 of the GPIO interrupts to pass onto the GIC. The interrupt signals aren't latched, so

[PATCH v2 2/2] irqchip: Add support for Renesas RZ/N1 GPIO interrupt multiplexer

2018-10-30 Thread Phil Edworthy
On RZ/N1 devices, there are 3 Synopsys DesignWare GPIO blocks each configured to have 32 interrupt outputs, so we have a total of 96 GPIO interrupts. All of these are passed to the GPIO IRQ Muxer, which selects 8 of the GPIO interrupts to pass onto the GIC. The interrupt signals aren't latched, so

Re: INFO: rcu detected stall in do_idle

2018-10-30 Thread Peter Zijlstra
On Wed, Oct 24, 2018 at 02:03:35PM +0200, Juri Lelli wrote: > Pain points: > > 1. Granularity of enforcement (at each tick) is huge compared with > the task runtime. This makes starting the replenishment timer, > when runtime is depleted, always to fail (because old deadline > is way

Re: INFO: rcu detected stall in do_idle

2018-10-30 Thread Peter Zijlstra
On Wed, Oct 24, 2018 at 02:03:35PM +0200, Juri Lelli wrote: > Pain points: > > 1. Granularity of enforcement (at each tick) is huge compared with > the task runtime. This makes starting the replenishment timer, > when runtime is depleted, always to fail (because old deadline > is way

[tip:x86/urgent] x86/numa_emulation: Fix uniform-split numa emulation

2018-10-30 Thread tip-bot for Dave Jiang
Commit-ID: c6ee7a548e2c291398b4f32c1f741c66b9f98e1c Gitweb: https://git.kernel.org/tip/c6ee7a548e2c291398b4f32c1f741c66b9f98e1c Author: Dave Jiang AuthorDate: Thu, 25 Oct 2018 13:26:45 -0700 Committer: Thomas Gleixner CommitDate: Tue, 30 Oct 2018 11:36:43 +0100 x86/numa_emulation: Fix

[tip:x86/urgent] x86/numa_emulation: Fix uniform-split numa emulation

2018-10-30 Thread tip-bot for Dave Jiang
Commit-ID: c6ee7a548e2c291398b4f32c1f741c66b9f98e1c Gitweb: https://git.kernel.org/tip/c6ee7a548e2c291398b4f32c1f741c66b9f98e1c Author: Dave Jiang AuthorDate: Thu, 25 Oct 2018 13:26:45 -0700 Committer: Thomas Gleixner CommitDate: Tue, 30 Oct 2018 11:36:43 +0100 x86/numa_emulation: Fix

Re: [RFC PATCH] Implement /proc/pid/kill

2018-10-30 Thread Christian Brauner
On Tue, Oct 30, 2018 at 11:39:11AM +0100, Christian Brauner wrote: > On Tue, Oct 30, 2018 at 08:50:22AM +, Daniel Colascione wrote: > > On Tue, Oct 30, 2018 at 3:21 AM, Joel Fernandes wrote: > > > On Mon, Oct 29, 2018 at 3:11 PM Daniel Colascione > > > wrote: > > >> > > >> Add a simple

Re: [RFC PATCH] Implement /proc/pid/kill

2018-10-30 Thread Christian Brauner
On Tue, Oct 30, 2018 at 11:39:11AM +0100, Christian Brauner wrote: > On Tue, Oct 30, 2018 at 08:50:22AM +, Daniel Colascione wrote: > > On Tue, Oct 30, 2018 at 3:21 AM, Joel Fernandes wrote: > > > On Mon, Oct 29, 2018 at 3:11 PM Daniel Colascione > > > wrote: > > >> > > >> Add a simple

Re: [RFC PATCH] Implement /proc/pid/kill

2018-10-30 Thread Christian Brauner
On Tue, Oct 30, 2018 at 08:50:22AM +, Daniel Colascione wrote: > On Tue, Oct 30, 2018 at 3:21 AM, Joel Fernandes wrote: > > On Mon, Oct 29, 2018 at 3:11 PM Daniel Colascione wrote: > >> > >> Add a simple proc-based kill interface. To use /proc/pid/kill, just > >> write the signal number in

Re: [RFC PATCH] Implement /proc/pid/kill

2018-10-30 Thread Christian Brauner
On Tue, Oct 30, 2018 at 08:50:22AM +, Daniel Colascione wrote: > On Tue, Oct 30, 2018 at 3:21 AM, Joel Fernandes wrote: > > On Mon, Oct 29, 2018 at 3:11 PM Daniel Colascione wrote: > >> > >> Add a simple proc-based kill interface. To use /proc/pid/kill, just > >> write the signal number in

Re: [PATCH RFC v1 3/8] timer: Export next wakeup time of a CPU

2018-10-30 Thread Ulf Hansson
On 29 October 2018 at 23:36, Thomas Gleixner wrote: > Raju, > > On Thu, 11 Oct 2018, Raju P.L.S.S.S.N wrote: >> >> +/** >> + * tick_nohz_get_next_wakeup - return the next wake up of the CPU > > Lacks documentation of @cpu. Please include kernel docs into your test > builds. Good point! > >> +

Re: [PATCH RFC v1 3/8] timer: Export next wakeup time of a CPU

2018-10-30 Thread Ulf Hansson
On 29 October 2018 at 23:36, Thomas Gleixner wrote: > Raju, > > On Thu, 11 Oct 2018, Raju P.L.S.S.S.N wrote: >> >> +/** >> + * tick_nohz_get_next_wakeup - return the next wake up of the CPU > > Lacks documentation of @cpu. Please include kernel docs into your test > builds. Good point! > >> +

Re: [PATCH v2 1/2] sched/fair: Cleanup load_balance() condition

2018-10-30 Thread Valentin Schneider
Hi, On 26/09/2018 16:12, Valentin Schneider wrote: > The alignment of the condition is off, clean that up. > > Also, logical operators have lower precedence than bitwise/relational > operators, so remove one layer of parentheses to make the condition a > bit simpler to follow. > >

Re: [PATCH v2 1/2] sched/fair: Cleanup load_balance() condition

2018-10-30 Thread Valentin Schneider
Hi, On 26/09/2018 16:12, Valentin Schneider wrote: > The alignment of the condition is off, clean that up. > > Also, logical operators have lower precedence than bitwise/relational > operators, so remove one layer of parentheses to make the condition a > bit simpler to follow. > >

Re: [PATCH v2 0/8] OLPC 1.75 Keyboard/Touchpad fixes

2018-10-30 Thread Pavel Machek
Hi! > > https://github.com/hackerspace/olpc-xo175-linux/wiki/How-to-run-an-up-to-date-Linux-on-a-XO-1.75 > > > > I didn't test it yet -- will do when I get home in the evening. But > > chances are it's good enough and I guess you'd be able to get it > > working even if I messed up some details.

Re: [PATCH v2 0/8] OLPC 1.75 Keyboard/Touchpad fixes

2018-10-30 Thread Pavel Machek
Hi! > > https://github.com/hackerspace/olpc-xo175-linux/wiki/How-to-run-an-up-to-date-Linux-on-a-XO-1.75 > > > > I didn't test it yet -- will do when I get home in the evening. But > > chances are it's good enough and I guess you'd be able to get it > > working even if I messed up some details.

RE: [PATCH v13 06/12] KVM: x86: Add Intel PT virtualization work mode

2018-10-30 Thread Thomas Gleixner
On Tue, 30 Oct 2018, Kang, Luwei wrote: > > >> This part is in the " Intel® Architecture Instruction Set Extensions and > > >> Future Features Programming Reference" > > >> https://software.intel.com/sites/default/files/managed/c5/15/architec > > >>

RE: [PATCH v13 06/12] KVM: x86: Add Intel PT virtualization work mode

2018-10-30 Thread Thomas Gleixner
On Tue, 30 Oct 2018, Kang, Luwei wrote: > > >> This part is in the " Intel® Architecture Instruction Set Extensions and > > >> Future Features Programming Reference" > > >> https://software.intel.com/sites/default/files/managed/c5/15/architec > > >>

[PATCH 2/4] nvmem: meson-efuse: bindings: add peripheral clock

2018-10-30 Thread Jerome Brunet
The efuse found in gx SoC requires a peripheral clock to properly operate. We have been able to work without it until now because the clock was on by default, and left on by the CCF. Soon, it will not be the case anymore, so the device needs to claim the clock it needs Signed-off-by: Jerome

[PATCH 0/4] nvmem: meson: efuse updates

2018-10-30 Thread Jerome Brunet
The first change of this patchset just adds add error message in case of failure. If there is problem with the secure monitor, the SM_EFUSE_USER_MAX call will be first one to fail so it is better if it give us a clue to help debugging, instead af silently failing. Next this series adds the

[PATCH 1/4] nvmem: meson-efuse: add error message on user_max failure.

2018-10-30 Thread Jerome Brunet
Add an explicit error message when SM_EFUSE_USER_MAX command fails Signed-off-by: Jerome Brunet --- drivers/nvmem/meson-efuse.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/nvmem/meson-efuse.c b/drivers/nvmem/meson-efuse.c index d769840d1e18..40b9df1d030d

[PATCH 4/4] nvmem: meson-efuse: add peripheral clock

2018-10-30 Thread Jerome Brunet
Get and enable the peripheral clock required by the efuse device. The driver has been handle to work without it so far because the clock was left enabled by default but it won't be the case soon. Signed-off-by: Jerome Brunet --- drivers/nvmem/meson-efuse.c | 25 + 1 file

[PATCH 0/4] nvmem: meson: efuse updates

2018-10-30 Thread Jerome Brunet
The first change of this patchset just adds add error message in case of failure. If there is problem with the secure monitor, the SM_EFUSE_USER_MAX call will be first one to fail so it is better if it give us a clue to help debugging, instead af silently failing. Next this series adds the

[PATCH 1/4] nvmem: meson-efuse: add error message on user_max failure.

2018-10-30 Thread Jerome Brunet
Add an explicit error message when SM_EFUSE_USER_MAX command fails Signed-off-by: Jerome Brunet --- drivers/nvmem/meson-efuse.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/nvmem/meson-efuse.c b/drivers/nvmem/meson-efuse.c index d769840d1e18..40b9df1d030d

[PATCH 4/4] nvmem: meson-efuse: add peripheral clock

2018-10-30 Thread Jerome Brunet
Get and enable the peripheral clock required by the efuse device. The driver has been handle to work without it so far because the clock was left enabled by default but it won't be the case soon. Signed-off-by: Jerome Brunet --- drivers/nvmem/meson-efuse.c | 25 + 1 file

[PATCH 2/4] nvmem: meson-efuse: bindings: add peripheral clock

2018-10-30 Thread Jerome Brunet
The efuse found in gx SoC requires a peripheral clock to properly operate. We have been able to work without it until now because the clock was on by default, and left on by the CCF. Soon, it will not be the case anymore, so the device needs to claim the clock it needs Signed-off-by: Jerome

[PATCH 3/4] arm64: dts: meson-gx: add efuse pclk

2018-10-30 Thread Jerome Brunet
Add the required peripheral clock for the efuse device. Signed-off-by: Jerome Brunet --- arch/arm64/boot/dts/amlogic/meson-gxbb.dtsi | 4 arch/arm64/boot/dts/amlogic/meson-gxl.dtsi | 4 2 files changed, 8 insertions(+) diff --git a/arch/arm64/boot/dts/amlogic/meson-gxbb.dtsi

[PATCH 3/4] arm64: dts: meson-gx: add efuse pclk

2018-10-30 Thread Jerome Brunet
Add the required peripheral clock for the efuse device. Signed-off-by: Jerome Brunet --- arch/arm64/boot/dts/amlogic/meson-gxbb.dtsi | 4 arch/arm64/boot/dts/amlogic/meson-gxl.dtsi | 4 2 files changed, 8 insertions(+) diff --git a/arch/arm64/boot/dts/amlogic/meson-gxbb.dtsi

ERROR: "numa_slit" [drivers/nvme/host/nvme-core.ko] undefined!

2018-10-30 Thread kbuild test robot
Hi Matias, FYI, the error/warning still remains. tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 11743c56785c751c087eecdb98713eef796609e0 commit: 73569e11032fc5a9b314b6351632cfca7793afd5 lightnvm: remove dependencies on BLK_DEV_NVME and PCI date: 3

ERROR: "numa_slit" [drivers/nvme/host/nvme-core.ko] undefined!

2018-10-30 Thread kbuild test robot
Hi Matias, FYI, the error/warning still remains. tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 11743c56785c751c087eecdb98713eef796609e0 commit: 73569e11032fc5a9b314b6351632cfca7793afd5 lightnvm: remove dependencies on BLK_DEV_NVME and PCI date: 3

Re: Regression found (Stop-marking-clocks-as-CLK_IS_CRITICAL)

2018-10-30 Thread Hans de Goede
Hi Pierre-Louis, On 29-10-18 23:03, Pierre-Louis Bossart wrote: On 10/29/18 2:08 PM, Dean Wallace wrote: On 29-10-18, Andy Shevchenko wrote: On Mon, Oct 29, 2018 at 7:52 PM Andy Shevchenko wrote: Cc: Pierre as well. On Mon, Oct 29, 2018 at 7:48 PM Stephen Boyd wrote: Quoting Dean

Re: Regression found (Stop-marking-clocks-as-CLK_IS_CRITICAL)

2018-10-30 Thread Hans de Goede
Hi Pierre-Louis, On 29-10-18 23:03, Pierre-Louis Bossart wrote: On 10/29/18 2:08 PM, Dean Wallace wrote: On 29-10-18, Andy Shevchenko wrote: On Mon, Oct 29, 2018 at 7:52 PM Andy Shevchenko wrote: Cc: Pierre as well. On Mon, Oct 29, 2018 at 7:48 PM Stephen Boyd wrote: Quoting Dean

[PATCH] mmc: mmci: add variant property to send stop cmd if a command fail

2018-10-30 Thread Ludovic Barre
From: Ludovic Barre The mmc framework follows the requirement of SD_Specification: the STOP_TRANSMISSION is sent on multiple write/read commands and the stop command (alone), not needed on other ADTC commands. But, if an error happens on command or data step, some variants require a stop

[PATCH] mmc: mmci: add variant property to send stop cmd if a command fail

2018-10-30 Thread Ludovic Barre
From: Ludovic Barre The mmc framework follows the requirement of SD_Specification: the STOP_TRANSMISSION is sent on multiple write/read commands and the stop command (alone), not needed on other ADTC commands. But, if an error happens on command or data step, some variants require a stop

[PATCH v6 5/6] rtc: rk808: add RK809 and RK817 support.

2018-10-30 Thread Tony Xie
RK809 and RK817 are power management IC chips for multimedia products. Most of their functions and registers are same, including the rtc. Signed-off-by: Tony Xie Acked-by: Alexandre Belloni --- drivers/rtc/Kconfig | 4 +-- drivers/rtc/rtc-rk808.c | 68

[PATCH v6 5/6] rtc: rk808: add RK809 and RK817 support.

2018-10-30 Thread Tony Xie
RK809 and RK817 are power management IC chips for multimedia products. Most of their functions and registers are same, including the rtc. Signed-off-by: Tony Xie Acked-by: Alexandre Belloni --- drivers/rtc/Kconfig | 4 +-- drivers/rtc/rtc-rk808.c | 68

[PATCH v6 6/6] clk: RK808: add RK809 and RK817 support.

2018-10-30 Thread Tony Xie
RK809 and RK817 are power management IC chips for multimedia products. most of their functions and registers are same, including the clkout funciton. Signed-off-by: Tony Xie Acked-by: Stephen Boyd --- drivers/clk/Kconfig | 9 --- drivers/clk/clk-rk808.c | 64

[PATCH v6 6/6] clk: RK808: add RK809 and RK817 support.

2018-10-30 Thread Tony Xie
RK809 and RK817 are power management IC chips for multimedia products. most of their functions and registers are same, including the clkout funciton. Signed-off-by: Tony Xie Acked-by: Stephen Boyd --- drivers/clk/Kconfig | 9 --- drivers/clk/clk-rk808.c | 64

RE: [PATCH v13 06/12] KVM: x86: Add Intel PT virtualization work mode

2018-10-30 Thread Kang, Luwei
> >> This part is in the " Intel® Architecture Instruction Set Extensions and > >> Future Features Programming Reference" > >> https://software.intel.com/sites/default/files/managed/c5/15/architec > >> ture-instruction-set-extensions-programming-reference.pdf > >> > > Yet another PDF which will

RE: [PATCH v13 06/12] KVM: x86: Add Intel PT virtualization work mode

2018-10-30 Thread Kang, Luwei
> >> This part is in the " Intel® Architecture Instruction Set Extensions and > >> Future Features Programming Reference" > >> https://software.intel.com/sites/default/files/managed/c5/15/architec > >> ture-instruction-set-extensions-programming-reference.pdf > >> > > Yet another PDF which will

[PATCH 17/17] arm64: dts: qcom: pms405: Add pon and pwrkey nodes

2018-10-30 Thread Vinod Koul
PMS405 also features PON block, so add PON and PWRKEY nodes Signed-off-by: Vinod Koul --- arch/arm64/boot/dts/qcom/pms405.dtsi | 16 1 file changed, 16 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/pms405.dtsi b/arch/arm64/boot/dts/qcom/pms405.dtsi index

[PATCH 14/17] arm64: dts: qcom: qcs404: add prng-ee node

2018-10-30 Thread Vinod Koul
RNG hardware in QCS404 features (Execution Environment) EE for HLOS to use, add the node for prng-ee for QCS404. Signed-off-by: Vinod Koul --- arch/arm64/boot/dts/qcom/qcs404.dtsi | 7 +++ 1 file changed, 7 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/qcs404.dtsi

[PATCH 17/17] arm64: dts: qcom: pms405: Add pon and pwrkey nodes

2018-10-30 Thread Vinod Koul
PMS405 also features PON block, so add PON and PWRKEY nodes Signed-off-by: Vinod Koul --- arch/arm64/boot/dts/qcom/pms405.dtsi | 16 1 file changed, 16 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/pms405.dtsi b/arch/arm64/boot/dts/qcom/pms405.dtsi index

[PATCH 14/17] arm64: dts: qcom: qcs404: add prng-ee node

2018-10-30 Thread Vinod Koul
RNG hardware in QCS404 features (Execution Environment) EE for HLOS to use, add the node for prng-ee for QCS404. Signed-off-by: Vinod Koul --- arch/arm64/boot/dts/qcom/qcs404.dtsi | 7 +++ 1 file changed, 7 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/qcs404.dtsi

[PATCH 10/17] arm64: dts: qcom: pms405: add rtc node

2018-10-30 Thread Vinod Koul
RTC is found on PMIC PMS405 and is same as other PMIC used, so add the rtc node with compatible as qcom,pm8941-rtc Signed-off-by: Vinod Koul --- arch/arm64/boot/dts/qcom/pms405.dtsi | 6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/pms405.dtsi

[PATCH 12/17] arm64: dts: qcom: qcs404: Add scm firmware node

2018-10-30 Thread Vinod Koul
From: Bjorn Andersson Add the scm firmware node to QCS404 Signed-off-by: Bjorn Andersson Signed-off-by: Vinod Koul --- arch/arm64/boot/dts/qcom/qcs404.dtsi | 7 +++ 1 file changed, 7 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/qcs404.dtsi b/arch/arm64/boot/dts/qcom/qcs404.dtsi

<    5   6   7   8   9   10   11   12   13   >