Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp5195695rdb; Sat, 30 Dec 2023 09:41:59 -0800 (PST) X-Google-Smtp-Source: AGHT+IEIUImBq1suu6sYxVNY8U+/e6Iuqgb0k6gIRbqoggVBjl1W3NWzVg6MGV993Vam3NfnKCZl X-Received: by 2002:a05:6808:18a2:b0:3bb:cbb5:6d25 with SMTP id bi34-20020a05680818a200b003bbcbb56d25mr5700922oib.49.1703958119607; Sat, 30 Dec 2023 09:41:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703958119; cv=none; d=google.com; s=arc-20160816; b=R8zPrBJCSQPE1T8Kyq/slv01VYrqs6DJRVcLUi76ahjBzx+lSLpCDrSRei+9evDvFT q9HlR83a7GGlyeKZvrYiYHbof2IGFU1WO1D2o0bRD2fZD/degH1w+jxKUqum+2vAJsy5 h9L/Faw6jPnxmezy0RE2CkuUUzrQh+uzoA+uNjRnmzH76tYymZ7dMxuTeVTEj+6itsth qKtLIYHneiC+5ndkxGfM4OhgY7cgzWgyrdEswo1HtEStxvZ80lz35y5HJPY6A+xQAXe9 YnYJaNG/mSEV9fqlgM5OaZ3NsHMVH2sAKeCG1Ke94CvVSLrD3aZCBDm0Yubr/yOnVOK3 1kPA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:in-reply-to:message-id:subject:cc:to:from:date; bh=64DRUbdfASbsJPXKz+wVGYnT1K/KjsLSG1bqwqJFicg=; fh=AnuKUcfeQ37A1XYXa3iXKXoak+8K1GCjwhABDLpwMVQ=; b=uudHrzhILyTJPjVNHWYDtPhtMxD9AEGyhcYWQiH4TmOB3/ytPhCo0eGxZ6M1BpcIHa 1vOFqA2wQqQYrtl3ZAGHPHilU09+ctiLiOzXNyh0c30+4U9pr9Vuq1eXLYapUDtR5F50 CggzSmvIPnm10Ew2gQHR4SdkC2AzZguxrVBqh9uO1rrjnDO0pHH9UKuqEWAHtqyphLvD kVCULcQgxQQghdsHY0kRhlc2I9SPVb/nrn6ibeFgvNxXV1+oC5QDMXGTMzyZ4fK0j4cj IVtQ3Gxda0xRr2tNAY7Ovt3HFy4Kzz6xwmheuz/jmanCt1HqX3p89J+sxxMObxzRvdrq uTfQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-wireless+bounces-1350-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-1350-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id z3-20020a0cf003000000b0067f9fbf9df6si17677562qvk.383.2023.12.30.09.41.59 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 30 Dec 2023 09:41:59 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless+bounces-1350-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-wireless+bounces-1350-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-1350-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 9F5471C22351 for ; Sat, 30 Dec 2023 17:41:58 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CBBA6C2E3; Sat, 30 Dec 2023 17:41:57 +0000 (UTC) X-Original-To: linux-wireless@vger.kernel.org Received: from bues.ch (bues.ch [80.190.117.144]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id BD922C2C6; Sat, 30 Dec 2023 17:41:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=bues.ch Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=bues.ch Received: by bues.ch with esmtpsa (Exim 4.96) (envelope-from ) id 1rJdLD-000Fqk-2g; Sat, 30 Dec 2023 18:41:42 +0100 Date: Sat, 30 Dec 2023 18:41:13 +0100 From: Michael =?UTF-8?B?QsO8c2No?= To: Rahul Rameshbabu Cc: Julian Calaby , Kalle Valo , linux-wireless@vger.kernel.org, b43-dev@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH wireless 2/5] wifi: b43: Stop/wake correct queue in DMA Tx path when QoS is disabled Message-ID: <20231230184113.3ecfed4f@barney> In-Reply-To: <878r5bk3x9.fsf@protonmail.com> References: <20231230045105.91351-1-sergeantsagara@protonmail.com> <20231230045105.91351-3-sergeantsagara@protonmail.com> <20231230144036.7f48b739@barney> <878r5bk3x9.fsf@protonmail.com> X-Mailer: Claws Mail 4.2.0 (GTK 3.24.39; x86_64-pc-linux-gnu) Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: multipart/signed; boundary="Sig_/Uq+rLFv4DO4EPBBI8EmpMES"; protocol="application/pgp-signature"; micalg=pgp-sha512 --Sig_/Uq+rLFv4DO4EPBBI8EmpMES Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Sat, 30 Dec 2023 17:15:18 +0000 Rahul Rameshbabu wrote: > On Sat, 30 Dec, 2023 14:40:36 +0100 Michael B=C3=BCsch wrote: > > [[PGP Signed Part:Undecided]] > > On Sat, 30 Dec 2023 18:48:45 +1100 > > Julian Calaby wrote: =20 > >> > --- a/drivers/net/wireless/broadcom/b43/dma.c > >> > +++ b/drivers/net/wireless/broadcom/b43/dma.c > >> > @@ -1399,7 +1399,10 @@ int b43_dma_tx(struct b43_wldev *dev, struct = sk_buff *skb) > >> > should_inject_overflow(ring)) { > >> > /* This TX ring is full. */ > >> > unsigned int skb_mapping =3D skb_get_queue_mapping(s= kb); > >> > - ieee80211_stop_queue(dev->wl->hw, skb_mapping); > >> > + if (dev->qos_enabled) > >> > + ieee80211_stop_queue(dev->wl->hw, skb_mappin= g); > >> > + else > >> > + ieee80211_stop_queue(dev->wl->hw, 0); =20 > >>=20 > >> Would this be a little cleaner if we only look up the queue mapping if > >> QOS is enabled? I.e. =20 > > > > No. It would break the other uses of skb_mapping. > > > > But I am wondering why skb_mapping is non-zero in the first place. > > I think the actual bug might be somewhere else. =20 >=20 > Right, skb_mapping is used to map to the correct software structures DMA > mapped to the device. The reason the mapping for the best effort queue > (the default/defacto when QoS is disabled) is not zero is due to the way > initialization of the queues/rings occurs in the driver. The best effort > queue is mapped as the third queue, which leads to this issue when QoS > is disabled. Would it make more sense to change the mappings in > initialization such that the best effort queue is by default mapped to > zero, so we would not need such conditionals? Maybe it is a good idea to find the patch that broke non-QoS. That possibly helps to understand the situation. Non-QoS used to work just fine. --=20 Michael B=C3=BCsch https://bues.ch/ --Sig_/Uq+rLFv4DO4EPBBI8EmpMES Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEihRzkKVZOnT2ipsS9TK+HZCNiw4FAmWQVjkACgkQ9TK+HZCN iw49Pw/+OSp4u8E/XFogM6vVJaqKJw9sYD9qgkn04hS8cv7d5h3WGups0qQiTyzk OgcjjycPyt3vOkm7Lg4GcN6x6PApkgIBnLsA6VDs3kHAT/1z2OX/D9noghgABXik S9puZtr1M6DnuqJgVNNRGrIlo0yikCURKsvxYFHHenv82NL1QNbZcxtTcpjKfqGL T7MUn2kq3sc1aUt25WXpI268fpQFc09H7PpgIyKJODLEnG59ksjpKKSegMjnF1sq CW5r9GEoKOAuLV0W0QFJmFikvez0hHfPTMDZ81iTsrbJ2Q/n3q+4lxi8zqzA1I+N MTH+amHfEqqgFnaS18bD+Fr1pKgncC5WiUq75Sf178CbTpJs2dbPVPcWyQ77JlfM D0X+9SxZ+pD8aUY5noEdPIxTUG0FpQPa0JdbmsnPacjEgftXoKYiiIKBGIiukXGl uTQ2VjpE9inmCkBH2xdtM20EKon7MQ9hC1ex1W94QJKeJKJS8Zw4vPxWTMRd1ALv gnMUXavjLZ8PkxJSNCFFi9fFCRmQ8ulDeIRlrNp+lVGYS2A0BkeiDqveYwhXM9lz fzSki2tiOE36XJsYRi56xN0nuDKqioCqkRve5xm8ay5oK3ERV2N97W3QXz+enQCm S3ZGBw0G6vosvXpJy4P4jjE18Ea2789IFCUDDSSSeW4EYhp61to= =fL9U -----END PGP SIGNATURE----- --Sig_/Uq+rLFv4DO4EPBBI8EmpMES--