Linux ARM-MSM sub-architecture
 help / color / mirror / Atom feed
* [PATCH v1 0/1] Add immediate DMA support
@ 2024-11-21 11:52 Jyothi Kumar Seerapu
  2024-11-21 11:52 ` [PATCH v1 1/1] spi: spi-geni-qcom: " Jyothi Kumar Seerapu
  2024-11-21 12:02 ` [PATCH v1 0/1] " Mark Brown
  0 siblings, 2 replies; 8+ messages in thread
From: Jyothi Kumar Seerapu @ 2024-11-21 11:52 UTC (permalink / raw)
  To: Vinod Koul, Mark Brown
  Cc: linux-arm-msm, dmaengine, linux-kernel, linux-spi, quic_msavaliy,
	quic_vtanuku

The DMA TRE(Transfer ring element) buffer contains the DMA
buffer address. Accessing data from this address can cause
significant delays in SPI transfers, which can be mitigated to
some extent by utilizing immediate DMA support.

QCOM GPI DMA hardware supports an immediate DMA feature for data
up to 8 bytes, storing the data directly in the DMA TRE buffer
instead of the DMA buffer address. This enhancement enables faster
SPI data transfers.

This optimization reduces the average transfer time from 25 us to
16 us for a single SPI transfer of 8 bytes length, with a clock
frequency of 50 MHz.


Jyothi Kumar Seerapu (1):
  spi: spi-geni-qcom: Add immediate DMA support

 drivers/dma/qcom/gpi.c           | 32 +++++++++++++++++++++++++++-----
 drivers/spi/spi-geni-qcom.c      |  7 +++++++
 include/linux/dma/qcom-gpi-dma.h |  7 +++++++
 3 files changed, 41 insertions(+), 5 deletions(-)

-- 
2.17.1


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

end of thread, other threads:[~2024-11-29 11:13 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-11-21 11:52 [PATCH v1 0/1] Add immediate DMA support Jyothi Kumar Seerapu
2024-11-21 11:52 ` [PATCH v1 1/1] spi: spi-geni-qcom: " Jyothi Kumar Seerapu
2024-11-21 22:08   ` Dmitry Baryshkov
2024-11-28 13:36     ` Jyothi Kumar Seerapu
2024-11-28 14:02       ` Dmitry Baryshkov
2024-11-29 11:12         ` Jyothi Kumar Seerapu
2024-11-21 12:02 ` [PATCH v1 0/1] " Mark Brown
2024-11-28 13:35   ` Jyothi Kumar Seerapu

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