[PATCH] swiotlb: swiotlb_tbl_map_single() kernel BUG in iommu-helper.h:30

2021-02-26 Thread Brad Larson
: [0.360934] x3 : x2 : 18b0d50da009d000 [0.366258] x1 : x0 : 0042 [0.371583] Call trace: [0.374032] swiotlb_tbl_map_single+0x2b0/0x6a0 [0.378573] swiotlb_map+0xa8/0x2b0 Signed-off-by: Brad Larson --- kernel/dma/swiotlb.c | 2

[PATCH 0/8] Support Pensando Elba SoC

2021-03-03 Thread Brad Larson
management port. - Storage/crypto offloads and 144 programmable P4 cores. - QSPI and EMMC for SoC storage - Two SPI interfaces for peripheral management - I2C bus for platform management Brad Larson (8): gpio: Add Elba SoC gpio driver for spi cs control spi: cadence-quadspi: Add QSPI support for

[PATCH 1/8] gpio: Add Elba SoC gpio driver for spi cs control

2021-03-03 Thread Brad Larson
This GPIO driver is for the Pensando Elba SoC which provides control of four chip selects on two SPI busses. Signed-off-by: Brad Larson --- drivers/gpio/Kconfig | 6 ++ drivers/gpio/Makefile | 1 + drivers/gpio/gpio-elba-spics.c | 120 + 3

[PATCH 3/8] spi: dw: Add support for Pensando Elba SoC SPI

2021-03-03 Thread Brad Larson
The Pensando Elba SoC uses a GPIO based chip select for two DW SPI busses with each bus having two chip selects. Signed-off-by: Brad Larson --- drivers/spi/spi-dw-mmio.c | 35 ++- 1 file changed, 34 insertions(+), 1 deletion(-) diff --git a/drivers/spi/spi-dw

[PATCH 4/8] spidev: Add Pensando CPLD compatible

2021-03-03 Thread Brad Larson
Pensando Elba SoC platforms have a SPI connected CPLD for platform management. Signed-off-by: Brad Larson --- drivers/spi/spidev.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/spi/spidev.c b/drivers/spi/spidev.c index 8cb4d923aeaa..8b285852ce82 100644 --- a/drivers/spi/spidev.c

[PATCH 7/8] arm64: dts: Add Pensando Elba SoC support

2021-03-03 Thread Brad Larson
Add Pensando common and Elba SoC specific device nodes and corresponding binding documentation. Signed-off-by: Brad Larson --- .../bindings/gpio/pensando,elba-spics.txt | 24 ++ .../devicetree/bindings/mmc/cdns,sdhci.yaml | 2 +- .../bindings/spi/cadence-quadspi.txt | 1

[PATCH 6/8] arm64: Add config for Pensando SoC platforms

2021-03-03 Thread Brad Larson
Add ARCH_PENSANDO configuration option for Pensando SoC based platforms. Signed-off-by: Brad Larson --- arch/arm64/Kconfig.platforms | 5 + 1 file changed, 5 insertions(+) diff --git a/arch/arm64/Kconfig.platforms b/arch/arm64/Kconfig.platforms index cdfd5fed457f..803e7cf1df55 100644 --- a

[PATCH 2/8] spi: cadence-quadspi: Add QSPI support for Pensando Elba SoC

2021-03-03 Thread Brad Larson
Add QSPI controller support fo Pensando Elba SoC. Signed-off-by: Brad Larson --- drivers/spi/spi-cadence-quadspi.c | 9 + 1 file changed, 9 insertions(+) diff --git a/drivers/spi/spi-cadence-quadspi.c b/drivers/spi/spi-cadence-quadspi.c index 442cc7c53a47..fb0d9b0bd596 100644 --- a

[PATCH 5/8] mmc: sdhci-cadence: Add Pensando Elba SoC support

2021-03-03 Thread Brad Larson
Add support for Pensando Elba SoC which explicitly controls byte-lane enables on writes. Refactor to allow platform specific write ops. Signed-off-by: Brad Larson --- drivers/mmc/host/Kconfig | 15 +++ drivers/mmc/host/Makefile | 1 + drivers/mmc/host/sdhci-cadence

[PATCH 8/8] MAINTAINERS: Add entry for PENSANDO

2021-03-03 Thread Brad Larson
Add entry for PENSANDO maintainer and files. Signed-off-by: Brad Larson --- MAINTAINERS | 9 + 1 file changed, 9 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 973a937386fa..3f2eebda2396 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -2246,6 +2246,15 @@ S: Maintained

Re: [PATCH v2 10/13] dt-bindings: spi: cadence-qspi: Add support for Pensando Elba SoC

2021-03-29 Thread Brad Larson
On Mon, Mar 29, 2021 at 9:01 AM Mark Brown wrote: > > On Sun, Mar 28, 2021 at 06:59:35PM -0700, Brad Larson wrote: > > Add new vendor Pensando Systems Elba SoC compatible > > string and convert to json-schema. > > These are two unrelated changes and should be separate pat

Re: [PATCH v2 13/13] gpio: Use linux/gpio/driver.h

2021-03-29 Thread Brad Larson
On Sun, Mar 28, 2021 at 11:48 PM Greg KH wrote: > > On Sun, Mar 28, 2021 at 06:59:38PM -0700, Brad Larson wrote: > > New drivers should include instead > > of legacy . > > > > Signed-off-by: Brad Larson > > --- > > drivers/gpio/gpio-elba-spics.c | 3

Re: [PATCH v2 13/13] gpio: Use linux/gpio/driver.h

2021-03-29 Thread Brad Larson
On Mon, Mar 29, 2021 at 6:44 AM Linus Walleij wrote: > > On Mon, Mar 29, 2021 at 4:00 AM Brad Larson wrote: > > > New drivers should include instead > > of legacy . > > > > Signed-off-by: Brad Larson > > Fold into patch 1 as indicated by Greg. > >

Re: [PATCH v2 03/13] spi: dw: Add support for Pensando Elba SoC SPI

2021-03-29 Thread Brad Larson
On Mon, Mar 29, 2021 at 8:58 AM Mark Brown wrote: > > On Sun, Mar 28, 2021 at 06:59:28PM -0700, Brad Larson wrote: > > > @@ -56,7 +56,7 @@ struct dw_spi_mscc { > > /* > > * The Designware SPI controller (referred to as master in the > > documentation) >

Re: [PATCH 1/8] gpio: Add Elba SoC gpio driver for spi cs control

2021-03-29 Thread Brad Larson
On Thu, Mar 4, 2021 at 12:29 AM Linus Walleij wrote: > > Hi Brad, > > thanks for your patch! > > On Thu, Mar 4, 2021 at 4:42 AM Brad Larson wrote: > > > This GPIO driver is for the Pensando Elba SoC which > > provides control of four chip selects on two SPI bu

Re: [PATCH v2 04/13] spidev: Add Pensando CPLD compatible

2021-03-29 Thread Brad Larson
On Mon, Mar 29, 2021 at 3:45 AM Andy Shevchenko wrote: > > On Mon, Mar 29, 2021 at 5:01 AM Brad Larson wrote: > > > > Pensando Elba SoC platforms have a SPI connected CPLD > > for platform management. > > And? It's not a good justification to spread the

Re: [PATCH 7/8] arm64: dts: Add Pensando Elba SoC support

2021-03-28 Thread Brad Larson
On Thu, Mar 4, 2021 at 12:52 AM Linus Walleij wrote: > > On Thu, Mar 4, 2021 at 4:42 AM Brad Larson wrote: > > > Add Pensando common and Elba SoC specific device nodes > > and corresponding binding documentation. > > > > Signed-off-by: Brad Larson > (...)

Re: [PATCH 7/8] arm64: dts: Add Pensando Elba SoC support

2021-03-28 Thread Brad Larson
On Thu, Mar 4, 2021 at 12:03 AM Serge Semin wrote: > > On Wed, Mar 03, 2021 at 07:41:40PM -0800, Brad Larson wrote: > > Add Pensando common and Elba SoC specific device nodes > > and corresponding binding documentation. > > This also needs to be split up into sub-

Re: [PATCH 1/8] gpio: Add Elba SoC gpio driver for spi cs control

2021-03-28 Thread Brad Larson
On Sun, Mar 7, 2021 at 11:21 AM Andy Shevchenko wrote: > > On Thu, Mar 4, 2021 at 4:40 PM Brad Larson wrote: > > > > This GPIO driver is for the Pensando Elba SoC which > > provides control of four chip selects on two SPI busses. > > > +config GPIO_ELBA_SPICS &g

[PATCH v2 01/13] gpio: Add Elba SoC gpio driver for spi cs control

2021-03-28 Thread Brad Larson
This GPIO driver is for the Pensando Elba SoC which provides control of four chip selects on two SPI busses. Signed-off-by: Brad Larson --- drivers/gpio/Kconfig | 6 ++ drivers/gpio/Makefile | 1 + drivers/gpio/gpio-elba-spics.c | 114 + 3

[PATCH v2 02/13] spi: cadence-quadspi: Add QSPI support for Pensando Elba SoC

2021-03-28 Thread Brad Larson
Add QSPI controller support for Pensando Elba SoC Signed-off-by: Brad Larson --- drivers/spi/spi-cadence-quadspi.c | 9 + 1 file changed, 9 insertions(+) diff --git a/drivers/spi/spi-cadence-quadspi.c b/drivers/spi/spi-cadence-quadspi.c index 52ddb3255d88..4aacb0b2dbc7 100644 --- a

[PATCH v2 04/13] spidev: Add Pensando CPLD compatible

2021-03-28 Thread Brad Larson
Pensando Elba SoC platforms have a SPI connected CPLD for platform management. Signed-off-by: Brad Larson --- drivers/spi/spidev.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/spi/spidev.c b/drivers/spi/spidev.c index 8cb4d923aeaa..8b285852ce82 100644 --- a/drivers/spi/spidev.c

[PATCH v2 08/13] dt-bindings: Add pensando vendor prefix

2021-03-28 Thread Brad Larson
Add vendor prefix for Pensando Systems, Inc. Signed-off-by: Brad Larson --- Documentation/devicetree/bindings/vendor-prefixes.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/vendor-prefixes.yaml b/Documentation/devicetree/bindings/vendor

[PATCH v2 00/13] Support Pensando Elba SoC

2021-03-28 Thread Brad Larson
message. - 03Remove else clause, intrinsic DW chip-select is never used. - 08-11 Split out dts and bindings to sub-patches - 10Converted existing cadence-quadspi.txt to YAML schema - 13New driver should use Brad Larson (13): gpio: Add Elba SoC gpio driver for spi cs control spi

[PATCH v2 03/13] spi: dw: Add support for Pensando Elba SoC SPI

2021-03-28 Thread Brad Larson
The Pensando Elba SoC uses a GPIO based chip select for two DW SPI busses with each bus having two chip selects. Signed-off-by: Brad Larson --- drivers/spi/spi-dw-mmio.c | 28 +++- 1 file changed, 27 insertions(+), 1 deletion(-) diff --git a/drivers/spi/spi-dw-mmio.c b

[PATCH v2 10/13] dt-bindings: spi: cadence-qspi: Add support for Pensando Elba SoC

2021-03-28 Thread Brad Larson
Add new vendor Pensando Systems Elba SoC compatible string and convert to json-schema. Signed-off-by: Brad Larson --- .../bindings/spi/cadence-quadspi.txt | 68 .../bindings/spi/cadence-quadspi.yaml | 153 ++ 2 files changed, 153 insertions(+), 68

[PATCH v2 11/13] dt-bindings: gpio: Add Pensando Elba SoC support

2021-03-28 Thread Brad Larson
The Pensando Elba SoC gpio driver provides control of four chip selects on two SPI busses. Signed-off-by: Brad Larson --- .../bindings/gpio/pensando,elba-spics.yaml| 50 +++ 1 file changed, 50 insertions(+) create mode 100644 Documentation/devicetree/bindings/gpio/pensando

[PATCH v2 12/13] MAINTAINERS: Add entry for PENSANDO

2021-03-28 Thread Brad Larson
Add entry for PENSANDO maintainer and files Signed-off-by: Brad Larson --- MAINTAINERS | 9 + 1 file changed, 9 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index fb2a3633b719..272c7a7fde75 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -2246,6 +2246,15 @@ S: Maintained W

[PATCH v2 06/13] arm64: Add config for Pensando SoC platforms

2021-03-28 Thread Brad Larson
Add ARCH_PENSANDO configuration option for Pensando SoC based platforms. Signed-off-by: Brad Larson --- arch/arm64/Kconfig.platforms | 5 + 1 file changed, 5 insertions(+) diff --git a/arch/arm64/Kconfig.platforms b/arch/arm64/Kconfig.platforms index cdfd5fed457f..803e7cf1df55 100644 --- a

[PATCH v2 07/13] arm64: dts: Add Pensando Elba SoC support

2021-03-28 Thread Brad Larson
Add Pensando common and Elba SoC specific device nodes Signed-off-by: Brad Larson --- arch/arm64/boot/dts/Makefile | 1 + arch/arm64/boot/dts/pensando/Makefile | 6 + arch/arm64/boot/dts/pensando/elba-16core.dtsi | 170 ++ .../boot/dts/pensando/elba-asic

[PATCH v2 13/13] gpio: Use linux/gpio/driver.h

2021-03-28 Thread Brad Larson
New drivers should include instead of legacy . Signed-off-by: Brad Larson --- drivers/gpio/gpio-elba-spics.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/gpio/gpio-elba-spics.c b/drivers/gpio/gpio-elba-spics.c index 351bbaeea033..c0dce5333f35 100644 --- a

[PATCH v2 05/13] mmc: sdhci-cadence: Add Pensando Elba SoC support

2021-03-28 Thread Brad Larson
Add support for Pensando Elba SoC which explicitly controls byte-lane enables on writes. Refactor to allow platform specific write ops. Signed-off-by: Brad Larson --- drivers/mmc/host/Kconfig | 15 +++ drivers/mmc/host/Makefile | 1 + drivers/mmc/host/sdhci-cadence

[PATCH v2 09/13] dt-bindings: mmc: Add Pensando Elba SoC binding

2021-03-28 Thread Brad Larson
Pensando Elba ARM 64-bit SoC is integrated with this IP Signed-off-by: Brad Larson --- Documentation/devicetree/bindings/mmc/cdns,sdhci.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/mmc/cdns,sdhci.yaml b/Documentation/devicetree/bindings/mmc/cdns

Re: [PATCH 3/8] spi: dw: Add support for Pensando Elba SoC SPI

2021-03-09 Thread Brad Larson
On Thu, Mar 4, 2021 at 12:48 AM Linus Walleij wrote: > On Thu, Mar 4, 2021 at 4:42 AM Brad Larson wrote: > > > The Pensando Elba SoC uses a GPIO based chip select > > for two DW SPI busses with each bus having two > > chip selects. > > > > Signed-off-by: B