With linux kernel 5.19.0-31 amd_pstate is not used, while with 5.19.0-29 and lower does

Bug #2006942 reported by Vassilis Aretakis
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Confirmed
Undecided
Unassigned
linux-signed (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

After upgrading to 5.19.0-31 (two of my systems) CPU driver changes to acpi-cpufreq. instead of amd_pstate.

This causes cpu to keep higher frequency and increased consumption.

```
root@zeus:/sys/devices/system/cpu/cpufreq/policy0# ls -l
total 0
-r--r--r-- 1 root root 4096 Feb 10 13:27 affected_cpus
-r--r--r-- 1 root root 4096 Feb 10 13:28 amd_pstate_highest_perf
-r--r--r-- 1 root root 4096 Feb 10 13:28 amd_pstate_lowest_nonlinear_freq
-r--r--r-- 1 root root 4096 Feb 10 13:28 amd_pstate_max_freq
-r--r--r-- 1 root root 4096 Feb 10 12:54 cpuinfo_max_freq
-r--r--r-- 1 root root 4096 Feb 10 13:27 cpuinfo_min_freq
-r--r--r-- 1 root root 4096 Feb 10 13:27 cpuinfo_transition_latency
-r--r--r-- 1 root root 4096 Feb 10 13:27 related_cpus
-r--r--r-- 1 root root 4096 Feb 10 12:54 scaling_available_governors
-r--r--r-- 1 root root 4096 Feb 10 13:27 scaling_cur_freq
-r--r--r-- 1 root root 4096 Feb 10 13:27 scaling_driver
-rw-r--r-- 1 root root 4096 Feb 10 12:54 scaling_governor
-rw-r--r-- 1 root root 4096 Feb 10 12:54 scaling_max_freq
-rw-r--r-- 1 root root 4096 Feb 10 12:54 scaling_min_freq
-rw-r--r-- 1 root root 4096 Feb 10 13:28 scaling_setspeed
root@zeus:/sys/devices/system/cpu/cpufreq/policy0#
```
with newer kernel also policy files for amd_pstate

Tried it on 2 Asus PN51-S1 systems with AMD Ryzen 7 5700U

I am currently staying at 5.19.0-29 as it is working better.
---
ProblemType: Bug
AlsaVersion: Advanced Linux Sound Architecture Driver Version k5.19.0-31-generic.
AplayDevices: Error: [Errno 2] No such file or directory: 'aplay'
ApportVersion: 2.23.1-0ubuntu3
Architecture: amd64
ArecordDevices: Error: [Errno 2] No such file or directory: 'arecord'
AudioDevicesInUse: Error: command ['fuser', '-v', '/dev/snd/controlC1', '/dev/snd/hwC1D0', '/dev/snd/pcmC1D0c', '/dev/snd/pcmC1D0p', '/dev/snd/by-path', '/dev/snd/controlC0', '/dev/snd/hwC0D0', '/dev/snd/pcmC0D8p', '/dev/snd/pcmC0D7p', '/dev/snd/pcmC0D3p', '/dev/snd/seq', '/dev/snd/timer'] failed with exit code 1:
CRDA: N/A
Card0.Amixer.info: Error: [Errno 2] No such file or directory: 'amixer'
Card0.Amixer.values: Error: [Errno 2] No such file or directory: 'amixer'
Card1.Amixer.info: Error: [Errno 2] No such file or directory: 'amixer'
Card1.Amixer.values: Error: [Errno 2] No such file or directory: 'amixer'
CasperMD5CheckResult: pass
DistroRelease: Ubuntu 22.10
InstallationDate: Installed on 2022-11-18 (85 days ago)
InstallationMedia: Ubuntu-Server 22.10 "Kinetic Kudu" - Release amd64 (20221019)
IwConfig: Error: [Errno 2] No such file or directory: 'iwconfig'
MachineType: ASUSTeK COMPUTER INC. MINIPC PN51-S1
Package: linux-signed (not installed)
ProcEnviron:
 TERM=xterm-256color
 PATH=(custom, no user)
 LANG=en_US.UTF-8
 SHELL=/bin/bash
ProcFB:

ProcKernelCmdLine: BOOT_IMAGE=/vmlinuz-5.19.0-31-generic root=/dev/mapper/system-root ro
ProcVersionSignature: Ubuntu 5.19.0-31.32-generic 5.19.17
RelatedPackageVersions:
 linux-restricted-modules-5.19.0-31-generic N/A
 linux-backports-modules-5.19.0-31-generic N/A
 linux-firmware 20220923.gitf09bebf3-0ubuntu1.3
RfKill: Error: [Errno 2] No such file or directory: 'rfkill'
Tags: kinetic uec-images
Uname: Linux 5.19.0-31-generic x86_64
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: N/A
_MarkForUpload: True
dmi.bios.date: 08/10/2022
dmi.bios.release: 1.12
dmi.bios.vendor: ASUSTeK COMPUTER INC.
dmi.bios.version: 0112
dmi.board.asset.tag: Default string
dmi.board.name: PN51-S1
dmi.board.vendor: ASUSTeK COMPUTER INC.
dmi.board.version: To be filled by O.E.M.
dmi.chassis.asset.tag: Default string
dmi.chassis.type: 35
dmi.chassis.vendor: Default string
dmi.chassis.version: Default string
dmi.modalias: dmi:bvnASUSTeKCOMPUTERINC.:bvr0112:bd08/10/2022:br1.12:svnASUSTeKCOMPUTERINC.:pnMINIPCPN51-S1:pvr0112:rvnASUSTeKCOMPUTERINC.:rnPN51-S1:rvrTobefilledbyO.E.M.:cvnDefaultstring:ct35:cvrDefaultstring:sku:
dmi.product.family: Vivo PC
dmi.product.name: MINIPC PN51-S1
dmi.product.version: 0112
dmi.sys.vendor: ASUSTeK COMPUTER INC.

Revision history for this message
Vassilis Aretakis (vassilis-f) wrote :
Download full text (7.1 KiB)

On 5.19.0-29 kernel all is different. Pretty serious issue!

More details of the cpu:

processor : 14
vendor_id : AuthenticAMD
cpu family : 23
model : 104
model name : AMD Ryzen 7 5700U with Radeon Graphics
stepping : 1
microcode : 0x8608102
cpu MHz : 1913.462
cache size : 512 KB
physical id : 0
siblings : 16
core id : 7
cpu cores : 8
apicid : 14
initial apicid : 14
fpu : yes
fpu_exception : yes
cpuid level : 16
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt pdpe1gb rdtscp lm constant_tsc rep_good nopl nonstop_tsc cpuid extd_apicid aperfmperf rapl pni pclmulqdq monitor ssse3 fma cx16 sse4_1 sse4_2 movbe popcnt aes xsave avx f16c rdrand lahf_lm cmp_legacy svm extapic cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw ibs skinit wdt tce topoext perfctr_core perfctr_nb bpext perfctr_llc mwaitx cpb cat_l3 cdp_l3 hw_pstate ssbd mba ibrs ibpb stibp vmmcall fsgsbase bmi1 avx2 smep bmi2 cqm rdt_a rdseed adx smap clflushopt clwb sha_ni xsaveopt xsavec xgetbv1 xsaves cqm_llc cqm_occup_llc cqm_mbm_total cqm_mbm_local clzero irperf xsaveerptr rdpru wbnoinvd cppc arat npt lbrv svm_lock nrip_save tsc_scale vmcb_clean flushbyasid decodeassists pausefilter pfthreshold avic v_vmsave_vmload vgif v_spec_ctrl umip rdpid overflow_recov succor smca
bugs : sysret_ss_attrs spectre_v1 spectre_v2 spec_store_bypass retbleed
bogomips : 3593.37
TLB size : 3072 4K pages
clflush size : 64
cache_alignment : 64
address sizes : 48 bits physical, 48 bits virtual
power management: ts ttp tm hwpstate cpb eff_freq_ro [13] [14]

processor : 15
vendor_id : AuthenticAMD
cpu family : 23
model : 104
model name : AMD Ryzen 7 5700U with Radeon Graphics
stepping : 1
microcode : 0x8608102
cpu MHz : 2717.814
cache size : 512 KB
physical id : 0
siblings : 16
core id : 7
cpu cores : 8
apicid : 15
initial apicid : 15
fpu : yes
fpu_exception : yes
cpuid level : 16
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt pdpe1gb rdtscp lm constant_tsc rep_good nopl nonstop_tsc cpuid extd_apicid aperfmperf rapl pni pclmulqdq monitor ssse3 fma cx16 sse4_1 sse4_2 movbe popcnt aes xsave avx f16c rdrand lahf_lm cmp_legacy svm extapic cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw ibs skinit wdt tce topoext perfctr_core perfctr_nb bpext perfctr_llc mwaitx cpb cat_l3 cdp_l3 hw_pstate ssbd mba ibrs ibpb stibp vmmcall fsgsbase bmi1 avx2 smep bmi2 cqm rdt_a rdseed adx smap clflushopt clwb sha_ni xsaveopt xsavec xgetbv1 xsaves cqm_llc cqm_occup_llc cqm_mbm_total cqm_mbm_local clzero irperf xsaveerptr rdpru wbnoinvd cppc arat npt lbrv svm_lock nrip_save tsc_scale vmcb_clean flushbyasid decodeassists pausefilter pfthreshold avic v_vmsave_vmload vgif v_spec_ctrl umip rdpid overflow_recov succor smca
bugs : sysret_ss...

Read more...

Revision history for this message
Ubuntu Kernel Bot (ubuntu-kernel-bot) wrote : Missing required logs.

This bug is missing log files that will aid in diagnosing the problem. While running an Ubuntu kernel (not a mainline or third-party kernel) please enter the following command in a terminal window:

apport-collect 2006942

and then change the status of the bug to 'Confirmed'.

If, due to the nature of the issue you have encountered, you are unable to run this command, please add a comment stating that fact and change the bug status to 'Confirmed'.

This change has been made by an automated script, maintained by the Ubuntu Kernel Team.

Changed in linux (Ubuntu):
status: New → Incomplete
Revision history for this message
Vassilis Aretakis (vassilis-f) wrote : AlsaDevices.txt

apport information

tags: added: apport-collected kinetic uec-images
description: updated
Revision history for this message
Vassilis Aretakis (vassilis-f) wrote : Card0.Codecs.codec.0.txt

apport information

Revision history for this message
Vassilis Aretakis (vassilis-f) wrote : Card1.Codecs.codec.0.txt

apport information

Revision history for this message
Vassilis Aretakis (vassilis-f) wrote : CurrentDmesg.txt

apport information

Revision history for this message
Vassilis Aretakis (vassilis-f) wrote : Lspci.txt

apport information

Revision history for this message
Vassilis Aretakis (vassilis-f) wrote : Lspci-vt.txt

apport information

Revision history for this message
Vassilis Aretakis (vassilis-f) wrote : Lsusb.txt

apport information

Revision history for this message
Vassilis Aretakis (vassilis-f) wrote : Lsusb-t.txt

apport information

Revision history for this message
Vassilis Aretakis (vassilis-f) wrote : Lsusb-v.txt

apport information

Revision history for this message
Vassilis Aretakis (vassilis-f) wrote : PciMultimedia.txt

apport information

Revision history for this message
Vassilis Aretakis (vassilis-f) wrote : ProcCpuinfo.txt

apport information

Revision history for this message
Vassilis Aretakis (vassilis-f) wrote : ProcCpuinfoMinimal.txt

apport information

Revision history for this message
Vassilis Aretakis (vassilis-f) wrote : ProcInterrupts.txt

apport information

Revision history for this message
Vassilis Aretakis (vassilis-f) wrote : ProcModules.txt

apport information

Revision history for this message
Vassilis Aretakis (vassilis-f) wrote : UdevDb.txt

apport information

Revision history for this message
Vassilis Aretakis (vassilis-f) wrote : WifiSyslog.txt

apport information

Revision history for this message
Vassilis Aretakis (vassilis-f) wrote : acpidump.txt

apport information

Changed in linux (Ubuntu):
status: Incomplete → Confirmed
Revision history for this message
Pellaeon Lin (pellaeon) wrote :

I'm observing the same issue on AMD Ryzen 7 PRO 5850U.

Revision history for this message
Mirco Vivaldi (mirco-vivaldi) wrote :

I have the same problem with a ryzen 5700G

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in linux-signed (Ubuntu):
status: New → Confirmed
Revision history for this message
Kai-Heng Feng (kaihengfeng) wrote :

It gets disabled by commit ("cpufreq: amd-pstate: add amd-pstate driver parameter for mode selection").

Use kernel parameter "amd_pstate=passive" to enable it once again.

Revision history for this message
Vassilis Aretakis (vassilis-f) wrote :

Isn't it strange to change behaviour on a Kernel, especially amd_pstate which is not loaded anymore. BUT intel_pstate is still.

shouldn't on a patch not to change this? it is really. Bad, how many users will suffer with their laptops, not understanding what is causing their battery drains.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.