public inbox for linux-wireless@vger.kernel.org
 help / color / mirror / Atom feed
From: Ping-Ke Shih <pkshih@realtek.com>
To: Nader Ben Ammar <nader.ben.ammar@gmail.com>,
	"linux-wireless@vger.kernel.org" <linux-wireless@vger.kernel.org>
Subject: RE: Bug Report] wifi: rtw89: RTL8852BE fails to resume from suspend on kernel 6.14
Date: Mon, 8 Sep 2025 01:11:49 +0000	[thread overview]
Message-ID: <6fb1d0c800e144f88b41fbaaf9358aa0@realtek.com> (raw)
In-Reply-To: <CAN1oh1qev4bBBGABpBX5bqga1RzTaYayVAYoJqKPeashQhY+=A@mail.gmail.com>

Nader Ben Ammar <nader.ben.ammar@gmail.com> wrote:
> I'm reporting a bug with the rtw89 driver for Realtek RTL8852BE PCIe
> WiFi on kernel 6.14.0-29-generic. The WiFi fails to resume from
> suspend, requiring a reboot to regain connectivity.
> 
> Hardware:
> - Device: Realtek Semiconductor Co., Ltd. RTL8852BE PCIe 802.11ax
> Wireless Network Controller
> - Subsystem: Hewlett-Packard Company RTL8852BE PCIe 802.11ax Wireless
> Network Controller
> - PCI ID: 01:00.0
> 
> Kernel Version:
> Linux HP-Laptop 6.14.0-29-generic #29~24.04.1-Ubuntu SMP
> PREEMPT_DYNAMIC Thu Aug 14 16:52:50 UTC 2 x86_64 x86_64 x86_64
> GNU/Linux
> 
> Driver:
> - Out-of-tree rtw89 driver from https://github.com/morrownr/rtw89
> - Module: rtw89_8852be_git
> - Firmware: rtw89/rtw8852b_fw-1.bin (version 0.29.128.0)

Please try the latest kernel (6.17-rc) to see if any improvement. 

> 
> Steps to Reproduce:
> 1. Connect to a WiFi network.
> 2. Suspend the system: `systemctl suspend`
> 3. Resume the system.
> 4. WiFi is disconnected and does not reconnect automatically. Manual
> reconnection fails until reboot.
> 
> Expected Behavior:
> WiFi should reconnect after resume.
> 
> Actual Behavior:
> WiFi remains disconnected. `iwconfig` or `nmcli` shows no connection.
> Logs show no errors on resume, but the device is unresponsive.

Add no_console_suspend to kernel command line. Without any log, I have no
idea.

Is there any AP found by manually `iw wlan0 scan`?

> 
> Kernel Command Line:
> BOOT_IMAGE=/boot/vmlinuz-6.14.0-29-generic
> root=UUID=95dcee12-84fe-4ab6-a174-0de1f81679bc ro quiet splash
> mem_sleep_default=deep pcie_aspm=off pci=noaer pci_port_pm=off
> acpi_osi=Linux rtw89.disable_ps_mode=1 pci=noaer pcie_aspm=off
> rtw89.debug_mask=0x0001 vt.handoff=7
> 
> Driver Config (/etc/modprobe.d/rtw89.conf):
> #
> # Configuration file for the out-of-kernel rtw89 drivers
> #
> # Link: https://github.com/morrownr/rtw89
> #
> 
> options rtw89_core_git debug_mask=0x0
> options rtw89_core_git disable_ps_mode=y
> 
> options rtw89_pci_git disable_clkreq=y
> options rtw89_pci_git disable_aspm_l1=y
> options rtw89_pci_git disable_aspm_l1ss=y
> 
> # Blacklist the in-kernel rtw89 drivers
> # Blacklist Larry's rtw89 drivers

I only can debug in-kernel upstream drivers. For morrownr's rtw89, please
reports problems there. 

> 
> lspci -vvv Output for 01:00.0:
> 01:00.0 Network controller: Realtek Semiconductor Co., Ltd. RTL8852BE
> PCIe 802.11ax Wireless Network Controller
>         DeviceName: Realtek PCIe GBE Family Controller
>         Subsystem: Hewlett-Packard Company RTL8852BE PCIe 802.11ax
> Wireless Network Controller
>         Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop-
> ParErr- Stepping- SERR- FastB2B- DisINTx+
>         Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort-
> <TAbort- <MAbort- >SERR- <PERR- INTx-
>         Latency: 0, Cache Line Size: 64 bytes
>         Interrupt: pin A routed to IRQ 145
>         IOMMU group: 12
>         Region 0: I/O ports at 3000 [size=256]
>         Region 2: Memory at 80500000 (64-bit, non-prefetchable) [size=1M]
>         Capabilities: <access denied>
>         Kernel driver in use: rtw89_8852be_git
>         Kernel modules: rtw89_8852be, rtw89_8852be_git
> 
> dmesg | grep -i rtw89 Output:
> [    0.000000] Command line:
> BOOT_IMAGE=/boot/vmlinuz-6.14.0-29-generic
> root=UUID=95dcee12-84fe-4ab6-a174-0de1f81679bc ro quiet splash
> mem_sleep_default=deep pcie_aspm=off pci=noaer pci_port_pm=off
> acpi_osi=Linux rtw89.disable_ps_mode=1 pci=noaer pcie_aspm=off
> rtw89.debug_mask=0x0001 vt.handoff=7
> [    0.033699] Kernel command line:
> BOOT_IMAGE=/boot/vmlinuz-6.14.0-29-generic
> root=UUID=95dcee12-84fe-4ab6-a174-0de1f81679bc ro quiet splash
> mem_sleep_default=deep pcie_aspm=off pci=noaer pci_port_pm=off
> acpi_osi=Linux rtw89.disable_ps_mode=1 pci=noaer pcie_aspm=off
> rtw89.debug_mask=0x0001 vt.handoff=7
> [    3.261978] rtw89_core_git: loading out-of-tree module taints kernel.
> [    3.261986] rtw89_core_git: module verification failed: signature
> and/or required key missing - tainting kernel
> [    3.716552] rtw89_8852be_git 0000:01:00.0: loaded firmware
> rtw89/rtw8852b_fw-1.bin
> [    3.716635] rtw89_8852be_git 0000:01:00.0: enabling device (0000 -> 0003)
> [    3.718487] rtw89_8852be_git 0000:01:00.0: git commit
> [    3.724889] rtw89_8852be_git 0000:01:00.0: Firmware version
> 0.29.128.0 (418a672d), cmd version 0, type 5
> [    3.724901] rtw89_8852be_git 0000:01:00.0: Firmware version
> 0.29.128.0 (418a672d), cmd version 0, type 3
> [    4.017001] rtw89_8852be_git 0000:01:00.0: chip rfe_type is 1
> [    4.046776] rtw89_8852be_git 0000:01:00.0: rfkill hardware state
> changed to enable
> [    4.079934] rtw89_8852be_git 0000:01:00.0 wlo1: renamed from wlan0
> 
> Additional Notes:
> - This issue appears to have started with kernel 6.6+ due to changes
> in PCIe power management.

Are you able to bisect the commit causing the problem?

> - Disabling power save mode and ASPM in the driver config did not resolve it.
> - The out-of-tree driver is used to avoid issues with the in-kernel version.

That mean out-of-tree driver doesn't have this issue? But you reported
problem that you are using out-of-tree driver in above?

> - Tested on kernels 6.5 and 6.14 with the same result.

The first note says this issue appears after 6.6+, but 6.5 has the same
result. I'm confused.

> 
> Please investigate and provide a fix. Let me know if you need more information.
> 
> Thanks,
> Nader


      reply	other threads:[~2025-09-08  1:11 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-09-05 15:22 Bug Report] wifi: rtw89: RTL8852BE fails to resume from suspend on kernel 6.14 Nader Ben Ammar
2025-09-08  1:11 ` Ping-Ke Shih [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=6fb1d0c800e144f88b41fbaaf9358aa0@realtek.com \
    --to=pkshih@realtek.com \
    --cc=linux-wireless@vger.kernel.org \
    --cc=nader.ben.ammar@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox