From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.221.43 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796380943; b=wpCeDOQ53MYJaKwO6tFPFK53xnl6KP1CkW3/XkitU6ba6J3Zciit2YzrzABifQWy0JNM HyMz2RXVdxyuEcDRWKQ+CyhwrrjE/U7zHZ2KtkjvoF4SlgGxmMY0Gn6vp119vdkFxJcAC QTcMQwN885C9QDU7G4zlrziMzdd1b3EvLgBRxxzzDqNVQDn+EHwPKPKvqF8cLlYDI3wUQ zVWKg7M1MumkQDBqKkxas0kJ0+xaK5YIYtpQTKrC6s82JYx36XSTUQcqKcYBa9x3j98U7 U/JwSHSdnWg3iKht9JLjoThtI9T0xLxYipxulSPjw579cpnsvj+akgjkm8AASAvd7VQ== 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=rCJVzerFqSVp+WrAAUMvK7nP22Lnpz7QJpI6ivbDuLxM4bx79lzgW6pPKYAJs7LrA5Q7 uUY/0vcl5fpQVuH8UEhlpJy3jHHZpq4ti4Xc0Qti2mfGAyeWeRP7TKE1oOyen1ZhVrZ9n lbKGvDL+f8gBHYhzt26wu24iPJuPL+Kl1f15W6eKSDBYJ1pPsbRv5xCEgslDCojSScXtI ZBGASY0qeLIl4paOGu5JvG2HTB/0/2FeqMOzequJNT4ypjW7pThxkPUD0Ype8oSPSh50J k1Midl5/lEF6MvQaa74o0qZxBgF8V05pNvP+nxVFawMlACM6g48pjemd0gxz6Y0ZvbA== 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.43 Received: from mail-wr1-f43.google.com (mail-wr1-f43.google.com [209.85.221.43]) (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 8B01A606A338 for ; Fri, 4 Dec 2026 10:42:22 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 8B01A606A338 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-f43.google.com with SMTP id ffacd0b85a97d-4c3f0acc1easo545018f8f.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=xav3Z1salnZ3aPZitHyYBj8EeaPQnYeoN0Tf8twPfJu1h+NIN1FypEavmLvUUccnaX zQ2vtI1QtOP2UbvD30E9zIKzukZ7nPjiH9uwDOBH5m2mqOqvR08qycMaZVoWeWaCy1RX SYogcwsSzfh+PjC3AOegcIzrzGBslaLTJaxpOTOi+vYH16t5wItklGRx/Ioqmmj7NILv 39XaKT3y+ZgPNZnrgT2gcbLXtLOCH24wy7ZC+qtTGRLJXsqM4Ep0aNXCcQl+3+y5dXkO 9HRcttd5kUuMPmSQd7t+EWWtkrBXUe/xx+bqP2mD3N3Y6nFrAxVDdSxGzKyv3SfHJvxV 0xQA== X-Forwarded-Encrypted: i=1; AL+hErFlTESus78Nx4RTAlTJqey3ZHaZRbnfmagG6xF1Hg5l/T34LoQdw49u1o6ObXVfQKVkTZRivrChkWk=@vger.kernel.org X-Gm-Message-State: APuU4Z+Si0eNSm5KRvBg+AcW8kz3W7QDsgjp+Y4K9P9NT2LfHH9kKe/L joPU6ZZ6K90xlJcPIzJ+9vUPyYgTNUTAmAgd5zF8j5nPA/dSlVXPdoA9dU3UserLHAA= X-Gm-Gg: AZFdTZe0U8ci5oASEwvEDnK6HkkmgHlrRzfSUP3wijSGXGG6i4yjHvVf/GY4ztlPwWl sVcNHYA30DcPFnA6jcVATGC6c7kT3i6CjKxY5xtX0VjAdDyV1c8T/zgPYtECuk39FPA6C1f30+Z g6b3m9vIkXLXeqhn62AmSbfRVgmVKuyTs2RBEHmE1CLWVEf0YQ2hgJ32I6JHKYB0Z2z0WeQD5U2 bxmoryElTQ5tSyxzZWbp4bmwIwAPqmqL/cMLyAk2TaQL2caiiSfPRhUUFIKpHq0c6X63LLWBxn6 Ew1qsL8psX0MVnPRO5wqa4l/xQ1qWFsW6P//e97F/eM5qpD9DJqU7MPo9IspKbfYiJyFNV7ok2E pP1BLB/xWyVF2E2dka8lUyoAAXmMjbYZ20EYEiM3mwFikYa2k3dDn1WjrhcRnRC0UCvTvyEzpVK mV77XW/kD7SjHR+rdPWKcTE9ICdr8zE7AySHZUCrbzC5RA6L7PNt11h5zHrVJjgKHDL7bXlPbR1 UbXLLwVkG1aZysZP6XkDzyC0F7DkceSK4qZvDEa83jad0SCh0kcHTxYSQr2YV42Mg0Kk5xKqGF2 U7WxLliiJKg6riAZUR8jHBXCWckcvT8JkSafEzc0aTp0usXb5mCRaQ4FyA2r 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: dmaengine@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