mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 0/3] dmaengine: Add support for immediate commands
@ 2026-11-15 14:02 Nickolay Goppen
  2026-11-15 14:02 ` [PATCH 1/3] doc: dmaengine: client-api: Add immediate commands in the DMA client API Nickolay Goppen
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Nickolay Goppen @ 2026-11-15 14:02 UTC (permalink / raw)
  To: Vinod Koul, Frank Li, Jonathan Corbet, Shuah Khan, Randy Dunlap
  Cc: dmaengine, linux-doc, linux-kernel, linux-arm-msm,
	Nickolay Goppen, Sireesh Kodali

The IPA v2.x block, found on some older Qualcomm SoCs, uses BAM DMA to
send and receive packets from the AP. It also uses BAM to receive
commands from the AP (and possibly the modem). These commands are
encoded as "Immediate Commands". 

Immediate (IMM) (only for BAM-NDP): Allows the software to create
descriptors of type immediate, which does not generate any data
transmissions or registers configuration, it is simply supplied to the
peripheral, the peripheral then parses its fields (which are
irrelevant to the BAM). Only the flags of this descriptor are relevant
to the BAM, address and size are irrelevant, and BAM simply passes
them as is to the peripheral. This can be used for the software to
operate peripheral-specific operations within regular data operations.
Immediate descriptors are published on the sidebands as 1 byte size
descriptor, once BAM_NDP fetches an immediate descriptor, it publishes
all recently fetched descriptors including the immediate descriptor
with immediate indication, to inform the peripheral that the last
published descriptor was immediate descriptor.

Adding support for immediate commands is trivial, but requires 
also adding Immediate Commands to the dmaengine API, which is 
what this patch series does.

Signed-off-by: Nickolay Goppen <setotau@mainlining.org>
---
Sireesh Kodali (3):
      doc: dmaengine: client-api: Add immediate commands in the DMA client API
      dmaengine: Add support for immediate commands in the client API
      dmaengine: bam_dma: Add support for immediate commands

 Documentation/driver-api/dmaengine/provider.rst | 10 ++++++++++
 drivers/dma/qcom/bam_dma.c                      |  3 +++
 include/linux/dmaengine.h                       |  4 ++++
 3 files changed, 17 insertions(+)
---
base-commit: 84abb955b1015477aa11a96e2f3ac1b938b77f48
change-id: 20261115-qcom-bam-dma-immediate-577133c77c2e

Best regards,
--  
Nickolay Goppen <setotau@mainlining.org>

^ permalink raw reply	[flat|nested] 7+ messages in thread
* [RFC PATCH 0/3] DMAengine: Add support for Immediate commands
@ 2021-09-19 14:43 Sireesh Kodali
  2021-09-19 14:43 ` [PATCH 2/3] dmaengine: Add support for immediate commands in the client API Sireesh Kodali
  0 siblings, 1 reply; 7+ messages in thread
From: Sireesh Kodali @ 2021-09-19 14:43 UTC (permalink / raw)
  To: phone-devel, ~postmarketos/upstreaming, dmaengine, linux-kernel,
	linux-arm-msm
  Cc: Sireesh Kodali

The IPA v2.x block, found on some older Qualcomm SoCs, uses BAM DMA to
send and receive packets from the AP. It also uses BAM to receive
commands from the AP (and possibly the modem). These commands are
encoded as "Immediate Commands". They vary from regular BAM DMA
commands, although I'm not sure as to exactly how they vary. Adding
support for immediate commands is trivial, but requires also adding
Immediate Commands to the dmaengine API, which is what this patch does.

Sireesh Kodali (3):
  doc: dmaengine: client-api: Add immediate commands in the DMA client
    API
  dmaengine: Add support for immediate commands in the client API
  dmaengine: qcom: bam_dma: Add support for immediate commands

 Documentation/driver-api/dmaengine/provider.rst | 10 ++++++++++
 drivers/dma/qcom/bam_dma.c                      |  3 +++
 include/linux/dmaengine.h                       |  4 ++++
 3 files changed, 17 insertions(+)

-- 
2.33.0


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

end of thread, other threads:[~2026-11-18 20:20 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-15 14:02 [PATCH 0/3] dmaengine: Add support for immediate commands Nickolay Goppen
2026-11-15 14:02 ` [PATCH 1/3] doc: dmaengine: client-api: Add immediate commands in the DMA client API Nickolay Goppen
2026-11-15 14:02 ` [PATCH 2/3] dmaengine: Add support for immediate commands in the " Nickolay Goppen
2026-11-18 20:03   ` Frank Li
2026-11-18 20:20     ` Nickolay Goppen
2026-11-15 14:02 ` [PATCH 3/3] dmaengine: bam_dma: Add support for immediate commands Nickolay Goppen
  -- strict thread matches above, loose matches on Subject: below --
2021-09-19 14:43 [RFC PATCH 0/3] DMAengine: Add support for Immediate commands Sireesh Kodali
2021-09-19 14:43 ` [PATCH 2/3] dmaengine: Add support for immediate commands in the client API Sireesh Kodali

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®