Suspend/resume regression?

Mihai Moldovan ionic at ionic.de
Mon Dec 26 19:15:22 PST 2022


Hi


I am very sorry to bring that up again, after
https://bugzilla.kernel.org/show_bug.cgi?id=214179 and
https://bugzilla.kernel.org/show_bug.cgi?id=215103 , which supposedly fixed
issues like this, but I am still seeing crashes on suspend and resume operations
(although I've only ever tested with 6.1.1 and the newest firmware).

I am using a Clevo P7xxDM2-G laptop.

Kernel log ring buffer excerpt (modified to leave out unnecessary details, but
can also provide the full one):

[...]
[  +0.000628] ath11k_pci 0000:70:00.0: BAR 0: assigned [mem
0xdc200000-0xdc3fffff 64bit]
[  +0.000017] ath11k_pci 0000:70:00.0: enabling device (0000 -> 0002)
[  +0.000265] ath11k_pci 0000:70:00.0: MSI vectors: 32
[  +0.000007] ath11k_pci 0000:70:00.0: wcn6855 hw2.0
[...]
[  +0.144510] ath11k_pci 0000:70:00.0: chip_id 0x2 chip_family 0xb board_id 0xff
soc_id 0x400c0200
[  +0.000004] ath11k_pci 0000:70:00.0: fw_version 0x11090c35 fw_build_timestamp
2022-04-18 20:23 fw_build_id
WLAN.HSP.1.1-03125-QCAHSPSWPL_V1_V2_SILICONZ_LITE-3.6510.
[...]
[Dec26 05:15] PM: suspend entry (deep)
[  +0.069544] Filesystems sync: 0.069 seconds
[  +1.054311] Freezing user space processes ... (elapsed 0.002 seconds) done.
[  +0.002716] OOM killer disabled.
[  +0.000001] Freezing remaining freezable tasks ... (elapsed 0.001 seconds) done.
[  +0.001426] printk: Suspending console(s) (use no_console_suspend to debug)
[  +0.000396] wifi: deauthenticating from <MAC> by local choice (Reason:
3=DEAUTH_LEAVING)
[...]
[  +0.009235] ACPI: PM: Low-level resume complete
[  +0.000040] ACPI: EC: EC started
[  +0.000001] ACPI: PM: Restoring platform NVS memory
[...]
[  +0.000490] mhi mhi0: Resuming from non M3 state (RESET)
[...]
[Dec26 05:16] mhi mhi0: Did not enter M0 state, MHI state: M3, PM state: M3->M0
[  +0.000005] ath11k_pci 0000:70:00.0: failed to resume mhi: -5
[  +0.000002] ath11k_pci 0000:70:00.0: failed to resume hif during resume: -5
[  +0.000001] ath11k_pci 0000:70:00.0: failed to resume core: -5
[  +0.000001] ath11k_pci 0000:70:00.0: PM: dpm_run_callback():
pci_pm_resume+0x0/0xf0 returns -5
[  +0.000006] ath11k_pci 0000:70:00.0: PM: failed to resume async: error -5
[  +3.007971] ath11k_pci 0000:70:00.0: wmi command 16387 timeout
[  +0.000004] ath11k_pci 0000:70:00.0: failed to send WMI_PDEV_SET_PARAM cmd
[  +0.000002] ath11k_pci 0000:70:00.0: failed to enable dynamic bw: -11
[  +0.000002] ------------[ cut here ]------------
[  +0.000000] Hardware became unavailable upon resume. This could be a software
issue prior to suspend or a hardware issue.
[  +0.000013] WARNING: CPU: 7 PID: 10163 at net/mac80211/util.c:2440
ieee80211_reconfig+0x8a/0x10c0
[... stacktrace ...]
[  +0.000000] wifi: Failed check-sdata-in-driver check, flags: 0x0
[  +0.000010] WARNING: CPU: 7 PID: 10163 at net/mac80211/driver-ops.c:98
drv_remove_interface+0x11c/0x130
[... stacktrace ...]
[  +0.000000] WARNING: CPU: 7 PID: 10163 at net/mac80211/driver-ops.c:37
drv_stop+0xfa/0x110
[... stacktrace ...]
[  +0.000672] ieee80211 phy1: PM: dpm_run_callback(): wiphy_resume+0x0/0x180
returns -11
[  +0.000007] ieee80211 phy1: PM: failed to resume async: error -11
[  +0.000347] PM: resume devices took 96.975 seconds
[  +0.000002] ------------[ cut here ]------------
[  +0.000000] Component: resume devices, time: 96975
[  +0.000004] WARNING: CPU: 1 PID: 2954 at kernel/power/suspend_test.c:53
suspend_test_finish+0x82/0xa0
[... stacktrace ...]
[  +0.001661] Bluetooth: hci0: using rampatch file: qca/rampatch_usb_00130200.bin
[  +0.000003] Bluetooth: hci0: QCA: patch rome 0x130200 build 0x4610, firmware
rome 0x130200 build 0x17f3
[  +0.649816] Bluetooth: hci0: using NVM file: qca/nvm_usb_00130200.bin
[  +0.026520] Bluetooth: hci0: HCI Enhanced Setup Synchronous Connection command
is advertised, but not supported.
[  +0.133551] Bluetooth: hci0: unexpected cc 0x2060 length: 1 < 7
[  +0.000009] Bluetooth: hci0: Opcode 0x2060 failed: -38
[  +1.939173] ath11k_pci 0000:70:00.0: wmi command 16387 timeout
[  +0.000004] ath11k_pci 0000:70:00.0: failed to send WMI_PDEV_SET_PARAM cmd
[  +0.000003] ath11k_pci 0000:70:00.0: failed to enable PMF QOS: (-11
[  +0.063968] Bluetooth: hci0: command tx timeout
[Dec26 05:23] ath11k_pci 0000:70:00.0: wmi command 16387 timeout
[  +0.000004] ath11k_pci 0000:70:00.0: failed to send WMI_PDEV_SET_PARAM cmd
[  +0.000002] ath11k_pci 0000:70:00.0: failed to enable PMF QOS: (-11
[Dec26 05:25] ath11k_pci 0000:70:00.0: failed to wait wlan mode request (mode
4): -110
[  +0.000006] ath11k_pci 0000:70:00.0: qmi failed to send wlan mode off: -110
[Dec26 05:28] mhi mhi0: Device failed to clear MHI Reset
[...]

At this point, I tried the usual workaround and rmmod ath11k_pci, which
naturally hang. I'm not sure if it recovered eventually after quite some
minutes, or whether I persuaded it into working by resetting the PCI link via
/sys/bus/pci/devices/0000:70:00.0/reset.

Either way, it eventually worked, I could re-load the module and it has been
working ever since.

I can also provide an ACPI dump of my system if needed.


Best regards,




Mihai
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature
Type: application/pgp-signature
Size: 840 bytes
Desc: OpenPGP digital signature
URL: <http://lists.infradead.org/pipermail/ath11k/attachments/20221227/d78338e1/attachment.sig>


More information about the ath11k mailing list