From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wr1-f46.google.com (mail-wr1-f46.google.com [209.85.221.46]) (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 9105C395AF2 for ; Mon, 7 Sep 2026 19:09:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.46 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788808147; cv=none; b=lQSPn1797LdoNmdkWNSTAtdVRBSm9rnKuJdgJh9WdG7WbSxDPFfdfvIercYfD0FiCRtIujrvuDu6IP+8FIYiI4L+lHCDTAOZTQRF8xVDqAjeLjXhWo/0eVBuDeMVPM0EVCFuy0wOVMOLH7NtDPkbAS0abiBaeuITvB6CPoFJavQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788808147; c=relaxed/simple; bh=klVThwxUic4pJTUSyiq+ubmz+e/crXrnGUPv7tLm5dQ=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=uhcBEO63ABKZGEekDcj1ufKovenRntq7+VVBHoU85o46di3J9eTH5UDtNDGb7m2Er13Nsj43BokXkOQI6ZwCBC2YQzf/3P7Oq3s8SY41OHRAOAlYSXmh37CylKLPT3s65099pSw2CLr5GDBrCi033FIBEnvRL+jg3WKB6WcB9kY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=egNIWRBD; arc=none smtp.client-ip=209.85.221.46 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="egNIWRBD" Received: by mail-wr1-f46.google.com with SMTP id ffacd0b85a97d-482e257a23aso2729502f8f.0 for ; Mon, 07 Sep 2026 12:09:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1788808144; x=1789412944; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to:content-type; bh=ac1ZNmdF/CD5IWQMna9x33vdoWIwm5M5aDlFJMRHrmI=; b=egNIWRBDpguoLA/uZ+XVga5RX0/Y2BnSxCNr2ztZJQ8ICPYQw/oxDCUyMXcV6etsOa +9CvV4RviKj3a9ruGUlf0m/HhBnPf2dW+vjbl7NhskVU9PZ46n5pEg9suoUvV19aAbPE rMVHlCEJlwta5aHV6MWs21qqpT5MAJ5KC+wSInhA+m9Ugj1zRdkwoM/19by3Z0zH5lH/ BtekUHccn+Udfr8VqO9ipDLaBBuu9E209mXBUe/b2BhkxZiVm6XCSDwhKki9z0KiAaIW xGrS8RC0B5jz+dnu09OJ2aWwmvjjE+N+AZw+Qj8g8M5HHIjExSVRcdsnqeyDWMjsuZ9r OcRQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1788808144; x=1789412944; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to:content-type; bh=ac1ZNmdF/CD5IWQMna9x33vdoWIwm5M5aDlFJMRHrmI=; b=ehjjqCV5cSQcsAEqhRWt9Veo+bqYDdrVWVwpuRc7hWoCVQUUTFiVDwmBy+e/SvL1bJ 0VwRo2/ZxK7MlFaUOs3gF71gPNMiJGOc9mybv+6TfULebibNT2XoHcTi7eZ36v1zKDKJ EhNrQlW/oyDGiBwOJZKAjThQJgXlF6eNCdYLcETjlUTRFD7HRCIKV+G/FR/eXUTcYD1o jFjkpL1FE6ChWuEQQhONs/37vJGeb300F6wriKXWpFVxUOxGxh1+8lCKPpjAlMNmogw/ 8nuSphgNdHEQCYnUfQ7XgO3p+cBN9qf3YvPg0vzkz791PQQlAX7zJH+14bTZVaXEBN8Y v6Cw== X-Forwarded-Encrypted: i=1; AKwUvBz4EbCPU9c7Tg88wACMpb3bDj99WNDMS5KNIYGxbBfEX9Nvj6Z1e968ZOPS63mV9gtyTneTPKHRtxr0KdLD2w==@vger.kernel.org X-Gm-Message-State: AFuF++nX23KjmSDJjYrK8kPyR++1hVT087qy8DxPtNSPY/zYOperbf6H fyJqzpfOIB19Nhs2s/PZBj+IgItR2vlO9IGzomQJCZGuM6q/IOIwkJ1Y X-Gm-Gg: AYBFou12XU5lfOV296V8EgSP0vGXsJCr/4SQMv86TwOMoUL83Q3Zwtld5ZvH81KQQvT u14wcxODem5vQLPK8ZD3vfOEqgyWG9NA3OMYdUj0aK9fAYLFKCy+hR5bBIFfO1rQf9KhGWDodvD cCfJHH0ExYvm3ZHObHVNop0tOe56h7aJCpLwXCshqdEk2vmMAOFcVbFmGDpMk6eP7dyViLWWy3d NdB0+g+IAr8jRBy0wEry02aUcMrcNYS/dxUqAmrMiNfZPOoVUcUyBQMHMOsykXbXzeX0S21GhjO d5DZ87Y/DUrklvEXDqtRygX2CFTVzXxEPAOGo8AIgTYp4AkiSxeXltXMzIFa2PHE1Ues6IHw2Pw 8VJWf+jI0vATUkXjig9sUscTQi4ghiFLu6//zEgH/ZP/cXEHAhTB1+Gq04L4BPg9gX8JWIz26Ok TUW1tzzMKv65QanhhOkjJ8tBpfB1BWL3GeSAbV3EbpEnwxSM1/jMO1S207jzhSJGiTdg== X-Received: by 2002:a5d:474a:0:b0:45e:e1a4:c4c3 with SMTP id ffacd0b85a97d-485872a8186mr19978373f8f.15.1788808143428; Mon, 07 Sep 2026 12:09:03 -0700 (PDT) Received: from deb05.proceq.com ([213.160.61.66]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-485885bf3f0sm33365544f8f.33.2026.09.07.12.09.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 07 Sep 2026 12:09:02 -0700 (PDT) From: Mehmet Fide To: Ping-Ke Shih Cc: Bitterblue Smith , linux-wireless@vger.kernel.org, linux-kernel@vger.kernel.org, mehmet.fide@screeningeagle.com Subject: [PATCH rtw-next v2 0/3] wifi: rtw88: usb: keep bmc traffic from exhausting the TX page pool Date: Mon, 7 Sep 2026 21:08:58 +0200 Message-ID: <20260907190901.1056945-1-mehmet.fide@gmail.com> X-Mailer: git-send-email 2.55.0 Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: Mehmet Fide An rtw88 USB AP with one station in power save and ordinary multicast chatter (mDNS, SSDP) starves its own TX page pool: every broadcast and multicast frame goes to the after-DTIM high queue, which drains a few frames per DTIM inside a 2 TU ATIM window, and the driver hands over as many as the network produces. On an RTL8822BU the free page count at 0x240 goes from 1803 to 16 in ~100 s and stays there for as long as the traffic lasts; nothing else gets out, nobody can join, the reserved page download fails ("error beacon valid"). Only a reboot recovers. The series closes this from three sides: 1/3 bounds what the driver feeds the high queue (a small budget below the measured drain rate, the excess leaves on the AC queue), 2/3 admits only the frames a dozing station actually needs to the after-DTIM path (ARP, EAPOL, DHCP, the vendor driver's default "allow special" filter), everything else goes out at line rate, 3/3 widens the ATIM window to 0xa while an AP interface is up, as the vendor driver does, so the high queue drains faster to begin with. With 1/3 + 2/3 the pool stays at 1803 through a 180 s storm on the RTL8822BU, a DHCP flood still takes the after-DTIM path and is held by the budget, join/ping cycling without power save is unchanged (10/10). 3/3 comes from the review of v1. The beacon-early C2H that Ping-Ke found usable in AP mode is the long-term route to IEEE80211_HW_HOST_BROADCAST_PS_BUFFERING; that is a separate series, this one does not depend on it. v1: https://lore.kernel.org/linux-wireless/20260902104146.3853102-1-mehmet.fide@gmail.com/ v2: - 1/3: macro for the refill interval, 'budget' naming, refill bookkeeping rewritten and commented, blank lines (Ping-Ke) - 2/3: classification from skb->protocol / ip_hdr() / udp_hdr() and the control port flag as in rtw89, SNAP parser gone, include order (Ping-Ke) - 3/3: new, REG_ATIMWND 0xa in AP mode, default restored on stop (Ping-Ke) Mehmet Fide (3): wifi: rtw88: usb: bound what the driver feeds the after-DTIM queue wifi: rtw88: usb: only let the frames a dozing station needs use the after-DTIM queue wifi: rtw88: widen the ATIM window while an AP interface is up drivers/net/wireless/realtek/rtw88/mac80211.c | 2 + drivers/net/wireless/realtek/rtw88/reg.h | 2 + drivers/net/wireless/realtek/rtw88/usb.c | 65 +++++++++++++++++-- drivers/net/wireless/realtek/rtw88/usb.h | 5 ++ 4 files changed, 70 insertions(+), 4 deletions(-) base-commit: 81510c3d6f2199889a4a936d8cf8b9e05911b10e -- 2.55.0