mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v2 0/2] Add GPI immediate DMA support for SPI
@ 2024-11-28 13:33 Jyothi Kumar Seerapu
  2024-11-28 13:33 ` [PATCH v2 1/2] dmaengine: qcom: gpi: Add GPI immediate DMA support Jyothi Kumar Seerapu
  2024-11-28 13:33 ` [PATCH v2 2/2] spi: spi-geni-qcom: Add " Jyothi Kumar Seerapu
  0 siblings, 2 replies; 14+ messages in thread
From: Jyothi Kumar Seerapu @ 2024-11-28 13:33 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.

v1 -> v2:
   - Separated the patches to dmaengine and spi subsystems
   - Removed the type conversions used in gpi_create_spi_tre of gpi.c.
   - Removed the changes which are not required for this feature from
     qcom-gpi-dma.h file. 

Jyothi Kumar Seerapu (2):
  dmaengine: qcom: gpi: Add GPI immediate DMA support
  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 |  6 ++++++
 3 files changed, 40 insertions(+), 5 deletions(-)


base-commit: ceab669fdf7b7510b4e4997b33d6f66e433a96db
-- 
2.17.1


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

end of thread, other threads:[~2024-12-03 14:15 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-11-28 13:33 [PATCH v2 0/2] Add GPI immediate DMA support for SPI Jyothi Kumar Seerapu
2024-11-28 13:33 ` [PATCH v2 1/2] dmaengine: qcom: gpi: Add GPI immediate DMA support Jyothi Kumar Seerapu
2024-11-28 14:07   ` Dmitry Baryshkov
2024-11-29 11:14     ` Jyothi Kumar Seerapu
2024-11-28 15:23   ` Bjorn Andersson
2024-11-29 11:32     ` Jyothi Kumar Seerapu
2024-11-30  4:05       ` Bjorn Andersson
2024-12-02  5:31         ` Jyothi Kumar Seerapu
2024-12-03 13:31           ` Jyothi Kumar Seerapu
2024-12-03 14:14       ` Jyothi Kumar Seerapu
2024-12-03 14:15     ` Jyothi Kumar Seerapu
2024-11-28 13:33 ` [PATCH v2 2/2] spi: spi-geni-qcom: Add " Jyothi Kumar Seerapu
2024-11-28 14:06   ` Dmitry Baryshkov
2024-12-02  6:37     ` 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

all inboxes | Powered by JetHome®