Skip to content

spi: cadence-xspi: add DMA support

Jisheng Zhang linux-devicetree linux-spi 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3spi: dt-bindings: cdns,xspi: Add DMA propertiesDocumentation/devicetree/bindings/spi/cdns,xspi.yaml+13 -00 replies
2/3spi: cadence-xspi: Support dmaengine for sdma io copydrivers/spi/spi-cadence-xspi.c+137 -20 replies
3/3spi: cadence-xspi: Use writel_relaxed() for cmd regsdrivers/spi/spi-cadence-xspi.c+5 -50 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/3] spi: cadence-xspi: add DMA support

This series tries to improve the cadence-xspi cpu usage and potential performance if the allocated dmaengine is powerful.

But no matter the dmaengine performance is powerful or not, the cpu usage is reduced a lot.

For example, on a dual CA55 platform, test with looping the following cmd:
dd if=/dev/mtd0 of=/dev/null bs=8192

Before the patch:
cpu usage is nearly 50%, which means one CA55 is full loaded with the sdma io copy.

After the patch:
cpu usage is between 0 ~ 1%

patch1 documents the dt-binding
patch2 adds the memcpy dmaengine support
patch3 uses writel_relaxed for cmd regs.

Jisheng Zhang (3):
spi: dt-bindings: cdns,xspi: Add DMA properties
spi: cadence-xspi: Support dmaengine for sdma io copy
spi: cadence-xspi: Use writel_relaxed() for cmd regs

 .../devicetree/bindings/spi/cdns,xspi.yaml    |  13 ++
 drivers/spi/spi-cadence-xspi.c                | 149 +++++++++++++++++-
 2 files changed, 155 insertions(+), 7 deletions(-)
Signature · 1 line
2.55.0