CachyOS/linux-cachyos

amd-pstate: Frequency wrongly reported

Closed this issue · 14 comments

i am using 6.9.2-1-cachyos with amd-pstate(passive) on Ryzen 5 5500u. In any cpu governor the cpu freq is sticking with 400mhz and sometimes going below 200mhz. the entire system is completely slow.
image

i am using 6.9.2-1-cachyos with amd-pstate(passive) on Ryzen 5 5500u. In any cpu governor the cpu freq is sticking with 400mhz and sometimes going below 200mhz. the entire system is completely slow. image

Does this also happen on amd-pstate active?

Actually, we just did a little push for amd-pstate-epp memory leak for the 6.9 Kernel, besides that there is no difference to 6.9.1.
Is that issue also present on 6.9.1?

Used branch:
https://github.com/CachyOS/linux/commits/6.9/amd-pstate-stable/

cc: @superm1

Edit: ignore the last patch in the above mentioned branch. This is currently not included in the 6.9.2 kernel.

the amd-pstate active is working fine as normal. the passive is the problem

Could you please test following kernel?

sudo pacman -U https://archive.cachyos.org/kernel/linux-cachyos-6.9.2-1-x86_64_v3.pkg.tar.zst https://archive.cachyos.org/kernel/linux-cachyos-headers-6.9.2-1-x86_64_v3.pkg.tar.zst

If you have a nvidia card, aditonally also:
sudo pacman -U https://archive.cachyos.org/kernel/linux-cachyos-nvidia-6.9.2-1-x86_64_v3.pkg.tar.zst

This contains additonally following patch:
CachyOS/linux@5c16723

If it doesn't help, we need to start bisecting.

Totally agree on the suggested patch. If that doesn't help the Fast CPPC patch series is the next thing to try.

Could you please test following kernel?

sudo pacman -U https://archive.cachyos.org/kernel/linux-cachyos-6.9.2-1-x86_64_v3.pkg.tar.zst https://archive.cachyos.org/kernel/linux-cachyos-headers-6.9.2-1-x86_64_v3.pkg.tar.zst

If you have a nvidia card, aditonally also: sudo pacman -U https://archive.cachyos.org/kernel/linux-cachyos-nvidia-6.9.2-1-x86_64_v3.pkg.tar.zst

This contains additonally following patch: CachyOS/linux@5c16723

If it doesn't help, we need to start bisecting.

this kernel works as expected
image

Thanks! Glad to hear. Ive queued it for the next revision.

@superm1 Maybe CC the patchset to stable (if it not already happened)

It's got a fixes tag, it should go back.
but it would be helpful to respond to it publicly with a Tested-by tag. Here's the Lore URL:
https://lore.kernel.org/linux-pm/20240527051128.110091-1-Dhananjay.Ugwekar@amd.com/

Very good.
@jothi-prasath Do you know how to send mail to the kernel mailing list? Otherwise I would send it.

In schedutil the cpufreq not touching the 400mhz but in ondemand it touches 400mhz. Is that normal?

image
image

Posed on the lkml mail thread tested by.
Actually, sorry for the failed quoting. Hope its fine.

Fixed with cd66bf5

Should land in the next hours into the repository. Thanks for reporting!

In schedutil the cpufreq not touching the 400mhz but in ondemand it touches 400mhz. Is that normal?

image image

@ptr1337

In schedutil the cpufreq not touching the 400mhz but in ondemand it touches 400mhz. Is that normal?
image image

@ptr1337

Hi Jothi,

We are actually not modifying the behaviour of schedutil. Schedutil handles the frequency depending on the scheduler input (in an easy explaination), so I would guess this is working as intended.

amd-pstate-guided does offer a bit better schedutil performance. Maybe check their if it does downscale.

In schedutil the cpufreq not touching the 400mhz but in ondemand it touches 400mhz. Is that normal?

@ptr1337 I am experiencing the same thing with passive and guided schedutil in 6.9.3 that the frequency won't go under the "AMD PSTATE Lowest Non-linear Performance"