Re: [PATCH] AMD perf PMU events for AMD Family 17h.

2018-08-27 Thread Martin Liška
On 08/23/2018 06:16 PM, William Cohen wrote: > On 08/23/2018 10:31 AM, Arnaldo Carvalho de Melo wrote: >> Em Thu, Aug 23, 2018 at 01:21:45PM +0200, Martin Liška escreveu: >>> May I please ping this. >> I was waiting for someone to give some ack, perhaps Will Cohen can take >> a brief look and

Re: [PATCH] AMD perf PMU events for AMD Family 17h.

2018-08-27 Thread Martin Liška
On 08/23/2018 06:16 PM, William Cohen wrote: > On 08/23/2018 10:31 AM, Arnaldo Carvalho de Melo wrote: >> Em Thu, Aug 23, 2018 at 01:21:45PM +0200, Martin Liška escreveu: >>> May I please ping this. >> I was waiting for someone to give some ack, perhaps Will Cohen can take >> a brief look and

Re: [PATCH] x86/microcode: allow non-root reading of microcode version and processor flags

2018-08-27 Thread Borislav Petkov
On Mon, Aug 27, 2018 at 04:05:35PM +0800, Jacek Tomaka wrote: > On Mon, Aug 27, 2018 at 3:52 PM, Borislav Petkov wrote: > > > Your From: is Jacek Tomaka and your SOB is different. > > Which one should I use? > Please use my SOB: Jacek Tomaka > > > (Having a single email address for both is

Re: [PATCH] x86/microcode: allow non-root reading of microcode version and processor flags

2018-08-27 Thread Borislav Petkov
On Mon, Aug 27, 2018 at 04:05:35PM +0800, Jacek Tomaka wrote: > On Mon, Aug 27, 2018 at 3:52 PM, Borislav Petkov wrote: > > > Your From: is Jacek Tomaka and your SOB is different. > > Which one should I use? > Please use my SOB: Jacek Tomaka > > > (Having a single email address for both is

[PATCH] tty:serial:imx: use spin_lock instead of spin_lock_irqsave in isr

2018-08-27 Thread jun qian
Before the program enters the uart ISR, the local interrupt has been disabled by the system, so it's not appropriate to use spin_lock_irqsave interface in the ISR. Signed-off-by: jun qian --- drivers/tty/serial/imx.c | 21 - 1 file changed, 8 insertions(+), 13 deletions(-)

[PATCH] tty:serial:imx: use spin_lock instead of spin_lock_irqsave in isr

2018-08-27 Thread jun qian
Before the program enters the uart ISR, the local interrupt has been disabled by the system, so it's not appropriate to use spin_lock_irqsave interface in the ISR. Signed-off-by: jun qian --- drivers/tty/serial/imx.c | 21 - 1 file changed, 8 insertions(+), 13 deletions(-)

Re: [PATCH v2 4/9] mmc: meson-mx-sdio: fix OF child-node lookup

2018-08-27 Thread Ulf Hansson
On 27 August 2018 at 10:21, Johan Hovold wrote: > Use the new of_get_compatible_child() helper to lookup the slot child > node instead of using of_find_compatible_node(), which searches the > entire tree from a given start node and thus can return an unrelated > (i.e. non-child) node. > > This

Re: [PATCH v2 4/9] mmc: meson-mx-sdio: fix OF child-node lookup

2018-08-27 Thread Ulf Hansson
On 27 August 2018 at 10:21, Johan Hovold wrote: > Use the new of_get_compatible_child() helper to lookup the slot child > node instead of using of_find_compatible_node(), which searches the > entire tree from a given start node and thus can return an unrelated > (i.e. non-child) node. > > This

Re: [PATCH v7 0/3] ARM: dts: at91: sama5d2: Add nodes for I2S

2018-08-27 Thread Alexandre Belloni
On 06/08/2018 14:19:45+0300, Codrin Ciubotariu wrote: > These are the remaining dts patches from the series: > [PATCH v5 0/5] ASoC: add driver for Atmel I2S controller > > v6 -> v7 > - addressed some comments regarding pin conflicts; > > v5 -> v6 > - removed unnecessary phandles to audio PLL

Re: [PATCH v7 0/3] ARM: dts: at91: sama5d2: Add nodes for I2S

2018-08-27 Thread Alexandre Belloni
On 06/08/2018 14:19:45+0300, Codrin Ciubotariu wrote: > These are the remaining dts patches from the series: > [PATCH v5 0/5] ASoC: add driver for Atmel I2S controller > > v6 -> v7 > - addressed some comments regarding pin conflicts; > > v5 -> v6 > - removed unnecessary phandles to audio PLL

Re: [PATCH v7 RESEND 1/2] ARM: dts: at91: sama5d2: add channel cells for ADC device

2018-08-27 Thread Alexandre Belloni
On 27/08/2018 16:57:12+0300, Eugen Hristev wrote: > Preparing the ADC device to connect channel consumer drivers > > Signed-off-by: Eugen Hristev > --- > Resending after merge window that includes the bindings was closed. > Rebased on 4.19-rc1 : no changes > > arch/arm/boot/dts/sama5d2.dtsi |

Re: [PATCH v7 RESEND 1/2] ARM: dts: at91: sama5d2: add channel cells for ADC device

2018-08-27 Thread Alexandre Belloni
On 27/08/2018 16:57:12+0300, Eugen Hristev wrote: > Preparing the ADC device to connect channel consumer drivers > > Signed-off-by: Eugen Hristev > --- > Resending after merge window that includes the bindings was closed. > Rebased on 4.19-rc1 : no changes > > arch/arm/boot/dts/sama5d2.dtsi |

[PATCH RESEND 2/6] arm64: add sysfs vulnerability show for meltdown

2018-08-27 Thread Mian Yousaf Kaukab
Checking CSV3 support directly in case CONFIG_UNMAP_KERNEL_AT_EL0 is not enabled. Signed-off-by: Mian Yousaf Kaukab --- arch/arm64/kernel/cpu_errata.c | 24 1 file changed, 24 insertions(+) diff --git a/arch/arm64/kernel/cpu_errata.c b/arch/arm64/kernel/cpu_errata.c

[PATCH RESEND 1/6] arm64: kpti: move check for non-vulnerable CPUs to a function

2018-08-27 Thread Mian Yousaf Kaukab
Prepare to call it in generic cpu vulnerabilities support. Signed-off-by: Mian Yousaf Kaukab --- arch/arm64/include/asm/cpufeature.h | 16 arch/arm64/kernel/cpufeature.c | 9 + 2 files changed, 17 insertions(+), 8 deletions(-) diff --git

[PATCH RESEND 3/6] arm64: add sysfs vulnerability show for spectre v1

2018-08-27 Thread Mian Yousaf Kaukab
Hard-coded since patches are merged and there are no configuration options. Signed-off-by: Mian Yousaf Kaukab --- arch/arm64/kernel/cpu_errata.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/arm64/kernel/cpu_errata.c b/arch/arm64/kernel/cpu_errata.c index

[PATCH RESEND 0/6] arm64: add support for generic cpu vulnerabilities

2018-08-27 Thread Mian Yousaf Kaukab
GENERIC_CPU_VULNERABILITIES provide a common way to figure out if a system is affected by vulnerabilities like meltdown and other variants of spectre. This small series adds support for it in arm64. Thank you, Best regards, Yousaf Mian Yousaf Kaukab (6): arm64: kpti: move check for

[PATCH RESEND 5/6] arm64: add sysfs vulnerability show for speculative store bypass

2018-08-27 Thread Mian Yousaf Kaukab
Return status based no ssbd_state. Return string "Unknown" in case CONFIG_ARM64_SSBD is disabled or arch workaround2 is not available in the firmware. Signed-off-by: Mian Yousaf Kaukab --- arch/arm64/kernel/cpu_errata.c | 20 1 file changed, 20 insertions(+) diff --git

[PATCH RESEND 0/6] arm64: add support for generic cpu vulnerabilities

2018-08-27 Thread Mian Yousaf Kaukab
GENERIC_CPU_VULNERABILITIES provide a common way to figure out if a system is affected by vulnerabilities like meltdown and other variants of spectre. This small series adds support for it in arm64. Thank you, Best regards, Yousaf Mian Yousaf Kaukab (6): arm64: kpti: move check for

[PATCH RESEND 5/6] arm64: add sysfs vulnerability show for speculative store bypass

2018-08-27 Thread Mian Yousaf Kaukab
Return status based no ssbd_state. Return string "Unknown" in case CONFIG_ARM64_SSBD is disabled or arch workaround2 is not available in the firmware. Signed-off-by: Mian Yousaf Kaukab --- arch/arm64/kernel/cpu_errata.c | 20 1 file changed, 20 insertions(+) diff --git

[PATCH RESEND 2/6] arm64: add sysfs vulnerability show for meltdown

2018-08-27 Thread Mian Yousaf Kaukab
Checking CSV3 support directly in case CONFIG_UNMAP_KERNEL_AT_EL0 is not enabled. Signed-off-by: Mian Yousaf Kaukab --- arch/arm64/kernel/cpu_errata.c | 24 1 file changed, 24 insertions(+) diff --git a/arch/arm64/kernel/cpu_errata.c b/arch/arm64/kernel/cpu_errata.c

[PATCH RESEND 1/6] arm64: kpti: move check for non-vulnerable CPUs to a function

2018-08-27 Thread Mian Yousaf Kaukab
Prepare to call it in generic cpu vulnerabilities support. Signed-off-by: Mian Yousaf Kaukab --- arch/arm64/include/asm/cpufeature.h | 16 arch/arm64/kernel/cpufeature.c | 9 + 2 files changed, 17 insertions(+), 8 deletions(-) diff --git

[PATCH RESEND 3/6] arm64: add sysfs vulnerability show for spectre v1

2018-08-27 Thread Mian Yousaf Kaukab
Hard-coded since patches are merged and there are no configuration options. Signed-off-by: Mian Yousaf Kaukab --- arch/arm64/kernel/cpu_errata.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/arm64/kernel/cpu_errata.c b/arch/arm64/kernel/cpu_errata.c index

[PATCH RESEND 4/6] arm64: add sysfs vulnerability show for spectre v2

2018-08-27 Thread Mian Yousaf Kaukab
Only report mitigation present if hardening callback has been successfully installed. Signed-off-by: Mian Yousaf Kaukab --- arch/arm64/kernel/cpu_errata.c | 34 +- 1 file changed, 33 insertions(+), 1 deletion(-) diff --git a/arch/arm64/kernel/cpu_errata.c

[PATCH RESEND 4/6] arm64: add sysfs vulnerability show for spectre v2

2018-08-27 Thread Mian Yousaf Kaukab
Only report mitigation present if hardening callback has been successfully installed. Signed-off-by: Mian Yousaf Kaukab --- arch/arm64/kernel/cpu_errata.c | 34 +- 1 file changed, 33 insertions(+), 1 deletion(-) diff --git a/arch/arm64/kernel/cpu_errata.c

[PATCH RESEND 6/6] arm64: enable generic CPU vulnerabilites support

2018-08-27 Thread Mian Yousaf Kaukab
Enable CPU vulnerabilty show functions for spectre_v1, spectre_v2, meltdown and store-bypass. Signed-off-by: Mian Yousaf Kaukab --- arch/arm64/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig index 0dec01a0c81c..ffd97bc0f5d5 100644 ---

[PATCH RESEND 6/6] arm64: enable generic CPU vulnerabilites support

2018-08-27 Thread Mian Yousaf Kaukab
Enable CPU vulnerabilty show functions for spectre_v1, spectre_v2, meltdown and store-bypass. Signed-off-by: Mian Yousaf Kaukab --- arch/arm64/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig index 0dec01a0c81c..ffd97bc0f5d5 100644 ---

Re: [PATCH 3/4] mm/tlb, x86/mm: Support invalidating TLB caches for RCU_TABLE_FREE

2018-08-27 Thread Nicholas Piggin
On Mon, 27 Aug 2018 09:36:50 -0400 Rik van Riel wrote: > On Mon, 2018-08-27 at 18:04 +1000, Nicholas Piggin wrote: > > > It could do that. It requires a tlbie that matches the page size, > > so it means 3 sizes. I think possibly even that would be better > > than current code, but we could do

Re: [PATCH 3/4] mm/tlb, x86/mm: Support invalidating TLB caches for RCU_TABLE_FREE

2018-08-27 Thread Nicholas Piggin
On Mon, 27 Aug 2018 09:36:50 -0400 Rik van Riel wrote: > On Mon, 2018-08-27 at 18:04 +1000, Nicholas Piggin wrote: > > > It could do that. It requires a tlbie that matches the page size, > > so it means 3 sizes. I think possibly even that would be better > > than current code, but we could do

Re: [PATCH 1/2] devres: provide devm_kstrdup_const()

2018-08-27 Thread Bartosz Golaszewski
2018-08-27 12:33 GMT+02:00 Mike Rapoport : > On Mon, Aug 27, 2018 at 10:21:00AM +0200, Bartosz Golaszewski wrote: >> Provide a resource managed version of kstrdup_const(). This variant >> internally calls devm_kstrdup() on pointers that are outside of >> .rodata section. Also provide a

Re: [PATCH 1/2] devres: provide devm_kstrdup_const()

2018-08-27 Thread Bartosz Golaszewski
2018-08-27 12:33 GMT+02:00 Mike Rapoport : > On Mon, Aug 27, 2018 at 10:21:00AM +0200, Bartosz Golaszewski wrote: >> Provide a resource managed version of kstrdup_const(). This variant >> internally calls devm_kstrdup() on pointers that are outside of >> .rodata section. Also provide a

Re: [PATCH] MAINTAINERS: libata pata: fix Jens Axboe's email address

2018-08-27 Thread Jens Axboe
On 8/26/18 10:29 PM, Baruch Siach wrote: > Commit 7634ccd2da (libata: maintainership update) added an invalid email > address. Fix that. Hah, what a mess. Outside of that, the git trees should also be updated. Something like the below. I'll send in an update. diff --git a/MAINTAINERS

Re: [PATCH] MAINTAINERS: libata pata: fix Jens Axboe's email address

2018-08-27 Thread Jens Axboe
On 8/26/18 10:29 PM, Baruch Siach wrote: > Commit 7634ccd2da (libata: maintainership update) added an invalid email > address. Fix that. Hah, what a mess. Outside of that, the git trees should also be updated. Something like the below. I'll send in an update. diff --git a/MAINTAINERS

Re: [PATCH] Properly interpret indirect call in perf annotate.

2018-08-27 Thread Martin Liška
On 08/27/2018 12:37 PM, Namhyung Kim wrote: > Hello, > > On Thu, Aug 23, 2018 at 02:29:34PM +0200, Martin Liška wrote: >> The patch changes interpretation of: >> callq *0x8(%rbx) >> >> from: >> 0.26 │ → callq *8 >> to: >> 0.26 │ → callq *0x8(%rbx) >> >> in this can an address is

Re: [PATCH] Properly interpret indirect call in perf annotate.

2018-08-27 Thread Martin Liška
On 08/27/2018 12:37 PM, Namhyung Kim wrote: > Hello, > > On Thu, Aug 23, 2018 at 02:29:34PM +0200, Martin Liška wrote: >> The patch changes interpretation of: >> callq *0x8(%rbx) >> >> from: >> 0.26 │ → callq *8 >> to: >> 0.26 │ → callq *0x8(%rbx) >> >> in this can an address is

Re: [RFC PATCH 00/20] x86/intel_rdt: Start abstraction for a second arch

2018-08-27 Thread Fenghua Yu
On Fri, Aug 24, 2018 at 11:44:59AM +0100, James Morse wrote: > Hi folks, > > ARM have some upcoming CPU features that are similar to Intel RDT. Resctrl > is the defacto ABI for this sort of thing, but it lives under arch/x86. > > To get existing software working, we need to make resctrl work

Re: [RFC PATCH 00/20] x86/intel_rdt: Start abstraction for a second arch

2018-08-27 Thread Fenghua Yu
On Fri, Aug 24, 2018 at 11:44:59AM +0100, James Morse wrote: > Hi folks, > > ARM have some upcoming CPU features that are similar to Intel RDT. Resctrl > is the defacto ABI for this sort of thing, but it lives under arch/x86. > > To get existing software working, we need to make resctrl work

[PATCH] ASoC: meson: axg-tdm: restrict formats depending on slot width

2018-08-27 Thread Jerome Brunet
Restrict the formats possible on the TDM interface depending on the width of the TDM slot and let dpcm merging do the rest. Fixes: d60e4f1e4be5 ("ASoC: meson: add tdm interface driver") Signed-off-by: Jerome Brunet --- sound/soc/meson/axg-tdm-interface.c | 50 + 1

[PATCH] ASoC: meson: axg-tdm: restrict formats depending on slot width

2018-08-27 Thread Jerome Brunet
Restrict the formats possible on the TDM interface depending on the width of the TDM slot and let dpcm merging do the rest. Fixes: d60e4f1e4be5 ("ASoC: meson: add tdm interface driver") Signed-off-by: Jerome Brunet --- sound/soc/meson/axg-tdm-interface.c | 50 + 1

[PATCH] ASoC: meson: axg-fifo: report interrupt request failure

2018-08-27 Thread Jerome Brunet
Return value of request_irq() was irgnored. Fix this and report the failure if any Fixes: 6dc4fa179fb8 ("ASoC: meson: add axg fifo base driver") Signed-off-by: Jerome Brunet --- sound/soc/meson/axg-fifo.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sound/soc/meson/axg-fifo.c

[PATCH] ASoC: meson: axg-fifo: report interrupt request failure

2018-08-27 Thread Jerome Brunet
Return value of request_irq() was irgnored. Fix this and report the failure if any Fixes: 6dc4fa179fb8 ("ASoC: meson: add axg fifo base driver") Signed-off-by: Jerome Brunet --- sound/soc/meson/axg-fifo.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sound/soc/meson/axg-fifo.c

[PATCH] regulator: isl9305: Add missing .owner field in regulator_desc

2018-08-27 Thread Axel Lin
Add missing .owner field in regulator_desc, which is used for refcounting. Signed-off-by: Axel Lin --- drivers/regulator/isl9305.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/regulator/isl9305.c b/drivers/regulator/isl9305.c index 257c1943e753..9c2607e912cf 100644 ---

[PATCH] regulator: isl9305: Add missing .owner field in regulator_desc

2018-08-27 Thread Axel Lin
Add missing .owner field in regulator_desc, which is used for refcounting. Signed-off-by: Axel Lin --- drivers/regulator/isl9305.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/regulator/isl9305.c b/drivers/regulator/isl9305.c index 257c1943e753..9c2607e912cf 100644 ---

Re: [PATCH v2 00/40] Tegra SDHCI add support for HS200 and UHS signaling

2018-08-27 Thread Marcel Ziswiler
On Fri, 2018-08-10 at 21:08 +0300, Aapo Vienamo wrote: > Hi all, > > This series implements support for faster signaling modes on Tegra > SDHCI controllers. This series consist of several parts: changes > requried for 1.8 V signaling and pad control, pad calibration, and > tuning. Following

Re: [PATCH v2 00/40] Tegra SDHCI add support for HS200 and UHS signaling

2018-08-27 Thread Marcel Ziswiler
On Fri, 2018-08-10 at 21:08 +0300, Aapo Vienamo wrote: > Hi all, > > This series implements support for faster signaling modes on Tegra > SDHCI controllers. This series consist of several parts: changes > requried for 1.8 V signaling and pad control, pad calibration, and > tuning. Following

[PATCH v7 RESEND 2/2] ARM: dts: at91: sama5d2: Add resistive touch device

2018-08-27 Thread Eugen Hristev
Add generic resistive touch device which is connected to ADC block inside the SAMA5D2 SoC Signed-off-by: Eugen Hristev --- Resending after merge window that includes the bindings was closed. Rebased on 4.19-rc1 : no changes arch/arm/boot/dts/sama5d2.dtsi | 10 ++ 1 file changed, 10

Re: [PATCHv3] Fix range checks in kernfs_get_target_path

2018-08-27 Thread Tejun Heo
On Sun, Aug 26, 2018 at 10:55:24AM +, Bernd Edlinger wrote: > Ping... > Sorry, I had actually completely forgotten about this one. > > On 07/07/18 19:52, Bernd Edlinger wrote: > > The terminating NUL byte is only there because the buffer is > > allocated with kzalloc(PAGE_SIZE, GFP_KERNEL),

[PATCH v7 RESEND 1/2] ARM: dts: at91: sama5d2: add channel cells for ADC device

2018-08-27 Thread Eugen Hristev
Preparing the ADC device to connect channel consumer drivers Signed-off-by: Eugen Hristev --- Resending after merge window that includes the bindings was closed. Rebased on 4.19-rc1 : no changes arch/arm/boot/dts/sama5d2.dtsi | 2 ++ 1 file changed, 2 insertions(+) diff --git

[PATCH v7 RESEND 2/2] ARM: dts: at91: sama5d2: Add resistive touch device

2018-08-27 Thread Eugen Hristev
Add generic resistive touch device which is connected to ADC block inside the SAMA5D2 SoC Signed-off-by: Eugen Hristev --- Resending after merge window that includes the bindings was closed. Rebased on 4.19-rc1 : no changes arch/arm/boot/dts/sama5d2.dtsi | 10 ++ 1 file changed, 10

Re: [PATCHv3] Fix range checks in kernfs_get_target_path

2018-08-27 Thread Tejun Heo
On Sun, Aug 26, 2018 at 10:55:24AM +, Bernd Edlinger wrote: > Ping... > Sorry, I had actually completely forgotten about this one. > > On 07/07/18 19:52, Bernd Edlinger wrote: > > The terminating NUL byte is only there because the buffer is > > allocated with kzalloc(PAGE_SIZE, GFP_KERNEL),

[PATCH v7 RESEND 1/2] ARM: dts: at91: sama5d2: add channel cells for ADC device

2018-08-27 Thread Eugen Hristev
Preparing the ADC device to connect channel consumer drivers Signed-off-by: Eugen Hristev --- Resending after merge window that includes the bindings was closed. Rebased on 4.19-rc1 : no changes arch/arm/boot/dts/sama5d2.dtsi | 2 ++ 1 file changed, 2 insertions(+) diff --git

Re: [PULL REQUEST] i2c for 4.19

2018-08-27 Thread Jean Delvare
On Fri, 2018-08-24 at 17:37 +0200, Wolfram Sang wrote: > Linus, > > as promised, here is my 2nd pull request for I2C, containing: > > * removal of the attach_adapter callback, converting its last user > * removal of any __deprecated usage within I2C > * one email address update > * some SPDX

Re: [PULL REQUEST] i2c for 4.19

2018-08-27 Thread Jean Delvare
On Fri, 2018-08-24 at 17:37 +0200, Wolfram Sang wrote: > Linus, > > as promised, here is my 2nd pull request for I2C, containing: > > * removal of the attach_adapter callback, converting its last user > * removal of any __deprecated usage within I2C > * one email address update > * some SPDX

Re: [PATCH v9 12/22] s390: vfio-ap: sysfs interfaces to configure control domains

2018-08-27 Thread Cornelia Huck
On Mon, 27 Aug 2018 09:47:58 -0400 Tony Krowiak wrote: > On 08/27/2018 04:33 AM, Cornelia Huck wrote: > > On Thu, 23 Aug 2018 10:16:59 -0400 > > Tony Krowiak wrote: > > > >> On 08/23/2018 06:25 AM, Cornelia Huck wrote: > >>> On Wed, 22 Aug 2018 15:16:19 -0400 > >>> Tony Krowiak wrote: >

Re: [PATCH v9 12/22] s390: vfio-ap: sysfs interfaces to configure control domains

2018-08-27 Thread Cornelia Huck
On Mon, 27 Aug 2018 09:47:58 -0400 Tony Krowiak wrote: > On 08/27/2018 04:33 AM, Cornelia Huck wrote: > > On Thu, 23 Aug 2018 10:16:59 -0400 > > Tony Krowiak wrote: > > > >> On 08/23/2018 06:25 AM, Cornelia Huck wrote: > >>> On Wed, 22 Aug 2018 15:16:19 -0400 > >>> Tony Krowiak wrote: >

[PATCH] mm,page_alloc: PF_WQ_WORKER threads must sleep at should_reclaim_retry().

2018-08-27 Thread Michal Hocko
From: Michal Hocko Tetsuo Handa has reported that it is possible to bypass the short sleep for PF_WQ_WORKER threads which was introduced by commit 373ccbe5927034b5 ("mm, vmstat: allow WQ concurrency to discover memory reclaim doesn't make any progress") and lock up the system if OOM. The

[PATCH v2] mfd: madera: Don't use regmap_read_poll_timeout to poll for BOOT_DONE

2018-08-27 Thread Richard Fitzgerald
While polling for BOOT_DONE the chip could NAK a read because it is still booting, which would terminate the regmap_read_poll_timeout() with an error. Instead implement a polling loop that ignores read errors so we always poll until the chip signals boot or the loop times out. Signed-off-by:

[PATCH] mm,page_alloc: PF_WQ_WORKER threads must sleep at should_reclaim_retry().

2018-08-27 Thread Michal Hocko
From: Michal Hocko Tetsuo Handa has reported that it is possible to bypass the short sleep for PF_WQ_WORKER threads which was introduced by commit 373ccbe5927034b5 ("mm, vmstat: allow WQ concurrency to discover memory reclaim doesn't make any progress") and lock up the system if OOM. The

[PATCH v2] mfd: madera: Don't use regmap_read_poll_timeout to poll for BOOT_DONE

2018-08-27 Thread Richard Fitzgerald
While polling for BOOT_DONE the chip could NAK a read because it is still booting, which would terminate the regmap_read_poll_timeout() with an error. Instead implement a polling loop that ignores read errors so we always poll until the chip signals boot or the loop times out. Signed-off-by:

Re: [PATCH v9 12/22] s390: vfio-ap: sysfs interfaces to configure control domains

2018-08-27 Thread Tony Krowiak
On 08/27/2018 04:33 AM, Cornelia Huck wrote: On Thu, 23 Aug 2018 10:16:59 -0400 Tony Krowiak wrote: On 08/23/2018 06:25 AM, Cornelia Huck wrote: On Wed, 22 Aug 2018 15:16:19 -0400 Tony Krowiak wrote: One of the things I suggested in a private conversation with Christian earlier today

Re: [PATCH v9 12/22] s390: vfio-ap: sysfs interfaces to configure control domains

2018-08-27 Thread Tony Krowiak
On 08/27/2018 04:33 AM, Cornelia Huck wrote: On Thu, 23 Aug 2018 10:16:59 -0400 Tony Krowiak wrote: On 08/23/2018 06:25 AM, Cornelia Huck wrote: On Wed, 22 Aug 2018 15:16:19 -0400 Tony Krowiak wrote: One of the things I suggested in a private conversation with Christian earlier today

Re: [PATCH v6 1/2] mm: migration: fix migration of huge PMD shared pages

2018-08-27 Thread Jerome Glisse
On Mon, Aug 27, 2018 at 09:46:45AM +0200, Michal Hocko wrote: > On Fri 24-08-18 11:08:24, Mike Kravetz wrote: > > On 08/24/2018 01:41 AM, Michal Hocko wrote: > > > On Thu 23-08-18 13:59:16, Mike Kravetz wrote: > > > > > > Acked-by: Michal Hocko > > > > > > One nit below. > > > > > > [...] > >

Re: [PATCH v6 1/2] mm: migration: fix migration of huge PMD shared pages

2018-08-27 Thread Jerome Glisse
On Mon, Aug 27, 2018 at 09:46:45AM +0200, Michal Hocko wrote: > On Fri 24-08-18 11:08:24, Mike Kravetz wrote: > > On 08/24/2018 01:41 AM, Michal Hocko wrote: > > > On Thu 23-08-18 13:59:16, Mike Kravetz wrote: > > > > > > Acked-by: Michal Hocko > > > > > > One nit below. > > > > > > [...] > >

Re: Linux 4.19-rc1

2018-08-27 Thread Guenter Roeck
On Sun, Aug 26, 2018 at 02:49:14PM -0700, Linus Torvalds wrote: > So two weeks have passed, and the merge window for 4.19 is over. > [ ... ] > > Anyway, go forth and test, > Build results: total: 132 pass: 129 fail: 3 Failed builds: riscv:defconfig riscv:allnoconfig

Re: Linux 4.19-rc1

2018-08-27 Thread Guenter Roeck
On Sun, Aug 26, 2018 at 02:49:14PM -0700, Linus Torvalds wrote: > So two weeks have passed, and the merge window for 4.19 is over. > [ ... ] > > Anyway, go forth and test, > Build results: total: 132 pass: 129 fail: 3 Failed builds: riscv:defconfig riscv:allnoconfig

[PATCH v2] drivers/thermal/tegra: Fix a double free on the device node

2018-08-27 Thread zhong jiang
The function 'for_each_child_of_node' iterates over the node list by dropping the of_node reference of the previous node. Calling of_node_put() on the iterator is pointless and leads to an inconsistent refcounting in addition to a double free. Remove it. Acked-by: Jon Hunter Signed-off-by:

[PATCH v2] drivers/thermal/tegra: Fix a double free on the device node

2018-08-27 Thread zhong jiang
The function 'for_each_child_of_node' iterates over the node list by dropping the of_node reference of the previous node. Calling of_node_put() on the iterator is pointless and leads to an inconsistent refcounting in addition to a double free. Remove it. Acked-by: Jon Hunter Signed-off-by:

Re: [PATCH 2/3] mm, mmu_notifier: be explicit about range invalition non-blocking mode

2018-08-27 Thread Jerome Glisse
On Mon, Aug 27, 2018 at 01:26:22PM +0200, Michal Hocko wrote: > From: Michal Hocko > > If invalidate_range_start is called for !blocking mode then all > callbacks have to guarantee they will no block/sleep. The same obviously > applies to invalidate_range_end because this operation pairs with

Re: [PATCH 2/3] mm, mmu_notifier: be explicit about range invalition non-blocking mode

2018-08-27 Thread Jerome Glisse
On Mon, Aug 27, 2018 at 01:26:22PM +0200, Michal Hocko wrote: > From: Michal Hocko > > If invalidate_range_start is called for !blocking mode then all > callbacks have to guarantee they will no block/sleep. The same obviously > applies to invalidate_range_end because this operation pairs with

[PATCH] m68k/defconfig: Update defconfigs for v4.19-rc1

2018-08-27 Thread Geert Uytterhoeven
Actual changes: -CONFIG_BATMAN_ADV_DAT=y -CONFIG_NF_CONNTRACK_IPV4=m -CONFIG_NF_CONNTRACK_IPV6=m +CONFIG_CRC64=m +CONFIG_NFT_OSF=m +CONFIG_NFT_TPROXY=m +CONFIG_NFT_TUNNEL=m +CONFIG_TEST_BITFIELD=m +CONFIG_TEST_IDA=m Signed-off-by: Geert Uytterhoeven ---

[PATCH] m68k/defconfig: Update defconfigs for v4.19-rc1

2018-08-27 Thread Geert Uytterhoeven
Actual changes: -CONFIG_BATMAN_ADV_DAT=y -CONFIG_NF_CONNTRACK_IPV4=m -CONFIG_NF_CONNTRACK_IPV6=m +CONFIG_CRC64=m +CONFIG_NFT_OSF=m +CONFIG_NFT_TPROXY=m +CONFIG_NFT_TUNNEL=m +CONFIG_TEST_BITFIELD=m +CONFIG_TEST_IDA=m Signed-off-by: Geert Uytterhoeven ---

Re: [PATCH 3/4] mm/tlb, x86/mm: Support invalidating TLB caches for RCU_TABLE_FREE

2018-08-27 Thread Rik van Riel
On Mon, 2018-08-27 at 18:04 +1000, Nicholas Piggin wrote: > It could do that. It requires a tlbie that matches the page size, > so it means 3 sizes. I think possibly even that would be better > than current code, but we could do better if we had a few specific > fields in there. Would it cause a

Re: [PATCH 3/4] mm/tlb, x86/mm: Support invalidating TLB caches for RCU_TABLE_FREE

2018-08-27 Thread Rik van Riel
On Mon, 2018-08-27 at 18:04 +1000, Nicholas Piggin wrote: > It could do that. It requires a tlbie that matches the page size, > so it means 3 sizes. I think possibly even that would be better > than current code, but we could do better if we had a few specific > fields in there. Would it cause a

Re: KASAN: null-ptr-deref Write in binder_update_page_range

2018-08-27 Thread Martijn Coenen
Thanks Minchan! On Thu, Aug 23, 2018 at 7:29 AM, Minchan Kim wrote: > Signed-off-by: Todd Kjos > Signed-off-by: Minchan Kim Reviewed-by: Martijn Coenen > --- > drivers/android/binder_alloc.c | 43 +++--- > 1 file changed, 35 insertions(+), 8 deletions(-) > > diff

Re: KASAN: null-ptr-deref Write in binder_update_page_range

2018-08-27 Thread Martijn Coenen
Thanks Minchan! On Thu, Aug 23, 2018 at 7:29 AM, Minchan Kim wrote: > Signed-off-by: Todd Kjos > Signed-off-by: Minchan Kim Reviewed-by: Martijn Coenen > --- > drivers/android/binder_alloc.c | 43 +++--- > 1 file changed, 35 insertions(+), 8 deletions(-) > > diff

Re: [PATCH 1/2] Revert "x86/e820: put !E820_TYPE_RAM regions into memblock.reserved"

2018-08-27 Thread Pasha Tatashin
On Mon, Aug 27, 2018 at 8:31 AM Masayoshi Mizuma wrote: > > Hi Pavel, > > I would appreciate if you could send the feedback for the patch. I will study it today. Pavel > > Thanks! > Masa > > On 08/24/2018 04:29 AM, Michal Hocko wrote: > > On Fri 24-08-18 00:03:25, Naoya Horiguchi wrote: > >>

Re: [PATCH 1/2] Revert "x86/e820: put !E820_TYPE_RAM regions into memblock.reserved"

2018-08-27 Thread Pasha Tatashin
On Mon, Aug 27, 2018 at 8:31 AM Masayoshi Mizuma wrote: > > Hi Pavel, > > I would appreciate if you could send the feedback for the patch. I will study it today. Pavel > > Thanks! > Masa > > On 08/24/2018 04:29 AM, Michal Hocko wrote: > > On Fri 24-08-18 00:03:25, Naoya Horiguchi wrote: > >>

Re: [PATCH] Input: elants_i2c - Fix sw reset delays

2018-08-27 Thread dbasehore .
On Mon, Aug 27, 2018 at 4:52 AM Andi Shyti wrote: > > Hi Derek, > > next time, could you please avoid using html mails when replying > to the mailing list? They are not clear. Sorry, my plain text setting was reset for some reason. > > On Fri, Aug 24, 2018 at 04:07:41PM -0700, dbasehore .

Re: [PATCH] Input: elants_i2c - Fix sw reset delays

2018-08-27 Thread dbasehore .
On Mon, Aug 27, 2018 at 4:52 AM Andi Shyti wrote: > > Hi Derek, > > next time, could you please avoid using html mails when replying > to the mailing list? They are not clear. Sorry, my plain text setting was reset for some reason. > > On Fri, Aug 24, 2018 at 04:07:41PM -0700, dbasehore .

Re: [PATCH] clk: meson-axg: pcie: drop the mpll3 clock parent

2018-08-27 Thread Jerome Brunet
On Wed, 2018-08-01 at 12:16 +, Yixun Lan wrote: > We found the PCIe driver doesn't really work with > the mpll3 clock which is actually reserved for debug, > So drop it from the mux list. > > Fixes: 33b89db68236 ("clk: meson-axg: add clocks required by pcie driver") > Tested-by: Jianxin Qin

Re: [PATCH] clk: meson-axg: pcie: drop the mpll3 clock parent

2018-08-27 Thread Jerome Brunet
On Wed, 2018-08-01 at 12:16 +, Yixun Lan wrote: > We found the PCIe driver doesn't really work with > the mpll3 clock which is actually reserved for debug, > So drop it from the mux list. > > Fixes: 33b89db68236 ("clk: meson-axg: add clocks required by pcie driver") > Tested-by: Jianxin Qin

Re: [PATCH v1 1/1] Bluetooth: hci_qca: Add poweroff support during hci down for wcn3990

2018-08-27 Thread Balakrishna Godavarthi
Hi Marcel, On 2018-08-25 00:20, Marcel Holtmann wrote: Hi Balakrishna, This patch enables power off support for hci down and power on support for hci up. As wcn3990 power sources are ignited by regulators, we will turn off them during hci down, i.e. an complete power off of wcn3990. So

Re: [PATCH v1 1/1] Bluetooth: hci_qca: Add poweroff support during hci down for wcn3990

2018-08-27 Thread Balakrishna Godavarthi
Hi Marcel, On 2018-08-25 00:20, Marcel Holtmann wrote: Hi Balakrishna, This patch enables power off support for hci down and power on support for hci up. As wcn3990 power sources are ignited by regulators, we will turn off them during hci down, i.e. an complete power off of wcn3990. So

Re: [PATCH 2/2] clk: meson-g12a: Add AO Clock controller driver

2018-08-27 Thread Jerome Brunet
On Fri, 2018-08-24 at 21:34 +0800, Jian Hu wrote: > > > > I am confued about aoclk81's parent clocks. > > I can not get the example of axg audio clock driver, Could you provide > the link? Had it merged into clk-meson.git? Yes and mainline as well : drivers/clk/meson/axg-audio.c Basically

Re: [PATCH 2/2] clk: meson-g12a: Add AO Clock controller driver

2018-08-27 Thread Jerome Brunet
On Fri, 2018-08-24 at 21:34 +0800, Jian Hu wrote: > > > > I am confued about aoclk81's parent clocks. > > I can not get the example of axg audio clock driver, Could you provide > the link? Had it merged into clk-meson.git? Yes and mainline as well : drivers/clk/meson/axg-audio.c Basically

Re: [PATCH 2/2] clk: pmc-atom: use devm_kstrdup_const()

2018-08-27 Thread Mike Rapoport
On Mon, Aug 27, 2018 at 02:58:46PM +0200, Bartosz Golaszewski wrote: > 2018-08-27 14:52 GMT+02:00 Mike Rapoport : > > On Mon, Aug 27, 2018 at 02:28:45PM +0200, Bartosz Golaszewski wrote: > >> 2018-08-27 12:39 GMT+02:00 Mike Rapoport : > >> > On Mon, Aug 27, 2018 at 10:21:01AM +0200, Bartosz

Re: [PATCH 2/2] clk: pmc-atom: use devm_kstrdup_const()

2018-08-27 Thread Mike Rapoport
On Mon, Aug 27, 2018 at 02:58:46PM +0200, Bartosz Golaszewski wrote: > 2018-08-27 14:52 GMT+02:00 Mike Rapoport : > > On Mon, Aug 27, 2018 at 02:28:45PM +0200, Bartosz Golaszewski wrote: > >> 2018-08-27 12:39 GMT+02:00 Mike Rapoport : > >> > On Mon, Aug 27, 2018 at 10:21:01AM +0200, Bartosz

Re: [PATCH v1 07/10] thermal: tsens: Check if the IP is correctly enabled by firmware

2018-08-27 Thread Amit Kucheria
On Sat, Aug 25, 2018 at 5:00 AM Eduardo Valentin wrote: > > On Thu, Aug 09, 2018 at 06:02:39PM +0530, Amit Kucheria wrote: > > The SROT registers are initialised by the secure firmware at boot. We > > don't have write access to the registers. Check if the block is enabled > > before continuing. >

Re: [PATCH v1 07/10] thermal: tsens: Check if the IP is correctly enabled by firmware

2018-08-27 Thread Amit Kucheria
On Sat, Aug 25, 2018 at 5:00 AM Eduardo Valentin wrote: > > On Thu, Aug 09, 2018 at 06:02:39PM +0530, Amit Kucheria wrote: > > The SROT registers are initialised by the secure firmware at boot. We > > don't have write access to the registers. Check if the block is enabled > > before continuing. >

Re: [PATCH] clk: meson: axg: round audio system master clocks down

2018-08-27 Thread Jerome Brunet
On Wed, 2018-08-01 at 16:07 +0200, Jerome Brunet wrote: > Some of the master clocks provided by the axg audio clock controller are > system clock (spdifin and pdm sysclk). They are used to clock an internal > DSP of the related devices. Having them constantly rounded down instead > of closest is

Re: [PATCH] clk: meson: axg: round audio system master clocks down

2018-08-27 Thread Jerome Brunet
On Wed, 2018-08-01 at 16:07 +0200, Jerome Brunet wrote: > Some of the master clocks provided by the axg audio clock controller are > system clock (spdifin and pdm sysclk). They are used to clock an internal > DSP of the related devices. Having them constantly rounded down instead > of closest is

Re: [PATCH v2 0/4] clk: meson: clk-pll driver update

2018-08-27 Thread Jerome Brunet
On Sun, 2018-08-12 at 20:26 +0200, Martin Blumenstingl wrote: > Hi Jerome, > > On Wed, Aug 1, 2018 at 4:00 PM Jerome Brunet wrote: > > > > This patchset is yet another round of update to the amlogic pll driver. > > > > 1) Enable bit is added so we don't rely on the bootloader or the init > >

Re: [PATCH v2 0/4] clk: meson: clk-pll driver update

2018-08-27 Thread Jerome Brunet
On Sun, 2018-08-12 at 20:26 +0200, Martin Blumenstingl wrote: > Hi Jerome, > > On Wed, Aug 1, 2018 at 4:00 PM Jerome Brunet wrote: > > > > This patchset is yet another round of update to the amlogic pll driver. > > > > 1) Enable bit is added so we don't rely on the bootloader or the init > >

Re: [PATCH 2/2] clk: pmc-atom: use devm_kstrdup_const()

2018-08-27 Thread Bartosz Golaszewski
2018-08-27 14:52 GMT+02:00 Mike Rapoport : > On Mon, Aug 27, 2018 at 02:28:45PM +0200, Bartosz Golaszewski wrote: >> 2018-08-27 12:39 GMT+02:00 Mike Rapoport : >> > On Mon, Aug 27, 2018 at 10:21:01AM +0200, Bartosz Golaszewski wrote: >> >> Use devm_kstrdup_const() in the pmc-atom driver. This

Re: [PATCH 2/2] clk: pmc-atom: use devm_kstrdup_const()

2018-08-27 Thread Bartosz Golaszewski
2018-08-27 14:52 GMT+02:00 Mike Rapoport : > On Mon, Aug 27, 2018 at 02:28:45PM +0200, Bartosz Golaszewski wrote: >> 2018-08-27 12:39 GMT+02:00 Mike Rapoport : >> > On Mon, Aug 27, 2018 at 10:21:01AM +0200, Bartosz Golaszewski wrote: >> >> Use devm_kstrdup_const() in the pmc-atom driver. This

Re: [PATCH v1 01/10] arm/arm64: dts: msm8974/msm8916: thermal: Split address space into two

2018-08-27 Thread Amit Kucheria
On Sat, Aug 25, 2018 at 4:58 AM Eduardo Valentin wrote: > > On Thu, Aug 09, 2018 at 06:02:33PM +0530, Amit Kucheria wrote: > > We've earlier added support to split the register address space into TM > > and SROT regions. > > > > Split up the regmap address space into two for the remaining

Re: [PATCH v1 01/10] arm/arm64: dts: msm8974/msm8916: thermal: Split address space into two

2018-08-27 Thread Amit Kucheria
On Sat, Aug 25, 2018 at 4:58 AM Eduardo Valentin wrote: > > On Thu, Aug 09, 2018 at 06:02:33PM +0530, Amit Kucheria wrote: > > We've earlier added support to split the register address space into TM > > and SROT regions. > > > > Split up the regmap address space into two for the remaining

Re: [PATCH 2/2] clk: pmc-atom: use devm_kstrdup_const()

2018-08-27 Thread Mike Rapoport
On Mon, Aug 27, 2018 at 02:28:45PM +0200, Bartosz Golaszewski wrote: > 2018-08-27 12:39 GMT+02:00 Mike Rapoport : > > On Mon, Aug 27, 2018 at 10:21:01AM +0200, Bartosz Golaszewski wrote: > >> Use devm_kstrdup_const() in the pmc-atom driver. This mostly serves as > >> an example of how to use this

Re: [PATCH 2/2] clk: pmc-atom: use devm_kstrdup_const()

2018-08-27 Thread Mike Rapoport
On Mon, Aug 27, 2018 at 02:28:45PM +0200, Bartosz Golaszewski wrote: > 2018-08-27 12:39 GMT+02:00 Mike Rapoport : > > On Mon, Aug 27, 2018 at 10:21:01AM +0200, Bartosz Golaszewski wrote: > >> Use devm_kstrdup_const() in the pmc-atom driver. This mostly serves as > >> an example of how to use this

Re: [PATCH] perf annotate: fix parsing aarch64 branch instructions after objdump update

2018-08-27 Thread Arnaldo Carvalho de Melo
Em Thu, Aug 23, 2018 at 07:10:47PM -0500, Kim Phillips escreveu: > Starting with binutils 2.28, aarch64 objdump adds comments to the > disassembly output to show the alternative names of a condition code [1]. > > It is assumed that commas in objdump comments could occur in other arches > now or

Re: [PATCH] perf annotate: fix parsing aarch64 branch instructions after objdump update

2018-08-27 Thread Arnaldo Carvalho de Melo
Em Thu, Aug 23, 2018 at 07:10:47PM -0500, Kim Phillips escreveu: > Starting with binutils 2.28, aarch64 objdump adds comments to the > disassembly output to show the alternative names of a condition code [1]. > > It is assumed that commas in objdump comments could occur in other arches > now or

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