mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Vishnu Santhosh <vishnu.santhosh@oss.qualcomm.com>
To: Vinod Koul <vkoul@kernel.org>, Frank Li <Frank.Li@kernel.org>,
	Stephan Gerhold <stephan@gerhold.net>,
	Loic Poulain <loic.poulain@oss.qualcomm.com>,
	Sergey Ryazanov <ryazanov.s.a@gmail.com>,
	Johannes Berg <johannes@sipsolutions.net>,
	Andrew Lunn <andrew+netdev@lunn.ch>,
	"David S. Miller" <davem@davemloft.net>,
	Eric Dumazet <edumazet@kernel.org>,
	Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>
Cc: linux-arm-msm@vger.kernel.org, dmaengine@vger.kernel.org,
	netdev@vger.kernel.org, linux-kernel@vger.kernel.org,
	Vishnu Santhosh <vishnu.santhosh@oss.qualcomm.com>,
	Deepak Kumar Singh <deepak.singh@oss.qualcomm.com>
Subject: [PATCH net-next 0/3] net: wwan: qcom_bam_dmux: Add QMAP support
Date: Thu, 03 Dec 2026 21:40:51 +0530	[thread overview]
Message-ID: <20261203-qcom-bam-dmux-qmap-v1-0-abc2e80a03af@oss.qualcomm.com> (raw)

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>


             reply	other threads:[~2026-12-03 16:11 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-03 16:10 Vishnu Santhosh [this message]
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
2026-12-03 19:22   ` Loic Poulain

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20261203-qcom-bam-dmux-qmap-v1-0-abc2e80a03af@oss.qualcomm.com \
    --to=vishnu.santhosh@oss.qualcomm.com \
    --cc=Frank.Li@kernel.org \
    --cc=andrew+netdev@lunn.ch \
    --cc=davem@davemloft.net \
    --cc=deepak.singh@oss.qualcomm.com \
    --cc=dmaengine@vger.kernel.org \
    --cc=edumazet@kernel.org \
    --cc=johannes@sipsolutions.net \
    --cc=kuba@kernel.org \
    --cc=linux-arm-msm@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=loic.poulain@oss.qualcomm.com \
    --cc=netdev@vger.kernel.org \
    --cc=pabeni@redhat.com \
    --cc=ryazanov.s.a@gmail.com \
    --cc=stephan@gerhold.net \
    --cc=vkoul@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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®