Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp2575112lqp; Mon, 25 Mar 2024 03:11:59 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXoaGVR1vIliJ6S2EMTM1CSbOnqgITqgLrPdv+XC64diaO15H/jR16F3Jg4y4yNg2dypWfiwwmzFHMDeMoEQwfkNY9j3nIHZnFpNXDjmg== X-Google-Smtp-Source: AGHT+IGsmmUCwpwhkgE2mxolJ0avVqh9N/vuST6FtqM9yKPMKzTY+eeXFlorMX0xyxvo/h2PGvbq X-Received: by 2002:a05:620a:905:b0:78a:3ffe:4b47 with SMTP id v5-20020a05620a090500b0078a3ffe4b47mr6862034qkv.78.1711361519539; Mon, 25 Mar 2024 03:11:59 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711361519; cv=pass; d=google.com; s=arc-20160816; b=0LHus6jtZ9QqBS9flNe45eaHQMSHkoJa12xe6f1jT9/LmTMAywu2iC7cKS3AUZ4UaJ h4Ex+UtP8G2d1yOWHXqfsKqcScPyttHbwS6Pih0Ixs3fRAkqL3IUZpoFA8J8tgrILVyv 6YFLaYOrzSX82PvqBWmCxo9DLfoyD5JstvkKq0jjkj9X5bW71jLv4+HGOgRuaGVfAy/b IxlbHECHcFJU/+GT+BgO4DxpNH91ljO+qIa3GRR+MdVNfe5uXItTERzPPH7/U0KlbKlS dNVgTzJluIt4z0lVJi1enVy9JRepbG2V26IgWaAorP+QT7MGCweq3MPkQ8zKYj3WetJx /SVA== ARC-Message-Signature: i=2; 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:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=/hFc4VT0Sex1GgDl0GFX7Amr5nqlluG5u8pmwqAk+yY=; fh=W7zJnwmhPdAsBzQ8T+4flLlNfCrIMnWRBw6Dj5MCkkk=; b=IMWfmZQi/W9YokHCHXlLpakJcZf+ZSUMHcnpQxP9UC8IYT0P4g56nPG1fxj6TLcTZo uM8qJ3cty+kV+jJKID5oAk1z89XKQwr7mE0tFsqhpt+py2bOyVr7RKUhPP7oEPcPIr9t M2AaE7gvfP1p6iGRcjTcZJuIwr396H7WSjFBrKwbFsG7ulFMPqIitAjpI46m+F9iK/HQ xc/2XCuzVbXarpUhJ7p1a0A5Pq9Sq/GkQOYTAZaw7bh8xsB3U8dBjuUOsG2BoPpKWnlK p0Tu9MZxKULgdM8uETJc1miGuvbrGarpd1zZ0ZE6jmlKnXzRJU4dxsu2B1+7HM0PhPrb jW6g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=AwPS0tr+; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-116130-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-116130-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=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 g11-20020a05620a218b00b00789e69c167dsi5112698qka.303.2024.03.25.03.11.59 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Mar 2024 03:11:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-116130-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; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=AwPS0tr+; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-116130-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-116130-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=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 4689B1C322A7 for ; Mon, 25 Mar 2024 10:11:59 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1110C3AE28F; Mon, 25 Mar 2024 03:32:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="AwPS0tr+" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 750622811A8; Sun, 24 Mar 2024 23:41:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711323671; cv=none; b=I12Vn3UYXRVF2FxqeBA7rHKag58eJtqon4Dy0aKTLvyXLXHqGLLjHIGjP02ZU5uiqv2ph5zLWIy5WFKrSk2j7J1b4nHPXweFtAt9G+aAikzyS5EuK/H0ZRcsQfsmZNgwu+B/RqH8UGBQdKywpv68hB/BksR3XYxTffr7HEITPC4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711323671; c=relaxed/simple; bh=DVaPUcZGfsXRrLaBgxLaQDa9CsmRpnZR4OpG2n8SCiY=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=vGhlI3tiqkSjc2R5ujMe3JpFbzyrOQDUj8ulslTKI3gbLBKthQpPzx8tMtA/qWlORMizqnRnuDEU9dIaaLKhfX7n9NadRoC61d6FCv/D58TGS8FeYgwB+lsyaNVTsDsbi1fuz7Q4UrOURtU5MZUFZe66MspEUD5Z1JrjucZdDAM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=AwPS0tr+; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 98C75C43394; Sun, 24 Mar 2024 23:41:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1711323671; bh=DVaPUcZGfsXRrLaBgxLaQDa9CsmRpnZR4OpG2n8SCiY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=AwPS0tr+Zp9U4wMJV2b+fYfENp99370sVprN90Fy9lW0aRGmRYnPCw5r2GBc1Engm ixZJPeI4SAhPE/UMTJ1u2guP131JIoLdD8L4avFWefiN2IfyOJWJxW7kU2neT+fRLQ jMEDHU9pANMloEzVeMvSm7o6HrTYlAcibYvsyvWFBmZShohsCAWre8t7cR8DLN3wd4 cXiZB7rU8rcZT+GqAZ6Y5A5JkMLuARE4c7DWWacK8Dxuc7Re8FyqtJcZzaIVxRVvLw O3rWo1M3AmHqPp/FE/Kwkrcv5YhpadlHbo3ZJz++Hs1MOTHh+aj0Dnia77/iHn+voQ k0W1jA+VkZBLA== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Rahul Rameshbabu , Julian Calaby , Kalle Valo , Sasha Levin Subject: [PATCH 5.10 043/238] wifi: b43: Disable QoS for bcm4331 Date: Sun, 24 Mar 2024 19:37:11 -0400 Message-ID: <20240324234027.1354210-44-sashal@kernel.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240324234027.1354210-1-sashal@kernel.org> References: <20240324234027.1354210-1-sashal@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit From: Rahul Rameshbabu [ Upstream commit 09795bded2e725443fe4a4803cae2079cdaf7b26 ] bcm4331 seems to not function correctly with QoS support. This may be due to issues with currently available firmware or potentially a device specific issue. When queues that are not of the default "best effort" priority are selected, traffic appears to not transmit out of the hardware while no errors are returned. This behavior is present among all the other priority queues: video, voice, and background. While this can be worked around by setting a kernel parameter, the default behavior is problematic for most users and may be difficult to debug. This patch offers a working out-of-box experience for bcm4331 users. Log of the issue (using ssh low-priority traffic as an example): ssh -T -vvvv git@github.com OpenSSH_9.6p1, OpenSSL 3.0.12 24 Oct 2023 debug1: Reading configuration data /etc/ssh/ssh_config debug2: checking match for 'host * exec "/nix/store/q1c2flcykgr4wwg5a6h450hxbk4ch589-bash-5.2-p15/bin/bash -c '/nix/store/c015armnkhr6v18za0rypm7sh1i8js8w-gnupg-2.4.1/bin/gpg-connect-agent --quiet updatestartuptty /bye >/dev/null 2>&1'"' host github.com originally github.com debug3: /etc/ssh/ssh_config line 5: matched 'host "github.com"' debug1: Executing command: '/nix/store/q1c2flcykgr4wwg5a6h450hxbk4ch589-bash-5.2-p15/bin/bash -c '/nix/store/c015armnkhr6v18za0rypm7sh1i8js8w-gnupg-2.4.1/bin/gpg-connect-agent --quiet updatestartuptty /bye >/dev/null 2>&1'' debug3: command returned status 0 debug3: /etc/ssh/ssh_config line 5: matched 'exec "/nix/store/q1c2flcykgr4wwg5a6h450hxbk4ch589-bash-5.2-p15/bin/bash -c '/nix/store/c015armnkhr6v18za0r"' debug2: match found debug1: /etc/ssh/ssh_config line 9: Applying options for * debug3: expanded UserKnownHostsFile '~/.ssh/known_hosts' -> '/home/binary-eater/.ssh/known_hosts' debug3: expanded UserKnownHostsFile '~/.ssh/known_hosts2' -> '/home/binary-eater/.ssh/known_hosts2' debug2: resolving "github.com" port 22 debug3: resolve_host: lookup github.com:22 debug3: channel_clear_timeouts: clearing debug3: ssh_connect_direct: entering debug1: Connecting to github.com [192.30.255.113] port 22. debug3: set_sock_tos: set socket 3 IP_TOS 0x48 Fixes: e6f5b934fba8 ("b43: Add QOS support") Signed-off-by: Rahul Rameshbabu Reviewed-by: Julian Calaby Signed-off-by: Kalle Valo Link: https://msgid.link/20231231050300.122806-5-sergeantsagara@protonmail.com Signed-off-by: Sasha Levin --- drivers/net/wireless/broadcom/b43/main.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/net/wireless/broadcom/b43/main.c b/drivers/net/wireless/broadcom/b43/main.c index 6100c0d2a7f3c..29f97ab9b72a6 100644 --- a/drivers/net/wireless/broadcom/b43/main.c +++ b/drivers/net/wireless/broadcom/b43/main.c @@ -2587,7 +2587,8 @@ static void b43_request_firmware(struct work_struct *work) start_ieee80211: wl->hw->queues = B43_QOS_QUEUE_NUM; - if (!modparam_qos || dev->fw.opensource) + if (!modparam_qos || dev->fw.opensource || + dev->dev->chip_id == BCMA_CHIP_ID_BCM4331) wl->hw->queues = 1; err = ieee80211_register_hw(wl->hw); -- 2.43.0