Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp5088772rdb; Sat, 30 Dec 2023 05:41:16 -0800 (PST) X-Google-Smtp-Source: AGHT+IFvd1tuYuKjaxJLG3n+inLdIOq2xrX03Y0XCmhAnaauRMp9xsHcJOXKzy1dGKJ4wMrDF3Bl X-Received: by 2002:ad4:5b8f:0:b0:67f:8391:7d40 with SMTP id 15-20020ad45b8f000000b0067f83917d40mr16718267qvp.51.1703943675697; Sat, 30 Dec 2023 05:41:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703943675; cv=none; d=google.com; s=arc-20160816; b=iPh1OC00bkn+sm1G/6qjhV8ak+Uojy22sWMD+lf+tLZXWtHpr+yK+loMxRqS0LCEN3 gqrXySzOvVh5I62ccR/l1k9pywW5nnLquLi+tg6Aaog3fYPPR6byfuJCWz5EaZ7IWCyG zaKzYJzLmlEoSI21g8xKHzf979VP9+esKojr5IAO03opWXZnsQIgdP9gnCUEv8JypQvj ESrjTE2jqHLSYFiGlRCVtiFDohXd9Z/FpFQO5HMjQ96TtetUlmMpbobEWi2hCjEcyr+t OH+MyjKAbSLjYF5JokHYEycK3OPmZBsirXAc6EKTQihYleggaEgJDAISW3jelb5fm+It ZvBA== 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=FDqewDh1elHRH1a/KXQG+Q86EtBAs0ipxqDwFknhsyc=; fh=j8S+i8ad46gENh4gst1ruripKB6+ldw9JeZbhgG7B5U=; b=N0FjnJsh84j1bSrv/5nqs0Mfj/ehBZsSweOXn/F9xrwkv9x0V/Crn741L+CZHmyg/9 aS5hq4FSJpzBCnJT0PByQCiaQPr/vJUjU4CNKbGwY4efKdIBWS16G9JC6sZkv+j/eivk qkqQXi0qARx9cvLNrvRUL+i/vwuOuy1W7wkHFAj8vJC0RY16E0fZaGuxIyNJHljEd2Bv dRPe13Umkp1VMmSd40pInGOGQkPbSPYvXWXyS5/oCui3LFbnUz+CdZXtx9v5LboK45q1 6efmmnsR4zfydPvHJiMa3/MqyLL33QrSzwhereEs+o4HUB+RDlLIxpXudagpEs+wN8BI c2xA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-wireless+bounces-1344-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-wireless+bounces-1344-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id k1-20020a0cf581000000b0067f95f7ddc9si18619132qvm.345.2023.12.30.05.41.15 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 30 Dec 2023 05:41:15 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless+bounces-1344-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-wireless+bounces-1344-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-wireless+bounces-1344-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 60A221C208A1 for ; Sat, 30 Dec 2023 13:41:15 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C1C798BE3; Sat, 30 Dec 2023 13:41:11 +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 E68DC8BED; Sat, 30 Dec 2023 13:41:09 +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 1rJZaI-000BEm-05; Sat, 30 Dec 2023 14:41:01 +0100 Date: Sat, 30 Dec 2023 14:40:36 +0100 From: Michael =?UTF-8?B?QsO8c2No?= To: Julian Calaby Cc: Rahul Rameshbabu , 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: <20231230144036.7f48b739@barney> In-Reply-To: References: <20231230045105.91351-1-sergeantsagara@protonmail.com> <20231230045105.91351-3-sergeantsagara@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_/TCfuXrtMG=ku6EJFF1A=u3k"; protocol="application/pgp-signature"; micalg=pgp-sha512 --Sig_/TCfuXrtMG=ku6EJFF1A=u3k Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Sat, 30 Dec 2023 18:48:45 +1100 Julian Calaby wrote: > > --- 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(skb); > > - ieee80211_stop_queue(dev->wl->hw, skb_mapping); > > + if (dev->qos_enabled) > > + ieee80211_stop_queue(dev->wl->hw, skb_mapping); > > + 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. 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 Michael B=C3=BCsch https://bues.ch/ --Sig_/TCfuXrtMG=ku6EJFF1A=u3k Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEihRzkKVZOnT2ipsS9TK+HZCNiw4FAmWQHdQACgkQ9TK+HZCN iw4Dgw//UdhkJsEMI+LxdCItWs0laiTytoyk135y6K81oXnImGPWuN51vh99z/Fd s5cjPp0e8IJ27FzDxzyM+0mo0+uqUPqPE1nO6VM4vgt0wgVl+iA6ulkbk3Xr0LkI 4CoIk0GZZkFsuubT6yF71gSImSvSoIFP/GJMOlWrjecGAOtRbvpi1o6rIcRYQTLn MQ6kHNASJbhbbNJd5/XCOro27YdO2OkKRq3xs4YOfd6bV567j71SPEQN8f5I6/UZ uiAd6MhP6noVsXepzz/QA4exUAW9RhPHwVmh6QHnbEoXfHWM+lSrvlv/fcmtbh7o Pfxg9df9lftT+2WMSfcpr3rks7d/idx9XqPA1T5ndDB7vdP4qLofzzgXG3Ig0KUH tu0SomIfu4xOemEfPTIFIL1EGPOdsNYWcL4yX2GMZuti9dtfw0jf6d31qa08IfoC OEqIx2+WbluTwFaeGwPw2/xmtA7q8wK2dgeN0feNDSZHPN1/PrYyL9tvjuZCkIR/ LCs9HFMwVb5HwNvIvCY1sAFIzIsup7XhZVfPRi0d/qYA66mlXG4mWFpQMC1ko/Ze 43oahhSLaShjrmYPJ0ZN/fAmyJo94mMshrqtbtFGqsR17ue7zsfbLpjT4IVmsCv0 ShKV2hWciHCKo5xxoe6GD9PfRhC3bnnIb81aY5ks2tPx8+RvPHo= =5i0z -----END PGP SIGNATURE----- --Sig_/TCfuXrtMG=ku6EJFF1A=u3k--