From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-oi1-f170.google.com (mail-oi1-f170.google.com [209.85.167.170]) (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 A95D83C465 for ; Fri, 20 Mar 2026 01:20:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=pass smtp.client-ip=209.85.167.170 ARC-Seal:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773969627; cv=pass; b=H5ZR2d53Iz4hWDLfwBcsDjBzFcGbuKQmwLTasxsTImV1r+kp0BUZ29uc+VxiP7UyhiaoLPwaM9PUMcOw4zuzVoMXx7MqYAmKeZbgzsjmoOZd992J9amlL2WNGPPdyUY+F962woicLG2AmjsICY2yY4T2Fnp7BG551GXUKP03bRE= ARC-Message-Signature:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773969627; c=relaxed/simple; bh=woB8YM3lsH0LqvOgxXg9qchSflhcLImeKMVClIzw5zk=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=J7NefphuQqEPj8v4tOahWDgCxUKd0ooG4EaW6SHHEk4IKI9QFG+9PM/d1TOxd23QiZnRYcYXQwPcydX40FxJrojgn/MQe4YeshuAZd5a8kosjByM7hW4mSdNK/M0kLSiflbD3+rlarb7eyYxDS751jYePMOf9V9cS/oDVmdRsek= ARC-Authentication-Results:i=2; 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=QEdIMsps; arc=pass smtp.client-ip=209.85.167.170 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="QEdIMsps" Received: by mail-oi1-f170.google.com with SMTP id 5614622812f47-46701f2077cso1866051b6e.0 for ; Thu, 19 Mar 2026 18:20:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1773969625; cv=none; d=google.com; s=arc-20240605; b=E8OVkkK6HKsNEXxGbfzFLqST+1FgTae2FF43Uji6iJbO2AVd23iYLbjDb3lxrGo+Nf 0F8zzF/F0J+MwYG5MhMcSkzRR36d10Y64KBdbtLfqM5uT/+cvMDiyN6KLQJTe5LmHzQ6 K8eAORSXDIVAhOT8A4Q+GN9qBWYJ9C/H06EiW7gd4VPv2asOBzn2CuFKPSn3ZEchUjwW L86moUXEWxaREQcgKPwQmoWGi9tTX5q0ZOusDDTgg2skuFjRmQhOZgsFq+zdxjCBu3ES uMYMZMFN5NJsAVDQmhO629VmmydYaGuGwHI3FtYGPboielGpR8YSfqUdZR9AIJ+v2yjT JM/w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:dkim-signature; bh=BEgdEAiWJutYpcWzx95x0i1pQfXun3GH7d4z2MsuksQ=; fh=fFUQ3bDSnwWYL/1dqZwPKYywXd5TONRsAevI/mvHYbI=; b=ZV/I8+FPZEOjBvc/y3S3OSlQ1doe7/o97N5yxWss+SDSrp8EZ2zdeZ1ry1mfupzE1z eE3EinGvy5PwEv77WTPjRh0EtGeVidUGcTBGl5jBmJaOf/6EDqQlhiijwOfp1HoTA4Zs Jlis6DXbL2HKj7jEuoRl7Gd9ahyM3l35vQXrK+Cn6vjqJ1X5CpjpFUDP8dbXpilIVM5E wuCLGguO1vIb/DC2ZVl8ZUQ8hqy6VvdTyGmojARn6K299f1fHo41N2PrQCNb5qKwY65E sw387rfquG5X0NlWM6lDetTLgkcVdLYX5CTzf8PA8ZlzGMW1uNAvbZZovDaqoypFBSBB Qv5g==; darn=vger.kernel.org ARC-Authentication-Results: i=1; mx.google.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1773969625; x=1774574425; darn=vger.kernel.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=BEgdEAiWJutYpcWzx95x0i1pQfXun3GH7d4z2MsuksQ=; b=QEdIMspsthG0qP9ZWRRvnkJH3FJKlH0OZsbGiRY+UY/R5RIGtDRudt6DdvGnr+ze/l FmEo9KZQYudMW9jdg+pwdHCr9rQSxv/+rVYw6xw5Dd4zFsmC17uvPs85G7RBKlCjF3ht 0kPt+WiCsvLsP8gssj/hBq3BPEMHJuaiR8pim7GcWAdRM9FZlcmfFKUfM9nLxYr4fbcr dT+Q5doarHVcLd6ghlEslDUw+AoUdPVyQZaOdORfM8otn7Q5vvErEaZnRjMZ+u47fANo TfiRY+mdiEh7eWirYwTv7dGaie0KEUTCzrFIFGgwM/wGZPbDz+OSbnU/67Cb22fNsezn lEZw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1773969625; x=1774574425; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=BEgdEAiWJutYpcWzx95x0i1pQfXun3GH7d4z2MsuksQ=; b=etAUpZySz2iG8mAOQD+kqmPyokOKU8y5NjHw38ad4Sf3+5ptBMZSfebFE2hBZXN1pF i0XvYpF+Hpvw4xoxh7fiY7pdwZo0W1PpC+CuS9CUP7I2ValebqyjDYILixaju2yqacf5 z1xdzV9+eOKWZaXbIw1ssW5O/TjGeqwlDgjQMDyx+skzUbUgD17B4zsgmx5lDQkupryK MPBZpas9bE5V0px6qw30QvyevyV/nOGTX8skTI3oOKjaJR22prSJNzGrtXOv4O90bicB npw2qoI5iScAZluyfPrhfPfsg/iG4Yd6Mm/R/eR2U4+ATU8+xMiRJxHJwN2+Nj4i7GcX dsdw== X-Gm-Message-State: AOJu0Yyvifd6IWeI2nlM7GUyQbUxD+n2R2A8GuVbgioVLIMtJ+wqA6qi 9BvrixlSK14xsO1i6i6IdcI6cB1X0lt2u7lhHGC8NGPm/8svrFFXIXXMe3VDwwkAg0Nq9kI143g UtzFQgLTIVEoAyz2VgFAeK5EJCbdpad4= X-Gm-Gg: ATEYQzymRyD7JTGRAUjK4r9GorcqaENAgwLFed7KIYQlpWJcA8PiqWIg6kbkaML8Sy6 2p+NT0aE3X3Dxzl1QoUaIljwo/p8+fDXqp/2UVgfJIcK7yAEkMbje+0Db7HjhGUPyVAFa2pggES DRkB7tTr43fxSXbJB+YRpprhcPOqKJe69C11gyku3Z4oskYE1NMRZ21KrSw7+orcw/hz1YSFDxs 5tZxCVzSagfzTrNVgW2KNEIWrRVo5OYDCjy2GqM52MkJelCbfbUoJHSpzazsXwYX3GnYXjlZZL0 IKoYF9bP X-Received: by 2002:a05:6808:1807:b0:463:9acc:f4bc with SMTP id 5614622812f47-467cd5c5ca1mr3239715b6e.13.1773969625558; Thu, 19 Mar 2026 18:20:25 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <1e96af437fa24674b353ddb530b2d8e7@realtek.com> <792645eed36041f0b3df951f1b28a08a@realtek.com> <458ed80e39734ea99610050140bb31ce@realtek.com> <1bd495ffe57c47eb827eec084729afa2@realtek.com> In-Reply-To: From: LB F Date: Fri, 20 Mar 2026 03:19:48 +0200 X-Gm-Features: AaiRm52w0XQWvJP3crR_aJBlA4gLJVGKaHrmwqIQ8HIwr-_V1aE6qhF4OY-Mqas Message-ID: Subject: Re: [BUG] wifi: rtw88: Hard system freeze on RTL8821CE when power_save is enabled (LPS/ASPM conflict) To: Ping-Ke Shih Cc: "linux-wireless@vger.kernel.org" , "linux-kernel@vger.kernel.org" Content-Type: text/plain; charset="UTF-8" Ping-Ke Shih wrote: > Not sure what hardware get wrong. Let's validate rate when reading > from hardware. Since 1M rate can only 20MHz, I set it together. > Please help to test below. I suppose you can see "weird rate=xxx", > but "WARNING: net/mac80211/rx.c:5491" disappears. Hi Ping-Ke, I can confirm your patch works as expected. Here are the full results. --- Test environment --- Kernel: 6.19.7-1-cachyos Patch: your rate validation patch applied to rtw_rx_query_rx_desc(), on top of the v2 DMI quirk (ASPM + LPS Deep disabled) --- Captured log (relevant excerpt) --- [ 43.046] input: Soundcore Q10i (AVRCP) <-- BT headset connected [ 111.551] rtw_8821ce 0000:13:00.0: unused phy status page (13) [ 111.635] weird rate=101 [ 111.635] rtw_8821ce 0000:13:00.0: unused phy status page (7) [ 111.741] weird rate=102 [ 115.045] weird rate=98 [ 118.371] weird rate=104 --- Analysis --- 1. Timing: the anomalous events began approximately 68 seconds after the Bluetooth A2DP headset (Soundcore Q10i) established its connection. No anomalies were observed before BT connected. 2. Multiple invalid rate values were captured, not just 0x65: weird rate=101 (0x65) weird rate=102 (0x66) weird rate=98 (0x62) weird rate=104 (0x68) All four values exceed DESC_RATE_MAX (0x53 = 83 decimal). This suggests the hardware occasionally reports a range of out-of-bounds rate values during BT/Wi-Fi coexistence, not a single fixed value. 3. The "unused phy status page" messages (pages 13 and 7) appeared immediately before and alongside the "weird rate" events. As noted in my previous message, only pages 0 and 1 are expected. This further suggests the firmware leaks internal coexistence state into the RX ring during BT antenna arbitration. 4. Most importantly: the WARNING: net/mac80211/rx.c:5491 did NOT appear anywhere in the log. Your rate clamping patch successfully intercepts the out-of-bounds values before they propagate to mac80211, preventing the invalid VHT NSS=0 warning entirely. --- Conclusion --- Your patch achieves the intended result. The "weird rate" printk confirms the hardware is the source of the invalid values (occurring during BT coexistence), and the mac80211 WARNING is suppressed. Please let me know if you need any additional data or further testing. Best regards, Oleksandr Havrylov