Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795037261; b=yGrQRf0eGg69+bpoploXe7U9B8/CwAPYDQBdpcGCR0Ozxa4F3JlZg1Z/OUP3668onuG7 6iR8DdSZ1L9z89/Q57+x9ETTFJ3zTADWcW4D6s/w/Cv+ZL/B+BD0wjqGeNNbLlBqD7J6u RNV3W0ZTZLXTkRYwzgCj4H0xgi31FzBYmrpROw/SMuuih9mKSsu5N3Zf7TFyBjqLNxSyd xhrUyTEG8BG/H3NSMcV2dvznvp2OgQibJoRnGAbvcRRXi+5k3YbsdQEDncMXr3L1exh44 NFXPsEL05qRb8XgqHjGs3P+F+szUbt2640gDX+2qA6YAGXrNzfGuzcKGKC9dn0YwRRA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795037261; h=Received:DKIM-Signature:From:To:Cc:Subject:Date:Message-ID:X-Mailer: In-Reply-To:References:User-Agent:X-stable:X-Patchwork-Hint: MIME-Version:Content-Transfer-Encoding; bh=euBIoQhHp6I0YJ17uWaJftKfdaRn1clU6BPqNUlmhcU=; b=H6J4NlULxlx1Eso6cZnVXBSbeQKRkOb9xKL1XX/T1NF1zCdG7ADIXej31gwmPzBH/cKD y3LRuVj7paBhttFo+HmAisVAt5Y/sLOAis8RNA5qzom6JBegqbhuOLysdlCQ1h+5H0MSs RDHvJDHM+LW0AHPvjpf3aLG6Sz+SrA9UvtajgKXNSfWai1WZKiWvPTpmQ/QvG/O4XPDCW Urd28j1pnpjd0DEuPL6Ufj1qUVCFWzFFVitGRBXnbjn6UlN+MJoNLv3Taj1n1Q7t+4tPD 1eUTCCVsFgDF2CiDWMJ8oTUaeM2uVQa+BRumx3hhTOLGBvZtlJVyJBI8OaBn6BI5F7Q== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=SRXMMx9S; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 72A6C606A320; Wed, 18 Nov 2026 21:27:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=SRXMMx9S Received: by smtp.kernel.org (Postfix) with ESMTPSA id 674731F000C4; Wed, 18 Nov 2026 21:27:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1795037261; bh=euBIoQhHp6I0YJ17uWaJftKfdaRn1clU6BPqNUlmhcU=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=SRXMMx9SH2UWeHIwxUnTz5VYw37/qCGJ7MP6QbdJvdDCp6GkQWqJ/KmBgcoE9cH+b FkmpNpRt6Vqn11rgb0WFIR3Tje1m8p1gAJCC2WiYvqcAdmIGqq4YOtj1oyg2XtLrs4 o4TCHPKzYw7AeZ8owgl3FxoEBG98wmEOyzkjLqDA= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Ping-Ke Shih , Luka Gejak , Josef Schlehofer , Sasha Levin Subject: [PATCH 6.6 1347/3318] wifi: rtw88: TX report with long timeout for non-PCIE devices Date: Wed, 18 Nov 2026 15:32:49 +0100 Message-ID: <20261118150400.801558617@linuxfoundation.org> X-Mailer: git-send-email 2.56.0 In-Reply-To: <20261118150313.527275416@linuxfoundation.org> References: <20261118150313.527275416@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore X-Mailing-List: patches@lists.linux.dev List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.6-stable review patch. If anyone has any objections, please let me know. ------------------ From: Ping-Ke Shih [ Upstream commit 7cde94dab0e74434ccc0a387d7ad373fb3becda0 ] Many USB and SDIO devices can't report TX status within 500 ms, and extending to 2500 ms as tested USB/SDIO devices can fix the problem [1]. To avoid adding chip ID one by one, and this change looks harmless. Keep PCIE using short timeout, and others use long timeout. [1] https://lore.kernel.org/linux-wireless/20260921165343.8131-1-pepe.schlehofer@gmail.com/ Cc: stable@vger.kernel.org Signed-off-by: Ping-Ke Shih Reviewed-by: Luka Gejak Tested-by: Josef Schlehofer Link: https://patch.msgid.link/20260924004637.9958-1-pkshih@realtek.com [ Adjust the removed condition. This tree has no RTL8723BS support and lacks commit 4d688f22ebbf ("wifi: rtw88: tx: extend the TX report purge timeout to RTL8723BS"), so the old check has no rtw_is_8723bs() part. The resulting code is the same as upstream. ] Signed-off-by: Josef Schlehofer Signed-off-by: Sasha Levin --- drivers/net/wireless/realtek/rtw88/tx.c | 9 +++++---- drivers/net/wireless/realtek/rtw88/tx.h | 3 ++- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/drivers/net/wireless/realtek/rtw88/tx.c b/drivers/net/wireless/realtek/rtw88/tx.c index 6aeac98728968..805caf1c5adea 100644 --- a/drivers/net/wireless/realtek/rtw88/tx.c +++ b/drivers/net/wireless/realtek/rtw88/tx.c @@ -190,7 +190,7 @@ void rtw_tx_report_purge_timer(struct timer_list *t) void rtw_tx_report_enqueue(struct rtw_dev *rtwdev, struct sk_buff *skb, u8 sn) { struct rtw_tx_report *tx_report = &rtwdev->tx_report; - unsigned long timeout = RTW_TX_PROBE_TIMEOUT; + unsigned long timeout; unsigned long flags; u8 *drv_data; @@ -202,9 +202,10 @@ void rtw_tx_report_enqueue(struct rtw_dev *rtwdev, struct sk_buff *skb, u8 sn) __skb_queue_tail(&tx_report->queue, skb); spin_unlock_irqrestore(&tx_report->q_lock, flags); - if (rtwdev->chip->id == RTW_CHIP_TYPE_8723D && - rtwdev->hci.type == RTW_HCI_TYPE_USB) - timeout = msecs_to_jiffies(2500); + if (rtwdev->hci.type == RTW_HCI_TYPE_PCIE) + timeout = RTW_TX_PROBE_TIMEOUT_SHORT; + else + timeout = RTW_TX_PROBE_TIMEOUT_LONG; mod_timer(&tx_report->purge_timer, jiffies + timeout); } diff --git a/drivers/net/wireless/realtek/rtw88/tx.h b/drivers/net/wireless/realtek/rtw88/tx.h index 3241896062577..2423a49a1c83e 100644 --- a/drivers/net/wireless/realtek/rtw88/tx.h +++ b/drivers/net/wireless/realtek/rtw88/tx.h @@ -7,7 +7,8 @@ #define RTK_TX_MAX_AGG_NUM_MASK 0x1f -#define RTW_TX_PROBE_TIMEOUT msecs_to_jiffies(500) +#define RTW_TX_PROBE_TIMEOUT_SHORT msecs_to_jiffies(500) +#define RTW_TX_PROBE_TIMEOUT_LONG msecs_to_jiffies(2500) struct rtw_tx_desc { __le32 w0; -- 2.53.0