Bug 217239 - ath11k: WCN6855: firmware update breaks suspend
Summary: ath11k: WCN6855: firmware update breaks suspend
Status: ASSIGNED
Alias: None
Product: Drivers
Classification: Unclassified
Component: network-wireless (show other bugs)
Hardware: AMD Linux
: P1 blocking
Assignee: Kalle Valo
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-03-24 09:55 UTC by Vlad
Modified: 2023-08-06 15:03 UTC (History)
7 users (show)

See Also:
Kernel Version: 6.2.7
Subsystem:
Regression: No
Bisected commit-id:


Attachments
log from amd_s2idle.py script (125.76 KB, text/plain)
2023-05-04 10:56 UTC, Vlad
Details

Description Vlad 2023-03-24 09:55:09 UTC
Driver prevents system from entering suspend and wakes up immediately. Disabling with modprobe -r ath11k_pci before suspend helps. It worked before linux-firmware got updated to version 20230310-148. Fails every time.

Distro: Fedora 37, Fedora 38.
Laptop: HONOR MagicBook 15
APU: Ryzen 5500U
Wifi adapter: Qualcomm QCNFA765 Wireless Network Adapter

Logs.

uname -a:
Linux fedora 6.2.7-300.fc38.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Mar 17 16:02:49 UTC 2023 x86_64 GNU/Linux

lspci -mnn:
00:00.0 "Host bridge [0600]" "Advanced Micro Devices, Inc. [AMD] [1022]" "Renoir/Cezanne Root Complex [1630]" -p00 "QUANTA Computer Inc [152d]" "Device [1319]"
00:00.2 "IOMMU [0806]" "Advanced Micro Devices, Inc. [AMD] [1022]" "Renoir/Cezanne IOMMU [1631]" -p00 "QUANTA Computer Inc [152d]" "Device [1319]"
00:01.0 "Host bridge [0600]" "Advanced Micro Devices, Inc. [AMD] [1022]" "Renoir PCIe Dummy Host Bridge [1632]" -p00 "" ""
00:02.0 "Host bridge [0600]" "Advanced Micro Devices, Inc. [AMD] [1022]" "Renoir PCIe Dummy Host Bridge [1632]" -p00 "" ""
00:02.2 "PCI bridge [0604]" "Advanced Micro Devices, Inc. [AMD] [1022]" "Renoir/Cezanne PCIe GPP Bridge [1634]" -p00 "QUANTA Computer Inc [152d]" "Device [1319]"
00:02.4 "PCI bridge [0604]" "Advanced Micro Devices, Inc. [AMD] [1022]" "Renoir/Cezanne PCIe GPP Bridge [1634]" -p00 "QUANTA Computer Inc [152d]" "Device [1319]"
00:08.0 "Host bridge [0600]" "Advanced Micro Devices, Inc. [AMD] [1022]" "Renoir PCIe Dummy Host Bridge [1632]" -p00 "" ""
00:08.1 "PCI bridge [0604]" "Advanced Micro Devices, Inc. [AMD] [1022]" "Renoir Internal PCIe GPP Bridge to Bus [1635]" -p00 "QUANTA Computer Inc [152d]" "Device [1319]"
00:14.0 "SMBus [0c05]" "Advanced Micro Devices, Inc. [AMD] [1022]" "FCH SMBus Controller [790b]" -r51 -p00 "QUANTA Computer Inc [152d]" "Device [1319]"
00:14.3 "ISA bridge [0601]" "Advanced Micro Devices, Inc. [AMD] [1022]" "FCH LPC Bridge [790e]" -r51 -p00 "QUANTA Computer Inc [152d]" "Device [1319]"
00:18.0 "Host bridge [0600]" "Advanced Micro Devices, Inc. [AMD] [1022]" "Renoir Device 24: Function 0 [1448]" -p00 "" ""
00:18.1 "Host bridge [0600]" "Advanced Micro Devices, Inc. [AMD] [1022]" "Renoir Device 24: Function 1 [1449]" -p00 "" ""
00:18.2 "Host bridge [0600]" "Advanced Micro Devices, Inc. [AMD] [1022]" "Renoir Device 24: Function 2 [144a]" -p00 "" ""
00:18.3 "Host bridge [0600]" "Advanced Micro Devices, Inc. [AMD] [1022]" "Renoir Device 24: Function 3 [144b]" -p00 "" ""
00:18.4 "Host bridge [0600]" "Advanced Micro Devices, Inc. [AMD] [1022]" "Renoir Device 24: Function 4 [144c]" -p00 "" ""
00:18.5 "Host bridge [0600]" "Advanced Micro Devices, Inc. [AMD] [1022]" "Renoir Device 24: Function 5 [144d]" -p00 "" ""
00:18.6 "Host bridge [0600]" "Advanced Micro Devices, Inc. [AMD] [1022]" "Renoir Device 24: Function 6 [144e]" -p00 "" ""
00:18.7 "Host bridge [0600]" "Advanced Micro Devices, Inc. [AMD] [1022]" "Renoir Device 24: Function 7 [144f]" -p00 "" ""
01:00.0 "Network controller [0280]" "Qualcomm Technologies, Inc [17cb]" "QCNFA765 Wireless Network Adapter [1103]" -r01 -p00 "Foxconn International, Inc. [105b]" "Device [e0ca]"
02:00.0 "Non-Volatile memory controller [0108]" "Sandisk Corp [15b7]" "WD Blue SN550 NVMe SSD [5009]" -r01 -p02 "Sandisk Corp [15b7]" "WD Blue SN550 NVMe SSD [5009]"
03:00.0 "VGA compatible controller [0300]" "Advanced Micro Devices, Inc. [AMD/ATI] [1002]" "Lucienne [164c]" -rc2 -p00 "QUANTA Computer Inc [152d]" "Device [1410]"
03:00.1 "Audio device [0403]" "Advanced Micro Devices, Inc. [AMD/ATI] [1002]" "Renoir Radeon High Definition Audio Controller [1637]" -p00 "QUANTA Computer Inc [152d]" "Device [1319]"
03:00.2 "Encryption controller [1080]" "Advanced Micro Devices, Inc. [AMD] [1022]" "Family 17h (Models 10h-1fh) Platform Security Processor [15df]" -p00 "QUANTA Computer Inc [152d]" "Device [1319]"
03:00.3 "USB controller [0c03]" "Advanced Micro Devices, Inc. [AMD] [1022]" "Renoir/Cezanne USB 3.1 [1639]" -p30 "QUANTA Computer Inc [152d]" "Device [1319]"
03:00.4 "USB controller [0c03]" "Advanced Micro Devices, Inc. [AMD] [1022]" "Renoir/Cezanne USB 3.1 [1639]" -p30 "QUANTA Computer Inc [152d]" "Device [1319]"
03:00.5 "Multimedia controller [0480]" "Advanced Micro Devices, Inc. [AMD] [1022]" "ACP/ACP3X/ACP6x Audio Coprocessor [15e2]" -r01 -p00 "QUANTA Computer Inc [152d]" "Device [1319]"
03:00.6 "Audio device [0403]" "Advanced Micro Devices, Inc. [AMD] [1022]" "Family 17h/19h HD Audio Controller [15e3]" -p00 "QUANTA Computer Inc [152d]" "Device [1319]"

find /lib/firmware/ath11k/ -type f | xargs md5sum:
3137b3e52626593296473ee16afb3baf  /lib/firmware/ath11k/IPQ5018/hw1.0/Notice.txt.xz
4f0aeb7f3b2e5690e8a8c09929967573  /lib/firmware/ath11k/IPQ5018/hw1.0/board-2.bin.xz
8740b99fb61e978f87967fa9e1f85fcd  /lib/firmware/ath11k/IPQ5018/hw1.0/m3_fw.b00.xz
f16b3ce3246f7705e80c24b99f43975f  /lib/firmware/ath11k/IPQ5018/hw1.0/m3_fw.b01.xz
c59da31bfbe8538f93a7deb564f9cf08  /lib/firmware/ath11k/IPQ5018/hw1.0/m3_fw.b02.xz
9e88fcc1a07de0438f21b9c493c5bfef  /lib/firmware/ath11k/IPQ5018/hw1.0/m3_fw.flist.xz
c0aafc9c1f06aba7bcb592abac9dfc98  /lib/firmware/ath11k/IPQ5018/hw1.0/m3_fw.mdt.xz
c549b368d7727741fd135b3e30d5abc6  /lib/firmware/ath11k/IPQ5018/hw1.0/q6_fw.b00.xz
6bf63411912a293f53a5e11dce20112b  /lib/firmware/ath11k/IPQ5018/hw1.0/q6_fw.b01.xz
2ed668ffe8a5fd829900f6a151cf51a7  /lib/firmware/ath11k/IPQ5018/hw1.0/q6_fw.b02.xz
21503f14f04467ebb513170ddbfdd5b1  /lib/firmware/ath11k/IPQ5018/hw1.0/q6_fw.b03.xz
1bb35a37aefb331919365eb9f1a747b5  /lib/firmware/ath11k/IPQ5018/hw1.0/q6_fw.b04.xz
39370b1e0f4d2c7c9ba82802cfd35830  /lib/firmware/ath11k/IPQ5018/hw1.0/q6_fw.b05.xz
16a3531627ce3dbd59b7573fa9fc5432  /lib/firmware/ath11k/IPQ5018/hw1.0/q6_fw.b07.xz
1082519c851404c4a06fa13c864fe106  /lib/firmware/ath11k/IPQ5018/hw1.0/q6_fw.b08.xz
b3822ee68812281f9260f47a7a08b5b4  /lib/firmware/ath11k/IPQ5018/hw1.0/q6_fw.b09.xz
6cb61159924728db1c7469f25e203817  /lib/firmware/ath11k/IPQ5018/hw1.0/q6_fw.b10.xz
94c050e055f8bccec92dfbacba223ffd  /lib/firmware/ath11k/IPQ5018/hw1.0/q6_fw.b11.xz
112336431b6b092743d1f76da74e5939  /lib/firmware/ath11k/IPQ5018/hw1.0/q6_fw.b13.xz
3539f9a108bc7c29b060936136996cf0  /lib/firmware/ath11k/IPQ5018/hw1.0/q6_fw.b14.xz
63895167a38bd7176e669cabbc52e242  /lib/firmware/ath11k/IPQ5018/hw1.0/q6_fw.flist.xz
e9f7787d9355b9dec449d30f6f766d60  /lib/firmware/ath11k/IPQ5018/hw1.0/q6_fw.mdt.xz
3137b3e52626593296473ee16afb3baf  /lib/firmware/ath11k/IPQ6018/hw1.0/Notice.txt.xz
fb4cc27dab20aad56f4050c8476e5bbf  /lib/firmware/ath11k/IPQ6018/hw1.0/board-2.bin.xz
9e80f0cd50571d06f667a7e15799f0a3  /lib/firmware/ath11k/IPQ6018/hw1.0/m3_fw.b00.xz
67cf279ad77670ccf2499392e08fe50a  /lib/firmware/ath11k/IPQ6018/hw1.0/m3_fw.b01.xz
5121c5c1529f8509d1966dae73ddec2b  /lib/firmware/ath11k/IPQ6018/hw1.0/m3_fw.b02.xz
b705372f21c2e2c89d8ec456c18e1cc2  /lib/firmware/ath11k/IPQ6018/hw1.0/m3_fw.flist.xz
a7b9bbbbaa8a49b863eb06da1fc82af4  /lib/firmware/ath11k/IPQ6018/hw1.0/m3_fw.mdt.xz
807826d6df871cfc464377f0cd55e1bc  /lib/firmware/ath11k/IPQ6018/hw1.0/q6_fw.b00.xz
3dfffc87c0232a200e921b8d500cddbc  /lib/firmware/ath11k/IPQ6018/hw1.0/q6_fw.b01.xz
c010d9478fad3b40bbcc10837df26c5c  /lib/firmware/ath11k/IPQ6018/hw1.0/q6_fw.b02.xz
f01839ab1c38959399af3acc6ba9015c  /lib/firmware/ath11k/IPQ6018/hw1.0/q6_fw.b03.xz
211659cf209b06211751980b482ca35e  /lib/firmware/ath11k/IPQ6018/hw1.0/q6_fw.b04.xz
7f12d3d53156d75ebca50bae8913362f  /lib/firmware/ath11k/IPQ6018/hw1.0/q6_fw.b05.xz
bfbc83bf5f694a1e1edc06b70b2c6758  /lib/firmware/ath11k/IPQ6018/hw1.0/q6_fw.b07.xz
ceff8e218f026b0afc6973a07d152a12  /lib/firmware/ath11k/IPQ6018/hw1.0/q6_fw.b08.xz
0340d651128f833aae391f4f46d53f79  /lib/firmware/ath11k/IPQ6018/hw1.0/q6_fw.flist.xz
64a79ea34805b85f58863423492faa1e  /lib/firmware/ath11k/IPQ6018/hw1.0/q6_fw.mdt.xz
3137b3e52626593296473ee16afb3baf  /lib/firmware/ath11k/IPQ8074/hw2.0/Notice.txt.xz
75a55a5b68fc7e3d93b77efc78de5787  /lib/firmware/ath11k/IPQ8074/hw2.0/board-2.bin.xz
e3e870cc4e9c27c217f2b2c8a7422727  /lib/firmware/ath11k/IPQ8074/hw2.0/m3_fw.b00.xz
a90eb005d94faf76d0f3e9f336326d6b  /lib/firmware/ath11k/IPQ8074/hw2.0/m3_fw.b01.xz
c77bfebbca12800a4292945ff7b7e2c9  /lib/firmware/ath11k/IPQ8074/hw2.0/m3_fw.b02.xz
634b5521539681dfbed9625782a0fa07  /lib/firmware/ath11k/IPQ8074/hw2.0/m3_fw.flist.xz
0d0de5abc558fd0786efe318cdfae418  /lib/firmware/ath11k/IPQ8074/hw2.0/m3_fw.mdt.xz
9c2c0cd4e890f448933d2c5016df0e5d  /lib/firmware/ath11k/IPQ8074/hw2.0/q6_fw.b00.xz
ed37c681ed978feed154ca0451e0c349  /lib/firmware/ath11k/IPQ8074/hw2.0/q6_fw.b01.xz
542a89fe5454bcc7a8353a5948f47ff5  /lib/firmware/ath11k/IPQ8074/hw2.0/q6_fw.b02.xz
bbe9d91114db8343650fbe1d72877189  /lib/firmware/ath11k/IPQ8074/hw2.0/q6_fw.b03.xz
91d66e56b232b58c55d85258cb0ff58e  /lib/firmware/ath11k/IPQ8074/hw2.0/q6_fw.b04.xz
bcf379e0e008664c0dce8b719a98a2c0  /lib/firmware/ath11k/IPQ8074/hw2.0/q6_fw.b05.xz
481794868c2e44c6eb4b3b07f88963c9  /lib/firmware/ath11k/IPQ8074/hw2.0/q6_fw.b07.xz
67069281dc198147b45ab6c30b728ef1  /lib/firmware/ath11k/IPQ8074/hw2.0/q6_fw.b08.xz
bb69a475d73f4012ef97060ea5415d5c  /lib/firmware/ath11k/IPQ8074/hw2.0/q6_fw.flist.xz
7abdcc194cc8c560b753052f9e76f83b  /lib/firmware/ath11k/IPQ8074/hw2.0/q6_fw.mdt.xz
0bd91848c55b8980d288a7c42464f19f  /lib/firmware/ath11k/QCA6390/hw2.0/Notice.txt.xz
08f6bd67666917dc88e4626d006cd64c  /lib/firmware/ath11k/QCA6390/hw2.0/amss.bin.xz
7fdf7054861672ed3db5dc4c273830cb  /lib/firmware/ath11k/QCA6390/hw2.0/board-2.bin.xz
c9498e2021e12b95612572e4a9104704  /lib/firmware/ath11k/QCA6390/hw2.0/m3.bin.xz
3137b3e52626593296473ee16afb3baf  /lib/firmware/ath11k/QCN9074/hw1.0/Notice.txt.xz
67c06948add663c11580e1d2d372e090  /lib/firmware/ath11k/QCN9074/hw1.0/amss.bin.xz
692733948778a4fd161db3e4adb12e5e  /lib/firmware/ath11k/QCN9074/hw1.0/board-2.bin.xz
6528db410e5c659e61c083b909f732f5  /lib/firmware/ath11k/QCN9074/hw1.0/m3.bin.xz
795d7e608177237bc71043b78c6ec2aa  /lib/firmware/ath11k/WCN6750/hw1.0/Notice.txt.xz
424ced991d6957cfa9a45c4406515955  /lib/firmware/ath11k/WCN6750/hw1.0/board-2.bin.xz
899cacf1070a4ccb0cab06b3f232c840  /lib/firmware/ath11k/WCN6750/hw1.0/wpss.b00.xz
8109a191ee442d99b1bff600b30c21df  /lib/firmware/ath11k/WCN6750/hw1.0/wpss.b01.xz
49d8f3d6e8973f17fd47893d091c889a  /lib/firmware/ath11k/WCN6750/hw1.0/wpss.b02.xz
c6d7fb6cbc457ba7378d21bd9caa2ea2  /lib/firmware/ath11k/WCN6750/hw1.0/wpss.b03.xz
33a6c6dd702359735d03f445abc7d087  /lib/firmware/ath11k/WCN6750/hw1.0/wpss.b04.xz
da294c8f00bfc0fa549c7d325d91cfa0  /lib/firmware/ath11k/WCN6750/hw1.0/wpss.b05.xz
848236197a1369e9ec39e7a7e9dba745  /lib/firmware/ath11k/WCN6750/hw1.0/wpss.b06.xz
24dc6f2f619d85fb78981d8a1a7c9e0b  /lib/firmware/ath11k/WCN6750/hw1.0/wpss.b07.xz
a39e73f232d88ed23a6821d1ede10d39  /lib/firmware/ath11k/WCN6750/hw1.0/wpss.b08.xz
4ab0297e3c840f0b8ac3aa178bd0264a  /lib/firmware/ath11k/WCN6750/hw1.0/wpss.mdt.xz
a0ec40099f15ba93b0ba6de3f939b148  /lib/firmware/ath11k/WCN6855/hw2.0/Notice.txt.xz
3ffe318752c22395c04c56d27328dad0  /lib/firmware/ath11k/WCN6855/hw2.0/amss.bin.xz
e86d650894182c8df254cd113e7ddaa9  /lib/firmware/ath11k/WCN6855/hw2.0/board-2.bin.xz
3c8634cfea019c810fe9744c50e85bb2  /lib/firmware/ath11k/WCN6855/hw2.0/m3.bin.xz
e6fc32d432478538fe117bcfca7efadf  /lib/firmware/ath11k/WCN6855/hw2.0/regdb.bin.xz

dmesg | grep ath11k:
[    6.713249] ath11k_pci 0000:01:00.0: BAR 0: assigned [mem 0xd0000000-0xd01fffff 64bit]
[    6.713267] ath11k_pci 0000:01:00.0: enabling device (0000 -> 0002)
[    6.713827] ath11k_pci 0000:01:00.0: MSI vectors: 32
[    6.713835] ath11k_pci 0000:01:00.0: wcn6855 hw2.0
[    7.706819] ath11k_pci 0000:01:00.0: chip_id 0x2 chip_family 0xb board_id 0xff soc_id 0x400c0200
[    7.706828] ath11k_pci 0000:01:00.0: fw_version 0x110b196e fw_build_timestamp 2022-12-22 12:54 fw_build_id WLAN.HSP.1.1-03125-QCAHSPSWPL_V1_V2_SILICONZ_LITE-3.6510.23
[    8.065447] ath11k_pci 0000:01:00.0 wlp1s0: renamed from wlan0
[  200.812572] ath11k_pci 0000:01:00.0: msdu_done bit in attention is not set
[ 1081.710207] ath11k_pci 0000:01:00.0: failed to enqueue rx buf: -28
[ 1408.849132] ath11k_pci 0000:01:00.0: Failed to set the requested Country regulatory setting
[ 1408.849474] ath11k_pci 0000:01:00.0: Failed to set the requested Country regulatory setting
[ 2115.691602] ath11k_pci 0000:01:00.0: BAR 0: assigned [mem 0xd0000000-0xd01fffff 64bit]
[ 2115.692061] ath11k_pci 0000:01:00.0: MSI vectors: 32
[ 2115.692068] ath11k_pci 0000:01:00.0: wcn6855 hw2.0
[ 2116.682002] ath11k_pci 0000:01:00.0: chip_id 0x2 chip_family 0xb board_id 0xff soc_id 0x400c0200
[ 2116.682010] ath11k_pci 0000:01:00.0: fw_version 0x110b196e fw_build_timestamp 2022-12-22 12:54 fw_build_id WLAN.HSP.1.1-03125-QCAHSPSWPL_V1_V2_SILICONZ_LITE-3.6510.23
[ 2117.068573] ath11k_pci 0000:01:00.0 wlp1s0: renamed from wlan0
Comment 1 Kalle Valo 2023-03-24 10:20:34 UTC
Could you verify that this release works correctly:

https://github.com/kvalo/ath11k-firmware/tree/master/WCN6855/hw2.0/1.1/WLAN.HSP.1.1-03125-QCAHSPSWPL_V1_V2_SILICONZ_LITE-3.6510.16

Just copy amss.bin and m3.bin to the directory:

/lib/firmware/ath11k/WCN6855/hw2.0/

And then reboot. Just backup the original files first before the copy. Verify that the firmware release is correct with 'dmesg | grep ath11k'.
Comment 2 Vlad 2023-03-24 14:05:17 UTC
(In reply to Kalle Valo from comment #1)
> Could you verify that this release works correctly:
> 
> https://github.com/kvalo/ath11k-firmware/tree/master/WCN6855/hw2.0/1.1/WLAN.
> HSP.1.1-03125-QCAHSPSWPL_V1_V2_SILICONZ_LITE-3.6510.16
> 
> Just copy amss.bin and m3.bin to the directory:
> 
> /lib/firmware/ath11k/WCN6855/hw2.0/
> 
> And then reboot. Just backup the original files first before the copy.
> Verify that the firmware release is correct with 'dmesg | grep ath11k'.

Yes, it works great with this release!
Comment 3 Kalle Valo 2023-03-24 18:07:48 UTC
Thanks for confirmation, so this is a regression in the latest firmware release WLAN.HSP.1.1-03125-QCAHSPSWPL_V1_V2_SILICONZ_LITE-3.6510.23. I have reported this to the firmware team.
Comment 4 Vlad 2023-04-23 13:04:29 UTC
Latest firmware update version 20230404 still contains this bug and it is still version WLAN.HSP.1.1-03125-QCAHSPSWPL_V1_V2_SILICONZ_LITE-3.6510.23 with this suspend regression.
Comment 5 Mario Limonciello (AMD) 2023-05-03 15:12:46 UTC
This also got reported into AMD's DRM bug tracker because it collided with a separate warning regression.

https://gitlab.freedesktop.org/drm/amd/-/issues/2539

FWIW this WCN6855 firmware update fixes a resume problem where that GPIO is active causing spurious wakeups, so just reverting back to the old one is trading one issue for another.

If you can generate a report with https://gitlab.freedesktop.org/drm/amd/-/blob/master/scripts/amd_s2idle.py I can suggest a workaround to run the kernel command line until the firmware is fixed.
Comment 6 Jürg Billeter 2023-05-04 09:17:17 UTC
If I work around the suspend issue as per the AMD DRM issue with:

acpi_mask_gpe=0x0e gpiolib_acpi.ignore_interrupt=AMDI0030:00@18

WLAN frequently breaks on resume with the following messages (can provide full log if needed):

mhi mhi0: Did not enter M0 state, MHI state: M3, PM state: SYS ERROR Detect
ath11k_pci 0000:02:00.0: failed to resume mhi: -5
ath11k_pci 0000:02:00.0: failed to resume hif during resume: -5
ath11k_pci 0000:02:00.0: failed to resume core: -5
ath11k_pci 0000:02:00.0: PM: dpm_run_callback(): pci_pm_resume+0x0/0xe0 returns -5
ath11k_pci 0000:02:00.0: PM: failed to resume async: error -5
ath11k_pci 0000:02:00.0: wmi command 16387 timeout
ath11k_pci 0000:02:00.0: failed to send WMI_PDEV_SET_PARAM cmd
ath11k_pci 0000:02:00.0: failed to enable dynamic bw: -11
Hardware became unavailable upon resume. This could be a software issue prior to suspend or a hardware issue.
WARNING: CPU: 10 PID: 9 at net/mac80211/util.c:2553 ieee80211_reconfig+0xa0/0x1760 [mac80211]

And this even leads to a system reset and WLAN was still unavailable after reboot. It works again after a power cycle.

I've switched back to the old firmware (3.6510.9), which seems to be working fine so far even with Linux 6.2.14.
Comment 7 Vlad 2023-05-04 10:56:21 UTC
Created attachment 304213 [details]
log from amd_s2idle.py script

(In reply to Mario Limonciello (AMD) from comment #5)
> This also got reported into AMD's DRM bug tracker because it collided with a
> separate warning regression.
> 
> https://gitlab.freedesktop.org/drm/amd/-/issues/2539
> 
> FWIW this WCN6855 firmware update fixes a resume problem where that GPIO is
> active causing spurious wakeups, so just reverting back to the old one is
> trading one issue for another.
> 
> If you can generate a report with
> https://gitlab.freedesktop.org/drm/amd/-/blob/master/scripts/amd_s2idle.py I
> can suggest a workaround to run the kernel command line until the firmware
> is fixed.

I ran the script. I set two suspend cycles, first one immediately waken up, second one suspended ok. But I found out today that some times it wakes up even with module disabled but after 10-20 minutes. It is super annoying.

There is log generated by script:
Comment 8 Vlad 2023-05-04 12:43:05 UTC
The simplest workaround until bug is fixed is to create systemd service that disabling module on suspend and enabling it on wakeup.

Create file /etc/systemd/system/root-suspend-fix.service:

[Unit]
Description=Suspend fix for ath11k_pci
Before=sleep.target
StopWhenUnneeded=yes

[Service]
Type=oneshot
RemainAfterExit=yes
ExecStart=-modprobe -r ath11k_pci
ExecStop=-modprobe ath11k_pci

[Install]
WantedBy=sleep.target

Enable service:
sudo systemctl enable --now root-suspend-fix.service
Comment 9 Mario Limonciello (AMD) 2023-05-04 13:23:36 UTC
> Hardware became unavailable upon resume. This could be a software issue prior
> to suspend or a hardware issue.

@Kalle - the fact that ignoring the pin leads to this behavior makes me wonder if ath11k_pci is missing a check in the suspend path related to active firmware state?

> I've switched back to the old firmware (3.6510.9), which seems to be working
> fine so far even with Linux 6.2.14.

FYI going back to the older firmware will lead to system wakes up on lid close.

> There is log generated by script:

The same kernel command line workaround to ignore the pin would apply to your system, but as Jürg mentioned some negative side effects I wouldn't suggest it anymore.
Comment 10 bzsbzs 2023-05-29 07:10:23 UTC
any updates on this? linux-firmware-20230515 still contains fw_version 0x110b196e fw_build_timestamp 2022-12-22 12:54 fw_build_id WLAN.HSP.1.1-03125-QCAHSPSWPL_V1_V2_SILICONZ_LITE-3.6510.23

Note You need to log in before you can comment on or make changes to this bug.