Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp5185728rdb; Sat, 30 Dec 2023 09:15:31 -0800 (PST) X-Google-Smtp-Source: AGHT+IEITpp7HeQECNaGXytG4HsaKWFzq7CClSEDQ1wwVTVTUZY+m2vmviTxq9wGddA0yvAziU98 X-Received: by 2002:a17:906:7399:b0:a1d:96d6:cb89 with SMTP id f25-20020a170906739900b00a1d96d6cb89mr5714347ejl.90.1703956531821; Sat, 30 Dec 2023 09:15:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703956531; cv=none; d=google.com; s=arc-20160816; b=kPJwGVmZMaIVzCdL+yPp/+VxbLVUXGNJ23ANeWIlaWhUj8BnoVtxNhfIdtzKDboPeg IElNmNhW0JTqSV2gSPl//T+Frf2qX0wv/OZBIbBQ7odIXx3+ckS4IwE+adjP0bsiBRAd UDPerqcVg66shZdoWnys5W5DuJb3cBE6ZA+M+ArH8eH2LO9zF+QAvfN/jBe8YblVTDcT ueAcm59X9NvszX4BNQJBJWUR642qE85sOmeP2hQPtKBSfswiMo6s9ccdOfQZhaJymX25 FRQAljXgpKB5FVbB+X0IIu/T1MxqzqD9ekIB8G4rYOpSiiE/5evfETh6kJYHqkhKsuQX VZng== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:feedback-id:references :in-reply-to:message-id:subject:cc:from:to:date:dkim-signature; bh=09Hmr6FulL4GOGnkm6RTp3Uh3iuibt0XtEnBi3NKpx0=; fh=uBOvP8C4oS9kW0PSjJsIsSwWzNMZ1KuVfJI8pIfgQWc=; b=BC1ZzHbP4YDaXXttvBmujnFONij8rIgwKFYOP+3v0B3eYAeMjSFSIhLm5CmM8Vidue yv1DC7Hti70LhnzJPfboqMq9cJdn2XNyQuv9F9pCwLXvBye79KjFbltcRYtgRdKbCkXH Y5gMnnO6fh9nmARdMD4czy4MHMDl/A/7g6Rbytmy6ttMvY8VoaWbQAZZDlhfQRIIBOS8 04tbzNIsOslo7GU6tW3vh9ityHzx0KKs3kOwSEx7VdK3Kr5tK9+bx3wH6PyoCjz6mqVv rMNdUiaFDAbzVV0lkqurQO+2s5X7eSqfbEEfpMcRlYYsVBrS0/ogmnaPiaG0rxXpZmjV 7Siw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@protonmail.com header.s=protonmail3 header.b="MLN/rQ0/"; spf=pass (google.com: domain of linux-wireless+bounces-1348-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-wireless+bounces-1348-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=protonmail.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id gj14-20020a170907740e00b00a27c53f5517si484911ejc.618.2023.12.30.09.15.31 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 30 Dec 2023 09:15:31 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless+bounces-1348-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@protonmail.com header.s=protonmail3 header.b="MLN/rQ0/"; spf=pass (google.com: domain of linux-wireless+bounces-1348-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-wireless+bounces-1348-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=protonmail.com 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 am.mirrors.kernel.org (Postfix) with ESMTPS id 857991F212B1 for ; Sat, 30 Dec 2023 17:15:31 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BF2228F45; Sat, 30 Dec 2023 17:15:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=protonmail.com header.i=@protonmail.com header.b="MLN/rQ0/" X-Original-To: linux-wireless@vger.kernel.org Received: from mail-4322.protonmail.ch (mail-4322.protonmail.ch [185.70.43.22]) (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 41D988F44; Sat, 30 Dec 2023 17:15:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=protonmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=protonmail.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1703956524; x=1704215724; bh=09Hmr6FulL4GOGnkm6RTp3Uh3iuibt0XtEnBi3NKpx0=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID: Message-ID:BIMI-Selector; b=MLN/rQ0//gvkGbqBg5K0NlNmP/OmjnP8M0ydYz3Vfm5Q9VhHo65tFsttgxjI373kY DLsdsatl10g40/HIWtIbK949a2mjL+/3aqGkGVSFRTUqq0UNziRjpysRTVwUKopUU8 kpi/7S9Ec2n1btgdDV9oJdv6WtP++98Nd4131EuT9x7b7WAInfo+yrBE8gIFI2+hPT S9AY37xg0JgEnPP1B8/a0N77HgXBbKXuRlvmNjlqENoWpUjtuc6XureBi9VcYunmXX mhj+Rjexpufc8LfWWgH2/zUw7dhjOO37XDDmcaCihEddzsXHPcezCrCY1bBJ/z4oii vgaH11JAEEyKw== Date: Sat, 30 Dec 2023 17:15:18 +0000 To: =?utf-8?Q?Michael_B=C3=BCsch?= From: 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: <878r5bk3x9.fsf@protonmail.com> In-Reply-To: <20231230144036.7f48b739@barney> References: <20231230045105.91351-1-sergeantsagara@protonmail.com> <20231230045105.91351-3-sergeantsagara@protonmail.com> <20231230144036.7f48b739@barney> Feedback-ID: 26003777:user:proton Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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: >> > --- 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. 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? -- Thanks, Rahul Rameshbabu