From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.221.42 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796380943; b=pwB7WMi+evyvepud8Y4JUC0xixB7JN/UVnYw9Hg2jO+OjPedllS6yC7PptwdKhA3bGRa BRbCwiDlLfR3/mUlRGz8Ooz3cmgxS2WBjCHgmUhYTQZCyZ3DEhmsHMIb2mT5kdokpyA8D r+1lqF4V69/qLhRLIGQFOrssAVaNxA+MsT4/Sz2bgOkBesydu72A/sYv23lZ998bFWxb8 ZSjNCC3/wOOC9VR7bSO5LiA664mSuyC7uJ9KWak3nZehV/81ElNVnW4QfI1MV2vFomDh9 I04HG/UcyW083QLIvP4UWjuvyS2Xl1dSZDohopfgmt8ZpraetAq/jVmOUK5KYlJCuSQ== 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=cZ2a+chm0cUofE6tQ5hzPzMRINUC0DLDIMuSIPf534FHYPQ1LdtgFL+5ihi/bBPAkwSv mzM9qCnIMYmW3NNWkaLViDK2oK3QIvcMxblT3RZzCojb0yv1YKrOJVT2sXdis4AXOGM0D +WGYDn+Ub+wNsfvl1VhFZeADcPXT4SWwpIdNPRE9O3Cu4iBPT5mbkJ/e5O+x/JxqlcmJX 82L0sQhonsjLbirHi6X+9eb1XqpXK6/8eGgHPWSRS0uwcJPujaOuSdGUezF5HW2OKO0Ok J9A67dQfBPPlcViUjmlrhzo5nl+KEa3II/lHamMcOFwg/yfYJpYJz4v+iFb4VUXqkow== 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.42 Received: from mail-wr1-f42.google.com (mail-wr1-f42.google.com [209.85.221.42]) (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 91871606A339 for ; Fri, 4 Dec 2026 10:42:22 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 91871606A339 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, unprotected) header.d=linaro.org header.i=@linaro.org header.a=rsa-sha256 header.s=google header.b=El8yEm8U Received: by mail-wr1-f42.google.com with SMTP id ffacd0b85a97d-490d59c3edaso500647f8f.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=GrQFFnyGBZLglHUtM92weWJJ4Zzf33p8lwoBxiZDecFMyHOQr10yhIi9cu+L7OR5ns L1wpDdEKFL1heZh1ySm8TJjauX7EJaQzNxHy9p9xKncH5GmfLk4K9dkU3EWadwdylilg qaVDLwp+Gpy3ZX/SF5Tjv4U6IDksvT92hx417uHcsHvKZ0P9nsKKAW6Hf125Fg93j3vq TAqrycbuy0XgW45CuywK+Vl5cRZynktnEf4kqQR4MvOweSkc/RlrvrpYZ0Ue/3OqgFwT rLWvjstN4iKcX0dfIGTVmrmJRoJOeX95bqHc62iEOLiHw7UbdORWPnL3yKf5K9nVeEJV PrcA== X-Forwarded-Encrypted: i=1; AL+hErEdhmtNEf6cuWjX8Vg4lw5wd3+m+M3nNmQ6/oKmasNJ78PJJkmNfgQ3A8sayTsIOI86rFZI6LgUB+K6/i9r@vger.kernel.org X-Gm-Message-State: APuU4Z9CNP7ubmxkpLuymSiW3PQX4KqWjLy/EJvLJdTjsOs9wEkTV/+E v4mvGzygCpWUjE/F8HUWAOOBEe5O80I9/TstVIl1mcmbzr3qO9pG3dz39piqc52TwIs= X-Gm-Gg: AZFdTZeiQHc1HXcDsxzO56670GjAGBQ8SBLiKDXeBuuzjoQTtOjgtmc96Gs23X/xOM2 Ku/oxeY7OaKe79Dy6NErK3BJwHGbNyUkGGuDXG7aKcI1kbq0LHUl4McTXZr4Zm/KznYl89qSDUE cL1XSOCTzeDfz5JzBMtdSOJUmyjhJaMNGEWAuV9EklmswCaBH/CpObNt5xUCUDx75ufZ1YvyD4G cVgW5bwW4qPf7KeK0T9JgqDjB4R0TDV0+Nep+tyTh2UU+5uylH5KEL+3OLTaUbEKESZ4UmSHpUa ckZxs/PQVEbPfOYtZBaBlGbdxnTtD45sBh43pWSCdgTjM9wTM1mX/TB52BDYyRL79nCLDClzJiR Vx1AvMBW0PPW93V916c9exdUIiaIdN3pFhodb4gZ4a3s2oQurt92VnZdr3NMojUS/m5D0/A/6Jr Nzit8qWZrfxXKccIhV9PyuHOAJlZtCYPul5G1lbWadhJN3CjKsK0ozQ89Z30MFPYhnKSrp81utP z3NicaUgAVcPTYQeTVCOyOZmvyG9VmSEyvFgTfCcmtrqd5nd5qEgS7P3UENFV/96rcmZwBvtuo1 a2d6yPiyBlLaZmJE++gbgtGgRiyo/uDBsB6L3pVicGsk+91A1yz2xXUvG2Oj 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: linux-arm-msm@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