linux-spi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v3 0/3] spi: Add DMA mode support to spi-qcom-qspi
@ 2023-04-14 14:05 Vijaya Krishna Nivarthi
  2023-04-14 14:05 ` [PATCH v3 1/3] spi: dt-bindings: qcom,spi-qcom-qspi: Add iommus Vijaya Krishna Nivarthi
                   ` (3 more replies)
  0 siblings, 4 replies; 14+ messages in thread
From: Vijaya Krishna Nivarthi @ 2023-04-14 14:05 UTC (permalink / raw)
  To: agross, andersson, konrad.dybcio, broonie, robh+dt,
	krzysztof.kozlowski+dt, cros-qcom-dts-watchers, linux-arm-msm,
	linux-spi, devicetree, linux-kernel
  Cc: quic_msavaliy, dianders, mka, swboyd, quic_vtanuku,
	Vijaya Krishna Nivarthi

There are large number of QSPI irqs that fire during boot/init and later
on every suspend/resume.
This could be made faster by doing DMA instead of PIO.
Below is comparison for number of interrupts raised in 2 acenarios...
Boot up and stabilise
Suspend/Resume

Sequence   PIO    DMA
=======================
Boot-up    69088  19284
S/R        5066   3430

Though we have not made measurements for speed, power we expect
the performance to be better with DMA mode and no regressions were
encountered in testing.

Vijaya Krishna Nivarthi (3):
  spi: dt-bindings: qcom,spi-qcom-qspi: Add iommus
  arm64: dts: qcom: sc7280: Add stream-id of qspi to iommus
  spi: spi-qcom-qspi: Add DMA mode support
---
v2 -> v3:
- Modified commit messages
- Made a change to driver based on re-review

v1 -> v2:
- Added documentation file to the series
- Made changes to driver based on HPG re-review
---
 .../bindings/spi/qcom,spi-qcom-qspi.yaml           |   3 +
 arch/arm64/boot/dts/qcom/sc7280.dtsi               |   1 +
 drivers/spi/spi-qcom-qspi.c                        | 434 +++++++++++++++++++--
 3 files changed, 407 insertions(+), 31 deletions(-)

-- 
Qualcomm INDIA, on behalf of Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, hosted by the Linux Foundation.


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

end of thread, other threads:[~2023-04-20 13:12 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-04-14 14:05 [PATCH v3 0/3] spi: Add DMA mode support to spi-qcom-qspi Vijaya Krishna Nivarthi
2023-04-14 14:05 ` [PATCH v3 1/3] spi: dt-bindings: qcom,spi-qcom-qspi: Add iommus Vijaya Krishna Nivarthi
2023-04-15  8:53   ` Krzysztof Kozlowski
2023-04-14 14:05 ` [PATCH v3 2/3] arm64: dts: qcom: sc7280: Add stream-id of qspi to iommus Vijaya Krishna Nivarthi
2023-04-14 14:05 ` [PATCH v3 3/3] spi: spi-qcom-qspi: Add DMA mode support Vijaya Krishna Nivarthi
2023-04-14 22:05   ` Doug Anderson
2023-04-17 12:12     ` Mark Brown
2023-04-17 14:07       ` Doug Anderson
2023-04-17 15:57         ` Vijaya Krishna Nivarthi
2023-04-17 16:39           ` Mark Brown
2023-04-20 13:11     ` Vijaya Krishna Nivarthi
2023-04-14 15:48 ` [PATCH v3 0/3] spi: Add DMA mode support to spi-qcom-qspi Doug Anderson
2023-04-14 16:42   ` Doug Anderson
2023-04-14 17:01     ` Vijaya Krishna Nivarthi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).