From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.221.41 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== 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== 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 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 ; Fri, 4 Dec 2026 10:42:22 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 8A703606A337 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org 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 Received: by mail-wr1-f41.google.com with SMTP id ffacd0b85a97d-490d59c3edaso500646f8f.1 for ; Fri, 04 Dec 2026 02:42:22 -0800 (PST) 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) 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) Date: Fri, 4 Dec 2026 11:42:18 +0100 From: Stephan Gerhold To: Vishnu Santhosh Cc: Vinod Koul , Frank Li , Stephan Gerhold , Loic Poulain , Sergey Ryazanov , Johannes Berg , Andrew Lunn , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , linux-arm-msm@vger.kernel.org, dmaengine@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Deepak Kumar Singh Subject: Re: [PATCH net-next 3/3] net: wwan: qcom_bam_dmux: enable QMAP if supported by the modem Message-ID: References: <20261203-qcom-bam-dmux-qmap-v1-0-abc2e80a03af@oss.qualcomm.com> <20261203-qcom-bam-dmux-qmap-v1-3-abc2e80a03af@oss.qualcomm.com> X-Mailing-List: netdev@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20261203-qcom-bam-dmux-qmap-v1-3-abc2e80a03af@oss.qualcomm.com> 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 > Signed-off-by: Deepak Kumar Singh > Signed-off-by: Vishnu Santhosh > --- > 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