Article View: linux.kernel.netdev
Article #26878Re: [PATCH net-next 3/3] net: wwan: qcom_bam_dmux: enable QMAP if supported by the modem
From: Stephan Gerhold
Date: Fri, 04 Dec 2026 10:42
Date: Fri, 04 Dec 2026 10:42
69 lines
14697 bytes
14697 bytes
On Thu, Dec 03, 2026 at 09:40:54PM +0530, Vishnu Santhosh wrote: > Newer modem firmware can use QMAP to carry several data connections over > one BAM-DMUX channel, with the rmnet driver handling QMAP on top of the > BAM-DMUX network interfaces. Nitpick: "Newer" is a quite ambiguous term here. Most MSM8916 from 2015 (11 years ago) already support QMAP. I think I only had a single device with an old modem firmware from 2014 that did not support that yet. The reason I never added support for QMAP is that BAM-DMUX itself already supports multiple data connections through its channels, so that alone is not a reason to use the more complex QMAP approach. What you might gain is support for aggregation/flow control that are also implemented in the rmnet driver, although I don't remember if I was able to determine back then if this is actually functional on BAM-DMUX platforms (it's been 6 years since I tried). Please add a motivation to the commit message to explain what we really gain in practice from enabling this feature. > The modem only enables QMAP on a channel if > bit 1 is set in the signal byte of the OPEN command it receives. The > driver always sends 0, so QMAP stays disabled. > > The modem sets the same bit in its own OPEN command if it supports QMAP. > Remember the bit for each channel and set it in the OPEN command sent to > the modem. The modem always opens a channel before its network interface > is created, so the bit is known by the time ndo_open() sends the OPEN > command. Firmware that does not set the bit is not affected. > > Co-developed-by: Deepak Kumar Singh <deepak.singh@oss.qualcomm.com> > Signed-off-by: Deepak Kumar Singh <deepak.singh@oss.qualcomm.com> > Signed-off-by: Vishnu Santhosh <vishnu.santhosh@oss.qualcomm.com> > --- > drivers/net/wwan/qcom_bam_dmux.c | 12 +++++++++++- > 1 file changed, 11 insertions(+), 1 deletion(-) > > diff --git a/drivers/net/wwan/qcom_bam_dmux.c b/drivers/net/wwan/qcom_bam_dmux.c > index a7d05b1b8b1230d1d54e9a7abcbc16a16681797e..9e82a30b16a68d786cd7523a8d6a8bb52dd9fe89 100644 > --- a/drivers/net/wwan/qcom_bam_dmux.c > +++ b/drivers/net/wwan/qcom_bam_dmux.c > @@ -32,6 +32,9 @@ > #define BAM_DMUX_HDR_MAGIC 0x33fc > #define BAM_DMUX_LEN_FROM_DMA 0xffff > > +/* Signal bits in OPEN commands */ > +#define BAM_DMUX_OPEN_QMAP BIT(1) > + The downstream bam_dmux driver calls this bit "DYNAMIC_MTU_MASK" and it's a bit more involved than just a simple "QMAP" signal [1]. It's used for some kind of dynamic MTU negotiation feature where both sides dynamically negotiate the MTU/buffer sizes, once statically during OPEN and technically also dynamically later on new DATA packets. I recall that signaling this bit is required for QMAP to work, but is only indirectly related to it. Based on your patch, it's not clear to me if this feature was simplified for Shikra or you have intentionally implemented it only partially with no reference to the dynamic MTU feature. Please explain the impact/applicability for older platforms in the commit message. Thanks, Stephan [1]: https://git.codelinaro.org/clo/la/kernel/msm-4.9/-/blob/dd6b65e15999156292e8108ec45062a419bbe98a/drivers/soc/qcom/bam_dmux.c#L1006-L1062
Technical Details
Message-ID:
<axKZCkHIHOrF99GO@linaro.org>Path:
mbox-mo1.pugleaf.net!news-lon.pugleaf.net!feed-eu-txt.newsdeef.eu!feed-eu-ch.newsdeef.eu!srl.newsdeef.eu!news.mb-net.net!open-news-network.org!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-377258-linux-kernel-netdev=dewy.ruReferences:
<20261203-qcom-bam-dmux-qmap-v1-0-abc2e80a03af@oss.qualcomm.com> <20261203-qcom-bam-dmux-qmap-v1-3-abc2e80a03af@oss.qualcomm.com>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lon.pugleaf.net!feed-eu-txt.newsdeef.eu!feed-eu-ch.newsdeef.eu!srl.newsdeef.eu!news.mb-net.net!open-news-network.org!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-377258-linux-kernel-netdev=dewy.ru
From: stephan.gerhold@linaro.org (Stephan Gerhold)
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net-next 3/3] net: wwan: qcom_bam_dmux: enable QMAP if
supported by the modem
Date: Fri, 4 Dec 2026 11:42:18 +0100
Organization: Usenet Network
Message-ID: <axKZCkHIHOrF99GO@linaro.org>
References: <20261203-qcom-bam-dmux-qmap-v1-0-abc2e80a03af@oss.qualcomm.com>
<20261203-qcom-bam-dmux-qmap-v1-3-abc2e80a03af@oss.qualcomm.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Injection-Info: usenet.network;
logging-data="2743184"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:1kVnTuZDUnlS+BgWcEsiMGU7LLA= sha256:Khe1+XIIrm3nMp7rxSFkfa20RKeBlq8z+iCjOM2ETzg=
sha1:GUmpyXuhcvzyKOfyAYOCIDmtIrA= sha256:qMmIohntDW3nIMkBVnEQDeMDIff4/z8xkTJ7SgayxXo=
Content-Disposition: inline
List-ID: <netdev.vger.kernel.org>
X-Mailpost-Empty-Hdrs: X-Spam-Level
X-Received: from localhost (localhost [127.0.0.1])
by mail.dewy.ru (Postfix) with ESMTP id 05450117B97; Fri, 4 Dec 2026 13:42:48 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.298
X-Spam-Status: No, score=-3.298 tagged_above=-9999 required=6.31
tests=[DCC_REPUT_70_89=0.1, DKIM_SIGNED=0.1, DKIM_VALID=-0.1,
DKIM_VALID_AU=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.001,
MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001,
SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key)
header.d=linaro.org
X-Received: from mail.dewy.ru ([127.0.0.1])
by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024)
with ESMTP id h1wUWMmTrdhZ;
Fri, 4 Dec 2026 13:42:45 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-377258-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN>
X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=linaro.org
X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10])
by mail.dewy.ru (Postfix) with ESMTPS id 99566117AFF; Fri, 4 Dec 2026 13:42:36 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
by sea.lore.kernel.org (Postfix) with ESMTP id 7BA8133B5F; Fri, 4 Dec 2026 10:42:31 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass;
t=1796380949;
b=Yeb+o34VNXWV5wpSbP4DEprM2YKUbUb5HYYDf+eatlrUIcyS9G1r54Kej5Eq9WH8vM9v
sOr3mZ1C8pl1RjX/RIxVYwWYzrBzKmx9fCG5VItICv6CLcz3HasiqoGRrM4njrQ0dZCDo
pcjTeMNi3WZNTeSA5DiZFqixLY7oiNVRAEsfNvgSQQXGc1FMO6pSpc5pm2bZOkoCKriLy
xH1ijk/6ClB4Cv6rjsDPZ7+NR3fyftddiEE+4LBYTFw8D8dgaswTu1AaHIXHgy9niFpSR
QDZP+40IY+nLhVOgOhQJVIQFgFabj19SAUYXm71mhmHCjZTGUtWhZ0djaudiDCP26IQ==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
a=rsa-sha256; c=relaxed/relaxed; t=1796380949;
h=X-Original-To:Received:DMARC-Filter:Received:DKIM-Signature:
X-Google-DKIM-Signature:X-Forwarded-Encrypted:X-Gm-Message-State:
X-Gm-Gg:X-Received:Received:Date:From:To:Cc:Subject:Message-ID:
References:X-Mailing-List:List-Id:List-Post:List-Help:List-Subscribe:
List-Unsubscribe:List-Owner:Precedence:MIME-Version:Content-Type:
Content-Disposition:In-Reply-To;
bh=s2ULYbP/2uCGXZ2qEN/Be2Idd4GH1WfQdnA/HUoBeNI=;
b=a+6x2ZN5RftaXEqGGdnsrDKbsEQaR3q1PWR50bRXgFEzw5eHYJI2Uk5rauDgnyRxvSRI
BOM8R9hZ6Py55DVtiU0KDMyJ64ScaMFJes3cH2V7O0Qa0MRK+VOrWnKnZqlv5vHdlMPn0
UQBpqNTO4QnY6nFcPVub3XZpGb7kCzsrg4VUW+7DKxEMb35xCe/SqVcUOUcdZPncRM2FD
sZMhZ5NQMd57rQAuXPVlpyDJCHJ8yS9pC9Tal4XragaHH6sSIyV2GGQlwqbgHvF5+mMUZ
99MsBZEzCtc09wcHoqyFdARM4FxV1WAnHlMOJaZfE5XHDsn702MuxQreK+1bvCOLBuQ==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org;
dkim=pass header.d=linaro.org header.i=@linaro.org header.a=rsa-sha256 header.s=google header.b=El8yEm8U;
dmarc=pass header.from=linaro.org;
spf=pass smtp.mailfrom=linaro.org;
arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-Received: from localhost.localdomain (localhost [127.0.0.1])
by smtp.subspace.kernel.org (Postfix) with ESMTP id A9BF8606A322;
Fri, 4 Dec 2026 10:42:29 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.a=rsa-sha256 header.s=google header.b=El8yEm8U
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.221.41
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
t=1796380943;
b=bPa6kuUjJBhxWcOj8nBj0qUf1zrw90GPysz1Rm95hEmydhtK/D1jaIEGX4L1gwzQBlpB
2VabhvU+/Q5FEvs09F8gfbvGL6spnymjC2c3ztWrQejZqm154/n/krHPhP8F3g0a2hG7L
Gvt6JkFiA5vdCBS6H1yT3Sdek71A+DFFhUnp/7h/YFSxjS4yBsIjytrMm/EoqZl0c4n1m
+zum8ROR/qoxOtLABuUfZVy4P+YYgUZiSMWvLWl5J9+0iUkx3JUdLBUO7gUT6S1kw1UYt
rnBzXyFpLxbGucc6uOtsoHdFmUIB3TStvcMoAyu8ik2BIhXcqbib4NzzkTz22RhHVSg==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
a=rsa-sha256; c=relaxed/relaxed; t=1796380943;
h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature:
X-Forwarded-Encrypted:X-Gm-Message-State:X-Gm-Gg:X-Received:Received:
Date:From:To:Cc:Subject:Message-ID:References:MIME-Version:
Content-Type:Content-Disposition:In-Reply-To;
bh=s2ULYbP/2uCGXZ2qEN/Be2Idd4GH1WfQdnA/HUoBeNI=;
b=T4LK3MpepQ4gxgdf+fyahaqRduwygqV5b34+wx9sdUqc8O7NJ8fTSmBHE+79LQ5akgWP
dwBbSiJZq+O66X7T+n4IHe9VDmdqOuugOurfoya99zITyHwYwrumzq3e4oKTmIpBvJmc2
5NA3o2ZjYrmgA+ajKr5cav/Q3qLQd03KShYuRi/qTCB413f9RJZMgiMr+4p05xoYz315M
jNgg1SCBX4ZpMcMGV6WnhIgQbtZDPP0d1CI+PQCiW3wYNHcthZ2YqPmwqtz+1EebJLqIP
V6T+VLek7xR3Bll2RCLNb9AuC0gJ7aF9qNOnxAlat+Z3oDyFIOPPUSW3ND1nApbOokg==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org;
dmarc=pass header.from=linaro.org;
spf=pass smtp.mailfrom=linaro.org;
dkim=pass header.d=linaro.org header.i=@linaro.org header.a=rsa-sha256 header.s=google header.b=El8yEm8U;
arc=none smtp.remote-ip=209.85.221.41
X-Received: from mail-wr1-f41.google.com (mail-wr1-f41.google.com [209.85.221.41])
(using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)
key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256)
(No client certificate requested)
by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8A703606A337
for <netdev@vger.kernel.org>; Fri, 4 Dec 2026 10:42:22 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 8A703606A337
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org
X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org
X-Received: by mail-wr1-f41.google.com with SMTP id ffacd0b85a97d-490d59c3edaso500646f8f.1
for <netdev@vger.kernel.org>; Fri, 04 Dec 2026 02:42:22 -0800 (PST)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=linaro.org; s=google; t=1796380941; x=1796985741; darn=vger.kernel.org;
h=in-reply-to:content-disposition:content-type:mime-version
:references:message-id:subject:cc:to:from:date:from:to:cc:subject
:date:message-id:reply-to:content-type;
bh=s2ULYbP/2uCGXZ2qEN/Be2Idd4GH1WfQdnA/HUoBeNI=;
b=El8yEm8UpWDbXwcCKi7tiqnl79nFsyvs3ZnTVbfYQfLqtgpVbu4q2DNMHggB4Bx6/7
MilDHphDuXGD2zAF8Syema6NlB+Gh7/xzJnG+eO4DXc6ULEonWe6+XBjZVwXCMZjSswK
AqihU5XoZiT943KnRHM2fBsM5FUiR1DJkG6rnXs2FfOlys1vQ/10KXrS/yLNoyaVRRys
zpNsUgxX8HRFZBXaiYXJkfUyep2maVwAuoeR16tbsE25xthOH0Nkix0r929FLaj4tiqB
W7w9tJWaPwuveadFtrHdt5D1oXgsnDljy5pJJY2AihvBD7PVHSv2y0TwRFxxP93+S2cQ
K4sA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20260707; t=1796380941; x=1796985741;
h=in-reply-to:content-disposition:content-type:mime-version
:references:message-id:subject:cc:to:from:date:x-gm-gg
:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to
:content-type;
bh=s2ULYbP/2uCGXZ2qEN/Be2Idd4GH1WfQdnA/HUoBeNI=;
b=VBEtv+hsMZAeqLiLFxFTutKTeMTC+fVyoCRn+9458Pubirky6ANfTE0/YgC/QM/yxR
kzER4m5f7EZ/D8WsEN81x8Xma3YW+5e7mPpgD8zi+Yz3fI9bV+kziuFJfcl7dyCMLMua
yPVlvsEAgKCcCvOBCWlidZCHThLVkJRcHzWkrXu9VY5v5IWGEF1HcOgySESN5rQARSDQ
R5lGuO7wLBCI8+Bog/MtqqVkteo8Yl73d3vfsQHjbskviA9INI1KUvoKmi96Ek+dG7Vq
EtlQyp7DU4GabcDpRhrlHq9K9cYBjb2hLgzoyZNp6rcYJTms45XdQdSidDb2oCH3LfaN
vVYg==
X-Forwarded-Encrypted: i=1; AL+hErEoK79q6u7WbYgGrGBpWZBHz/imhQHaL57wvEtkYL6+C4IOI0m4u9Y97SSmEd9dz2RxCpqJ5T0=@vger.kernel.org
X-Gm-Message-State: APuU4Z/5jGngYf5a/DTxedvn2uHsy7TGYiNSMwdFR0/4Hj8z9t94afDE
3NEoA8NjHloiVNLsemvU9jhD3pIXJqvZUZjVK426zgsKfHNMgvq2fQShivkE8BW3vss=
X-Gm-Gg: AZFdTZcaVpskeS/tVHQQbYqFr39RrnhJ+4rV11cNnKFZm5CXdGN+fzyNdohHGtlYPsr
QF3FruEwM9XjVLF+zD0OSP6a108gKuBAHeVIYOPC8dH2p16Igb08gvRGXpL8hi9XWc6knmE1ore
hJhrSgBnedeYJS3iKF+T9W/gmdB6/iOVmttnyVI5tXLhpUuYl13w/20mP6uThZUy5uiIrN/jI2N
Gpv3MiWEF0r0UkcfmwygCbz9lX2zclkCu4IauP3t+Pr1ZwpZEbLmnIFjF+jSPazgya06EIbgQzN
Jlilo1edsYW8/Dr8SURRQkvH8BTrXpROguxk8CN5cQpgHERT7o0ZxLRFEO7uge9ZFzkSTUHDXMf
rPEn4irvGEABrQgOiAAuxdBkUEFREaPJwTJR9eqtzfpOxKsUNaAafSHbpG371ejUffesETes3SB
XqEgr1i+Bgz89osdat5jjzJwm/6UDzpVMu7MBmg+N8/AGxii/Kt8oardS+WvsmAAjK+SA6O/gvw
dWIWXVe9JTkYyt/RA2RuUQl6goqUtLAIfPuvNjcrGmVK3i/XbVvPyXgIaMQ8CQqDMwmX0oINNuY
wo2EMC+0SrZgx1MRIfoJxEUwDenSjO8MupgMrXOw9lYOblmlLw6J4bOEiYh4
X-Received: by 2002:a5d:584d:0:b0:48e:6651:5956 with SMTP id ffacd0b85a97d-4cf3ecc74bemr10215137f8f.0.1796380941000;
Fri, 04 Dec 2026 02:42:21 -0800 (PST)
X-Received: from linaro.org ([2a02:2454:ff25:4f10:9821:14d4:1c0d:e790])
by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-4d17435daf3sm4533302f8f.49.2026.12.04.02.42.20
(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
Fri, 04 Dec 2026 02:42:20 -0800 (PST)
X-Cc: 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>,
linux-arm-msm@vger.kernel.org, dmaengine@vger.kernel.org,
netdev@vger.kernel.org, linux-kernel@vger.kernel.org,
Deepak Kumar Singh <deepak.singh@oss.qualcomm.com>
X-Mailing-List: netdev@vger.kernel.org
X-List-Post: <mailto:netdev@vger.kernel.org>
X-List-Help: <mailto:netdev+help@vger.kernel.org>
X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org>
X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org>
X-List-Owner: <mailto:netdev+owner@vger.kernel.org>
X-Precedence: list
X-In-Reply-To: <20261203-qcom-bam-dmux-qmap-v1-3-abc2e80a03af@oss.qualcomm.com>