[PATCH 0/3] dmaengine: Add support for immediate commands
From: Nickolay Goppen
Date: Sun Nov 15 2026 - 09:04:41 EST
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@xxxxxxxxxxxxxx>
---
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@xxxxxxxxxxxxxx>