Devicetree
 help / color / mirror / Atom feed
* [PATCH v2 0/3] Add DMA support for i.MX94 and improve AHB read performance
@ 2026-07-21 21:01 han.xu
  2026-07-21 21:01 ` [PATCH v2 1/3] spi: dt-bindings: nxp,imx94-xspi: add DMA properties han.xu
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: han.xu @ 2026-07-21 21:01 UTC (permalink / raw)
  To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Frank Li,
	Sascha Hauer, Pengutronix Kernel Team, Fabio Estevam, Haibo Chen,
	Mark Brown
  Cc: devicetree, imx, linux-arm-kernel, linux-kernel, linux-spi,
	Han Xu

This series adds DMA support to the NXP XSPI controller on i.MX94
and enables the use of DMA for AHB read operations to improve
performance.

On i.MX943 EVK, the measured read throughput improves 4x higher, from
approximately 70 MB/s to 290 MB/s when DMA is used.

Changes in v2:
- Reorder the patch series.
- Adjust DT binding patch subject lines to match SPI subsystem conventions.
- Update commit message to include ~4x AHB read performance improvement.
- Rename DMA timeout macro to indicate time unit and document timeout selection.
- Simplify DMA channel initialization flow.
- Add CPU fallback path when DMA read fails.
- Clarify/fix DMA alignment handling based on DMA engine requirements.
- Drop unrelated formatting change in probe().

Signed-off-by: Han Xu <han.xu@nxp.com>
---
Han Xu (3):
      spi: dt-bindings: nxp,imx94-xspi: add DMA properties
      spi: nxp-xspi: Improve AHB read performance with DMA
      arm64: dts: imx94-xspi: add the DMA channels

 .../devicetree/bindings/spi/nxp,imx94-xspi.yaml    |  10 ++
 arch/arm64/boot/dts/freescale/imx94.dtsi           |   4 +
 drivers/spi/spi-nxp-xspi.c                         | 130 ++++++++++++++++++++-
 3 files changed, 141 insertions(+), 3 deletions(-)
---
base-commit: 2c2900017f2486e7b46795e80d7c8f3f8fbe0236
change-id: 20260621-xspi_dma_upstream-324c07d4c116

Best regards,
--  
Han Xu <han.xu@nxp.com>


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

end of thread, other threads:[~2026-07-21 21:36 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-07-21 21:01 [PATCH v2 0/3] Add DMA support for i.MX94 and improve AHB read performance han.xu
2026-07-21 21:01 ` [PATCH v2 1/3] spi: dt-bindings: nxp,imx94-xspi: add DMA properties han.xu
2026-07-21 21:35   ` Frank Li
2026-07-21 21:01 ` [PATCH v2 2/3] spi: nxp-xspi: Improve AHB read performance with DMA han.xu
2026-07-21 21:17   ` sashiko-bot
2026-07-21 21:01 ` [PATCH v2 3/3] arm64: dts: imx94-xspi: add the DMA channels han.xu

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