From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail.w14.tutanota.de (mail.w14.tutanota.de [185.205.69.214]) (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 B4C4526B973 for ; Thu, 28 May 2026 20:01:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.205.69.214 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779998468; cv=none; b=rFmzkpsXGuplVA/ImEEqZzvktow1vzeMTMOj54EleWdxEw9ujMhfK8fc9WaXsmMIjlrjLk0UX9Ws6kIQ4Ao057uKutXBbG4fD9vtnXtCHpc+uJQHZZ6p4TNHJV3E0eFsyNyyrah/JKb6dPnq0g79a+pnqP/qC7VkIGvDjco5R78= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779998468; c=relaxed/simple; bh=V0emmDcSnvCmyViSmeSEhSubfvKcVVdRdtlz+Y1jJcY=; h=Date:From:To:Cc:Message-ID:Subject:MIME-Version:Content-Type; b=J3BHaIcFE0Kv0FhyzgJSh2xET6sMQO0ioEegwLX90ify4PFnRUOZzPhQ9tuiQ2LlwGe8AHsf97YD5VCu1OFYgEaKMu0W1JaHREj9N4hNZ08Ug/FF0/38GNWrVLwOSb7lPI37BorM6ChrUvwApQmyodEFg3+toSF/uIRaLHUqAAM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=tuta.com; spf=pass smtp.mailfrom=tuta.com; dkim=pass (2048-bit key) header.d=tuta.com header.i=@tuta.com header.b=n0/IBX/r; arc=none smtp.client-ip=185.205.69.214 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=tuta.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=tuta.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=tuta.com header.i=@tuta.com header.b="n0/IBX/r" Received: from tutadb.w10.tutanota.de (w10.api.tuta.com [IPv6:fd:ac::d:10]) by mail.w14.tutanota.de (Postfix) with ESMTP id 36785146CA49A for ; Thu, 28 May 2026 21:51:39 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1779997899; s=s1; d=tuta.com; h=From:From:To:To:Subject:Subject:Content-Description:Content-ID:Content-Type:Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:In-Reply-To:MIME-Version:MIME-Version:Message-ID:Message-ID:Reply-To:References:Sender; bh=/6acsCH1Ydw2E7KRWYVpPcj4kAhsMBc1RGF19GaxHqk=; b=n0/IBX/rji+XkJqK7MAAxeIh3WCizc6Wn6nnJ6MU1cOr1JLI5J47K6wXkR6KEPwo K+48rKd8q7k6s0L+sMgTpzzfdHTHVuEOcIpbEu8EFE8+GWImUZ5yzKSEewLIQJsO/tZ rxy5xP+81n3yQQTDHIvsbdFYYdKiPLbYtbeMnsncsjQJL4ncx9jYY/gdMp0V6C0RArm MUYQ70AEb1s7NRuUd1qS8R+jKguxpjT4zdj+BPcPZ/ZXFz9dDbZEl43s6mKZilf/OHS HMcMGNrDMoIdOsmsPUFrW0fOCsGNBfTGiioOfcAoSuAwhmveteAaEQqfoHF/+l52Qhj HO53qvp+fA== Date: Thu, 28 May 2026 21:51:39 +0200 (CEST) From: VolcomIlluminated To: Pkshih Cc: Linux Wireless Message-ID: Subject: [PATCH] rtw88: tx: increase TX report timeout for USB devices Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_450625_629192785.1779997899218" Feedback-ID: 01c4e8c013a2562e865d8b77e5b3f9fcabf876cc11e122ee288eb6e126f2764b3bcd8be2e44ea7adb908e52f58339be100204e013477eb10895d54267c0038bec6:TurnOnPrivacy!:tutamail ------=_Part_450625_629192785.1779997899218 Content-Type: multipart/alternative; boundary="----=_Part_450626_1745181212.1779997899218" ------=_Part_450626_1745181212.1779997899218 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit patch attached! ------=_Part_450626_1745181212.1779997899218 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit
patch attached!
------=_Part_450626_1745181212.1779997899218-- ------=_Part_450625_629192785.1779997899218 Content-Type: text/plain; charset=us-ascii; name=0001-rtw88-tx-increase-USB-TX-report-timeout.txt Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=0001-rtw88-tx-increase-USB-TX-report-timeout.txt USB devices have higher latency than PCIe devices. The current 500ms timeout for TX report purging causes "failed to get tx report from firmware" errors on boot with USB WiFi adapters. Introduce RTW_TX_PROBE_TIMEOUT_USB at 1000ms and select it based on the HCI type. PCIe devices retain the original 500ms timeout. Tested on RTL8822BU (Edimax EW-7822ULC) with zero TX report errors across 24+ hour operation and 17,706 packets with zero drops. Signed-off-by: VolcomIlluminated --- --- /tmp/linux-6.18/drivers/net/wireless/realtek/rtw88/tx.c 2025-11-30 17:42:10.000000000 -0500 +++ /home/ptpx86mm1/kernelbuild/linux-6.18/drivers/net/wireless/realtek/rtw88/tx.c 2026-05-24 16:28:06.013490121 -0400 @@ -197,6 +197,7 @@ { struct rtw_tx_report *tx_report = &rtwdev->tx_report; unsigned long flags; + unsigned long timeout; u8 *drv_data; /* pass sn to tx report handler through driver data */ @@ -207,7 +208,9 @@ __skb_queue_tail(&tx_report->queue, skb); spin_unlock_irqrestore(&tx_report->q_lock, flags); - mod_timer(&tx_report->purge_timer, jiffies + RTW_TX_PROBE_TIMEOUT); + timeout = rtwdev->hci.type == RTW_HCI_TYPE_USB ? + RTW_TX_PROBE_TIMEOUT_USB : RTW_TX_PROBE_TIMEOUT; + mod_timer(&tx_report->purge_timer, jiffies + timeout); } EXPORT_SYMBOL(rtw_tx_report_enqueue); --- /tmp/linux-6.18/drivers/net/wireless/realtek/rtw88/tx.h 2025-11-30 17:42:10.000000000 -0500 +++ /home/ptpx86mm1/kernelbuild/linux-6.18/drivers/net/wireless/realtek/rtw88/tx.h 2026-05-24 16:23:26.012668469 -0400 @@ -8,6 +8,7 @@ #define RTK_TX_MAX_AGG_NUM_MASK 0x1f #define RTW_TX_PROBE_TIMEOUT msecs_to_jiffies(500) +#define RTW_TX_PROBE_TIMEOUT_USB msecs_to_jiffies(1000) struct rtw_tx_desc { __le32 w0; ------=_Part_450625_629192785.1779997899218-- From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from rtits2.realtek.com.tw (rtits2.realtek.com [211.75.126.72]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 10FA5C2EA for ; Fri, 29 May 2026 00:49:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=211.75.126.72 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780015768; cv=none; b=sgHiS8WWfOW7P9uM8FVGMuAybwIbozAeE3embI/gFQuDHD/tkox5I2VOiNb0hGqb8ubar6PMdHqHVu8/kkJotUzb/n636Pdrj3iQv3je27gShVFe6hOpc5ece/Rg7dRUNiaNjjebSBvueGDKjSAseql1/z35R+gkifB+Yzer6JA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780015768; c=relaxed/simple; bh=C4j/Y7DOD94viXnIkjYNIwsN2V1IPYZcZhbwudKnFFQ=; h=From:To:CC:Subject:Date:Message-ID:References:In-Reply-To: Content-Type:MIME-Version; b=OvQW3AxWEShEXwBGlcE0gUokZPZewUb417EqSH+39it7TembQkfgHTPpjbO6ww/Je4XBvYWgVHCii9ugIvui37rTp2qmUkzwrglrJgRbiu0OPIgg5zPj0+kI8Asg0T1drApxKG1eDBZXvRWbaGg53jkEmXJ5YYYhQ7bsAZdcsv0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=realtek.com; spf=pass smtp.mailfrom=realtek.com; dkim=pass (2048-bit key) header.d=realtek.com header.i=@realtek.com header.b=ngRJ/gq1; arc=none smtp.client-ip=211.75.126.72 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=realtek.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=realtek.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=realtek.com header.i=@realtek.com header.b="ngRJ/gq1" X-SpamFilter-By: ArmorX SpamTrap 5.80 with qID 64T0nGW813743585, This message is accepted by code: ctloc85258 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=realtek.com; s=dkim; t=1780015756; bh=C4j/Y7DOD94viXnIkjYNIwsN2V1IPYZcZhbwudKnFFQ=; h=From:To:CC:Subject:Date:Message-ID:References:In-Reply-To: Content-Type:Content-Transfer-Encoding:MIME-Version; b=ngRJ/gq1HKPmYfeAyl+tlVxODTP3Y6A31W8F0Hnx7URaKFkDMupx5RaQLWKJ/V2f/ ajo34a9W1binINnRood5hvDHXKYAZHvdf49Pf0hAvI/oS446Ec7jpxT0ZhOmboGAHP AYQ09pVmkX1+a5tqXm5pjvDwIFmaWaxXQl1s1uVFHE3hyRwlLui0uPpZQ14CqZqA3V oYQ9nKCE+QxCd764mWOX9eX1/UnIzyM5J2DZBIpTDOPm/b7MwE+m7FXeoEuvUR8cf/ iC4se4iDPVUwiYsYg67NMdSu3G7ErKG1ixmDhFSPwmJehMeeyNhRVTJwYK9+Sv+ztb mV+1MJnduZqCQ== Received: from mail.realtek.com (rtkexhmbs03.realtek.com.tw[10.21.1.53]) by rtits2.realtek.com.tw (8.15.2/3.28/5.94) with ESMTPS id 64T0nGW813743585 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 29 May 2026 08:49:16 +0800 Received: from RTKEXHMBS06.realtek.com.tw (10.21.1.56) by RTKEXHMBS03.realtek.com.tw (10.21.1.53) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.17; Fri, 29 May 2026 08:49:17 +0800 Received: from RTKEXHMBS06.realtek.com.tw (10.21.1.56) by RTKEXHMBS06.realtek.com.tw (10.21.1.56) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.17; Fri, 29 May 2026 08:49:17 +0800 Received: from RTKEXHMBS06.realtek.com.tw ([::1]) by RTKEXHMBS06.realtek.com.tw ([fe80::e6fd:5a3f:8946:92c4%10]) with mapi id 15.02.2562.017; Fri, 29 May 2026 08:49:16 +0800 From: Ping-Ke Shih To: VolcomIlluminated CC: Linux Wireless Subject: RE: [PATCH] rtw88: tx: increase TX report timeout for USB devices Thread-Topic: [PATCH] rtw88: tx: increase TX report timeout for USB devices Thread-Index: AQHc7t1ShZ8qjTK3PEC+DmEoLy0uy7YkKvIA Date: Fri, 29 May 2026 00:49:16 +0000 Message-ID: References: In-Reply-To: Accept-Language: en-US, zh-TW Content-Language: zh-TW Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 UGxlYXNlIHVzZSBwbGFpbiB0ZXh0IG1vZGUsIGFuZCBzZW5kIHBhdGNoIGJ5ICdnaXQgc2VuZC1l bWFpbCcuDQoNCldlIGhhdmUgWzFdIGFscmVhZHksIGJ1dCB1bmRlciBjb25kaXRpb24gb2YgUlRM ODcyM0RVLiBZb3UgY2FuIGV4dGVuZCBpdA0KdG8gaW52b2x2ZSBSVEw4ODIyQlUuIE1heWJlLCB3 ZSBjYW4ganVzdCBoYXZlIGxvbmdlciByZXBvcnQgdGltZSBmb3INCmFsbCBVU0IgZGV2aWNlcz8N Cg0KWzFdIGh0dHBzOi8vbG9yZS5rZXJuZWwub3JnL2xpbnV4LXdpcmVsZXNzLzIwMjYwNTE4MTQy MzExLjEwMzI4LTEtbHVrYS5nZWpha0BsaW51eC5kZXYvDQoNClBpbmctS2UNCg0K