New: Ryzen 7 7840HS gets stuck at 544MHz frequency after a random number of suspend/resume cycles
https://bugzilla.kernel.org/show_bug.cgi?id=218305
Bug ID: 218305
Summary: Ryzen 7 7840HS gets stuck at 544MHz frequency after a
random number of suspend/resume cycles
Product: Drivers
Version: 2.5
Hardware: AMD
OS: Linux
Status: NEW
Severity: blocking
Priority: P3
Component: Platform_x86
Assignee: [email protected]
Reporter: [email protected]
Regression: No
I'm almost sure it's a bug in the firmware but since I cannot make HP fix it, I'll try to report it here.
The CPU gets stuck at this extremely low frequency after N number of suspend/resume cycles where N can be 1, 2, 3, 4 but at most 5.
The laptop is plugged in at all times.
This is happening with both acpi-cpufreq and amd-pstate-epp.
# cpupower frequency-info
analyzing CPU 10:
driver: amd-pstate-epp
CPUs which run at the same hardware frequency: 10
CPUs which need to have their frequency coordinated by software: 10
maximum transition latency: Cannot determine or is not supported.
hardware limits: 400 MHz - 6.08 GHz
available cpufreq governors: performance powersave
current policy: frequency should be within 400 MHz and 6.08 GHz.
The governor "powersave" may decide which speed to use
within this range.
current CPU frequency: Unable to call hardware
current CPU frequency: 544 MHz (asserted by call to kernel)
boost state support:
Supported: yes
Active: yes
AMD PSTATE Highest Performance: 232. Maximum Frequency: 6.08 GHz.
AMD PSTATE Nominal Performance: 145. Nominal Frequency: 3.80 GHz.
AMD PSTATE Lowest Non-linear Performance: 42. Lowest Non-linear Frequency:
1.10 GHz.
AMD PSTATE Lowest Performance: 16. Lowest Frequency: 400 MHz.Some CPU parameters look completely wrong after it happens:
# ryzenadj -i | Name | Value | Parameter | |---------------------|-----------|--------------------| | STAPM LIMIT | 30.000 | stapm-limit | | STAPM VALUE | 4.181 | | | PPT LIMIT FAST | 30.000 | fast-limit | | PPT VALUE FAST | 5.347 | | | PPT LIMIT SLOW | 20.000 | slow-limit | | PPT VALUE SLOW | 3.747 | | | StapmTimeConst | nan | stapm-time | | SlowPPTTimeConst | nan | slow-time | | PPT LIMIT APU | nan | apu-slow-limit | | PPT VALUE APU | nan | | | TDC LIMIT VDD | nan | vrm-current | | TDC VALUE VDD | nan | | | TDC LIMIT SOC | nan | vrmsoc-current | | TDC VALUE SOC | nan | | | EDC LIMIT VDD | nan | vrmmax-current | | EDC VALUE VDD | nan | | | EDC LIMIT SOC | nan | vrmsocmax-current | | EDC VALUE SOC | nan | | | THM LIMIT CORE | nan | tctl-temp | | THM VALUE CORE | nan | | | STT LIMIT APU | nan | apu-skin-temp | | STT VALUE APU | nan | | | STT LIMIT dGPU | nan | dgpu-skin-temp | | STT VALUE dGPU | nan | | | CCLK Boost SETPOINT | nan | power-saving / | | CCLK BUSY VALUE | nan | max-performance |
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 218305] Ryzen 7 7840HS gets stuck at 544MHz frequency after a random number of suspend/resume cycles
https://bugzilla.kernel.org/show_bug.cgi?id=218305
Artem S. Tashkinov ([email protected]) changed:
What |Removed |Added
----------------------------------------------------------------------------
Kernel Version| |6.6.7-200.fc39.x86_64
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 218305] Ryzen 7 7840HS gets stuck at 544MHz frequency after a random number of suspend/resume cycles
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=218305
--- Comment #1 from Artem S. Tashkinov ([email protected]) --- I do use this command to constrain CPU thermals:
ryzenadj --tctl-temp=75 --stapm-limit=30000 --fast-limit=30000 --slow-limit=20000
https://github.com/FlyGoat/RyzenAdj
Perhaps on resume the firmware sees altered limits and wreaks havoc to everything.
These last three parameters suddenly become read only after the bug occurs.
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 218305] Ryzen 7 7840HS gets stuck at 544MHz frequency after a random number of suspend/resume cycles
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=218305
Armin Wolf ([email protected]) changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |[email protected]
--- Comment #2 from Armin Wolf ([email protected]) --- Does the issue also happen if you dont use ryzenadj?
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 218305] Ryzen 7 7840HS gets stuck at 544MHz frequency after a random number of suspend/resume cycles
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=218305
--- Comment #3 from Artem S. Tashkinov ([email protected]) --- (In reply to Armin Wolf from comment #2)
Quoted 1 line
Does the issue also happen if you dont use ryzenadj?
Yes, today a single suspend resume cycle has been enough to trigger this bug.
This is the result of this bug (no settings have been altered prior):
ryzenadj -i
CPU Family: PhoenixSMU_SERVICE REQ_ID:0x3SMU_SERVICE REQ: arg0: 0x0, arg1:0x0, arg2:0x0, arg3:0x0, arg4: 0x0, arg5: 0x0 SMU_SERVICE REP: REP: 0x1, arg0: 0xe, arg1:0x0, arg2:0x0, arg3:0x0, arg4: 0x0,
arg5: 0x0
SMU BIOS Interface Version: 14
Version: v0.14.0init_tableSMU_SERVICE REQ_ID:0x6SMU_SERVICE REQ: arg0: 0x0, arg1:0x0, arg2:0x0, arg3:0x0, arg4: 0x0, arg5: 0x0 SMU_SERVICE REP: REP: 0x1, arg0: 0x4c0008, arg1:0x0, arg2:0x0, arg3:0x0, arg4:0x0, arg5: 0x0SMU_SERVICE REQ_ID:0x66SMU_SERVICE REQ: arg0: 0x0, arg1:0x0, arg2:0x0, arg3:0x0, arg4: 0x0, arg5: 0x0 SMU_SERVICE REP: REP: 0x1, arg0: 0x9e300000, arg1:0x7, arg2:0x0, arg3:0x0,
arg4: 0x0, arg5: 0x0SMU_SERVICE REQ_ID:0x65SMU_SERVICE REQ: arg0: 0x0, arg1:0x0, arg2:0x0, arg3:0x0, arg4: 0x0, arg5: 0x0 SMU_SERVICE REP: REP: 0xfd, arg0: 0x0, arg1:0x0, arg2:0x0, arg3:0x0, arg4: 0x0,
arg5: 0x0SMU_SERVICE REQ_ID:0x65SMU_SERVICE REQ: arg0: 0x0, arg1:0x0, arg2:0x0, arg3:0x0, arg4: 0x0, arg5: 0x0 SMU_SERVICE REP: REP: 0x1, arg0: 0x0, arg1:0x0, arg2:0x0, arg3:0x0, arg4: 0x0,
arg5: 0x0
PM Table Version: 4c0008SMU_SERVICE REQ_ID:0x65SMU_SERVICE REQ: arg0: 0x0, arg1:0x0, arg2:0x0, arg3:0x0, arg4: 0x0, arg5: 0x0 SMU_SERVICE REP: REP: 0x1, arg0: 0x0, arg1:0x0, arg2:0x0, arg3:0x0, arg4: 0x0,
arg5: 0x0
| Name | Value | Parameter | |---------------------|-----------|--------------------| | STAPM LIMIT | 51.000 | stapm-limit | | STAPM VALUE | 4.150 | | | PPT LIMIT FAST | 51.000 | fast-limit | | PPT VALUE FAST | 6.040 | | | PPT LIMIT SLOW | 41.000 | slow-limit | | PPT VALUE SLOW | 4.056 | | | StapmTimeConst | nan | stapm-time | | SlowPPTTimeConst | nan | slow-time | | PPT LIMIT APU | nan | apu-slow-limit | | PPT VALUE APU | nan | | | TDC LIMIT VDD | nan | vrm-current | | TDC VALUE VDD | nan | | | TDC LIMIT SOC | nan | vrmsoc-current | | TDC VALUE SOC | nan | | | EDC LIMIT VDD | nan | vrmmax-current | | EDC VALUE VDD | nan | | | EDC LIMIT SOC | nan | vrmsocmax-current | | EDC VALUE SOC | nan | | | THM LIMIT CORE | nan | tctl-temp | | THM VALUE CORE | nan | | | STT LIMIT APU | nan | apu-skin-temp | | STT VALUE APU | nan | | | STT LIMIT dGPU | nan | dgpu-skin-temp | | STT VALUE dGPU | nan | | | CCLK Boost SETPOINT | nan | power-saving / | | CCLK BUSY VALUE | nan | max-performance |
STAMP, PPT FAST and PPT SLOW all have broken values.
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 218305] Ryzen 7 7840HS gets stuck at 544MHz frequency after a random number of suspend/resume cycles
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=218305
--- Comment #4 from Armin Wolf ([email protected]) ---
Could be that the firmware fails to properly restore those values after suspend, does the issue also happen under Windows?
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 218305] Ryzen 7 7840HS gets stuck at 544MHz frequency after a random number of suspend/resume cycles
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=218305
--- Comment #5 from Artem S. Tashkinov ([email protected]) --- (In reply to Armin Wolf from comment #4)
Quoted 2 lines
Could be that the firmware fails to properly restore those values after suspend, does the issue also happen under Windows?
I rarely boot into Windows but I may check.
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 218305] Ryzen 7 7840HS gets stuck at 544MHz frequency after a random number of suspend/resume cycles
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=218305
--- Comment #6 from Artem S. Tashkinov ([email protected]) ---
I've not been able to reproduce this issue under Windows but then I didn't try hard enough (which means multiple attempts spanning several days).
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 218305] Ryzen 7 7840HS gets stuck at 544MHz frequency after a random number of suspend/resume cycles
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=218305
--- Comment #7 from Armin Wolf ([email protected]) ---
Have you verified that you are using the latest BIOS for you machine?
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 218305] Ryzen 7 7840HS gets stuck at 544MHz frequency after a random number of suspend/resume cycles
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=218305
--- Comment #8 from Artem S. Tashkinov ([email protected]) ---
The issue is reproducible with the latest BIOS release (V82: 01.03.09 Rev.A, released on Dec 15, 2023) and two versions prior. HP doesn't allow to download and flash earlier versions.
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 218305] Ryzen 7 7840HS gets stuck at 544MHz frequency after a random number of suspend/resume cycles
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=218305
--- Comment #9 from Shyam Sundar S K (AMD) ([email protected]) --- Since you are pointing to STAPM, PPT limits, Can you blacklist amd_pmf driver and see if that helps after the suspend/resume cycle?
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 218305] Ryzen 7 7840HS gets stuck at 544MHz frequency after a random number of suspend/resume cycles
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=218305
--- Comment #10 from Artem S. Tashkinov ([email protected]) --- This is reproducible without the amd-pmf module:
[root@hp policy0]# lsmod | grep pmf
[root@hp policy0]# cpupower frequency-info
analyzing CPU 13:
driver: amd-pstate-epp
CPUs which run at the same hardware frequency: 13
CPUs which need to have their frequency coordinated by software: 13 maximum transition latency: Cannot determine or is not supported. hardware limits: 400 MHz - 5.76 GHz
available cpufreq governors: performance powersave
current policy: frequency should be within 400 MHz and 5.76 GHz.
The governor "powersave" may decide which speed to use within this range.
current CPU frequency: Unable to call hardware
current CPU frequency: 542 MHz (asserted by call to kernel) boost state support:
Supported: yes
Active: yes
AMD PSTATE Highest Performance: 220. Maximum Frequency: 5.76 GHz. AMD PSTATE Nominal Performance: 145. Nominal Frequency: 3.80 GHz. AMD PSTATE Lowest Non-linear Performance: 42. Lowest Non-linear Frequency:
1.10 GHz.
AMD PSTATE Lowest Performance: 16. Lowest Frequency: 400 MHz.
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 218305] Ryzen 7 7840HS gets stuck at 544MHz frequency after a random number of suspend/resume cycles
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=218305
--- Comment #11 from Artem S. Tashkinov ([email protected]) --- Created attachment 305659
--> https://bugzilla.kernel.org/attachment.cgi?id=305659&action=edit
The contents of /sys/devices/system/cpu/cpufreq/*
Switching between power modes using /sys/devices/system/cpu/cpufreq/*/energy_performance_preference does nothing.
The exact per CPU frequency stats:
# cat /sys/devices/system/cpu/cpufreq/policy*/scaling_cur_freq 400000 544395 400000 544099 400000 400000 400000 400000 400000 544189 400000 544181 400000 400000 544007 542947
No idea where 544MHz comes from.
BTW here's another bug, either firmware or something in the kernel reports wrong max frequency:
# cat /sys/devices/system/cpu/cpufreq/policy*/scaling_max_freq 5137000 6080000 6080000 5764000 5764000 5924000 5924000 5137000 6080000 6080000 5608000 5608000 5293000 5293000 5449000 5449000
I'm not aware of any Zen 4 CPUs which can run at 6080000KHz frequency by default, let alone mobile parts.
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 218305] Ryzen 7 7840HS gets stuck at 544MHz frequency after a random number of suspend/resume cycles
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=218305
--- Comment #12 from Artem S. Tashkinov ([email protected]) ---
Quoted 2 lines
BTW here's another bug, either firmware or something in the kernel reports wrong max frequency:
Max frequency is reported correctly only for two out of sixteen logical cores. It's wrong for all other cores. Would be great if AMD fixed this.
Speaking of my firmware, it's:
https://support.hp.com/us-en/drivers/hp-elitebook-845-14-inch-g10-notebook-pc/2101628462
Quoted 19 lines
Description:
This package is used to update the supported firmware on HP Business Notebook systems with a V82 family BIOS. This package is provided for supported computer systems that are running a supported operating system.
Fix and enhancements:
- Fixes an issue where the Performance page in AMD Software: Adrenalin Edition does not display correctly. - Adds the Gaming Optimized mode to video memory size.
- Includes the following firmware:
AMD Graphics Output Protocol (GOP) Firmware, version 3.7.10 AMD PSP Firmware, version 0.2D.6.6C
AMD SMU Firmware, version 0.76.65.0
Embedded Controller (EC) Firmware, version 60.28.00 Intel/Realtek UEFI PXE ROM, version 2.041
TI Power Delivery (PD) Firmware, version 4.1.0
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 218305] Ryzen 7 7840HS gets stuck at 544MHz frequency after a random number of suspend/resume cycles
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=218305
Dan Martins ([email protected]) changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |[email protected]
--- Comment #13 from Dan Martins ([email protected]) ---
I am seeing similar behaviour, to the extent that my CPU cores get capped at some low frequency. Sometimes it is a few cores stuck at ~1600MHz, and sometimes it is all cores stuck at 544MHz. It typically happens for me when rebooting. I tried suspend/resume several times but could not reproduce that way.
CPU is a AMD Ryzen 5 7640U on a Framework 13 laptop. 6.6.8 kernel on Fedora 39.
We may not be having the same issue, but I wanted to mention, I can get all cores back to normal by switching the scaling_governor from powersave to performance and back in case it helps in your case. I am using "sudo cpupower frequency-set -g <GOV>" to switch it.
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 218305] Ryzen 7 7840HS gets stuck at 544MHz frequency after a random number of suspend/resume cycles
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=218305
--- Comment #14 from Mario Limonciello (AMD) ([email protected]) --- I read through this thread and I currently think that Artem and Dan have encountered two separate bugs.
@Artem:
Under the presumption that ryzenadj is actually retrieving the correct values for STAPM, PPT FAST, and PPT SLOW I want to ask if this is tied to a specific power adapter, or sequence of events. Like suspend on power, resume on battery or suspend on battery resume on power.
If there is a linkage between any of those, then I think this is "most likely" an HP EC bug.
@Dan,
Can you reproduce this if you manually always set the scaling governor on all CPUs to "performance" before you reboot?
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 218305] Ryzen 7 7840HS gets stuck at 544MHz frequency after a random number of suspend/resume cycles
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=218305
--- Comment #15 from Artem S. Tashkinov ([email protected]) --- (In reply to Mario Limonciello (AMD) from comment #14)
Quoted 4 lines
Under the presumption that ryzenadj is actually retrieving the correct values for STAPM, PPT FAST, and PPT SLOW I want to ask if this is tied to a specific power adapter, or sequence of events. Like suspend on power, resume on battery or suspend on battery resume on power.
My laptop is plugged in 100% of the time.
Quoted 3 lines
If there is a linkage between any of those, then I think this is "most likely" an HP EC bug.
I've given up on reporting bugs to HP. It's a complicated process which takes forever. I bought this laptop and its maximum CPU frequency was limited to 4.5GHz which took HP over four months to resolve and that was at least reproducible under Linux and Windows.
This bug seems to affect only Linux or maybe I've not used Windows enough to face it in the Microsoft OS.
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 218305] Ryzen 7 7840HS gets stuck at 544MHz frequency after a random number of suspend/resume cycles
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=218305
[email protected] changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |[email protected]
--- Comment #16 from [email protected] ---
I can reproduce Artem's issue on EliteBook 845 G10 (kernel 6.7.0 on NixOS). Also Dan's workaround works for me 80% of the time, with only a few times when I had to reboot to lift the cpufreq lock.
My max_freqs are also strange, regardless of whether cpufreq is capped to 544MHz or not.
``` ❯ cat /sys/devices/system/cpu/cpufreq/policy*/scaling_max_freq 5137000 5137000 6080000 6080000 5449000 5449000 5293000 5293000 5924000 5924000 6080000 6080000 5764000 5764000 5608000 5608000 ```
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 218305] Ryzen 7 7840HS gets stuck at 544MHz frequency after a random number of suspend/resume cycles
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=218305
--- Comment #17 from Dan Martins ([email protected]) --- (In reply to Muzhi Yu from comment #16)
Quoted 4 lines
I can reproduce Artem's issue on EliteBook 845 G10 (kernel 6.7.0 on NixOS). Also Dan's workaround works for me 80% of the time, with only a few times when I had to reboot to lift the cpufreq lock.
I have since found that I don't need to switch to the performance governor at all. It is enough, in my case, to "reset" the the scaling governor to powersave. Just "sudo cpupower frequency-set -g powersave".
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 218305] Ryzen 7 7840HS gets stuck at 544MHz frequency after a random number of suspend/resume cycles
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=218305
--- Comment #18 from Dan Martins ([email protected]) --- (In reply to Mario Limonciello (AMD) from comment #14)
Quoted 10 lines
I read through this thread and I currently think that Artem and Dan have encountered two separate bugs.
@Artem:
Under the presumption that ryzenadj is actually retrieving the correct values for STAPM, PPT FAST, and PPT SLOW I want to ask if this is tied to a specific power adapter, or sequence of events. Like suspend on power, resume on battery or suspend on battery resume on power.
Quoted 7 lines
If there is a linkage between any of those, then I think this is "most likely" an HP EC bug.
@Dan,
Can you reproduce this if you manually always set the scaling governor on all CPUs to "performance" before you reboot?
Mario,
I just tested setting the governor to performance before reboot and yes, it is reproducible in that case too.
1. load the CPU and observe all cores can reach ~4Ghz
2. set governor: sudo cpupower frequency-set -g performance
3. reboot
4. load the CPU and check frequencies: on first reboot, all cores hit 4GHz range. On second reboot, cores 6-11 can only reach ~1.7GHz.
This is in-line with previous tests. It is inconsistent, and various power settings don't seem to affect it (epp, platform_profile, scaling_governor). It does seem much more likely to occur when on battery, but will stills happen sometimes when plugged in.
A couple of more recent observations:
- I don't need to toggle from performance to powersave to fix it. I can just "sudo cpupower frequency-set -g powersave" even when it is already reporting that it is using the powersave governor.
- on reboot, the scaling_governor is always showing powersave, even when I set it to performance before reboot.
- Using kernel 6.6.11 as of this morning for the above test
Thanks,
Dan
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 218305] Ryzen 7 7840HS gets stuck at 544MHz frequency after a random number of suspend/resume cycles
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=218305
--- Comment #19 from Mario Limonciello (AMD) ([email protected]) --- Can you please dump teh values from all of these MSR's from userspace while in a reproduced state?
#define MSR_AMD_CPPC_CAP1 0xc00102b0 #define MSR_AMD_CPPC_ENABLE 0xc00102b1 #define MSR_AMD_CPPC_CAP2 0xc00102b2 #define MSR_AMD_CPPC_REQ 0xc00102b3 #define MSR_AMD_CPPC_STATUS 0xc00102b4
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 218305] Ryzen 7 7840HS gets stuck at 544MHz frequency after a random number of suspend/resume cycles
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=218305
--- Comment #20 from Mario Limonciello (AMD) ([email protected]) --- Can you guys please test this and see if it improves the situation at all?
https://lore.kernel.org/linux-pm/[email protected]/T/#u
Thanks!
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 218305] Ryzen 7 7840HS gets stuck at 544MHz frequency after a random number of suspend/resume cycles
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=218305
--- Comment #21 from Dan Martins ([email protected]) --- (In reply to Mario Limonciello (AMD) from comment #19)
Quoted 8 lines
Can you please dump teh values from all of these MSR's from userspace while in a reproduced state?
#define MSR_AMD_CPPC_CAP1 0xc00102b0 #define MSR_AMD_CPPC_ENABLE 0xc00102b1 #define MSR_AMD_CPPC_CAP2 0xc00102b2 #define MSR_AMD_CPPC_REQ 0xc00102b3 #define MSR_AMD_CPPC_STATUS 0xc00102b4
Hi Mario,
Thank you for looking into this. I'll try your kernel patch when I have a bit more time. For now, here are the MSRs:
Good state (from a boot when no cores were limited):
=========================
=========================MSR_AMD_CPPC_CAP1d08a2c10d08a2c10d08a2c10dc8a2c10dc8a2c10dc8a2c10ca8a2c10ca8a2c10ca8a2c10dc8a2c10dc8a2c10dc8a2c10c48a2c10c48a2c10c48a2c10d68a2c10d68a2c10d68a2c10
=========================MSR_AMD_CPPC_ENABLE
1
1
1
1
1
1
1
1
1
1
1
1
=========================MSR_AMD_CPPC_CAP2
0
0
0
0
0
0
0
0
0
0
0
0
=========================MSR_AMD_CPPC_REQ
10d0
10d0
10dc
10dc
10ca
10ca
10dc
10dc
10c4
10c4
10d6
f0f
=========================MSR_AMD_CPPC_STATUS
0
0
0
0
0
0
0
0
0
0
0
0
=========================
In reproduced state, where all cores are stuck at ~544MHz, MSR_AMD_CPPC_REQ values appear to have wrapped around?
========================================
========================================MSR_AMD_CPPC_CAP1d08a2c10d08a2c10d08a2c10dc8a2c10dc8a2c10dc8a2c10ca8a2c10ca8a2c10ca8a2c10dc8a2c10dc8a2c10dc8a2c10c48a2c10c48a2c10c48a2c10d68a2c10d68a2c10d68a2c10
=========================MSR_AMD_CPPC_ENABLE
1
1
1
1
1
1
1
1
1
1
1
1
=========================MSR_AMD_CPPC_CAP2
0
0
0
0
0
0
0
0
0
0
0
0
=========================MSR_AMD_CPPC_REQff000f0fff000f0fff000f0fff000f0fff000f0fff000f0fff000f0fff000f0fff000f0fff000f0fff000f0fff000f0f
=========================MSR_AMD_CPPC_STATUS
0
0
0
0
0
0
0
0
0
0
0
0
=========================
=========================
And, when I (re)set the scaling governor, the MSR_AMD_CPPC_REQ change slightly. Here is side-by-side. reproduced state on left, and after re-setting the governor on right.
=========================
=========================MSR_AMD_CPPC_REQMSR_AMD_CPPC_REQ
ff000f0f | ff0010d0 ff000f0f | ff0010d0 ff000f0f | ff0010dc ff000f0f | ff0010dc ff000f0f | ff0010ca ff000f0f | ff0010ca ff000f0f | ff0010dc ff000f0f | ff0010dc ff000f0f | ff0010c4 ff000f0f | ff0010c4 ff000f0f | ff0010d6 ff000f0f | ff0010d6
Thanks,
Dan
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 218305] Ryzen 7 7840HS gets stuck at 544MHz frequency after a random number of suspend/resume cycles
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=218305
--- Comment #22 from Dan Martins ([email protected]) --- (In reply to Mario Limonciello (AMD) from comment #20)
Quoted 6 lines
Can you guys please test this and see if it improves the situation at all?
https://lore.kernel.org/linux-pm/20240119113319.54158-1-mario.
[email protected]/T/#uThanks!
Hi again Mario,
I tested this patch against Fedora's 6.6.13 kernel and so far, after 6 reboots have not been able to reproduce. When I switch back to the stock kernel, I can typically reproduce the issue in 1-2 reboots so the patch seems to have helped so far. I'll keep using the patched kernel for now and let you know if this issue occurs again.
Thanks,
Dan
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 218305] Ryzen 7 7840HS gets stuck at 544MHz frequency after a random number of suspend/resume cycles
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=218305
--- Comment #23 from Dan Martins ([email protected]) --- (In reply to Dan Martins from comment #21)
Quoted 6 lines
(In reply to Mario Limonciello (AMD) from comment #19)
Quoted 2 lines
Can you please dump teh values from all of these MSR's from userspace while in a reproduced state?
In reproduced state, where all cores are stuck at ~544MHz,
MSR_AMD_CPPC_REQvalues appear to have wrapped around?
Ignore comment about values wrapping around, it appears the upper byte is set when I adjust PPD from performance (0x00) to balanced (0x80) and powersave (0xFF). I must have adjusted this between reboots.
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 218305] Ryzen 7 7840HS gets stuck at 544MHz frequency after a random number of suspend/resume cycles
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=218305
--- Comment #24 from Mario Limonciello (AMD) ([email protected]) --- That's great news. Everyone who feels comfortable sharing your email address feel free to reply to the post with a "Tested-by" tag.
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 218305] Ryzen 7 7840HS gets stuck at 544MHz frequency after a random number of suspend/resume cycles
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=218305
--- Comment #25 from Muzhi Yu ([email protected]) --- Hi guys,
Just adding my data point here. I've applied the patch and haven't seen this bug for the evening after ~5 cycles.
BTW, are the MSR values still relevant, because I'm seeing no difference between normal and bad states?
``` c4912a10c4912a10 1 0 ff0010c4 0 ```
Thanks!
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 218305] Ryzen 7 7840HS gets stuck at 544MHz frequency after a random number of suspend/resume cycles
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=218305
--- Comment #26 from Mario Limonciello (AMD) ([email protected]) --- No need to share MSR values anymore. I believe this this is the correct solution.
If there are still problems with it they may be a secondary problem.
The MSR values are a little difficult to properly capture because each CPU has it's own register value. So a proper test would need to capture all of them for all CPUs (not all may have this problem occurring).
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 218305] Ryzen 7 7840HS gets stuck at 544MHz frequency after a random number of suspend/resume cycles
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=218305
Artem S. Tashkinov ([email protected]) changed:
What |Removed |Added
----------------------------------------------------------------------------
Blocks| |218557
Referenced Bugs:
https://bugzilla.kernel.org/show_bug.cgi?id=218557
[Bug 218557] Kernel regression in acpi/ec.c causing some AMD platforms to limit CPU frequency to < 544Mhz
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 218305] Ryzen 7 7840HS gets stuck at 544MHz frequency after a random number of suspend/resume cycles
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=218305
--- Comment #27 from Mario Limonciello (AMD) ([email protected]) --- So I think there are actually two issues in this bug.
* The first one was the one that Artem reported which looks like a problem with the EC communicating some limits to the APU. This is Artem's issue.
* The second one is that there was a bug in amd-pstate that could cause CPPC requests to have the wrong values. This is (nearly) everyone else's issue in this bug.
The second issue is fixed by
https://github.com/torvalds/linux/commit/22fb4f041999f5f16ecbda15a2859b4ef4cbf47e
For the first issue, Artem can you update to 6.8-rc7, make sure you've added the TEE firmware for the amd-pmf driver from linux-firmware and see if you can still reproduce it?
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 218305] Ryzen 7 7840HS gets stuck at 544MHz frequency after a random number of suspend/resume cycles
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=218305
--- Comment #28 from Artem S. Tashkinov ([email protected]) ---
Quoted 3 lines
For the first issue, Artem can you update to 6.8-rc7, make sure you've added the TEE firmware for the amd-pmf driver from linux-firmware and see if you can still reproduce it?
I've just added the firmware file, "773bd96f-b83f-4d52-b12dc529b13d8543.bin" (what a weird name) and I will test 6.8 as soon as it gets released. It's coming pretty soon.
Thanks.
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 218305] Ryzen 7 7840HS gets stuck at 544MHz frequency after a random number of suspend/resume cycles
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=218305
--- Comment #29 from Mario Limonciello (AMD) ([email protected]) ---
Quoted 3 lines
I've just added the firmware file, "773bd96f-b83f-4d52-b12dc529b13d8543.bin" (what a weird name) and I will test 6.8 as soon as it gets released. It's coming pretty soon.
OK. Separately from that I'd like to understand what you were getting at with your ryzenadj comment.
I don't know if ryzenadj accesses all those coefficients correctly; but we *do* export them properly under amd-pmf debugfs.
There is a debugfs file called "current_power_limits". Can you read it before suspend as well as after a suspend that reproduced the failure?
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 218305] Ryzen 7 7840HS gets stuck at 544MHz frequency after a random number of suspend/resume cycles
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=218305
--- Comment #30 from Mario Limonciello (AMD) ([email protected]) --- Sorry two more things.
First - there are two sets of coefficients (one for AC and for DC). You can see in current_power_limits_show() that it will return the table matching your power mode.
Please capture like this:
1) Start on DC, capture the file.
2) Switch to AC, capture the file.
3) Suspend the machine
4) Unplug adapter
5) Resume
6) Capture the file (while you're on DC)
7) Switch to AC, capture the file.
This will let us confirm whether or not there is a problem with the table.
Second - after the issue has occurred, does changing the acpi platform profile from sysfs or powerprofilesctl recover it?
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 218305] Ryzen 7 7840HS gets stuck at 544MHz frequency after resuming after unplugging the power cord during sleep
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=218305
Artem S. Tashkinov ([email protected]) changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|Ryzen 7 7840HS gets stuck |Ryzen 7 7840HS gets stuck
|at 544MHz frequency after a |at 544MHz frequency after
|random number of |resuming after unplugging
|suspend/resume cycles |the power cord during sleepSignature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 218305] Ryzen 7 7840HS gets stuck at 544MHz frequency after resuming after unplugging the power cord during sleep
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=218305
--- Comment #31 from Artem S. Tashkinov ([email protected]) ---
1)
current_power_limits
spl:51000 fppt:51000 sppt:41000 sppt_apu_only:41001 stt_min:25000 stt[APU]:0 stt[HS2]: 0
2)
cat current_power_limits
spl:51000 fppt:51000 sppt:41000 sppt_apu_only:41000 stt_min:25000 stt[APU]:0 stt[HS2]: 0
3-4-5) done
6) cat current_power_limits
spl:51000 fppt:51000 sppt:41000 sppt_apu_only:41000 stt_min:25000 stt[APU]:0 stt[HS2]: 0
7) cat current_power_limits
spl:51000 fppt:51000 sppt:41000 sppt_apu_only:41000 stt_min:25000 stt[APU]:0 stt[HS2]: 0
While we have been discussing this, I've just found out that when this bug occurs, all I need to do is to unplug and that fixes everything.
It's actually such a simple workaround, I will leave it up to you whether anything needs to be done to address it.
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 218305] Ryzen 7 7840HS gets stuck at 544MHz frequency after resuming after unplugging the power cord during sleep
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=218305
--- Comment #32 from Mario Limonciello (AMD) ([email protected]) ---
Quoted 1 line
cat
current_power_limits
It looks like those don't change.
Quoted 2 lines
While we have been discussing this, I've just found out that when this bug occurs, all I need to do is to unplug and that fixes everything.
Presumably you mean unplug OR replug (IE opposite of what you did in suspend) right?
Quoted 2 lines
It's actually such a simple workaround, I will leave it up to you whether anything needs to be done to address it.
It's good you have that workaround. I'd like to know if powerprofilesctl/acpi platform profile can also recover it.
If so; we might want to add an explicit code in the suspend/resume callbacks to rewrite the state if power adapter changed over suspend. I think this would be a safe solution for everyone.
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 218305] Ryzen 7 7840HS gets stuck at 544MHz frequency after resuming after unplugging the power cord during sleep
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=218305
--- Comment #33 from Artem S. Tashkinov ([email protected]) ---
Quoted 2 lines
Presumably you mean unplug OR replug (IE opposite of what you did in suspend) right?
After unplugging it's already fixed. I do of course replug not to waste battery power.
Quoted 3 lines
If so; we might want to add an explicit code in the suspend/resume callbacks to rewrite the state if power adapter changed over suspend. I think this would be a safe solution for everyone.
If only it doesn't break other systems. That sounds a tad scary to me. So far I seem to have been the only affected person (not that many people seem to be using HP business laptops with Linux).
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 218305] Ryzen 7 7840HS gets stuck at 544MHz frequency after resuming after unplugging the power cord during sleep
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=218305
--- Comment #34 from Mario Limonciello (AMD) ([email protected]) ---
Quoted 3 lines
If only it doesn't break other systems. That sounds a tad scary to me. So far I seem to have been the only affected person (not that many people seem to be using HP business laptops with Linux).
The code would basically look like this:
* Capture state of power adapter at suspend callback into a private variable
* If state of power adapter has changed during resume then rewrite all CPU coefficients.
It should be safe for everyone. But I need to know that it actually helps your problem.
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 218305] Ryzen 7 7840HS gets stuck at 544MHz frequency after resuming after unplugging the power cord during sleep
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=218305
--- Comment #35 from Armin Wolf ([email protected]) ---
Shouldn't the driver generally restore all CPU coefficients after suspend/resume? Or is there a specification saying that the CPU coefficients will be restored by the platform firmware?
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 218305] Ryzen 7 7840HS gets stuck at 544MHz frequency after resuming after unplugging the power cord during sleep
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=218305
--- Comment #36 from Mario Limonciello (AMD) ([email protected]) --- AMD-PMF can be used differently by different OEMs and models depending upon their needs and desires.
Some will control entirely by their EC. Some will rely on PMF to do more functionality.
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 218305] Ryzen 7 7840HS gets stuck at 544MHz frequency after resuming after unplugging the power cord during sleep
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=218305
--- Comment #37 from Armin Wolf ([email protected]) ---
Could it be that the Windows equivalent of the amd-pmf driver does restore all/some coefficients after suspend/resume?
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 218305] Ryzen 7 7840HS gets stuck at 544MHz frequency after resuming after unplugging the power cord during sleep
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=218305
--- Comment #38 from Mario Limonciello (AMD) ([email protected]) --- The Windows equivalent of the amd-pmf driver on this HP system uses the features in kernel 6.8 that I've been asking Artem to test.
Once I know whether the issue happens on kernel 6.8 and whether changing the profile manually helps it we can decide on whether to do anything.
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 218305] Ryzen 7 7840HS gets stuck at 544MHz frequency after resuming after unplugging the power cord during sleep
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=218305
--- Comment #39 from Armin Wolf ([email protected]) --- Ok
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 218305] Ryzen 7 7840HS gets stuck at 544MHz frequency after resuming after unplugging the power cord during sleep
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=218305
--- Comment #40 from Peter Ries ([email protected]) --- Hello everyone. I just read through this bugreport as I have the same problem on my HP Elitebook 845 G10 with a 7840U CPU. It randomely gets stuck at 544MHz.
I'm running Endeavour OS (Arch based) with the latest Kernel (6.8.2-arch2-1) and Firmware (core/linux-firmware 20240312.3b128b60-1).
I thought things would be fixed now, but I just had the hanging CPU freq again.
As the bug is not closed and last comment is nearly 4 weeks old I just wanted to know if the fix is not official yet...
Thanks for an update and to all for investigating here :)
(Meanwhile I'll try the "sudo cpupower frequency-set -g powersave" workaround to see if it helps to circumvent an annoying reboot)
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 218305] Ryzen 7 7840HS gets stuck at 544MHz frequency after resuming after unplugging the power cord during sleep
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=218305
--- Comment #41 from Mario Limonciello (AMD) ([email protected]) --- Created attachment 306075
--> https://bugzilla.kernel.org/attachment.cgi?id=306075&action=edit
possible patch (v1)
Quoted 1 line
It randomely gets stuck at 544MHz.
Are you sure it's random? From the above discussions I believe it is triggered specifically from an event sent by the EC when changing the power adapter while suspended.
Quoted 1 line
with the latest Kernel (6.8.2-arch2-1)
Thanks. I've been waiting for feedback with kernel 6.8. And you have CONFIG_AMD_PMF set?
Quoted 1 line
I just wanted to know if the fix is not official yet...
There is no fix or workaround right now, like I said above this "looks" like a bug caused by HP's EC or BIOS.
Assuming you tested with amd-pmf in place and it really is the same root cause described above (only by power adapter) I was thinking about it and this sounds like it could be a race condition. I do have an idea for a workaround. Can you see if this patch helps?
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 218305] Ryzen 7 7840HS gets stuck at 544MHz frequency after resuming after unplugging the power cord during sleep
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=218305
--- Comment #42 from Artem S. Tashkinov ([email protected]) ---
Quoted 2 lines
From the above discussions I believe it is triggered specifically from an event sent by the EC when changing the power adapter while suspended.
Yep, and like I said in my case unplugging/plugging the power cord is enough to fix it which was a relief for me.
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 218305] Ryzen 7 7840HS gets stuck at 544MHz frequency after resuming after unplugging the power cord during sleep
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=218305
--- Comment #43 from Peter Ries ([email protected]) --- I have
$ zcat /proc/config.gz | grep CONFIG_AMD_PMF CONFIG_AMD_PMF=m # CONFIG_AMD_PMF_DEBUG is not set
Unfortunately I could not reproduce the effect during the test I did right now. Subjective impression is that the bug occurs less often since 6.8.x kernel.
Testing procedure was:
Plugged - suspend - unplug - resume - OK
Unplugged - suspend - plug back in - resume - OK
Starting plugged - suspend - resume - repeated 6 times while plugged - OK
Resume was done via "systemctl suspend" command on my hotkey "Strg-Super-End"
Then I tried it 3 times by using the lid - same here - it works for the moment. So it seems to be more random that for Artem. I'll check if un-/plug procedure helps as a quick fix to not have to reboot when CPU gets stucked again.
I somehow need to find a reliable procedure to run into this bug before it makes sense to test the patch.
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 218305] Ryzen 7 7840HS gets stuck at 544MHz frequency after resuming after unplugging the power cord during sleep
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=218305
--- Comment #44 from Peter Ries ([email protected]) --- (typo: -Resume-) Suspend was done via "systemctl suspend" command on my hotkey "Strg-Super-End"
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 218305] Ryzen 7 7840HS gets stuck at 544MHz frequency after resuming after unplugging the power cord during sleep
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=218305
--- Comment #45 from Mario Limonciello (AMD) ([email protected]) --- If 6.8 is more reliable you can also try to apply the patch to 6.7 or an earlier kernel that could more easily trigger it.
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 218305] Ryzen 7 7840HS gets stuck at 544MHz frequency after resuming after unplugging the power cord during sleep
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=218305
--- Comment #46 from Mario Limonciello (AMD) ([email protected]) --- Any testing results for that patch idea?
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 218305] Ryzen 7 7840HS gets stuck at 544MHz frequency after resuming after unplugging the power cord during sleep
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=218305
--- Comment #47 from Peter Ries ([email protected]) --- Hi Mario, sorry for not responding, I still haven't been able to reproduce the bug. Just had it once after Kernel 6.8.x.
I will test once I have a reproduceable scenario.
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 218305] Ryzen 7 7840HS gets stuck at 544MHz frequency after resuming after unplugging the power cord during sleep
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=218305
--- Comment #48 from Artem S. Tashkinov ([email protected]) --- (In reply to Peter Ries from comment #47)
Quoted 4 lines
Hi Mario, sorry for not responding, I still haven't been able to reproduce the bug. Just had it once after Kernel 6.8.x.
I will test once I have a reproduceable scenario.
Please try what triggers it for me 100%:
1. While the laptop is plugged in/connected to them mains, put it to sleep.
2. Unplug it for a little while - 20 seconds is enough I guess.
3. Plug it back it.
4. Wake it up.
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 218305] Ryzen 7 7840HS gets stuck at 544MHz frequency after resuming after unplugging the power cord during sleep
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=218305
--- Comment #49 from Peter Ries ([email protected]) --- Hi Arten, this unfortunately works for me - meaning the CPU frequency does NOT get stuck if I do it like this.
- I put laptop to sleep
- unplugged
- waited 1 minute (without resuming on battery)
- plugged back in
- resume
-> CPU scales up and down as expected
I just wonder what happened AFTER I had the effect with kernel 6.8.x (only once)
I currently have
6.8.2-arch2-1
core/linux-firmware-whence 20240312.3b128b60-1
core/linux-firmware 20240312.3b128b60-1
really weird
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 218305] Ryzen 7 7840HS gets stuck at 544MHz frequency after resuming after unplugging the power cord during sleep
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=218305
Pedro ([email protected]) changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |voidpointertonull+kernelorg
| |[email protected]--- Comment #50 from Pedro ([email protected]) --- Coming from Bug #217931 , I found the mentions of being stuck at low frequency odd as I couldn't observe that despite managing multiple hosts, but then here I am.
The twist is that I have a 7950X3D desktop setup, not a laptop one, and I apparently I just ran into the same low frequency issue others experienced. Unfortunately the usefulness of my information will be limited as I'm on a not really customized Kubuntu 23.10 setup with kernel 6.5.0 , but on the other hand I haven't touched anything relevant, not even setting a frequency limit.
I'm observing the CPU being stuck in the 400 MHz - 549 MHz range which is quite fitting for this bug report, and the host was never suspended / hibernated. The only relevant oddity I've found so far is that /sys/devices/system/cpu/cpu4/cpufreq/scaling_max_freq was sticking out like a sore thumb with 400000 set while other cores had the value of 5759000, but changing that didn't make a difference.
Not really sure when did this manifest itself, but highly likely after (or during?) a case of Bug #204253 as I brushed away the slowness for a while as the usual heavy I/O (over NFS) problem which even used to freeze the desktop for more than a minute on a weaker setup, but the current higher performance CPU seemed to take it better, although the experience was still disruptive. Is this really a laptop bug then instead of a more generic problem with a large stutter causing some logic to get upset possibly due to timing problems? Heavy CPU usage alone surely doesn't do the trick as I've seen hosts doing fine with that, but heavy I/O seems more brutal with possibly similar "world stopping power" as suspending.
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 218305] Ryzen 7 7840HS gets stuck at 544MHz frequency after resuming after unplugging the power cord during sleep
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=218305
--- Comment #51 from Mario Limonciello (AMD) ([email protected]) --- Please let's stick to upstream kernels. It will just confuse the issue with the distro kernel, ESPECIALLY a kernel that is EOL upstream. We had other fixes that have landed in amd-pstate that are definitely missing from a 6.5 kernel that could very well be a similar or same issue.
So please reproduce with 6.9-rc4 or 6.8.7. If you can still reproduce it then please open a new issue and collect all possible information. If it's indeed the same issue we can mark as a duplicate at that time.
This issue is looking like a thermal throttling issue where the APU didn't properly ack a request from the EC while in suspend. I posted a patch that gives the APU more time to ack it during suspend but it needs to be tested still in a case that it can be reproduced reliably.
If it doesn't help, I would like to see if extending the time duration in between cycles helps.
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 218305] Ryzen 7 7840HS gets stuck at 544MHz frequency after resuming after unplugging the power cord during sleep
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=218305
--- Comment #52 from Pedro ([email protected]) --- I believe the other issue was supposed to be strictly about limiting max frequency causing issues, and I'm definitely not doing that, but possibly I missed other fixed, I surely didn't keep up with everything. Understood the warning though, but that's exactly why I pointed out that my kernel version might not be helpful.
The main point was that while all discussions seems to be about APUs, I encountered an issue that appears to be really similar if not the same with a desktop CPU. Just wanted this information to be added as I've found 3 bug reports where this problem is mentioned but with only laptop CPUs discussed.
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 218305] Ryzen 7 7840HS gets stuck at 544MHz frequency after resuming after unplugging the power cord during sleep
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=218305
--- Comment #53 from Mario Limonciello (AMD) ([email protected]) --- 7950X3D is a desktop SoC, but IIRC it has integrated graphics. It's a desktop APU.
But that aside, thermal throttling can be triggered even in CPU products from the EC. The interface the EC uses to do this applies to both types of parts.
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 218305] Ryzen 7 7840HS gets stuck at 544MHz frequency after resuming after unplugging the power cord during sleep
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=218305
Daan Vanoverloop ([email protected]) changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |[email protected]
--- Comment #54 from Daan Vanoverloop ([email protected]) --- I can reproduce the issue on my HP Elitebook 845 G10 with an AMD Ryzen 7 Pro 7840U running Linux 6.8.6 with the following steps:
1. Ensure that the power adapter is not plugged in
2. Suspend the machine
3. Wait for 10 seconds
4. Plug in the power adapter
5. Wait for 10 seconds
6. Wake the machine
7. The CPU frequency is now stuck at 544 MHz
When I unplug the power adapter now, the frequency will immediately start scaling up again. Replugging the power adapter again while the device is awake is also okay.
I was unable to reproduce the issue by starting with a power adapter plugged in and unplugging it before waking up. This did not seem to cause any issues.
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 218305] Ryzen 7 7840HS gets stuck at 544MHz frequency after resuming after unplugging the power cord during sleep
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=218305
--- Comment #55 from Artem S. Tashkinov ([email protected]) --- (In reply to Daan Vanoverloop from comment #54)
Quoted 11 lines
I can reproduce the issue on my HP Elitebook 845 G10 with an AMD Ryzen 7 Pro 7840U running Linux 6.8.6 with the following steps:
1. Ensure that the power adapter is not plugged in
2. Suspend the machine
3. Wait for 10 seconds
4. Plug in the power adapter
5. Wait for 10 seconds
6. Wake the machine
7. The CPU frequency is now stuck at 544 MHz
Quoted 6 lines
When I unplug the power adapter now, the frequency will immediately start scaling up again. Replugging the power adapter again while the device is awake is also okay.
I was unable to reproduce the issue by starting with a power adapter plugged in and unplugging it before waking up. This did not seem to cause any issues.
Exactly how I experience it and what this bug is about. Mario said he would post a patch to reset the EC on resume and that should fix the issue but I've not seen the patch yet.
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 218305] Ryzen 7 7840HS gets stuck at 544MHz frequency after resuming after unplugging the power cord during sleep
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=218305
--- Comment #56 from Mario Limonciello (AMD) ([email protected]) ---
Quoted 2 lines
Mario said he would post a patch to reset the EC on resume and that should fix the issue but I've not seen the patch yet.
Eh? I don't recall saying I'd post a patch to reset EC on resume.
I did post a patch to this bug that could try to adjust the timing that is waiting for testing though in case it's a race condition. It will force 10-20ms more time spent in the Linux kernel when the power adapter is unplugged over suspend.
Also if it doesn't help, please modify it to make it 100-200ms. This should rule out a race condition.
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 218305] Ryzen 7 7840HS gets stuck at 544MHz frequency after resuming after unplugging the power cord during sleep
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=218305
--- Comment #57 from Artem S. Tashkinov ([email protected]) ---
Quoted 1 line
Eh? I don't recall saying I'd post a patch to reset EC on resume.
My memory is faltering obviously. Sorry.
Quoted 2 lines
The Windows equivalent of the amd-pmf driver on this HP system uses the features in kernel 6.8 that I've been asking Artem to test.
No, kernel 6.8 didn't fix the issue for me.
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 218305] Ryzen 7 7840HS gets stuck at 544MHz frequency after resuming after unplugging the power cord during sleep
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=218305
--- Comment #58 from Daan Vanoverloop ([email protected]) ---
Quoted 7 lines
I did post a patch to this bug that could try to adjust the timing that is waiting for testing though in case it's a race condition. It will force 10-20ms more time spent in the Linux kernel when the power adapter is unplugged over suspend.
Also if it doesn't help, please modify it to make it 100-200ms. This should rule out a race condition.
I will apply this patch later today or tomorrow and report back on whether I can still reproduce this issue.
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 218305] Ryzen 7 7840HS gets stuck at 544MHz frequency after resuming after unplugging the power cord during sleep
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=218305
--- Comment #59 from Mario Limonciello (AMD) ([email protected]) --- Created attachment 306264
--> https://bugzilla.kernel.org/attachment.cgi?id=306264&action=edit
debugging patch
I'm attaching a patch that isn't upstreamed at the moment, but you can apply to your kernel to try to capture a debug register for me. Apply it to your kernel and then read the register value like this:
echo "0x59804" | sudo tee /sys/kernel/debug/amd_nb/smn_address sudo cat /sys/kernel/debug/amd_nb/smn_value
Here is what a reasonable value looks like on my local system:
$ echo "0x59804" | sudo tee /sys/kernel/debug/amd_nb/smn_address $ sudo cat /sys/kernel/debug/amd_nb/smn_value 0x017f1201
Share to me the values that you get from smn_value in these 3 situations:
1) At bootup (before you suspend)
2) After you've suspended and reproduced the issue
3) After you've done the W/A to undo the issue.
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 218305] Ryzen 7 7840HS gets stuck at 544MHz frequency after resuming after unplugging the power cord during sleep
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=218305
--- Comment #60 from Daan Vanoverloop ([email protected]) --- I applied your patch, but I'm not able to reproduce the issue at home. When the issue doesn't occur, I find the same smn_value as you. It might be related to the specific power adapter I use at work, or other devices that were plugged in. I will try to reproduce the issue tomorrow at work, and try to narrow it down to a specific device that's plugged in.
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 218305] Ryzen 7 7840HS gets stuck at 544MHz frequency after resuming after unplugging the power cord during sleep
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=218305
--- Comment #61 from Daan Vanoverloop ([email protected]) --- I was able to reproduce the issue consistently at work with the USB power adapter that was included with the laptop, with or without a display and USB devices plugged in. I was not able to reproduce the issue with a different USB power adapter at home.
These are the smn values I found:
1) at bootup: 0x017f1201
2) after reproducing the issue: 0x017f1201
3) after doing the workaround (unplugging the power adapter): 0x017f1221
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 218305] Ryzen 7 7840HS gets stuck at 544MHz frequency after resuming after unplugging the power cord during sleep
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=218305
--- Comment #62 from Mario Limonciello (AMD) ([email protected]) --- Are you sure you didn't mix up 2 & 3?
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 218305] Ryzen 7 7840HS gets stuck at 544MHz frequency after resuming after unplugging the power cord during sleep
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=218305
--- Comment #63 from Daan Vanoverloop ([email protected]) --- Yes, I tried it a few times and I'm pretty sure this is correct. I noticed that the value only changes to 0x017f1221 after unplugging the power adapter. But I'll try again just to make sure.
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 218305] Ryzen 7 7840HS gets stuck at 544MHz frequency after resuming after unplugging the power cord during sleep
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=218305
--- Comment #64 from Daan Vanoverloop ([email protected]) --- I just encountered the issue again, but this time I unplugged my power adapter while the device was suspended, which can also trigger this bug. When I look at the smn_value, I find 0x017f1201 again (the "normal" value). When I plug in the adapter, I can work around the issue and find smn_value 0x017f1221. The value will stay on 0x017f1221 until I do a suspend/wake cycle, which resets it back to 0x017f1201, regardless of whether I the low clock speed issue occurred or not. Any kind of plugging or unplugging of the power adapter while the device is awake causes it to change to 0x017f1221. Plugging and unplugging while suspended does not seem to have any effect on this value, as it would always reset to 0x017f1201 when waking from suspend.
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 218305] Ryzen 7 7840HS gets stuck at 544MHz frequency after resuming after unplugging the power cord during sleep
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=218305
--- Comment #65 from Mario Limonciello (AMD) ([email protected]) --- Especially paired with the fact that different adapters don't trigger it I stand by this being an EC issue as the EC controls the throttling behavior.
I suggest you guys raise with HP and point them at this issue.
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 218305] Ryzen 7 7840HS gets stuck at 544MHz frequency after resuming after unplugging the power cord during sleep
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=218305
--- Comment #66 from darkbasic ([email protected]) ---
Quoted 2 lines
Especially paired with the fact that different adapters don't trigger it I stand by this being an EC issue as the EC controls the throttling behavior.
What does EC stand for?
Might this
(https://h30434.www3.hp.com/t5/Business-Notebooks/HP-Elitebook-865-G10-w-AMD-Ryzen-9-PRO-7940HS-cannot-sustain/m-p/9061799)
be related?
What's weird is that it only happens when I'm using the external monitors plugged into the dock, but I don't have any problem if I'm just using the dock's ethernet adapter or USB hub.
Quoted 1 line
I suggest you guys raise with HP and point them at this issue.
Easier said that done: they don't care about Linux via the official support channels.
I'm sure there is someone who cares because they distribute updates via LVFS and they even sold Linux laptops like the HP Dev One but I have no idea how to reach whoever could be interested to fix this.
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 218305] Ryzen 7 7840HS gets stuck at 544MHz frequency after resuming after unplugging the power cord during sleep
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=218305
--- Comment #67 from Artem S. Tashkinov ([email protected]) --- (In reply to Mario Limonciello (AMD) from comment #65)
Quoted 4 lines
Especially paired with the fact that different adapters don't trigger it I stand by this being an EC issue as the EC controls the throttling behavior.
I suggest you guys raise with HP and point them at this issue.
But why does it affect only Linux?
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 218305] Ryzen 7 7840HS gets stuck at 544MHz frequency after resuming after unplugging the power cord during sleep
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=218305
--- Comment #68 from Mario Limonciello (AMD) ([email protected]) ---
Quoted 1 line
What does EC stand for?
EC is "Embedded Controller". Here's the ACPI specification for how it is supposed to be interacted with:
https://uefi.org/specs/ACPI/6.5/12_Embedded_Controller_Interface_Specification.html
It's a black box to anyone but the system manufacturer.
Quoted 7 lines
Might this
(https://h30434.www3.hp.com/t5/Business-Notebooks/HP-Elitebook-865-G10-w-AMD-Ryzen-9-PRO-7940HS-cannot-sustain/m-p/9061799)
be related?What's weird is that it only happens when I'm using the external monitors plugged into the dock, but I don't have any problem if I'm just using the dock's ethernet adapter or USB hub.
Yes, it "could" be related. This is getting OT, but if you have enough ports on your laptop without a dock you could try to plug dongle(s) for monitor(s) and a regular power adapter and see if you can reproduce the same behavior.
Quoted 2 lines
Easier said that done: they don't care about Linux via the official support channels.
:/
Quoted 1 line
But why does it affect only Linux?
As it pertains to how the sleep wake up works, Linux and Windows work slightly differently. Windows has a concept of "dark screen wakeup" after any wakeup event and will move in and out of hardware sleep while in this state. Linux once you get a wakeup event if it's not enough to wake the system (such as the ACPI SCI but no other interrupt) then it goes back to sleep immediately.
This difference of behavior has uncovered bugs where the X86 cores race for some of the same resources with the power management firmware on earlier hardware.
So my working theory has been some timing margins for throttling are not being met when suspend/resume has occurred under Linux. That's why I was suggesting patches to try to keep the kernel alive longer when a power adapter event wakes the APU. But the behavior and timing of when to throttle are totally controlled by the EC. So if there is a timing problem and forcing the X86 cores to be awake longer doesn't help I'm not sure what else we can do without HP coming to the table to debug from their EC perspective.
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 218305] Ryzen 7 7840HS gets stuck at 544MHz frequency after resuming after unplugging the power cord during sleep
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=218305
--- Comment #69 from darkbasic ([email protected]) ---
Quoted 3 lines
Yes, it "could" be related. This is getting OT, but if you have enough ports on your laptop without a dock you could try to plug dongle(s) for monitor(s) and a regular power adapter and see if you can reproduce the same behavior.
https://www.amazon.it/sicotool-Adattatore-DisplayPort-Thunderbolt-Compatibile/dp/B08B647L2X
Would something like this work on Phoenix (HP Elitebook 865 G10)? I'm pretty sure it requires DP Alt mode.
Also, would it support Displayport MST?
I would like to keep my setup the same to make the test more valid and I'm currently using two Dell UltraSharp U2515H attached via a single mini DP cable.
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 218305] Ryzen 7 7840HS gets stuck at 544MHz frequency after resuming after unplugging the power cord during sleep
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=218305
--- Comment #70 from Mario Limonciello (AMD) ([email protected]) --- Yes that should work, but the resolution availability will depend upon how much bandwidth your connection series needs.
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 218305] Ryzen 7 7840HS gets stuck at 544MHz frequency after resuming after unplugging the power cord during sleep
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=218305
Prasun ([email protected]) changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |[email protected]
--- Comment #71 from Prasun ([email protected]) ---
Quoted 7 lines
Quoted 1 line
I suggest you guys raise with HP and point them at this issue.
Easier said that done: they don't care about Linux via the official support channels.
I'm sure there is someone who cares because they distribute updates via LVFS and they even sold Linux laptops like the HP Dev One but I have no idea how to reach whoever could be interested to fix this.
This also affects Rembrandt (845 G9), in case someone from HP makes it to this bug report.
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 218305] Ryzen 7 7840HS gets stuck at 544MHz frequency after resuming after unplugging the power cord during sleep
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=218305
Artem S. Tashkinov ([email protected]) changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |INVALID--- Comment #72 from Artem S. Tashkinov ([email protected]) --- (In reply to Prasun from comment #71)
Quoted 2 lines
This also affects Rembrandt (845 G9), in case someone from HP makes it to this bug report.
Sadly it looks like HP generally doesn't care about Linux and Linux support or compatibility for the G line of laptops has never been mentioned either.
I'm marking it as INVALID because Maria has basically said it's a bug in the EC (code).
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 218305] Ryzen 7 7840HS gets stuck at 544MHz frequency after resuming after unplugging the power cord during sleep
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=218305
--- Comment #73 from Artem S. Tashkinov ([email protected]) --- Mario, I meant Mario. Sorry :-)
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 218305] Ryzen 7 7840HS gets stuck at 544MHz frequency after resuming after unplugging the power cord during sleep
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=218305
--- Comment #74 from Daan Vanoverloop ([email protected]) --- The issue seems to be resolved for me when running kernel 6.10.5 and firmware (01.05.11 Rev.A), which can be installed from LVFS using fwupdmgr (or one of the wrapper GUIs like GNOME Software).
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 218305] Ryzen 7 7840HS gets stuck at 544MHz frequency after resuming after unplugging the power cord during sleep
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=218305
--- Comment #75 from Daan Vanoverloop ([email protected]) --- Apologies for the false alert, it is not fixed. I was just unable to reproduce it when I wanted to.
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 218305] Ryzen 7 7840HS gets stuck at 544MHz frequency after resuming after unplugging the power cord during sleep
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=218305
James Hogge ([email protected]) changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |[email protected]
--- Comment #76 from James Hogge ([email protected]) ---
Just want to add that I have exactly the same issue on a Lenovo Thinkpad P16v with a Ryzen 7840HS. Without fail, if I close the lid, wait until the laptop is sleeping, unplug the charger, and open the lid again, the CPU will be locked between 400-544MHz.
Reinserting the charger does not fix the issue but subsequently disconnecting it does.
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 218305] Ryzen 7 7840HS gets stuck at 544MHz frequency after resuming after unplugging the power cord during sleep
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=218305
--- Comment #77 from James Hogge ([email protected]) --- Should add that I'm running Ubuntu 24.04. Kernel version 6.8.0
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 218305] Ryzen 7 7840HS gets stuck at 544MHz frequency after resuming after unplugging the power cord during sleep
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=218305
--- Comment #78 from Artem S. Tashkinov ([email protected]) --- So, it's not just HP.
Mario, how come two unrelated vendors have the same EC bug? ;-)
Maybe AMD released something buggy to its partners in the first place? ;-)
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 218305] Ryzen 7 7840HS gets stuck at 544MHz frequency after resuming after unplugging the power cord during sleep
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=218305
--- Comment #79 from Mario Limonciello (AMD) ([email protected]) ---
Quoted 1 line
Mario, how come two unrelated vendors have the same EC bug? ;-)
All I can do is hypothesize. Maybe they licensed the same EC? Maybe they use the same ODM?
Quoted 1 line
Maybe AMD released something buggy to its partners in the first place? ;-)
AMD doesn't release EC code, this is proprietary to OEMs. I have tried; I can't reproduce on reference hardware.
Fwiw I have also tried to reproduce this on a Framework laptop which has an open source EC and can't reproduce there either.
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 218305] Ryzen 7 7840HS gets stuck at 544MHz frequency after resuming after unplugging the power cord during sleep
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=218305
--- Comment #80 from Artem S. Tashkinov ([email protected]) --- (In reply to Mario Limonciello (AMD) from comment #79)
Quoted 5 lines
Quoted 1 line
Mario, how come two unrelated vendors have the same EC bug? ;-)
All I can do is hypothesize. Maybe they licensed the same EC? Maybe they use the same ODM?
Quoted 7 lines
Quoted 1 line
Maybe AMD released something buggy to its partners in the first place? ;-)
AMD doesn't release EC code, this is proprietary to OEMs. I have tried; I can't reproduce on reference hardware.
Fwiw I have also tried to reproduce this on a Framework laptop which has an open source EC and can't reproduce there either.
Got it. I thought the EC code is sourced by AMD.
But that makes it even more suspicious. Why would such a critical component be outsourced?
That almost sounds like a recipe for a disaster. Possibly even a security issue?
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 218305] Ryzen 7 7840HS gets stuck at 544MHz frequency after resuming after unplugging the power cord during sleep
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=218305
--- Comment #81 from James Hogge ([email protected]) --- Frustrating... I've tried raising this with Lenovo too. I've had relatively useful customer support experiences with the in the past. If it turns out to be something they fix on their end, I'll say.
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 218305] Ryzen 7 7840HS gets stuck at 544MHz frequency after resuming after unplugging the power cord during sleep
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=218305
--- Comment #82 from Mario Limonciello (AMD) ([email protected]) ---
Quoted 2 lines
But that makes it even more suspicious. Why would such a critical component be outsourced?
That's how the PC industry is. This isn't an "AMD" specific thing.
Quoted 2 lines
That almost sounds like a recipe for a disaster. Possibly even a security issue?
How is it any different than BIOS, or PD controller, or any other component? OEM designs have OEM specific bugs.
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 218305] Ryzen 7 7840HS gets stuck at 544MHz frequency after resuming after unplugging the power cord during sleep
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=218305
--- Comment #83 from Artem S. Tashkinov ([email protected]) --- (In reply to Mario Limonciello (AMD) from comment #82)
Quoted 10 lines
Quoted 2 lines
But that makes it even more suspicious. Why would such a critical component be outsourced?
That's how the PC industry is. This isn't an "AMD" specific thing.
Quoted 2 lines
That almost sounds like a recipe for a disaster. Possibly even a security issue?
How is it any different than BIOS, or PD controller, or any other component? OEM designs have OEM specific bugs.
I hope how the EC works and its firmware could be validated by AMD in the future. Or maybe you've already implemented that - I've not heard about this issue from Zen 5 owners.
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 218305] Ryzen 7 7840HS gets stuck at 544MHz frequency after resuming after unplugging the power cord during sleep
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=218305
Daniel Mewes ([email protected]) changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |[email protected]
--- Comment #84 from Daniel Mewes ([email protected]) ---
I've been experiencing the same issue on my HP ZBook Power 11g a (with AMD Ryzen 9 PRO 8945HS) on both Linux 6.8.12 and also 6.11.0 (with Ubuntu patches).
In particular, the variant of this issue that reproduces reliably for me is:
1. Laptop on AC
2. Suspend
3. While suspended, unplug AC, wait a few seconds
4. While still suspended, reconnect AC
5. Wake up laptop
6. CPU frequency no longer exceeds 544 MHz until I unplug and/or replug AC again
I've tried your patch Mario that enables the sleep for all CPUs, but I was still able to reproduce the issue.
However, I then updated it to sleep for 100-200ms (instead of the 10-20) as you had suggested and I'm no longer seeing the issue.
So it appears that this is a valid workaround until HP fixes their firmware (if ever). Thanks so much for investigating this Mario and figuring out a fix!
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 218305] Ryzen 7 7840HS gets stuck at 544MHz frequency after resuming after unplugging the power cord during sleep
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=218305
--- Comment #85 from Mario Limonciello (AMD) ([email protected]) --- For other $REASONS I'm planning to increase that time generically. So I'm really happy to hear it helps with this issue too.
can you please try to change it to msleep(2500)? Is everything still OK with that?
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 218305] Ryzen 7 7840HS gets stuck at 544MHz frequency after resuming after unplugging the power cord during sleep
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=218305
--- Comment #86 from Daniel Mewes ([email protected]) --- Wonderful. Based on initial testing, replacing the usleep_range(10000, 20000); by msleep(2500); also avoids the race condition.
I haven't tested if this causes any regressions elsewhere. Is there anything I should be looking out for? Maybe increased battery drain while in sleep? (Not sure how frequently these "dark screen" wakeups are happening) I'll keep the msleep(2500) in for the time being and report if I notice any adverse effects.
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 218305] Ryzen 7 7840HS gets stuck at 544MHz frequency after resuming after unplugging the power cord during sleep
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=218305
--- Comment #87 from Mario Limonciello (AMD) ([email protected]) --- The side effect will be that the APU doesn't go back to HW sleep for an extra 2.5s on any time the ACPI SCI is fired. It's fired for things like power adapter and lid.
So look out for anything happening around those events that's out of the ordinary.
Side note; with that 2.5s in place can you get me a report generated with
https://web.git.kernel.org/pub/scm/linux/kernel/git/superm1/amd-debug-tools.git/tree/amd_s2idle.py
and changing the power adapter in a way that would have caused the failure before the time you program the script? I'll just double check if I see anything funny.
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 218305] Ryzen 7 7840HS gets stuck at 544MHz frequency after resuming after unplugging the power cord during sleep
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=218305
--- Comment #88 from Daniel Mewes ([email protected]) ---
I'm not 100% sure if this is what you had in mind (let me know if not), but this is what I did:
1. Ran the script with a suspend time of 30s without performing any of the reproduction steps (I did this while on BAT - the measured power consumption looks high at 9W, but I think the 30s is not enough to measure a reliable value)
2. Ran the script with a suspend time of 30s, and performed the reproduction steps that used to trigger the race condition *while the script had suspended my laptop*.
Both runs were done with the kernel that has your patch with msleep(2500). Let me know if you wanted me to test any other constellation.
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 218305] Ryzen 7 7840HS gets stuck at 544MHz frequency after resuming after unplugging the power cord during sleep
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=218305
--- Comment #89 from Daniel Mewes ([email protected]) --- Created attachment 307953
--> https://bugzilla.kernel.org/attachment.cgi?id=307953&action=edit
s2idle_report-on_bat_without_reproduction_steps.txt
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 218305] Ryzen 7 7840HS gets stuck at 544MHz frequency after resuming after unplugging the power cord during sleep
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=218305
--- Comment #90 from Mario Limonciello (AMD) ([email protected]) --- Thanks, that's exactly what I had in mind. I wanted to see what the very first Notify event was - and it was for battery (BAT0).
It's interesting to me that there are notify events for C000 (Processor), NPCF (Looks like NVIDIA device) and PMF_ (AMD PMF device).
The PMF device notifications will have some patches in 6.16, but I don't think they'll affect this.
Thanks again! Look out for formal patches soon.
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 218305] Ryzen 7 7840HS gets stuck at 544MHz frequency after resuming after unplugging the power cord during sleep
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=218305
--- Comment #91 from Mario Limonciello (AMD) ([email protected]) --- Here is the submission for 2.5s:
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 218305] Ryzen 7 7840HS gets stuck at 544MHz frequency after resuming after unplugging the power cord during sleep
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=218305
--- Comment #92 from Daniel Mewes ([email protected]) --- Confirming for the record that I haven't noticed any adverse side effects of the 2.5s sleep since last Thursday. Battery consumption during sleep doesn't seem to have meaningfully changed either.
Looking forward to seeing this patched in an upcoming kernel release. Thanks Mario for the fix! ...and Artem for raising the thread here to kick this all off!
Quoted 9 lines · On Mon, 2025-04-14 at 18:27 +0000, [email protected] wrote:
https://bugzilla.kernel.org/show_bug.cgi?id=218305
--- Comment #91 from Mario Limonciello (AMD)
([email protected]) ---
Here is the submission for 2.5s:
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 218305] Ryzen 7 7840HS gets stuck at 544MHz frequency after resuming after unplugging the power cord during sleep
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=218305
--- Comment #93 from James Hogge ([email protected]) ---
I've applied this patch to my kernel (v6.8.0) and it seems to have fixed the issue on my Thinkpad also! Only been using it for a day but I can no longer replicate the 400MHz and I haven't seen any negative side effects yet.
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 218305] Ryzen 7 7840HS gets stuck at 544MHz frequency after resuming after unplugging the power cord during sleep
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=218305
--- Comment #94 from Mario Limonciello (AMD) ([email protected]) --- It should be part of 6.15-rc5: https://git.kernel.org/torvalds/c/9f5595d5f03f
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 218305] Ryzen 7 7840HS gets stuck at 544MHz frequency after resuming after unplugging the power cord during sleep
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=218305
Henri ([email protected]) changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |[email protected]
--- Comment #95 from Henri ([email protected]) ---
For me, the patch did not completely fix the issue. From time to time, I still experience my Ryzen to be stuck at 544 Mhz after unplugging it from the power, while sleeping.
Laptop: HP Elitebook 845 G10
Processor: Ryzen 7 7840U
OS: NixOS 25.05
Kernel: 6.15.5 (linuxPackages_latest)
I have also run (an 4 month old version of) the s2_idle script, with the output being here: https://paste.debian.net/hidden/a701167b/
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 218305] Ryzen 7 7840HS gets stuck at 544MHz frequency after resuming after unplugging the power cord during sleep
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=218305
--- Comment #96 from Mario Limonciello (AMD) ([email protected]) ---
Quoted 1 line
2025-07-16 12:36:40,946 DEBUG: bios_date: 08/23/2024
You might check for a BIOS upgrade. AFAIK the actual issue here is an EC sequencing issue that Linux races with the EC.
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 218305] Ryzen 7 7840HS gets stuck at 544MHz frequency after resuming after unplugging the power cord during sleep
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=218305
--- Comment #97 from Artem S. Tashkinov ([email protected]) --- (In reply to Henri from comment #95)
Quoted 4 lines
For me, the patch did not completely fix the issue. From time to time, I still experience my Ryzen to be stuck at 544 Mhz after unplugging it from the power, while sleeping.
Quoted 8 lines
Laptop: HP Elitebook 845 G10
Processor: Ryzen 7 7840UOS: NixOS 25.05
Kernel: 6.15.5 (linuxPackages_latest)I have also run (an 4 month old version of) the
s2_idlescript, with the output being here: https://paste.debian.net/hidden/a701167b/
You're running the ancient BIOS/EFI:
2025-07-16 12:36:40,946 DEBUG: bios_date: 08/23/2024 2025-07-16 12:36:40,946 DEBUG: bios_release: 6.2
Please upgrade.
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 218305] Ryzen 7 7840HS gets stuck at 544MHz frequency after resuming after unplugging the power cord during sleep
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=218305
--- Comment #98 from Henri ([email protected]) --- Thanks for pointing that out! I missed that. If I still experience the problem, I will report back.
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 218305] Ryzen 7 7840HS gets stuck at 544MHz frequency after resuming after unplugging the power cord during sleep
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=218305
Peter Ries ([email protected]) changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |[email protected] | |om
--- Comment #99 from Peter Ries ([email protected]) --- (In reply to Henri from comment #95)
Quoted 4 lines
For me, the patch did not completely fix the issue. From time to time, I still experience my Ryzen to be stuck at 544 Mhz after unplugging it from the power, while sleeping.
Quoted 8 lines
Laptop: HP Elitebook 845 G10
Processor: Ryzen 7 7840UOS: NixOS 25.05
Kernel: 6.15.5 (linuxPackages_latest)I have also run (an 4 month old version of) the
s2_idlescript, with the output being here: https://paste.debian.net/hidden/a701167b/
I have same hardware with latest BIOS. Running Arch based Endeavour OS. Kernel 6.16.3-arch1-1 ATM.
I still have this annoying bug. Thought it was gone, but obviously I didn't unplug while in suspend that often. But the last days I worked more away from desk and needed to unplug when suspended and irregularily (every 5th time may be) the CPU is stuck in low states 544MHz.
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 218305] Ryzen 7 7840HS gets stuck at 544MHz frequency after resuming after unplugging the power cord during sleep
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=218305
Petar Vidosavljevic ([email protected]) changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |[email protected] | |om
--- Comment #100 from Petar Vidosavljevic ([email protected]) --- (In reply to Peter Ries from comment #99)
Quoted 14 lines
(In reply to Henri from comment #95)
Quoted 4 lines
For me, the patch did not completely fix the issue. From time to time, I still experience my Ryzen to be stuck at 544 Mhz after unplugging it from the power, while sleeping.
Quoted 8 lines
Laptop: HP Elitebook 845 G10
Processor: Ryzen 7 7840UOS: NixOS 25.05
Kernel: 6.15.5 (linuxPackages_latest)I have also run (an 4 month old version of) the
s2_idlescript, with the output being here: https://paste.debian.net/hidden/a701167b/
Quoted 7 lines
I have same hardware with latest BIOS. Running Arch based Endeavour OS. Kernel 6.16.3-arch1-1 ATM.
I still have this annoying bug. Thought it was gone, but obviously I didn't unplug while in suspend that often. But the last days I worked more away from desk and needed to unplug when suspended and irregularily (every 5th time may be) the CPU is stuck in low states 544MHz.
I'm also still encountering this issue. Kernel:
6.16.3-200.fc42.x86_64
My hardware is:
HP Elitebook 845 G10 - 7840U
Some of the output when running "sudo dmidecode --type bios":
BIOS Information
Vendor: HP
Version: V82 Ver. 01.09.00
Release Date: 04/14/2025
BIOS Revision: 9.0
Firmware Revision: 96.55
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 218305] Ryzen 7 7840HS gets stuck at 544MHz frequency after resuming after unplugging the power cord during sleep
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=218305
--- Comment #101 from Mario Limonciello (AMD) ([email protected]) --- Those of you that can still reproduce this, does reverting
https://github.com/torvalds/linux/commit/4dbd11796f3a8eb95647507befc41995458a4023
change anything? That commit is correct so we wouldn't revert it in mainline, but it might give a hint that there are multiple timing problems.
Please give it a solid shake out (at least 10 cycles that you unplug power adapter during suspend) before reporting back.
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 218305] Ryzen 7 7840HS gets stuck at 544MHz frequency after resuming after unplugging the power cord during sleep
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=218305
--- Comment #102 from Petar Vidosavljevic ([email protected]) --- (In reply to Mario Limonciello (AMD) from comment #101)
Quoted 8 lines
Those of you that can still reproduce this, does reverting
https://github.com/torvalds/linux/commit/4dbd11796f3a8eb95647507befc41995458a4023change anything? That commit is correct so we wouldn't revert it in mainline, but it might give a hint that there are multiple timing problems.Please give it a solid shake out (at least 10 cycles that you unplug power adapter during suspend) before reporting back.
An update that might warrant some investigation. I updated to the latest HP BIOS, which is:
Version: V82 Ver. 01.09.02
Release Date: 08/04/2025
I thought I'd see if the new BIOS fixed anything, but I was able to get stuck in the low power mode pretty easily so I figured nothing changed on this front.
However, I found steps where I can consistently get into low power mode and
get out of it without a reboot. Here are the components in play:
HP Elitebook 845 G10 - 7840U
HP 65W USB C charger
Dell WD19TB Thunderbolt Dock
Here are the steps:
1) Laptop in use plugged into WD19TB (normal performance)
2) Unplug USB-C cable from dock
3) Close lid of laptop
4) Plug in HP 65W charger
5) Wait a few seconds
6) Unplug HP charger
7) Open Laptop - See that the CPU is stuck in low power mode
8) Plug laptop into Dell dock - CPU is no longer stuck in low power mode
Now if I return to step 3 and follow the steps, in step 7 the CPU will be in low power mode consistently. It seems plugging into the dock resets the low power mode.
I'm not sure if any of this info helps. I'd be happy to run the scripts to capture logs tomorrow, but I thought this data might be useful
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 218305] Ryzen 7 7840HS gets stuck at 544MHz frequency after resuming after unplugging the power cord during sleep
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=218305
--- Comment #103 from Mario Limonciello (AMD) ([email protected]) --- #102:
Yes; that matches the workaround that people have indicated in the past for EC on this issue.
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 218305] Ryzen 7 7840HS gets stuck at 544MHz frequency after resuming after unplugging the power cord during sleep
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=218305
--- Comment #104 from Petar Vidosavljevic ([email protected]) --- Created attachment 308647
--> https://bugzilla.kernel.org/attachment.cgi?id=308647&action=edit
petar_amd-s2idle-report-2025-09-09
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 218305] Ryzen 7 7840HS gets stuck at 544MHz frequency after resuming after unplugging the power cord during sleep
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=218305
--- Comment #105 from Petar Vidosavljevic ([email protected]) --- (In reply to Mario Limonciello (AMD) from comment #103)
Quoted 4 lines
#102:
Yes; that matches the workaround that people have indicated in the past for EC on this issue.
Is it helpful that it seems that I can reproduce this every time as described above? I feel with unplugging from the charger (where the dock wasn't in use previously during the session) it would be more random when it would occur.
Also, I ran the amd-s2idle script and have attached the report. This is without reverting the commit you mentioned. I'll try to get to that in the next day or so.
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 218305] Ryzen 7 7840HS gets stuck at 544MHz frequency after resuming after unplugging the power cord during sleep
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=218305
--- Comment #106 from Mario Limonciello (AMD) ([email protected]) --- I notice that pretty much the EC is stuck in a GPE status bit loop.
Quoted 1 line
No notify handler for Notify, ignoring (
PMF_, 81) node00000000be324725
Can you try with blacklisting the PMF driver (modprobe.blacklist=amd_pmf)?
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 218305] Ryzen 7 7840HS gets stuck at 544MHz frequency after resuming after unplugging the power cord during sleep
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=218305
--- Comment #107 from Petar Vidosavljevic ([email protected]) --- Created attachment 308659
--> https://bugzilla.kernel.org/attachment.cgi?id=308659&action=edit
petar_amd-s2idle-report-2025-09-10
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 218305] Ryzen 7 7840HS gets stuck at 544MHz frequency after resuming after unplugging the power cord during sleep
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=218305
--- Comment #108 from Petar Vidosavljevic ([email protected]) --- (In reply to Mario Limonciello (AMD) from comment #106)
Quoted 5 lines
I notice that pretty much the EC is stuck in a GPE status bit loop.
Quoted 1 line
No notify handler for Notify, ignoring (
PMF_, 81) node00000000be324725Can you try with blacklisting the PMF driver (modprobe.blacklist=amd_pmf)?
Let me know if you need me to try anything else.
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 218305] Ryzen 7 7840HS gets stuck at 544MHz frequency after resuming after unplugging the power cord during sleep
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=218305
--- Comment #109 from Mario Limonciello (AMD) ([email protected]) --- I still see the GPE status bit loop. Sorry but I don't have any suggestions for you right now.
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 218305] Ryzen 7 7840HS gets stuck at 544MHz frequency after resuming after unplugging the power cord during sleep
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=218305
aisuneko icecat ([email protected]) changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |[email protected]
--- Comment #110 from aisuneko icecat ([email protected]) --- For everyone stumbling upon this bug with kernel 6.16+: I suggest to first upgrade your device's BIOS to the newest version provided by the vendor. The problem was fixed for my Lenovo XiaoXinPro 14 APH8 after upgrading the BIOS from MKCN27WW to MKCN37WW (released 05/06/2025).
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 218305] Ryzen 7 7840HS gets stuck at 544MHz frequency after resuming after unplugging the power cord during sleep
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=218305
Márcio ([email protected]) changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |[email protected]
--- Comment #111 from Márcio ([email protected]) --- (In reply to Mario Limonciello (AMD) from comment #101)
Quoted 8 lines
Those of you that can still reproduce this, does reverting
https://github.com/torvalds/linux/commit/4dbd11796f3a8eb95647507befc41995458a4023change anything? That commit is correct so we wouldn't revert it in mainline, but it might give a hint that there are multiple timing problems.Please give it a solid shake out (at least 10 cycles that you unplug power adapter during suspend) before reporting back.
Hi Mario,
I tested reverting commit 4dbd11796f3a on my HP Zbook Firefly G10 with a Ryzen 7 PRO 7840HS, as you suggested.
Result: The problem was resolved. I performed the test cycle more than 10 times and the CPU frequency scaled normally after every single resume.
Before the revert, the problem would consistently occur during the test cycle described below:
1) Laptop in use plugged on HP charger (any power profile)
2) Close lid of laptop
3) Unplug HP charger
4) Wait a few seconds
5) Plug in HP charger
6) Open Laptop - See that the CPU is stuck at 544 Hz.
7) Unplug and plug the charger makes the frequency normal again at a minimum of 1101 Hz but scaling normally.
My system details:
- Model: HP Zbook Firefly 14 inch G10 A (SBKPF,SBKPFV2)
- CPU: AMD Ryzen 7 PRO 7840HS
- BIOS: V82 Ver. 01.09.00
- OS: Fedora Silverblue 42
Thank you for your help.
Márcio
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 218305] Ryzen 7 7840HS gets stuck at 544MHz frequency after resuming after unplugging the power cord during sleep
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=218305
--- Comment #112 from Mario Limonciello (AMD) ([email protected]) --- That's quite an interesting result. Let me ask this - how quickly are you unplugging / plugging in the adapter? Particularly after you've closed the lid but before unplugging the adapter.
Without the revert if you follow this (specific) timing does it still happen?
1) Close lid
2) Wait 10 seconds
3) Unplug adapter
4) Wait 10 seconds
5) Plug in adapter
6) Wait 10 seconds
7) Open laptop, check frequency
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 218305] Ryzen 7 7840HS gets stuck at 544MHz frequency after resuming after unplugging the power cord during sleep
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=218305
--- Comment #113 from Márcio ([email protected]) --- (In reply to Mario Limonciello (AMD) from comment #112)
Quoted 2 lines
That's quite an interesting result. Let me ask this - how quickly are you unplugging / plugging in the adapter?
More than 10 seconds
Particularly after you've closed the
Quoted 1 line
lid but before unplugging the adapter.
More than 10 seconds, just because this is the use case where I first saw this problem. I close the lid, unplug the adapter, put everything in my bag, go to another place, plug the adapter back in, and then open the lid.
Quoted 9 lines
Without the revert if you follow this (specific) timing does it still happen?
1) Close lid
2) Wait 10 seconds
3) Unplug adapter
4) Wait 10 seconds
5) Plug in adapter
6) Wait 10 seconds
7) Open laptop, check frequency
The frequency problem occurs:
- 544 MHz in power save mode, with some spikes to 1101 MHz;
- 1101 MHz in performance and balanced profiles, with some cores occasionally dropping to 544 MHz.
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 218305] Ryzen 7 7840HS gets stuck at 544MHz frequency after resuming after unplugging the power cord during sleep
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=218305
--- Comment #114 from Mario Limonciello (AMD) ([email protected]) --- I suppose we could make a quirk for always forcing time before suspend entry. I don't really want to do it generically because this isn't needed for most people.
Can you give me your s2idle report that reproduced this? I'll make you a quirk to for you and Petar to try and break.
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 218305] Ryzen 7 7840HS gets stuck at 544MHz frequency after resuming after unplugging the power cord during sleep
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=218305
--- Comment #115 from Márcio ([email protected]) --- (In reply to Mario Limonciello (AMD) from comment #114)
Quoted 6 lines
I suppose we could make a quirk for always forcing time before suspend entry. I don't really want to do it generically because this isn't needed for most people.
Can you give me your s2idle report that reproduced this? I'll make you a quirk to for you and Petar to try and break.
Yes.
Witch report exactly do you need? dmesg?
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 218305] Ryzen 7 7840HS gets stuck at 544MHz frequency after resuming after unplugging the power cord during sleep
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=218305
--- Comment #116 from Márcio ([email protected]) --- (In reply to Mario Limonciello (AMD) from comment #114)
Quoted 6 lines
I suppose we could make a quirk for always forcing time before suspend entry. I don't really want to do it generically because this isn't needed for most people.
Can you give me your s2idle report that reproduced this? I'll make you a quirk to for you and Petar to try and break.
https://paste.centos.org/view/c963f968
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 218305] Ryzen 7 7840HS gets stuck at 544MHz frequency after resuming after unplugging the power cord during sleep
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=218305
--- Comment #117 from Mario Limonciello (AMD) ([email protected]) --- Created attachment 308671
--> https://bugzilla.kernel.org/attachment.cgi?id=308671&action=edit
quirk for Petar's system
I asked for an s2idle report, not for a snippet of dmesg.
Anyway; here's a quirk for just Petar's system since I got an s2idle report for his. Once I have one for you I can your system as well.
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 218305] Ryzen 7 7840HS gets stuck at 544MHz frequency after resuming after unplugging the power cord during sleep
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=218305
--- Comment #118 from Márcio ([email protected]) ---
Created attachment 308672
--> https://bugzilla.kernel.org/attachment.cgi?id=308672&action=edits2idle_report HP Zbook Firefly 14 inch G10 A Mobile Workstation PC (version:
SBKPF,SBKPFV2)
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 218305] Ryzen 7 7840HS gets stuck at 544MHz frequency after resuming after unplugging the power cord during sleep
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=218305
Márcio ([email protected]) changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #308672|s2idle_report HP Zbook |s2idle_report HP Zbook
description|Firefly 14 inch G10 A |Firefly 14 inch G10
|Mobile Workstation PC |
|(version: SBKPF,SBKPFV2) |Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 218305] Ryzen 7 7840HS gets stuck at 544MHz frequency after resuming after unplugging the power cord during sleep
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=218305
Mario Limonciello (AMD) ([email protected]) changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #308671|0 |1
is obsolete| |
--- Comment #119 from Mario Limonciello (AMD) ([email protected]) --- Created attachment 308674
--> https://bugzilla.kernel.org/attachment.cgi?id=308674&action=edit
updated patch with two quirks for HP systems
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 218305] Ryzen 7 7840HS gets stuck at 544MHz frequency after resuming after unplugging the power cord during sleep
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=218305
--- Comment #120 from Petar Vidosavljevic ([email protected]) --- I compiled the quirk/patch yesterday morning. Executing the steps I outlined above hasn't resulted in the low-power mode behavior. So far it hasn't reached that state once, which is amazing. :) I'm kind of curious how other people in the thread with Elitebook 845 G10 aren't experiencing this still.
So just curious, what are the next steps? Is this going to be pushed to the mainline? I never tested removing the patch
(https://github.com/torvalds/linux/commit/4dbd11796f3a8eb95647507befc41995458a4023).
Is that something I should do? I'm happy to do additional testing for a
permanent solution.
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 218305] Ryzen 7 7840HS gets stuck at 544MHz frequency after resuming after unplugging the power cord during sleep
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=218305
Mario Limonciello (AMD) ([email protected]) changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
Resolution|INVALID |------ Comment #121 from Mario Limonciello (AMD) ([email protected]) ---
Quoted 4 lines
I never tested removing the patch
(https://github.com/torvalds/linux/commit/4dbd11796f3a8eb95647507befc41995458a4023).
Is that something I should do? I'm happy to do additional testing for a
permanent solution.
If the quirk patch works for you; I don't see a need to do that.
Quoted 2 lines
So just curious, what are the next steps? Is this going to be pushed to the mainline?
Let me re-open this so we can talk about what to do about it.
The OEM's EC is an opaque black box.
This /seems/ to be a race condition with the Linux kernel and the EC.
* Upstreaming the quirk is one possibility.
This means that every time we see this we add to the quirk list.
* Adding a delay for all hardware is another possibility.
This seems relatively unfair to other hardware not affected by this issue.
* Look into whether there is anything different in what's sent to the EC in the delay vs no delay case. I thought that there shouldn't be anything different since we're in the s2idle loop, but you can double check this by:
1) Turning on dynamic debug messages for drivers/acpi/ec.c.
2) Run sequence to reproduce issue on unpatched kernel.
3) Run sequence to reproduce issue on patched kernel.
4) Compare the sequences and see if there are any extra events in the patched kernel.
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 218305] Ryzen 7 7840HS gets stuck at 544MHz frequency after resuming after unplugging the power cord during sleep
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=218305
--- Comment #122 from Artem S. Tashkinov ([email protected]) --- (In reply to Mario Limonciello (AMD) from comment #121)
Quoted 2 lines
* Adding a delay for all hardware is another possibility.
This seems relatively unfair to other hardware not affected by this issue.
What kind of delay are we talking about?
If it's under three seconds, I doubt anyone would notice.
Perhaps AMD could really push for a certification program for the EC. It makes no sense that you, an AMD engineer, have to struggle with your own hardware.
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 218305] Ryzen 7 7840HS gets stuck at 544MHz frequency after resuming after unplugging the power cord during sleep
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=218305
--- Comment #123 from Mario Limonciello (AMD) ([email protected]) ---
Quoted 1 line
What kind of delay are we talking about?
2.5 seconds.
Quoted 1 line
If it's under three seconds, I doubt anyone would notice.
You would think this - but there are test suites (such as FWTS) which check hardware sleep residency; and this throws the numbers off.
Quoted 2 lines
It makes no sense that you, an AMD engineer, have to struggle with your own hardware.
If you look at how many quirks for BIOS/EC issues I've developed over the years unfortunately the reality is that many OEMs don't test Linux. The ones that do find issues like this and fix them in their firmware. They often have little, or no quirks and things work out of the box.
Quoted 1 line
Perhaps AMD could really push for a certification program for the EC.
I don't really know what a "certification program" would do that a simple series of manual tests wouldn't do. Adding a test case of "boot system on battery", "suspend system", "plug in AC", "resume system", "check performance" would catch this.
But anyway - that's a business discussion not a technical one.
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 218305] Ryzen 7 7840HS gets stuck at 544MHz frequency after resuming after unplugging the power cord during sleep
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=218305
--- Comment #124 from Artem S. Tashkinov ([email protected]) ---
Quoted 1 line
2.5 seconds.
I'm averse to quirks and I really hate that the Linux kernel already contains hundreds of them, so at least to me the solution with a delay sounds the most sensible.
I guess very few Linux users will object if it doesn't blow up everything else.
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 218305] Ryzen 7 7840HS gets stuck at 544MHz frequency after resuming after unplugging the power cord during sleep
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=218305
--- Comment #125 from Mario Limonciello (AMD) ([email protected]) ---
Quoted 3 lines
I'm averse to quirks and I really hate that the Linux kernel already contains hundreds of them, so at least to me the solution with a delay sounds the most sensible.
I am too, but this one is too visible to make generic.
Quoted 2 lines
I guess very few Linux users will object if it doesn't blow up everything else.
Well it's a pretty big behavior change. I found that when it is in place if I close my lid and then open it immediately I can't wake up immediately because that 2.5s hasn't passed yet to even start the suspend.
Or if I close my lid before putting a laptop in the bag I would expect all the fans stop before I put it in the bag. Well now you close your lid and the fans are still running? That makes you think there is a problem, so you open it back up to check.
If we're going to keep "some" variation of it around for everyone I would rather it be on an interruptible timer, which means maybe putting it somewhere earlier in the sequence that interrupts are still enabled.
I don't really know what could be different with what Linux does with the EC in these two cases, and hopefully that gives us some insight on the best solution.
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 218305] Ryzen 7 7840HS gets stuck at 544MHz frequency after resuming after unplugging the power cord during sleep
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=218305
--- Comment #126 from Márcio ([email protected]) ---
Quoted 5 lines
1) Turning on dynamic debug messages for
drivers/acpi/ec.c.
2) Run sequence to reproduce issue on unpatched kernel.
3) Run sequence to reproduce issue on patched kernel.
4) Compare the sequences and see if there are any extra events in the patched kernel.
If there's guidance on how to perform the testing, I'll be happy to run the tests on my laptop. I have the patched kernel built.
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 218305] Ryzen 7 7840HS gets stuck at 544MHz frequency after resuming after unplugging the power cord during sleep
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=218305
--- Comment #127 from Mario Limonciello (AMD) ([email protected]) --- This will help you get started with dynamic debug:
https://www.kernel.org/doc/html/v6.16/admin-guide/dynamic-debug-howto.html
Turning it on for the EC gets really noisy. I'd suggest you do a script that:
1) turn on dyndbg
2) run suspend
3) turn off dyndbg
4) capture the journal
Run that with patched and unpatched kernels and we can compare the journals.
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 218305] Ryzen 7 7840HS gets stuck at 544MHz frequency after resuming after unplugging the power cord during sleep
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=218305
--- Comment #128 from Márcio ([email protected]) --- Created attachment 308682
--> https://bugzilla.kernel.org/attachment.cgi?id=308682&action=edit
Logs ACPI patched and unpatched kernel
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 218305] Ryzen 7 7840HS gets stuck at 544MHz frequency after resuming after unplugging the power cord during sleep
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=218305
--- Comment #129 from Mario Limonciello (AMD) ([email protected]) --- I saw logs captured 3 times for patched and unpatched but the kernel log was only in one of each.
So hard to know what's the pattern but you can see the following from status register prints:
* in the patched kernel burst mode is turned off before suspend-to-idle entry
* in the unpatched kernel the input buffer is full
* in the patched kernel a "polling quirk" occurs meaning enabling EC didn't trigger a GPE
I guess more test runs will confirm whether this is consistently the same behavior.
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 218305] Ryzen 7 7840HS gets stuck at 544MHz frequency after resuming after unplugging the power cord during sleep
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=218305
--- Comment #130 from Márcio ([email protected]) --- Which scenario produce the useful log? A, B or C? I can repeat that one as much as needed.
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 218305] Ryzen 7 7840HS gets stuck at 544MHz frequency after resuming after unplugging the power cord during sleep
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=218305
--- Comment #131 from Mario Limonciello (AMD) ([email protected]) --- C is the only one I saw a kernel log, that's the one I looked at.
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 218305] Ryzen 7 7840HS gets stuck at 544MHz frequency after resuming after unplugging the power cord during sleep
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=218305
Márcio ([email protected]) changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #308682|0 |1
is obsolete| |
--- Comment #132 from Márcio ([email protected]) ---
Created attachment 308689
--> https://bugzilla.kernel.org/attachment.cgi?id=308689&action=edit
It contains 20 runs with the patched kernel and 20 runs with the unpatched kernel, all following scenario C (procedure described in the included README).
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 218305] Ryzen 7 7840HS gets stuck at 544MHz frequency after resuming after unplugging the power cord during sleep
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=218305
Luke McCarthy ([email protected]) changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |[email protected]
--- Comment #133 from Luke McCarthy ([email protected]) --- (In reply to Mario Limonciello (AMD) from comment #119)
Quoted 2 lines
Created attachment 308674 [details]
updated patch with two quirks for HP systems
I have been having this issue for the past 6 months on my HP Elitebook 865 G10 (7840u) on the latest BIOS. This patch has fixed the issue for me and I no longer can reproduce the CPU frequency getting stuck when waking from sleep.
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 218305] Ryzen 7 7840HS gets stuck at 544MHz frequency after resuming after unplugging the power cord during sleep
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=218305
--- Comment #134 from Petar Vidosavljevic ([email protected]) --- Created attachment 308756
--> https://bugzilla.kernel.org/attachment.cgi?id=308756&action=edit
petar_amd-s2idle-report-2025-10-06-with-patch
I noticed the 544Mhz issue on October 5th and I'm running the patched kernel (quirk).
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 218305] Ryzen 7 7840HS gets stuck at 544MHz frequency after resuming after unplugging the power cord during sleep
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=218305
--- Comment #135 from Petar Vidosavljevic ([email protected]) --- Posted updated logs. Luckily I was still running the s2idle script. I assumed that this issue was fixed with the quirk patch, but it seems after many suspend/resume cycles the 544Mhz issue can still occur on my configuration (Elitebook 845 G10 7840U).
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 218305] Ryzen 7 7840HS gets stuck at 544MHz frequency after resuming after unplugging the power cord during sleep
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=218305
--- Comment #136 from Mario Limonciello (AMD) ([email protected]) --- I will say that you've had a lot more wakeups from the EC in this test run. I see 32 hardware sleep cycles. It seems like once every 5-10 minutes it sends a wakeup. I don't believe there is really a lot that can be done from Linux there, it should be an OEM EC optimization.
I really think we need to get HP to look at this from their EC perspective to debug this issue.
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 218305] Ryzen 7 7840HS gets stuck at 544MHz frequency after resuming after unplugging the power cord during sleep
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=218305
--- Comment #137 from Mrowa96 ([email protected]) --- Same thing happening on HP Elitebook 845 G11(103C_5336AN HP EliteBook) with Ryzen 7 8840U and board name 8C6E.
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 218305] Ryzen 7 7840HS gets stuck at 544MHz frequency after resuming after unplugging the power cord during sleep
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=218305
--- Comment #138 from Peter Ries ([email protected]) --- Hello,
I most of the time jsut read/follow this thread as my testing knowledge is limited. For a whilt things seem to have gotten better, but with latest Kernel update on Arch (6.17.2-arch1-1) I now nearly everytime have low CPU frueq 5xx MHz or 1.1 GHz as max. After a normal suspend/resume cycle when plugged!
Have HP 845 G10 and EndeavourOS (Arch) all most up to date.
Just curious if anyone else has this.
I will run my laptop on 6.12 LTS Kernel for a while to see if it gets better.
BR and thanks for al the efforts or Mario and the testers :)
Can we somehow get HP to do "their job"? Write emails, sign letters, ...?
BR
Peter
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 218305] Ryzen 7 7840HS gets stuck at 544MHz frequency after resuming after unplugging the power cord during sleep
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=218305
Márcio ([email protected]) changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #308672|0 |1
is obsolete| |
Attachment #308689|0 |1
is obsolete| |--- Comment #139 from Márcio ([email protected]) --- Created attachment 308924
--> https://bugzilla.kernel.org/attachment.cgi?id=308924&action=editamd_s2idle on HP
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 218305] Ryzen 7 7840HS gets stuck at 544MHz frequency after resuming after unplugging the power cord during sleep
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=218305
--- Comment #140 from Artem S. Tashkinov ([email protected]) --- (In reply to Peter Ries from comment #138)
Quoted 14 lines
Hello,
I most of the time jsut read/follow this thread as my testing knowledge is limited. For a whilt things seem to have gotten better, but with latest Kernel update on Arch (6.17.2-arch1-1) I now nearly everytime have low CPU frueq 5xx MHz or 1.1 GHz as max. After a normal suspend/resume cycle when plugged!
Have HP 845 G10 and EndeavourOS (Arch) all most up to date.
Just curious if anyone else has this.
I will run my laptop on 6.12 LTS Kernel for a while to see if it gets better.
Quoted 7 lines
BR and thanks for al the efforts or Mario and the testers :)
Can we somehow get HP to do "their job"? Write emails, sign letters, ...?
BR
Peter
If you're still under warranty, open a support case and provide all the details.
Even better, call their US business support hotline.
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 218305] Ryzen 7 7840HS gets stuck at 544MHz frequency after resuming after unplugging the power cord during sleep
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=218305
--- Comment #141 from Petar Vidosavljevic ([email protected]) --- (In reply to Artem S. Tashkinov from comment #140)
Quoted 21 lines
(In reply to Peter Ries from comment #138)
Quoted 8 lines
Hello,
I most of the time jsut read/follow this thread as my testing knowledge is limited. For a whilt things seem to have gotten better, but with latest Kernel update on Arch (6.17.2-arch1-1) I now nearly everytime have low CPU frueq 5xx MHz or 1.1 GHz as max. After a normal suspend/resume cycle when plugged!
Quoted 5 lines
Have HP 845 G10 and EndeavourOS (Arch) all most up to date.
Just curious if anyone else has this.
I will run my laptop on 6.12 LTS Kernel for a while to see if it gets
better.
Quoted 6 lines
BR and thanks for al the efforts or Mario and the testers :)
Can we somehow get HP to do "their job"? Write emails, sign letters, ...?
Quoted 7 lines
Quoted 2 lines
BR
PeterIf you're still under warranty, open a support case and provide all the details.
Even better, call their US business support hotline.
I actually chatted with their regular support about 2-3 weeks ago and they were no help. I called on the phone and pretty similar experience. They asked for the link to this ticket, but I haven't heard anything from them in the meantime. To talk to their "business" support, I imagine you would need a business contract/warranty in place.
Mario, do you know anyone at HP who can actually get this fixed?
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 218305] Ryzen 7 7840HS gets stuck at 544MHz frequency after resuming after unplugging the power cord during sleep
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=218305
--- Comment #142 from Artem S. Tashkinov ([email protected]) ---
If you own *any* EliteBook laptop, you're *entitled* to their business support hotline.
* The web version:
Open https://support.hp.com/us-en/dashboard/cases Find "Business Support" in the menu -> Click "Create a new case".
* The HP business support hotline for the USA is:
1-800-474-6836
If possible, please ask to be transferred to the upper level of support. The first level of support may not understand what you're talking about. They only know the word "Windows."
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 218305] Ryzen 7 7840HS gets stuck at 544MHz frequency after resuming after unplugging the power cord during sleep
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=218305
--- Comment #143 from Luke McCarthy ([email protected]) --- I have opened a case with HP Business Support. Let's see how this goes.
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 218305] Ryzen 7 7840HS gets stuck at 544MHz frequency after resuming after unplugging the power cord during sleep
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=218305
--- Comment #144 from Luke McCarthy ([email protected]) --- From HP Support:
Issue Reported : experiences a critical firmware-level bug when running Linux:
Thank you again for helping confirm the behavior we’ve been investigating.
At this time, there is no permanent fix available.
We have identified a confirmed trigger: the issue occurs when the AC adapter is unplugged or reconnected while the laptop is in suspend mode, causing the CPU to become limited to approximately 443 MHz after wake.
Temporary Workaround:
Please advise users to avoid changing the AC power state while the system is sleeping.
If the system does enter the reduced 443 MHz state, performing a full system reboot will restore normal CPU performance.
I am escalating this to our L2 firmware/ACPI team for deeper investigation. I will provide an update as soon as we receive their findings.
To strengthen the escalation, could you please share the total install base for the affected model(s) within your fleet? This information will help us prioritize and push for an urgent resolution.
...
Good they are at least aware now. Will keep updated.
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 218305] Ryzen 7 7840HS gets stuck at 544MHz frequency after resuming after unplugging the power cord during sleep
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=218305
Gergo K ([email protected]) changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |[email protected]
--- Comment #145 from Gergo K ([email protected]) ---
Can someone upload an acpidump output? Thanks.
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 218305] Ryzen 7 7840HS gets stuck at 544MHz frequency after resuming after unplugging the power cord during sleep
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=218305
--- Comment #146 from Tore Anderson ([email protected]) --- Created attachment 309150
--> https://bugzilla.kernel.org/attachment.cgi?id=309150&action=edit
acpidump
(In reply to Gergo K from comment #145)
Quoted 1 line
Can someone upload an acpidump output? Thanks.
Attached. This is from an «HP EliteBook 845 14 inch G11 Notebook PC» with a «AMD Ryzen 7 8840HS w/ Radeon 780M Graphics». Note that CPU was *not* throttled while I took this dump, it was running normally.
Tore
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 218305] Ryzen 7 7840HS gets stuck at 544MHz frequency after resuming after unplugging the power cord during sleep
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=218305
--- Comment #147 from Artem S. Tashkinov ([email protected]) --- Created attachment 309151
--> https://bugzilla.kernel.org/attachment.cgi?id=309151&action=edit
HP EliteBook 845 14 inch G10 acpi dump.bin.xz
Here's the funny thing.
I can swear the previous BIOS for my laptop (HP EliteBook 845 14 inch G10) worked fine but then I simultaneously upgraded the kernel and the BIOS and the issue resurfaced, even though the new maximum frequency is different - it's not 544MHz any longer, it's 1101 MHz, as mentioned earlier but even at this frequency the laptop is unusable.
The current BIOS (buggy): Version: 01.10.03 Rev.A, dated Oct 20, 2025 The previous one (worked perfectly): 01.10.00 Rev.A, dated Aug 18, 2025
But again I also upgraded the kernel in the meanwhile to 6.17.8.
(In reply to Gergo K from comment #145)
Quoted 1 line
Can someone upload an acpidump output? Thanks.
Here it is.
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 218305] Ryzen 7 7840HS gets stuck at 544MHz frequency after resuming after unplugging the power cord during sleep
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=218305
--- Comment #148 from Gergo K ([email protected]) ---
Thank you guys!
Quoted 2 lines
Note that CPU was *not* throttled while I took this dump, it was running normally.
This is not a problem, it does not contain any running state, it would return the same.
Quoted 1 line
The previous one (worked perfectly): 01.10.00 Rev.A, dated Aug 18, 2025
If you ever revert to the old BIOS version, please send us an acpidump so we can get closer to a solution.
What I noticed is that they are implementing both AMD and Microsoft's LPS0 DSM.
The code would be prepared to use only one of them, but I think a bug was added with a change that makes it use both. And maybe the laptop isn't prepared for this.
/drivers/acpi/x86/s2idle.c:462:
} else if (lps0_dsm_func_mask_microsoft > 0 && rev_id) {
lps0_dsm_func_mask_microsoft = -EINVAL;
acpi_handle_debug(adev->handle, "_DSM Using AMD method\n");
}but the rev_id is always 0 here, so both lps0_dsm_func_mask, lps0_dsm_func_mask_microsoft will be active.
Would removing " && rev_id" from the if solve the problem?
Mario what do you think?
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 218305] Ryzen 7 7840HS gets stuck at 544MHz frequency after resuming after unplugging the power cord during sleep
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=218305
--- Comment #149 from Mario Limonciello (AMD) ([email protected]) ---
Quoted 4 lines
The code would be prepared to use only one of them, but I think a bug was added with a change that makes it use both. And maybe the laptop isn't prepared for this.
Mario what do you think?
It was actually intended that both paths execute. From a discussion with my Windows colleagues this is the Windows behavior.
Quoted 2 lines
If you ever revert to the old BIOS version, please send us an acpidump so we can get closer to a solution.
I am still feeling this is an EC bug.
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 218305] Ryzen 7 7840HS gets stuck at 544MHz frequency after resuming after unplugging the power cord during sleep
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=218305
Artem S. Tashkinov ([email protected]) changed:
What |Removed |Added
----------------------------------------------------------------------------
Blocks| |221403
Referenced Bugs:
https://bugzilla.kernel.org/show_bug.cgi?id=221403
[Bug 221403] ThinkPad E14 Gen 7 (Hawk Point) CPU throttles to ~544MHz on battery - amd-pmf PMF Smart PC not advertised in BIOS
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 218305] Ryzen 7 7840HS gets stuck at 544MHz frequency after resuming after unplugging the power cord during sleep
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=218305
Artem S. Tashkinov ([email protected]) changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |[email protected]
--- Comment #150 from Artem S. Tashkinov ([email protected]) --- *** Bug 221403 has been marked as a duplicate of this bug. ***
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 218305] Ryzen 7 7840HS gets stuck at 544MHz frequency after resuming after unplugging the power cord during sleep
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=218305
--- Comment #151 from Márcio ([email protected]) ---
Maybe it's time to submit the quirk for the next kernel release, unless there are further tests to be done. Here, even with the updated kernel and firmware, the issue persists.
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 218305] Ryzen 7 7840HS gets stuck at 544MHz frequency after resuming after unplugging the power cord during sleep
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=218305
Artem S. Tashkinov ([email protected]) changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |[email protected]
--- Comment #152 from Artem S. Tashkinov ([email protected]) --- *** Bug 221744 has been marked as a duplicate of this bug. ***
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 218305] Ryzen 7 7840HS gets stuck at 544MHz frequency after resuming after unplugging the power cord during sleep
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=218305
--- Comment #153 from Artem S. Tashkinov ([email protected]) ---
Mario, someone used Claude to dig into the issue and here's what it has to say:
---------------------------------------------------------------
**Why it works on Windows:** AMD's Windows drivers explicitly re-initialize the SMU CPPC handshake
in their resume path. The Linux amd_pmc and amd-pstate drivers do not.
---
## How an upstream provider can fix this
### Kernel fix (correct layer — amd-pstate / amd_pmc)
drivers/cpufreq/amd-pstate.c — The driver needs a .resume() callback (or a syscore_ops.resume hook) that re-writes the CPPC desired_perf register for every online CPU.
In active mode this means re-issuing the CPPC performance request that was in effect before
suspend, forcing the SMU to re-accept OS-side CPPC control.
drivers/platform/x86/amd/pmc/pmc.c — The amd_pmc driver orchestrates the s2idle handshake.
On the exit path (amd_pmc_resume_handler) it could call a notifier that lets amd-pstate
re-initialize CPPC, ensuring the SMU is back under kernel control before user processes resume.
---------------------------------------------------------------
Is this doable/plausible?
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 218305] Ryzen 7 7840HS gets stuck at 544MHz frequency after resuming after unplugging the power cord during sleep
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=218305
--- Comment #154 from Mario Limonciello (AMD) ([email protected]) ---
Quoted 1 line
Is this doable/plausible?
Unfortunately; that is filled with hallucinations. Let me tear it apart.
Quoted 2 lines
**Why it works on Windows:** AMD's Windows drivers explicitly re-initialize the SMU CPPC handshake
AMD doesn't have a CPPC driver for Windows, it uses infrastructure built-into the OS.
Quoted 1 line
## How an upstream provider can fix this
If you have Claude code and you think this is viable, use Claude code to make a patch?
Quoted 2 lines
drivers/cpufreq/amd-pstate.c— The driver needs a.resume()callback (or a
syscore_ops.resume hook) that re-writes the CPPC desired_perf register for every online CPU.
There is already a resume hook, please see amd_pstate_resume() that updates the correct register (MSR_AMD_CPPC_REQ).
Quoted 2 lines
In active mode this means re-issuing the CPPC performance request that was in effect before suspend, forcing the SMU to re-accept OS-side CPPC control.
You mean like the code already does?
https://github.com/torvalds/linux/blob/v7.2-rc3/drivers/cpufreq/amd-pstate.c#L2108
Quoted 6 lines
drivers/platform/x86/amd/pmc/pmc.c— Theamd_pmcdriver orchestrates the s2idle handshake.
On the exit path (amd_pmc_resume_handler) it could call a notifier that letsamd-pstate
re-initialize CPPC, ensuring the SMU is back under kernel control before user processes resume.
That's not how s2idle resume works. amd_pmc suspend is unrolled through acpi_s2idle_restore_early_lps0() -> lps0_s2idle_devops_head.
Then acpi_s2idle_restore() is called and all devices resumed. amd-pstate already happens in the latter.
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 218305] Ryzen 7 7840HS gets stuck at 544MHz frequency after resuming after unplugging the power cord during sleep
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=218305
--- Comment #155 from Artem S. Tashkinov ([email protected]) --- Don't kill the messenger please :-)
It wasn't even me who had run Claude on this issue.
Thank you for your swift reply!
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 218305] Ryzen 7 7840HS gets stuck at 544MHz frequency after resuming after unplugging the power cord during sleep
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=218305
--- Comment #156 from Mario Limonciello (AMD) ([email protected]) ---
Quoted 1 line
Don't kill the messenger please :-)
Sorry; knee jerk reaction. LLMs can be a great tool, but you really need to push them to question early conclusions.
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 218305] Ryzen 7 7840HS gets stuck at 544MHz frequency after resuming after unplugging the power cord during sleep
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=218305
--- Comment #157 from [email protected] ---
Frequency stuck at ~500 MHz after suspend->charge->unplug AC->resume on:
* HP EliteBook 6 G1ah 14 inch Notebook PC
* AMD Ryzen 5 220 w/ Radeon 740M Graphics
* Platform Firmware Information
Vendor: HP
Version: X77 Ver. 01.04.06
Release Date: 05/12/2026* uname -a
Linux xe 7.1.3-arch1-2 #1 SMP PREEMPT_DYNAMIC Thu, 09 Jul 2026 x86_64 GNU/Linux
How to reproduce:
1) Start charging the laptop with lid closed
2) Detach laptop with lid *closed* from AC power
3) Open the lid. Then frequenccies on most cores remain stuck *low*:
# >> Cat files in /sys/devices/system/cpu/cpu*/cpufreq | sort-ed | uniq-ued:
/sys/devices/system/cpu/cpu0/cpufreq/scaling_driver: amd-pstate-epp /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor: powersave /sys/devices/system/cpu/cpu0/cpufreq/energy_performance_preference:balance_power
# grep cpu.MHz /proc/cpuinfo | cut -d: -f2| nl -v 0
0 544.363
1 544.358
2 520.431
3 519.626
4 520.400
5 1117.810
6 520.059
7 520.041
8 544.355
9 1117.810
10 520.488
11 1117.8104) Attach AC-power for 5 sec when the lid is *open*
5) Detach AC-power leaving the *lid open*. The cpu-frequencies 'wake up':
# >> Cat files in /sys/devices/system/cpu/cpu*/cpufreq | sort-ed | uniq-ued:
/sys/devices/system/cpu/cpu0/cpufreq/scaling_driver: amd-pstate-epp /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor: powersave /sys/devices/system/cpu/cpu0/cpufreq/energy_performance_preference:balance_power
# grep cpu.MHz /proc/cpuinfo | cut -d: -f2| nl -v 0
0 1365.791
1 1367.646
2 2278.527
3 1117.810
4 2278.704
5 1117.810
6 1364.481
7 1366.707
8 2152.118
9 1437.688
10 2275.372
11 2277.4646) Further repeated flipping the lid and re-opening when run on BAT0 retain the normal frequencies.
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 218305] Ryzen 7 7840HS gets stuck at 544MHz frequency after resuming after unplugging the power cord during sleep
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=218305
[email protected] changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |[email protected]
--- Comment #158 from [email protected] ---
I can reproduce what appears to be the same issue on a different HP AMD laptop.
Hardware and software:
* HP ZBook Power 16 inch G11 A Mobile Workstation PC
* Product number: 9A818AV
* AMD Ryzen 9 PRO 8945HS with Radeon 780M Graphics
* BIOS: W85 Ver. 01.10.05
* Embedded-controller firmware: 8.82
* Ubuntu 24.04.4 LTS
* Current kernel: Ubuntu 7.0.0-28-generic
* Also observed with Ubuntu 6.17.0-35-generic
* amd-pstate active / amd-pstate-epp
The issue occurs when the AC adapter state changes while the laptop is fully suspended.
Confirmed reproduction:
1. Suspend while connected to AC.
2. Wait until the laptop has fully entered suspend.
3. Disconnect AC while it is suspended.
4. Resume on battery.
5. All 16 logical CPUs may remain fixed at approximately 544 MHz, even under full CPU load.
The reverse sequence has also been observed:
1. Suspend while running on battery.
2. Connect AC while fully suspended.
3. Resume while connected to AC.
4. The CPUs may again remain fixed at approximately 544 MHz.
Changing powerprofilesctl between balanced and performance does not help.
When affected, Linux still reports:
* scaling_max_freq: approximately 5.263 GHz
* cpuinfo_max_freq: approximately 5.263 GHz
* CPU boost: enabled
* amd-pstate status: active
Briefly changing the AC adapter state again after resume immediately restores normal frequency scaling. Under the same 16-thread load, the CPU then reaches approximately 4.39 GHz.
Ubuntu downstream report:
Launchpad Bug #2162127
I have attached a combined log containing the CPU state before and after the recovery AC event, the cpufreq limits, and the relevant udev power-supply events.
The complete before/after evidence is attached to Ubuntu Launchpad Bug #2162127.
Key results from the attachment:
* Before the recovery AC event, all 16 logical CPUs remain at approximately 544 MHz under full load.
* After briefly changing the AC adapter state, the same test reaches approximately 4.39 GHz.
* scaling_max_freq and cpuinfo_max_freq remain approximately 5.263 GHz in both states.
* AMD P-State remains active, CPU boost remains enabled, and the power and platform profiles remain balanced.
* The recovery event is detected normally as POWER_SUPPLY_ONLINE=1; after disconnecting AC again, the system returns to POWER_SUPPLY_ONLINE=0 and battery discharging, while normal CPU performance remains restored.
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 218305] Ryzen 7 7840HS gets stuck at 544MHz frequency after resuming after unplugging the power cord during sleep
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=218305
--- Comment #159 from [email protected] ---
Created attachment 310539
--> https://bugzilla.kernel.org/attachment.cgi?id=310539&action=edit
Combined diagnostic evidence showing the CPU stuck at approximately 544 MHz under full load before an AC adapter state change, and recovering to approximately 4.39 GHz afterward. Includes cpufreq/amd-
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 218305] Ryzen 7 7840HS gets stuck at 544MHz frequency after resuming after unplugging the power cord during sleep
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=218305
[email protected] changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #310539|Combined diagnostic |Before/after CPU frequency
description|evidence showing the CPU |and AC power event logs
|stuck at approximately 544 |
|MHz under full load before |
|an AC adapter state change, |
|and recovering to |
|approximately 4.39 GHz |
|afterward. Includes |
|cpufreq/amd- |Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.