From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.221.44 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796380943; b=RBPERYTEfKtUprRlVPkh/+NkWFBDiAMGP+7XAi/+BczZYP13NTxySC1gKAMOGRaWbbHa 1qF9XSycWyGZMDM3m4KvWy+rKQyYt/+PECuFmaKMQos6aHRITtS0sg1RIA3hP0ZhhWeP1 Sb8qnySPV1w3Q8A44062zLmmbN9Fg1BAQwEFnBZCkCZUGBsZ1H5kJ3CdhNgtZu/a8s/i3 rAXzPnR32ezIIskBXYOh9E/A4HTIL8VWVJ61xlkXlXG1M3pEOLdHIsY41BfWHB3CMoZtr b7miFZaFIj6QKyS7HAqi/lmxJFTD99dKH6DzjPlbJCc8h7NQBAJzATZvL86E0DSwz0A== 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=r2/wey8KUgHQD4NGNbKPTHap40jTjPcorLTjCCFxvD1LmXJIank4oOFizkF/ZS+XXB6+ btVynjLLhn+j80B8WIfvivkzCIJcJUqrvOfry3I3S0UiU19TsESonyZ27HO7hvLK0sd8b qWFVm5dTq1qD66qRv0MHqdTXx07GnX1CyOU/u2WKbCg7eXiJZqHtovQ5f2Tmx8yFdxBsM ykoiNTH3kHh44TLMToIb9jYrkVut2oPr8xZwULQCdZrkr/LqHRL+9wMoKbGEgCbq6L20i SE1bSwq/8I6oOzMK7C+kyTTx+8QwVD7J2a0iMauUdwja4HPdOZMvPPyzU+MQCyd6GGQ== 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.44 Received: from mail-wr1-f44.google.com (mail-wr1-f44.google.com [209.85.221.44]) (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 9B4EF606A33A for ; Fri, 4 Dec 2026 10:42:22 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 9B4EF606A33A 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-f44.google.com with SMTP id ffacd0b85a97d-4c3f0acc1easo545019f8f.0 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=zVBLSOv3FFPLxJ7MUhKmBBanmgqoBcWIbCdcGbPXghWW346QOlM7aG2V3aAM8aoth+ 1Zxn2oFELEKqyuSZ1ik6G5Qd2ma5kWt8kEy8JfJoWeC6KZrdAB3vdphs9uGv8o4LN0BI ieFs/38gSfnB10RL4frC2kJ+iQgE9G7vSYnXaIu+CL6yycAlw1gAwzZ6FOQX5LjggIBR HQfnj3geuyVe8UrVlKzXwZxhWnxKzKE9NzSZ5g5vnBjaRmheoZq7o5/uYXsSypYdZsxD ESTCjc5d+pmN+4emIqN82QuOzsfHJ+lE1IerDWfrCku3Fbt+6Ip0gorWPAGhIJqBhtFw PZtA== X-Forwarded-Encrypted: i=1; AL+hErG6Dqey30iKa7/dXxF19Tyi4Tuy732RFfW5iijSrjEfa7WECORSwdQ3MsKg5RTh4lVSX/AKK9Mvr6lDZEU=@vger.kernel.org X-Gm-Message-State: APuU4Z/+cjsjYPMg4wREXLpFJOVCTa4BBXDUhsts81vSNob9bDjKVoD7 EtijXPTD1JkYI7khABj3deysTZF9L7h2MncMobAMRPR53oXMzgpyeJI9v7mHUOpcUMY= X-Gm-Gg: AZFdTZdSK4D4qa/C79/YUrE9qX8Sa/1UyFZC6nRSzkkmd9ItP65u7ETuCa6bKHQEwv5 DkO8jqyKnIp68ZQvZqqDLKQYh4JiTPR3PzvaU/mXJwyd/uFowyyey+x8GZDydhvJYnuNXwnvVA1 4iE5sAONktl3R/HrJvzG27pVW5+YnZZNGMfH/DtD7Nom9BHXI1XEF8lqIfH4YUSQbutNhvSrbxy U8fXX4xdoG+FKKZHWjBVpTk1uCiM0jH+7JtetsTbeWhQ8QzOov2bqY7FHgjUQT69IrA7HEyUPDp hoN3b9Xg0eyXTbkmv55WiQLbXLZeohUrIFdLCpwcuA5FTWNIkszhSE1bNyQ3ga8heQ9Pq3pJOax w1/HljPSEPIV6G9LBRwzH6Bfx54Pz5CXSVqVSaGB0d1cKovSbLdbZ44ecuZrSA4c15YRsCsvEiH YciGVWH0ttOU7L7jPSk1SoIOBiI+lBPofIgE/OuFGEiF/xcgXgt80ST/Prkky9A5fBegJDI6rFt V/HdWPW+UzteAJfE4SCPljD2POUY4dBuV8UiVKHCBonpNvGOb9Ei0uO0rdsFiZHDXyC9HsjlWrg GEOjVUQTRXccEDAd3WOYgU3geuPH3at2pwNycoJllQyiiKS/I3tqQUMvjzpR 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-kernel@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