-
-
Notifications
You must be signed in to change notification settings - Fork 46
-
-
Notifications
You must be signed in to change notification settings - Fork 46
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AMD CPU Frequency Scaling Broken #8008
Comments
Yes, that's exactly what I'm expecting. The current driver only supports 3 P-states and 4 C-states for a AMD CPU. I would expect at least the same level as
I've read somewhere that linux didn't implement the extreme low idle frequency as Windows did, but I cannot find the original article, so my memory may be wrong. |
If we could have real, actual boost / idle states for AMD that'd be great. |
FWIW, I have a ThinkPad T14 with Ryzen 7 Pro 4750U (Renoir) that exhibited a lot of the same problems when Qubes 4.1 was in alpha and beta. But I think its been over a year now since those issues have subsided. That machine has a Qubes install performed with 4.1 alpha and upgraded/tweaked over the years (I had to shoehorn Linux 5.8 into it to get it to boot after install). First, my CPU clock appears to be fluidly scaling between 1400 and 3800MHz according to Also, I haven't needed Current dom0 kernel version is 6.1.1-1.fc32.qubes.x86_64 and xen version is 4.14.5-15. Here are the xen and linux lines from /etc/default/grub:
PS - dom0 was set to update from 'testing' until recently; many components may be from there. |
If I don't use |
I can't be sure, but I think a UEFI firmware upgrade was part of the solution for me. That definitely rings a bell. I did update the firmware at least once around the time the performance cleared up. Currently I can use any number of CPUs in dom0 without any of the lurching slowdowns returning. But I don't think this is necessarily related to the lack of CPU frequency scaling; its probably a separate issue. |
@Geblaat have you tried |
Yes, same result as with the vpcu parameters. I let it go on now, "Activation of DM RAID sets" succeeds eventually but "LVM event activation on device 253:0" does not and after about 9 minutes the booting fails when "Mounting /boot" fails. |
I would not say the frequency scaling the broken, but it has incomplete support (the ancient "powernow" frequency governor may be suboptimal by today's standard, and there's no support for low-power states below P2, a problem on laptops but not desktops) and it does not report Boost frequencies (but it's still enabled and managed by hardware itself). If you run a multi-core stress test and run The situation on Xen is similar to bare-metal FreeBSD, which behaves exactly the same way. |
Qubes OS release
4.1
Brief summary
CPU frequencies do not seem to scale properly, at least for the lower frequencies.
Steps to reproduce
Tested on:
Lenovo Thinkpad L14 Gen 3 AMD with Ryzen 7 Pro 5875u
Latest BIOS from Dec. 2022
Kernel: 6.1.5-1
EFI install.
(Also reported by @lunarthegrey on Ryzen 7 Pro 3700u on R4.0 with kernel 5.4.10-1: #4604 (comment))
In dom0, sudo xenpm get-cpufreq-para
Expected behavior
A low minimum frequency should be shown for powersaving and a maximum frequency of 4500MHz.
Frequencies should be able to be used.
Maybe implement
amd p-state
driver.Actual behavior
Minimum frequency shown is 1600MHz and maximum is only 2000MHz:
Changing governor to performance does not work.
BIOS setting to set CPU power usage to auto-saving does not make any difference.
Just as the reporter of issue #4604 mentioned later, when using 'xenpm start 1', the average frequency reported under load are actually higher than the reported maximum. I've seen 4000-4100MHz under load.
When idle, it is never lower than 1600MHz though.
Notes
It is also necessary to use
clocksource=tsc tsc=unstable hpetbroadcast=0
for proper performance. Not sure if related:#6055
The text was updated successfully, but these errors were encountered: