Linux wireless drivers development
 help / color / mirror / Atom feed
* [BUG] wifi: rtw89: 8851be: "c2h reg timeout" adds ~14 s to S3 suspend and resume when WoWLAN is enabled
@ 2026-12-06  8:26 Andrea Lodi
  0 siblings, 0 replies; only message in thread
From: Andrea Lodi @ 2026-12-06  8:26 UTC (permalink / raw)
  To: Ping-Ke Shih; +Cc: linux-wireless

Hi Ping-Ke,

On an RTL8851BE (PCIe), enabling WoWLAN (magic packet) makes both system
suspend and resume about 14 seconds slower. During each phase the driver
logs "c2h reg timeout" three times. WoWLAN itself still works: the
machine wakes on a magic packet as expected.

With WoWLAN disabled, the delay and the timeouts go away completely.
Two consecutive S3 cycles on the same boot, a few minutes apart:

   WoWLAN off:  PM: suspend devices took 0.469 seconds
                PM: resume devices took 2.057 seconds
                (no rtw89 messages)

   WoWLAN on:   rtw89_8851be 0000:03:00.0: c2h reg timeout   (x3)
                PM: suspend devices took 13.997 seconds
                rtw89_8851be 0000:03:00.0: Unknown wakeup reason 0
                rtw89_8851be 0000:03:00.0: c2h reg timeout   (x3)
                PM: resume devices took 14.122 seconds

This is 100% reproducible on every suspend/resume cycle with WoWLAN on.
Because the delay exceeds 10 s, the kernel also prints the
suspend_test_finish() warning on each cycle.

Setup:
   - Board: Gigabyte B550M GAMING X WIFI6, BIOS F4 10/28/2025 (AMD, desktop)
   - Device: 03:00.0 Realtek RTL8851BE [10ec:b851], subsystem [10ec:b851]
   - Kernel: 7.3.6-300.fc45.x86_64 (Fedora 45, in-tree rtw89)
   - Firmware: rtw89/rtw8851b_fw-1.bin, version 0.29.41.5 (4bd6ebac)
     (linux-firmware 20261124)
   - Suspend mode: S3 (mem_sleep = deep)
   - WoWLAN: "iw phy phyX wowlan enable magic-packet"
     (set by NetworkManager wake-on-wlan=magic)
   - AP: WPA2-PSK, 5 GHz (ch 40, 80 MHz), HE

Things tried that made no difference:
   - rtw89_pci disable_aspm_l1=Y disable_aspm_l1ss=Y disable_clkreq=Y
   - rtw89_core disable_ps_mode=Y

Steps to reproduce:
   1. Connect to a WPA2-PSK AP.
   2. iw phy phyX wowlan enable magic-packet
   3. systemctl suspend, then wake the machine.
   4. dmesg shows 3x "c2h reg timeout" in suspend and in resume, with
      ~14 s per phase.

The kernel log of both cycles (stack trace of the >10 s warning
trimmed) is attached.

I'm happy to test patches or enable extra debugging if needed.

Thanks,
Andrea



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2026-12-06  8:26 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-12-06  8:26 [BUG] wifi: rtw89: 8851be: "c2h reg timeout" adds ~14 s to S3 suspend and resume when WoWLAN is enabled Andrea Lodi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox