Issues with resuming and USB resets on VivoBook TP420IA (AMD Ryzen 5 4500U)
Brief summary of the problem:
On this notebook I always had to fight with intermittent Bluetooth connectivity, since a lot of times after sleeping I would lose that functionality.
However lately I had issues even waking up from sleep after closing the lid. The laptop would stay with the power light on after closing (like if it wasn't entering sleep correctly at all) and after reopening the lid, the screen would stay black and the only way to exit this state was forcing a restart.
I have seen similar issues like #1230 (closed) and #1721 (closed), but to avoid polluting the other issues, I preferred to open this one separately.
I have bundled the USB reset together with this sleep problem since this happens often only after a successful sleep cycle. If I connect my bluetooth mouse after sleep, 40% of the times I completely lose bluetooth until I try another sleep/wake cycle to force power cycle the bluetooth adapter.
It's not wireless hardware related, since I had previously installed a RTL8822CE Wifi/Bluetooth combo, and the issue was still the same as the current Intel AX21x adapter with which I had replaced the older one.
Hardware description:
- CPU: AMD Ryzen 5 4500U
- GPU: 03:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Renoir [1002:1636] (rev c3)
- System Memory: 20 GB DDR4 (16 SO-DIMM + 4 Soldered)
- Display(s): 1080p integrated panel
- Type of Display Connection: eDP
System information:
- Distro name and Version: Endeavour OS
- Kernel version: Linux *** 5.16.12-zen1-1-zen #1 (closed) ZEN SMP PREEMPT Tue, 08 Mar 2022 15:25:00 +0000 x86_64 GNU/Linux
- Custom kernel: Latest Zen kernel
- AMD official driver version: N/A
How to reproduce the issue:
Just sleep/wake cycle the machine after boot. After two or three tries it will either freeze while resuming on a black screen, or trigger the random usb failure after sleep.
Another issue that I suspect regarding the USB reset issue is probably similar to the bug fixed a year ago with a firmware update from AMD, but even if I run the latest 305 bios version from ASUS (releases 01/22), the SMU firmware is 55.65.0, and as far I can find on the web, the corresponding AGESA version from this table is 2.0.8.0 (the BIOS doesn't directly mention the AGESA version within), which is a 1.5 years old version (and still affected from the USB reset issue).
Do I need to keep opening ticket to ASUS in order to require them to actually update my BIOS ("we do not suppport the Linux platform", even if this is the same issue present also on Windows) to fix this USB issue or the SMU firmware is not necessarily bound to a specific AGESA version in the bios capsule?
Can you help me in any way if it's a BIOS issue?
If you need any other log or test, just let me know.
PS: Attached is another issue that sometimes crops up, the system is unable to go to sleep and stay awake. I've attached the dmesg after quite a few sleep/wake cycles that sometimes work, sometimes does not and the system stay awake with the screen on even if the lid is closed. As soon as I get the same black screen I'll try to remote in and take a dmesg snapshot from another machine.
Attached files:
Log files (for system lockups / game freezes / crashes)
cat /sys/kernel/debug/amd_pmc/smu_fw_info
=== SMU Statistics ===
Table Version: 0
Hint Count: 0
Last S0i3 Status: Unknown/Fail
Time (in us) to S0i3: 0
Time (in us) in S0i3: 0
Time (in us) to resume from S0i3: 0
=== Active time (in us) ===
DISPLAY : 0
CPU : 0
GFX : 0
VDD : 0
ACP : 0
VCN : 0
DF : 0
USB0 : 0
USB1 : 0
Debugging information from amd_pmc.dyndbg='+p' pm_debug_messages
:
[ 11.093338] amd_pmc AMDI0005:00: AMD_PMC_REGISTER_RESPONSE:1
[ 11.093346] amd_pmc AMDI0005:00: AMD_PMC_REGISTER_ARGUMENT:73f
[ 11.093352] amd_pmc AMDI0005:00: AMD_PMC_REGISTER_MESSAGE:9
[ 11.124435] amd_pmc AMDI0005:00: AMD_PMC_REGISTER_RESPONSE:1
[ 11.124444] amd_pmc AMDI0005:00: AMD_PMC_REGISTER_ARGUMENT:cbb139e0
[ 11.124447] amd_pmc AMDI0005:00: AMD_PMC_REGISTER_MESSAGE:5
[ 11.154676] amd_pmc AMDI0005:00: AMD_PMC_REGISTER_RESPONSE:1
[ 11.154685] amd_pmc AMDI0005:00: AMD_PMC_REGISTER_ARGUMENT:0
[ 11.154689] amd_pmc AMDI0005:00: AMD_PMC_REGISTER_MESSAGE:4
[ 11.154974] amd_pmc AMDI0005:00: AMD_PMC_REGISTER_RESPONSE:1
[ 11.154976] amd_pmc AMDI0005:00: AMD_PMC_REGISTER_ARGUMENT:0
[ 11.154978] amd_pmc AMDI0005:00: AMD_PMC_REGISTER_MESSAGE:6
[ 11.170652] amd_pmc AMDI0005:00: AMD_PMC_REGISTER_RESPONSE:1
[ 11.170661] amd_pmc AMDI0005:00: AMD_PMC_REGISTER_ARGUMENT:374100
[ 11.170668] amd_pmc AMDI0005:00: AMD_PMC_REGISTER_MESSAGE:2
[ 11.170670] amd_pmc AMDI0005:00: SMU program 0 version is 55.65.0