[PATCH net-next 0/3] net: wwan: qcom_bam_dmux: Add QMAP support

From: Vishnu Santhosh

Date: Thu Dec 03 2026 - 11:11:23 EST


Newer modem firmware supports QMAP as an additional multiplexing layer
on top of BAM-DMUX. QMAP is handled by the rmnet driver on top of the
BAM-DMUX network interfaces, and allows multiple data connections over
a single BAM-DMUX channel.

Two changes are needed in BAM-DMUX for this:

- With QMAP, the modem sets the length in the header of DATA packets to
0xffff, which means the payload covers the rest of the DMA transfer.
The BAM DMA driver does not report the size of completed RX transfers
today. Patch 1 reports it as residue through callback_result, and
patch 2 uses it in BAM-DMUX.
- The modem only uses QMAP on a channel if the OPEN command it receives
has the QMAP signal bit set. Patch 3 sets the bit if the modem set it
in its own OPEN command.

Patch 2 depends on patch 1. Vinod, if you are fine with patch 1, could
you ack it so that the series can go through net-next?

Signed-off-by: Vishnu Santhosh <vishnu.santhosh@xxxxxxxxxxxxxxxx>
---
Vishnu Santhosh (3):
dmaengine: qcom: bam_dma: report residue for completed RX transfers
net: wwan: qcom_bam_dmux: use DMA transfer size for RX packets
net: wwan: qcom_bam_dmux: enable QMAP if supported by the modem

drivers/dma/qcom/bam_dma.c | 53 ++++++++++++++++++++++++++++++++++++++++
drivers/net/wwan/qcom_bam_dmux.c | 50 ++++++++++++++++++++++++++++++-------
2 files changed, 94 insertions(+), 9 deletions(-)
---
base-commit: 34d30f9e1f2d8cb25c12ae48572143411a6d278b
change-id: 20261201-qcom-bam-dmux-qmap-6879f7f485ff

Best regards,
--
Vishnu Santhosh <vishnu.santhosh@xxxxxxxxxxxxxxxx>