Devicetree
 help / color / mirror / Atom feed
* [PATCH 0/3] spi: cadence-xspi: add DMA support
@ 2026-11-07  7:20 Jisheng Zhang
  2026-11-07  7:20 ` [PATCH 1/3] spi: dt-bindings: cdns,xspi: Add DMA properties Jisheng Zhang
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Jisheng Zhang @ 2026-11-07  7:20 UTC (permalink / raw)
  To: Mark Brown, Rob Herring, Krzysztof Kozlowski, Conor Dooley
  Cc: linux-spi, devicetree, Nuno Sá, Fei Xie

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(-)

-- 
2.55.0


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2026-11-07  8:01 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-07  7:20 [PATCH 0/3] spi: cadence-xspi: add DMA support Jisheng Zhang
2026-11-07  7:20 ` [PATCH 1/3] spi: dt-bindings: cdns,xspi: Add DMA properties Jisheng Zhang
2026-11-07  8:01   ` sashiko-bot
2026-11-07  7:20 ` [PATCH 2/3] spi: cadence-xspi: Support dmaengine for sdma io copy Jisheng Zhang
2026-11-07  7:51   ` sashiko-bot
2026-11-07  7:20 ` [PATCH 3/3] spi: cadence-xspi: Use writel_relaxed() for cmd regs Jisheng Zhang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox