Re: [PATCH v3 2/2] PCI: imx: Initial imx7d pm support

2018-07-24 Thread Lucas Stach
Am Dienstag, den 24.07.2018, 19:14 +0300 schrieb Leonard Crestez: > On imx7d the pcie-phy power domain is turned off in suspend and this can > make the system hang after resume when attempting any read from PCI. > > Fix this by adding minimal suspend/resume code from the nxp internal > tree. This

Re: [PATCH v3 2/2] PCI: imx: Initial imx7d pm support

2018-07-24 Thread Lucas Stach
Am Dienstag, den 24.07.2018, 19:14 +0300 schrieb Leonard Crestez: > On imx7d the pcie-phy power domain is turned off in suspend and this can > make the system hang after resume when attempting any read from PCI. > > Fix this by adding minimal suspend/resume code from the nxp internal > tree. This

Re: [PATCH v3 1/2] Revert "ARM: dts: imx7d: Invert legacy PCI irq mapping"

2018-07-24 Thread Lucas Stach
Am Dienstag, den 24.07.2018, 19:14 +0300 schrieb Leonard Crestez: > This reverts commit 1c86c9dd82f859b474474a7fee0d5195da2c9c1d. > > That commit followed the reference manual but unfortunately the imx7d > manual is incorrect. > > Tested with ath9k pcie card and confirmed internally. > >

[PATCH v6 02/18] crypto: cbc: Remove VLA usage

2018-07-24 Thread Kees Cook
In the quest to remove all stack VLA usage from the kernel[1], this uses the upper bounds on blocksize. Since this is always a cipher blocksize, use the existing cipher max blocksize. [1] https://lkml.kernel.org/r/CA+55aFzCG-zNmZwX4A2FQpadafLfEzK6CC=qpxydaacu1rq...@mail.gmail.com Signed-off-by:

Re: [PATCH v3 1/2] Revert "ARM: dts: imx7d: Invert legacy PCI irq mapping"

2018-07-24 Thread Lucas Stach
Am Dienstag, den 24.07.2018, 19:14 +0300 schrieb Leonard Crestez: > This reverts commit 1c86c9dd82f859b474474a7fee0d5195da2c9c1d. > > That commit followed the reference manual but unfortunately the imx7d > manual is incorrect. > > Tested with ath9k pcie card and confirmed internally. > >

[PATCH v6 02/18] crypto: cbc: Remove VLA usage

2018-07-24 Thread Kees Cook
In the quest to remove all stack VLA usage from the kernel[1], this uses the upper bounds on blocksize. Since this is always a cipher blocksize, use the existing cipher max blocksize. [1] https://lkml.kernel.org/r/CA+55aFzCG-zNmZwX4A2FQpadafLfEzK6CC=qpxydaacu1rq...@mail.gmail.com Signed-off-by:

Re: [PATCH] arm64: enable RapidIO config options in Kconfig

2018-07-24 Thread Randy Dunlap
On 07/24/2018 08:14 AM, Will Deacon wrote: > On Tue, Jul 24, 2018 at 09:45:14AM -0400, Alexei Colin wrote: >> ARM64 SoCs with a PCI bus present the RapiodIO options; SoCs with >> RapidIO IP blocks but without a PCI bus, need to select HAS_RAPIDIO in >> Kconfig.platforms. >> >> HAS_RAPIDIO was

Re: [PATCH] arm64: enable RapidIO config options in Kconfig

2018-07-24 Thread Randy Dunlap
On 07/24/2018 08:14 AM, Will Deacon wrote: > On Tue, Jul 24, 2018 at 09:45:14AM -0400, Alexei Colin wrote: >> ARM64 SoCs with a PCI bus present the RapiodIO options; SoCs with >> RapidIO IP blocks but without a PCI bus, need to select HAS_RAPIDIO in >> Kconfig.platforms. >> >> HAS_RAPIDIO was

Re: [PATCH kselftest-next] Add cgroup core selftests

2018-07-24 Thread Shuah Khan
On 07/19/2018 11:08 AM, Roman Gushchin wrote: > On Wed, Jul 18, 2018 at 07:33:58PM +0200, Claudio wrote: >> This commit adds tests for some of the core functionalities >> of cgroups v2. >> >> The commit adds tests for some core principles of croup V2 API: >> >> -

Re: [PATCH] Revert "ata: ahci_platform: convert kcalloc to devm_kcalloc"

2018-07-24 Thread Tejun Heo
On Tue, Jul 17, 2018 at 10:49:35AM +, Corentin Labbe wrote: > Since ahci_platform_put_resources() use target_pwrs after "devm_" freed > it, we cannot use devm_kcalloc for allocating target_pwrs. > > This reverts commit bd0038b1b4f499d814d8f33a55b1df5ea6cf3b85. > > Reported-by: Mikko

Re: [PATCH kselftest-next] Add cgroup core selftests

2018-07-24 Thread Shuah Khan
On 07/19/2018 11:08 AM, Roman Gushchin wrote: > On Wed, Jul 18, 2018 at 07:33:58PM +0200, Claudio wrote: >> This commit adds tests for some of the core functionalities >> of cgroups v2. >> >> The commit adds tests for some core principles of croup V2 API: >> >> -

Re: [PATCH] Revert "ata: ahci_platform: convert kcalloc to devm_kcalloc"

2018-07-24 Thread Tejun Heo
On Tue, Jul 17, 2018 at 10:49:35AM +, Corentin Labbe wrote: > Since ahci_platform_put_resources() use target_pwrs after "devm_" freed > it, we cannot use devm_kcalloc for allocating target_pwrs. > > This reverts commit bd0038b1b4f499d814d8f33a55b1df5ea6cf3b85. > > Reported-by: Mikko

Re: [PATCH] dt-bindings: thermal: samsung: Add SPDX license identifier

2018-07-24 Thread Bartlomiej Zolnierkiewicz
Hi, On Wednesday, July 18, 2018 10:02:50 PM Krzysztof Kozlowski wrote: > Replace GPL license statement with SPDX license identifier (GPL-2.0+). > > Signed-off-by: Krzysztof Kozlowski > --- > include/dt-bindings/thermal/thermal_exynos.h | 12 +--- > 1 file changed, 1 insertion(+), 11

Re: [PATCH] dt-bindings: thermal: samsung: Add SPDX license identifier

2018-07-24 Thread Bartlomiej Zolnierkiewicz
Hi, On Wednesday, July 18, 2018 10:02:50 PM Krzysztof Kozlowski wrote: > Replace GPL license statement with SPDX license identifier (GPL-2.0+). > > Signed-off-by: Krzysztof Kozlowski > --- > include/dt-bindings/thermal/thermal_exynos.h | 12 +--- > 1 file changed, 1 insertion(+), 11

[PATCH v5 8/8] memory: tegra: Introduce Tegra20 EMC driver

2018-07-24 Thread Dmitry Osipenko
Introduce driver for the External Memory Controller (EMC) found on Tegra20 chips, which controls the external DRAM on the board. The purpose of this driver is to program memory timing for external memory on the EMC clock rate change. Signed-off-by: Dmitry Osipenko Acked-by: Peter De Schrijver

[PATCH v5 8/8] memory: tegra: Introduce Tegra20 EMC driver

2018-07-24 Thread Dmitry Osipenko
Introduce driver for the External Memory Controller (EMC) found on Tegra20 chips, which controls the external DRAM on the board. The purpose of this driver is to program memory timing for external memory on the EMC clock rate change. Signed-off-by: Dmitry Osipenko Acked-by: Peter De Schrijver

[PATCH v5 6/8] clk: tegra20: Turn EMC clock gate into divider

2018-07-24 Thread Dmitry Osipenko
Kernel should never gate the EMC clock as it causes immediate lockup, so removing clk-gate functionality doesn't affect anything. Turning EMC clk gate into divider allows to implement glitch-less EMC scaling, avoiding reparenting to a backup clock. Signed-off-by: Dmitry Osipenko Acked-by: Peter

[PATCH v5 6/8] clk: tegra20: Turn EMC clock gate into divider

2018-07-24 Thread Dmitry Osipenko
Kernel should never gate the EMC clock as it causes immediate lockup, so removing clk-gate functionality doesn't affect anything. Turning EMC clk gate into divider allows to implement glitch-less EMC scaling, avoiding reparenting to a backup clock. Signed-off-by: Dmitry Osipenko Acked-by: Peter

[PATCH v5 7/8] clk: tegra20: Check whether direct PLLM sourcing is turned off for EMC

2018-07-24 Thread Dmitry Osipenko
Ensure that direct PLLM sourcing is turned off for EMC as we don't support that configuration in the clk driver. Signed-off-by: Dmitry Osipenko Acked-by: Peter De Schrijver --- drivers/clk/tegra/clk-tegra20.c | 10 ++ 1 file changed, 10 insertions(+) diff --git

[PATCH v5 7/8] clk: tegra20: Check whether direct PLLM sourcing is turned off for EMC

2018-07-24 Thread Dmitry Osipenko
Ensure that direct PLLM sourcing is turned off for EMC as we don't support that configuration in the clk driver. Signed-off-by: Dmitry Osipenko Acked-by: Peter De Schrijver --- drivers/clk/tegra/clk-tegra20.c | 10 ++ 1 file changed, 10 insertions(+) diff --git

[PATCH v5 4/8] ARM: dts: tegra20: Add interrupt entry to External Memory Controller

2018-07-24 Thread Dmitry Osipenko
Add interrupt entry into the EMC DT node. Signed-off-by: Dmitry Osipenko Acked-by: Peter De Schrijver --- arch/arm/boot/dts/tegra20.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/boot/dts/tegra20.dtsi b/arch/arm/boot/dts/tegra20.dtsi index 15b73bd377f0..9eb4163a4390 100644

[PATCH v5 5/8] ARM: dts: tegra20: Add clock entry to External Memory Controller

2018-07-24 Thread Dmitry Osipenko
Add clock entry into the EMC DT node. Signed-off-by: Dmitry Osipenko --- arch/arm/boot/dts/tegra20.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/boot/dts/tegra20.dtsi b/arch/arm/boot/dts/tegra20.dtsi index 9eb4163a4390..979f38293fe5 100644 ---

[PATCH v5 4/8] ARM: dts: tegra20: Add interrupt entry to External Memory Controller

2018-07-24 Thread Dmitry Osipenko
Add interrupt entry into the EMC DT node. Signed-off-by: Dmitry Osipenko Acked-by: Peter De Schrijver --- arch/arm/boot/dts/tegra20.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/boot/dts/tegra20.dtsi b/arch/arm/boot/dts/tegra20.dtsi index 15b73bd377f0..9eb4163a4390 100644

[PATCH v5 5/8] ARM: dts: tegra20: Add clock entry to External Memory Controller

2018-07-24 Thread Dmitry Osipenko
Add clock entry into the EMC DT node. Signed-off-by: Dmitry Osipenko --- arch/arm/boot/dts/tegra20.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/boot/dts/tegra20.dtsi b/arch/arm/boot/dts/tegra20.dtsi index 9eb4163a4390..979f38293fe5 100644 ---

[PATCH v5 1/8] dt: bindings: tegra20-emc: Document interrupt property

2018-07-24 Thread Dmitry Osipenko
EMC has a dedicated interrupt that is used to notify about completion of HW operations. Document the interrupt property. Signed-off-by: Dmitry Osipenko Acked-by: Rob Herring Acked-by: Peter De Schrijver --- .../devicetree/bindings/arm/tegra/nvidia,tegra20-emc.txt| 2 ++ 1 file

[PATCH v5 1/8] dt: bindings: tegra20-emc: Document interrupt property

2018-07-24 Thread Dmitry Osipenko
EMC has a dedicated interrupt that is used to notify about completion of HW operations. Document the interrupt property. Signed-off-by: Dmitry Osipenko Acked-by: Rob Herring Acked-by: Peter De Schrijver --- .../devicetree/bindings/arm/tegra/nvidia,tegra20-emc.txt| 2 ++ 1 file

[PATCH v5 2/8] dt: bindings: tegra20-emc: Document clock property

2018-07-24 Thread Dmitry Osipenko
Embedded memory controller has a corresponding clock, document the clock property. Signed-off-by: Dmitry Osipenko Acked-by: Rob Herring --- .../devicetree/bindings/arm/tegra/nvidia,tegra20-emc.txt| 2 ++ 1 file changed, 2 insertions(+) diff --git

[PATCH v5 3/8] dt: bindings: Move tegra20-emc binding to memory-controllers directory

2018-07-24 Thread Dmitry Osipenko
Move tegra20-emc binding to the memory-controllers directory for consistency with the other Tegra memory bindings. Signed-off-by: Dmitry Osipenko Acked-by: Rob Herring --- .../{arm/tegra => memory-controllers}/nvidia,tegra20-emc.txt | 0 1 file changed, 0 insertions(+), 0 deletions(-)

[PATCH v5 2/8] dt: bindings: tegra20-emc: Document clock property

2018-07-24 Thread Dmitry Osipenko
Embedded memory controller has a corresponding clock, document the clock property. Signed-off-by: Dmitry Osipenko Acked-by: Rob Herring --- .../devicetree/bindings/arm/tegra/nvidia,tegra20-emc.txt| 2 ++ 1 file changed, 2 insertions(+) diff --git

[PATCH v5 3/8] dt: bindings: Move tegra20-emc binding to memory-controllers directory

2018-07-24 Thread Dmitry Osipenko
Move tegra20-emc binding to the memory-controllers directory for consistency with the other Tegra memory bindings. Signed-off-by: Dmitry Osipenko Acked-by: Rob Herring --- .../{arm/tegra => memory-controllers}/nvidia,tegra20-emc.txt | 0 1 file changed, 0 insertions(+), 0 deletions(-)

Re: [PATCH v2 12/12] sched/core: uclamp: use percentage clamp values

2018-07-24 Thread Patrick Bellasi
On 21-Jul 21:04, Suren Baghdasaryan wrote: > On Mon, Jul 16, 2018 at 1:29 AM, Patrick Bellasi > wrote: [...] > > +static inline unsigned int scale_from_percent(unsigned int pct) > > +{ > > + WARN_ON(pct > 100); > > + > > + return ((SCHED_FIXEDPOINT_SCALE * pct) / 100); > > +} > > +

Re: [PATCH v2 12/12] sched/core: uclamp: use percentage clamp values

2018-07-24 Thread Patrick Bellasi
On 21-Jul 21:04, Suren Baghdasaryan wrote: > On Mon, Jul 16, 2018 at 1:29 AM, Patrick Bellasi > wrote: [...] > > +static inline unsigned int scale_from_percent(unsigned int pct) > > +{ > > + WARN_ON(pct > 100); > > + > > + return ((SCHED_FIXEDPOINT_SCALE * pct) / 100); > > +} > > +

[PATCH v5 0/8] Tegra20 External Memory Controller driver

2018-07-24 Thread Dmitry Osipenko
Changelog: v5: - Fixed wrong EMC clock divider type in the "Turn EMC clock gate into divider" patch. It is a Tegra's fractional 7.1 divider and not a simple integer divider. Peter, please take a look at the change. v4: - Fixed "bad of_node_put()" error which

[PATCH v5 0/8] Tegra20 External Memory Controller driver

2018-07-24 Thread Dmitry Osipenko
Changelog: v5: - Fixed wrong EMC clock divider type in the "Turn EMC clock gate into divider" patch. It is a Tegra's fractional 7.1 divider and not a simple integer divider. Peter, please take a look at the change. v4: - Fixed "bad of_node_put()" error which

Re: [PATCHv3 0/2] Stackleak for arm64

2018-07-24 Thread Will Deacon
Hi Laura, On Fri, Jul 20, 2018 at 02:41:52PM -0700, Laura Abbott wrote: > This is the version of stackleak for arm64, hopefully ready for queueing Thanks. I'll push these into linux-next tomorrow, once I've had a chance to test my conflict resolution in entry.S. Will

Re: [PATCHv3 0/2] Stackleak for arm64

2018-07-24 Thread Will Deacon
Hi Laura, On Fri, Jul 20, 2018 at 02:41:52PM -0700, Laura Abbott wrote: > This is the version of stackleak for arm64, hopefully ready for queueing Thanks. I'll push these into linux-next tomorrow, once I've had a chance to test my conflict resolution in entry.S. Will

Re: [PATCHv3 2/2] arm64: Add support for STACKLEAK gcc plugin

2018-07-24 Thread Kees Cook
On Tue, Jul 24, 2018 at 5:44 AM, Alexander Popov wrote: > On 21.07.2018 00:41, Laura Abbott wrote: >> This adds support for the STACKLEAK gcc plugin to arm64 by implementing >> stackleak_check_alloca(), based heavily on the x86 version, and adding the >> two helpers used by the stackleak common

Re: [PATCHv3 2/2] arm64: Add support for STACKLEAK gcc plugin

2018-07-24 Thread Kees Cook
On Tue, Jul 24, 2018 at 5:44 AM, Alexander Popov wrote: > On 21.07.2018 00:41, Laura Abbott wrote: >> This adds support for the STACKLEAK gcc plugin to arm64 by implementing >> stackleak_check_alloca(), based heavily on the x86 version, and adding the >> two helpers used by the stackleak common

Re: [PATCH] perf/x86/intel: Fix unwind errors from PEBS entries (mk-II)

2018-07-24 Thread Josh Poimboeuf
On Mon, Jul 23, 2018 at 04:14:27PM +0200, Peter Zijlstra wrote: > On Mon, Jul 23, 2018 at 08:30:06AM -0500, Josh Poimboeuf wrote: > > On Thu, Jul 19, 2018 at 11:19:54PM +0200, Peter Zijlstra wrote: > > > --- a/include/uapi/linux/perf_event.h > > > +++ b/include/uapi/linux/perf_event.h > > > @@

Re: [PATCH] perf/x86/intel: Fix unwind errors from PEBS entries (mk-II)

2018-07-24 Thread Josh Poimboeuf
On Mon, Jul 23, 2018 at 04:14:27PM +0200, Peter Zijlstra wrote: > On Mon, Jul 23, 2018 at 08:30:06AM -0500, Josh Poimboeuf wrote: > > On Thu, Jul 19, 2018 at 11:19:54PM +0200, Peter Zijlstra wrote: > > > --- a/include/uapi/linux/perf_event.h > > > +++ b/include/uapi/linux/perf_event.h > > > @@

Re: [PATCH v3 2/2] fpga: zynq-fpga: Add support for readback

2018-07-24 Thread Moritz Fischer
Hi Appana, On Tue, Jul 24, 2018 at 7:17 AM, Appana Durga Kedareswara rao wrote: > This patch does the below > --> Adds support for readback of pl configuration data > --> Adds support for readback of pl configuration registers Can you please make the commit message such that you have full

Re: [PATCH v3 2/2] fpga: zynq-fpga: Add support for readback

2018-07-24 Thread Moritz Fischer
Hi Appana, On Tue, Jul 24, 2018 at 7:17 AM, Appana Durga Kedareswara rao wrote: > This patch does the below > --> Adds support for readback of pl configuration data > --> Adds support for readback of pl configuration registers Can you please make the commit message such that you have full

Re: [PATCH 18/18] cpupower: change strncpy+truncation to strlcpy

2018-07-24 Thread Shuah Khan
On 07/12/2018 07:26 PM, Dominique Martinet wrote: > Generated by scripts/coccinelle/misc/strncpy_truncation.cocci > > Signed-off-by: Dominique Martinet > --- > > Please see https://marc.info/?l=linux-kernel=153144450722324=2 (the > first patch of the serie) for the motivation behind this patch

Re: [PATCH 18/18] cpupower: change strncpy+truncation to strlcpy

2018-07-24 Thread Shuah Khan
On 07/12/2018 07:26 PM, Dominique Martinet wrote: > Generated by scripts/coccinelle/misc/strncpy_truncation.cocci > > Signed-off-by: Dominique Martinet > --- > > Please see https://marc.info/?l=linux-kernel=153144450722324=2 (the > first patch of the serie) for the motivation behind this patch

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

2018-07-24 Thread Nadav Amit
at 7:26 AM, Ingo Molnar wrote: > > * Nadav Amit wrote: > >> Use assembly macros for jump-labels and call them from inline assembly. >> This not only makes the code more readable, but also improves >> compilation decision, specifically inline decisions which GCC base on >> the number of new

Re: [PATCH v4 1/3] lib: add crc64 calculation routines

2018-07-24 Thread Coly Li
On 2018/7/24 12:26 PM, Eric Biggers wrote: > On Thu, Jul 19, 2018 at 12:55:43AM +0800, Coly Li wrote: >> This patch adds the re-write crc64 calculation routines for Linux kernel. >> The CRC64 polynomical arithmetic follows ECMA-182 specification, inspired > > "polynomical" => "polynomial". Same

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

2018-07-24 Thread Nadav Amit
at 7:26 AM, Ingo Molnar wrote: > > * Nadav Amit wrote: > >> Use assembly macros for jump-labels and call them from inline assembly. >> This not only makes the code more readable, but also improves >> compilation decision, specifically inline decisions which GCC base on >> the number of new

Re: [PATCH v4 1/3] lib: add crc64 calculation routines

2018-07-24 Thread Coly Li
On 2018/7/24 12:26 PM, Eric Biggers wrote: > On Thu, Jul 19, 2018 at 12:55:43AM +0800, Coly Li wrote: >> This patch adds the re-write crc64 calculation routines for Linux kernel. >> The CRC64 polynomical arithmetic follows ECMA-182 specification, inspired > > "polynomical" => "polynomial". Same

[PATCH v2] memory: tegra: Don't invoke Tegra30+ specific memory timing setup on Tegra20

2018-07-24 Thread Dmitry Osipenko
This fixes irrelevant "tegra-mc 7000f000.memory-controller: no memory timings for RAM code 0 registered" warning message during of kernels boot-up on Tegra20. Fixes: a8d502fd3348 ("memory: tegra: Squash tegra20-mc into common tegra-mc driver") Signed-off-by: Dmitry Osipenko Acked-by: Jon Hunter

[PATCH v2] memory: tegra: Don't invoke Tegra30+ specific memory timing setup on Tegra20

2018-07-24 Thread Dmitry Osipenko
This fixes irrelevant "tegra-mc 7000f000.memory-controller: no memory timings for RAM code 0 registered" warning message during of kernels boot-up on Tegra20. Fixes: a8d502fd3348 ("memory: tegra: Squash tegra20-mc into common tegra-mc driver") Signed-off-by: Dmitry Osipenko Acked-by: Jon Hunter

Re: [RFC v5 PATCH 1/2] mm: refactor do_munmap() to extract the common part

2018-07-24 Thread Laurent Dufour
On 19/07/2018 01:21, Yang Shi wrote: > Introduces three new helper functions: > * munmap_addr_sanity() > * munmap_lookup_vma() > * munmap_mlock_vma() > > They will be used by do_munmap() and the new do_munmap with zapping > large mapping early in the later patch. > > There is no functional

Re: [RFC v5 PATCH 1/2] mm: refactor do_munmap() to extract the common part

2018-07-24 Thread Laurent Dufour
On 19/07/2018 01:21, Yang Shi wrote: > Introduces three new helper functions: > * munmap_addr_sanity() > * munmap_lookup_vma() > * munmap_mlock_vma() > > They will be used by do_munmap() and the new do_munmap with zapping > large mapping early in the later patch. > > There is no functional

Re: [PATCH v3 3/3] PCI: Intel DC P3700 NVMe delay after FLR quirk

2018-07-24 Thread Alex Williamson
On Tue, 24 Jul 2018 10:14:46 -0600 Alex Williamson wrote: > Add a device specific reset for Intel DC P3700 NVMe device which > exhibits a timeout failure in drivers waiting for the ready status to > update after NVMe enable if the driver interacts with the device too > quickly after FLR. As

Re: [PATCH v3 3/3] PCI: Intel DC P3700 NVMe delay after FLR quirk

2018-07-24 Thread Alex Williamson
On Tue, 24 Jul 2018 10:14:46 -0600 Alex Williamson wrote: > Add a device specific reset for Intel DC P3700 NVMe device which > exhibits a timeout failure in drivers waiting for the ready status to > update after NVMe enable if the driver interacts with the device too > quickly after FLR. As

[PATCH v3 2/2] PCI: imx: Initial imx7d pm support

2018-07-24 Thread Leonard Crestez
On imx7d the pcie-phy power domain is turned off in suspend and this can make the system hang after resume when attempting any read from PCI. Fix this by adding minimal suspend/resume code from the nxp internal tree. This will prepare for powering down on suspend and reset the block on resume.

[PATCH v3 0/2] PCI: imx: Initial imx7d pm support

2018-07-24 Thread Leonard Crestez
is a nightmare and unlikely to work. * Drop "reset: imx7: Fix always writing bits as 0 (accepted by Philipp) Series is against linux-next tag next-20180724 where the reset patch was already accepted. The imx7d.dtsi patch is also useful standalone. Link to v2: https://lkml.org/lkml/2018/7/2

[PATCH v3 1/2] Revert "ARM: dts: imx7d: Invert legacy PCI irq mapping"

2018-07-24 Thread Leonard Crestez
This reverts commit 1c86c9dd82f859b474474a7fee0d5195da2c9c1d. That commit followed the reference manual but unfortunately the imx7d manual is incorrect. Tested with ath9k pcie card and confirmed internally. Signed-off-by: Leonard Crestez --- arch/arm/boot/dts/imx7d.dtsi | 12 1

[PATCH v3 1/2] Revert "ARM: dts: imx7d: Invert legacy PCI irq mapping"

2018-07-24 Thread Leonard Crestez
This reverts commit 1c86c9dd82f859b474474a7fee0d5195da2c9c1d. That commit followed the reference manual but unfortunately the imx7d manual is incorrect. Tested with ath9k pcie card and confirmed internally. Signed-off-by: Leonard Crestez --- arch/arm/boot/dts/imx7d.dtsi | 12 1

[PATCH v3 2/2] PCI: imx: Initial imx7d pm support

2018-07-24 Thread Leonard Crestez
On imx7d the pcie-phy power domain is turned off in suspend and this can make the system hang after resume when attempting any read from PCI. Fix this by adding minimal suspend/resume code from the nxp internal tree. This will prepare for powering down on suspend and reset the block on resume.

[PATCH v3 0/2] PCI: imx: Initial imx7d pm support

2018-07-24 Thread Leonard Crestez
is a nightmare and unlikely to work. * Drop "reset: imx7: Fix always writing bits as 0 (accepted by Philipp) Series is against linux-next tag next-20180724 where the reset patch was already accepted. The imx7d.dtsi patch is also useful standalone. Link to v2: https://lkml.org/lkml/2018/7/2

[PATCH v3 0/3] PCI: NVMe reset quirks

2018-07-24 Thread Alex Williamson
v3: Separate quirks, only for the afflicted devices v2: Add bug link, use Samsung vendor ID, add spec references Fix two different NVMe device reset issues with device specific quirks. The Samsung controller in patch 2 sometimes doesn't like being reset while enabled, so disable the NVMe

[PATCH v3 0/3] PCI: NVMe reset quirks

2018-07-24 Thread Alex Williamson
v3: Separate quirks, only for the afflicted devices v2: Add bug link, use Samsung vendor ID, add spec references Fix two different NVMe device reset issues with device specific quirks. The Samsung controller in patch 2 sometimes doesn't like being reset while enabled, so disable the NVMe

[PATCH v3 2/3] PCI: Samsung SM961/PM961 NVMe disable before FLR quirk

2018-07-24 Thread Alex Williamson
The Samsung SM961/PM961 (960 EVO) sometimes fails to return from FLR with the PCI config space reading back as -1. A reproducible instance of this behavior is resolved by clearing the enable bit in the NVMe configuration register and waiting for the ready status to clear (disabling the NVMe

[PATCH v3 3/3] PCI: Intel DC P3700 NVMe delay after FLR quirk

2018-07-24 Thread Alex Williamson
Add a device specific reset for Intel DC P3700 NVMe device which exhibits a timeout failure in drivers waiting for the ready status to update after NVMe enable if the driver interacts with the device too quickly after FLR. As this has been observed in device assignment scenarios, resolve this

[PATCH v3 1/3] PCI: Export pcie_has_flr()

2018-07-24 Thread Alex Williamson
pcie_flr() suggests pcie_has_flr() to ensure that PCIe FLR support is present prior to calling. pcie_flr() is exported while pcie_has_flr() is not. Resolve this. Signed-off-by: Alex Williamson --- drivers/pci/pci.c |3 ++- include/linux/pci.h |1 + 2 files changed, 3 insertions(+),

[PATCH v3 2/3] PCI: Samsung SM961/PM961 NVMe disable before FLR quirk

2018-07-24 Thread Alex Williamson
The Samsung SM961/PM961 (960 EVO) sometimes fails to return from FLR with the PCI config space reading back as -1. A reproducible instance of this behavior is resolved by clearing the enable bit in the NVMe configuration register and waiting for the ready status to clear (disabling the NVMe

[PATCH v3 3/3] PCI: Intel DC P3700 NVMe delay after FLR quirk

2018-07-24 Thread Alex Williamson
Add a device specific reset for Intel DC P3700 NVMe device which exhibits a timeout failure in drivers waiting for the ready status to update after NVMe enable if the driver interacts with the device too quickly after FLR. As this has been observed in device assignment scenarios, resolve this

[PATCH v3 1/3] PCI: Export pcie_has_flr()

2018-07-24 Thread Alex Williamson
pcie_flr() suggests pcie_has_flr() to ensure that PCIe FLR support is present prior to calling. pcie_flr() is exported while pcie_has_flr() is not. Resolve this. Signed-off-by: Alex Williamson --- drivers/pci/pci.c |3 ++- include/linux/pci.h |1 + 2 files changed, 3 insertions(+),

Re: [PATCH 1/2] pinctrl: stm32: fix bank io port number

2018-07-24 Thread Alexandre Torgue
Hi Rob On 07/20/2018 06:35 PM, Rob Herring wrote: On Mon, Jul 16, 2018 at 02:57:36PM +0200, Alexandre Torgue wrote: In case the exti line is not in line with the bank number (that is the case when there is an hole between two banks, for example GPIOK and then GPIOZ), use "st,bank-ioport" DT

Re: [PATCH 1/2] pinctrl: stm32: fix bank io port number

2018-07-24 Thread Alexandre Torgue
Hi Rob On 07/20/2018 06:35 PM, Rob Herring wrote: On Mon, Jul 16, 2018 at 02:57:36PM +0200, Alexandre Torgue wrote: In case the exti line is not in line with the bank number (that is the case when there is an hole between two banks, for example GPIOK and then GPIOZ), use "st,bank-ioport" DT

Applied "regulator: Add sw2_sw4 voltage table to cpcap regulator." to the regulator tree

2018-07-24 Thread Mark Brown
The patch regulator: Add sw2_sw4 voltage table to cpcap regulator. has been applied to the regulator tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next

Applied "regulator: Add sw2_sw4 voltage table to cpcap regulator." to the regulator tree

2018-07-24 Thread Mark Brown
The patch regulator: Add sw2_sw4 voltage table to cpcap regulator. has been applied to the regulator tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next

Applied "regulator: Add support for CPCAP regulators on Motorola Xoom devices." to the regulator tree

2018-07-24 Thread Mark Brown
The patch regulator: Add support for CPCAP regulators on Motorola Xoom devices. has been applied to the regulator tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator.git All being well this means that it will be integrated into the linux-next tree (usually sometime

Applied "regulator: Add support for CPCAP regulators on Motorola Xoom devices." to the regulator tree

2018-07-24 Thread Mark Brown
The patch regulator: Add support for CPCAP regulators on Motorola Xoom devices. has been applied to the regulator tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator.git All being well this means that it will be integrated into the linux-next tree (usually sometime

Re: [PATCH v3 1/2] Add sw2_sw4 voltage table to cpcap regulator.

2018-07-24 Thread Mark Brown
On Tue, Jul 24, 2018 at 11:52:48AM -0400, Peter Geis wrote: > On 07/24/2018 10:36 AM, Mark Brown wrote: > > Please submit patches using subject lines reflecting the style for the > > subsystem. This makes it easier for people to identify relevant > > patches. Look at what existing commits in

Re: [PATCH v3 1/2] Add sw2_sw4 voltage table to cpcap regulator.

2018-07-24 Thread Mark Brown
On Tue, Jul 24, 2018 at 11:52:48AM -0400, Peter Geis wrote: > On 07/24/2018 10:36 AM, Mark Brown wrote: > > Please submit patches using subject lines reflecting the style for the > > subsystem. This makes it easier for people to identify relevant > > patches. Look at what existing commits in

Re: [PATCH v3 07/18] dmaengine: dma-jz4780: Add support for the JZ4770 SoC

2018-07-24 Thread Vinod
On 24-07-18, 17:04, Paul Cercueil wrote: > Hi Vinod, > > Le mar. 24 juil. 2018 à 15:32, Vinod a écrit : > > On 21-07-18, 13:06, Paul Cercueil wrote: > > > +static inline void jz4780_dma_chan_enable(struct jz4780_dma_dev > > > *jzdma, > > > +unsigned int chn) > > > > right justified

Re: [PATCH v3 07/18] dmaengine: dma-jz4780: Add support for the JZ4770 SoC

2018-07-24 Thread Vinod
On 24-07-18, 17:04, Paul Cercueil wrote: > Hi Vinod, > > Le mar. 24 juil. 2018 à 15:32, Vinod a écrit : > > On 21-07-18, 13:06, Paul Cercueil wrote: > > > +static inline void jz4780_dma_chan_enable(struct jz4780_dma_dev > > > *jzdma, > > > +unsigned int chn) > > > > right justified

Re: [RFC][PATCH 0/5] Mount, Filesystem and Keyrings notifications

2018-07-24 Thread David Howells
Casey Schaufler wrote: > > (1) Mount topology and reconfiguration change events. > > With the possibility of unprivileged mounting you're going to have to > address access control on events. If root in a user namespace mounts a > filesystem you may have a case where the "real" user wouldn't

Re: [PATCH 2/3] drivers/irqchip: Add Actions external interrupts support

2018-07-24 Thread Marc Zyngier
On 24/07/18 16:02, Parthiban Nallathambi wrote: > Actions Semi Owl family SoC's S500, S700 and S900 provides support > for 3 external interrupt controllers through SIRQ pins. > > Each line can be independently configured as interrupt or wake-up source, > and triggers either on rising, falling or

Re: [RFC][PATCH 0/5] Mount, Filesystem and Keyrings notifications

2018-07-24 Thread David Howells
Casey Schaufler wrote: > > (1) Mount topology and reconfiguration change events. > > With the possibility of unprivileged mounting you're going to have to > address access control on events. If root in a user namespace mounts a > filesystem you may have a case where the "real" user wouldn't

Re: [PATCH 2/3] drivers/irqchip: Add Actions external interrupts support

2018-07-24 Thread Marc Zyngier
On 24/07/18 16:02, Parthiban Nallathambi wrote: > Actions Semi Owl family SoC's S500, S700 and S900 provides support > for 3 external interrupt controllers through SIRQ pins. > > Each line can be independently configured as interrupt or wake-up source, > and triggers either on rising, falling or

Re: [PATCH 4.17 00/63] 4.17.10-stable review

2018-07-24 Thread Guenter Roeck
On Mon, Jul 23, 2018 at 02:24:06PM +0200, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 4.17.10 release. > There are 63 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me

Re: [PATCH 08/10] psi: pressure stall information for CPU, memory, and IO

2018-07-24 Thread Johannes Weiner
On Thu, Jul 19, 2018 at 10:31:15PM +0200, Peter Zijlstra wrote: > On Thu, Jul 19, 2018 at 02:47:40PM -0400, Johannes Weiner wrote: > > On Wed, Jul 18, 2018 at 02:03:18PM +0200, Peter Zijlstra wrote: > > > On Thu, Jul 12, 2018 at 01:29:40PM -0400, Johannes Weiner wrote: > > > > + /* Update

Re: [PATCH 4.17 00/63] 4.17.10-stable review

2018-07-24 Thread Guenter Roeck
On Mon, Jul 23, 2018 at 02:24:06PM +0200, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 4.17.10 release. > There are 63 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me

Re: [PATCH 08/10] psi: pressure stall information for CPU, memory, and IO

2018-07-24 Thread Johannes Weiner
On Thu, Jul 19, 2018 at 10:31:15PM +0200, Peter Zijlstra wrote: > On Thu, Jul 19, 2018 at 02:47:40PM -0400, Johannes Weiner wrote: > > On Wed, Jul 18, 2018 at 02:03:18PM +0200, Peter Zijlstra wrote: > > > On Thu, Jul 12, 2018 at 01:29:40PM -0400, Johannes Weiner wrote: > > > > + /* Update

Re: [PATCH v2] PCI/AER: Do not clear AER bits if we don't own AER

2018-07-24 Thread Alex G.
On 07/23/2018 11:52 AM, Alexandru Gagniuc wrote: When we don't own AER, we shouldn't touch the AER error bits. Clearing error bits willy-nilly might cause firmware to miss some errors. In theory, these bits get cleared by FFS, or via ACPI _HPX method. These mechanisms are not subject to the

Re: [PATCH v2] PCI/AER: Do not clear AER bits if we don't own AER

2018-07-24 Thread Alex G.
On 07/23/2018 11:52 AM, Alexandru Gagniuc wrote: When we don't own AER, we shouldn't touch the AER error bits. Clearing error bits willy-nilly might cause firmware to miss some errors. In theory, these bits get cleared by FFS, or via ACPI _HPX method. These mechanisms are not subject to the

Re: [PATCH 4.14 00/44] 4.14.58-stable review

2018-07-24 Thread Guenter Roeck
On Mon, Jul 23, 2018 at 02:24:36PM +0200, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 4.14.58 release. > There are 44 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me

Re: [PATCH 4.9 00/28] 4.9.115-stable review

2018-07-24 Thread Guenter Roeck
On Mon, Jul 23, 2018 at 02:25:00PM +0200, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 4.9.115 release. > There are 28 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me

Re: [PATCH 4.14 00/44] 4.14.58-stable review

2018-07-24 Thread Guenter Roeck
On Mon, Jul 23, 2018 at 02:24:36PM +0200, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 4.14.58 release. > There are 44 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me

Re: [PATCH 4.9 00/28] 4.9.115-stable review

2018-07-24 Thread Guenter Roeck
On Mon, Jul 23, 2018 at 02:25:00PM +0200, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 4.9.115 release. > There are 28 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me

Re: [PATCH 4.4 000/107] 4.4.144-stable review

2018-07-24 Thread Guenter Roeck
On Mon, Jul 23, 2018 at 02:40:54PM +0200, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 4.4.144 release. > There are 107 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me

Re: [PATCH v6 00/10] Add the I3C subsystem

2018-07-24 Thread Wolfram Sang
> > Renesas R-Car Gen2 has two I2C IP cores. One can do DMA and automatic > > transfers to the PMIC, the other has I2C slave functionality. One cannot > > do I2C_SMBUS_QUICK, the other can. And some more kind of quirks. > > Sometimes you can mux the pins to GPIO, so you have a third option. > > >

Re: [PATCH 4.4 000/107] 4.4.144-stable review

2018-07-24 Thread Guenter Roeck
On Mon, Jul 23, 2018 at 02:40:54PM +0200, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 4.4.144 release. > There are 107 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me

Re: [PATCH v6 00/10] Add the I3C subsystem

2018-07-24 Thread Wolfram Sang
> > Renesas R-Car Gen2 has two I2C IP cores. One can do DMA and automatic > > transfers to the PMIC, the other has I2C slave functionality. One cannot > > do I2C_SMBUS_QUICK, the other can. And some more kind of quirks. > > Sometimes you can mux the pins to GPIO, so you have a third option. > > >

Re: [PATCH v2] firmware: vpd: Fix section enabled flag on vpd_section_destroy

2018-07-24 Thread Guenter Roeck
On Tue, Jul 24, 2018 at 06:10:38PM +0300, Anton Vasilyev wrote: > static struct ro_vpd and rw_vpd are initialized by vpd_sections_init() > in vpd_probe() based on header's ro and rw sizes. > In vpd_remove() vpd_section_destroy() performs deinitialization based > on enabled flag, which is set to

Re: [PATCH v2] firmware: vpd: Fix section enabled flag on vpd_section_destroy

2018-07-24 Thread Guenter Roeck
On Tue, Jul 24, 2018 at 06:10:38PM +0300, Anton Vasilyev wrote: > static struct ro_vpd and rw_vpd are initialized by vpd_sections_init() > in vpd_probe() based on header's ro and rw sizes. > In vpd_remove() vpd_section_destroy() performs deinitialization based > on enabled flag, which is set to

Re: [PATCH v10 7/7] Bluetooth: hci_qca: Add support for Qualcomm Bluetooth chip wcn3990

2018-07-24 Thread Balakrishna Godavarthi
Hi Matthias, On 2018-07-24 01:24, Matthias Kaehlcke wrote: On Fri, Jul 20, 2018 at 07:02:43PM +0530, Balakrishna Godavarthi wrote: Add support to set voltage/current of various regulators to power up/down Bluetooth chip wcn3990. Signed-off-by: Balakrishna Godavarthi --- changes in v10: *

Re: [PATCH v10 7/7] Bluetooth: hci_qca: Add support for Qualcomm Bluetooth chip wcn3990

2018-07-24 Thread Balakrishna Godavarthi
Hi Matthias, On 2018-07-24 01:24, Matthias Kaehlcke wrote: On Fri, Jul 20, 2018 at 07:02:43PM +0530, Balakrishna Godavarthi wrote: Add support to set voltage/current of various regulators to power up/down Bluetooth chip wcn3990. Signed-off-by: Balakrishna Godavarthi --- changes in v10: *

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