DMA Engine development
 help / color / mirror / Atom feed
* [PATCH net-next 0/3] net: wwan: qcom_bam_dmux: Add QMAP support
@ 2026-12-03 16:10 Vishnu Santhosh
  2026-12-03 16:10 ` [PATCH net-next 1/3] dmaengine: qcom: bam_dma: report residue for completed RX transfers Vishnu Santhosh
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Vishnu Santhosh @ 2026-12-03 16:10 UTC (permalink / raw)
  To: Vinod Koul, Frank Li, Stephan Gerhold, Loic Poulain,
	Sergey Ryazanov, Johannes Berg, Andrew Lunn, David S. Miller,
	Eric Dumazet, Jakub Kicinski, Paolo Abeni
  Cc: linux-arm-msm, dmaengine, netdev, linux-kernel, Vishnu Santhosh,
	Deepak Kumar Singh

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@oss.qualcomm.com>
---
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@oss.qualcomm.com>


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

end of thread, other threads:[~2026-12-03 16:19 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-12-03 16:10 [PATCH net-next 0/3] net: wwan: qcom_bam_dmux: Add QMAP support Vishnu Santhosh
2026-12-03 16:10 ` [PATCH net-next 1/3] dmaengine: qcom: bam_dma: report residue for completed RX transfers Vishnu Santhosh
2026-12-03 16:19   ` Frank Li
2026-12-03 16:10 ` [PATCH net-next 2/3] net: wwan: qcom_bam_dmux: use DMA transfer size for RX packets Vishnu Santhosh
2026-12-03 16:10 ` [PATCH net-next 3/3] net: wwan: qcom_bam_dmux: enable QMAP if supported by the modem Vishnu Santhosh

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox