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_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]


Now when I boot with /proc/cmdline: 

BOOT_IMAGE=/vmlinuz-5.19.0-31-generic root=/dev/mapper/system-root ro
initcall_blacklist=acpi_cpufreq_init amd_pstate.enable=1
amd_pstate.shared_mem=1

There is no governor working with the kernel..
cpufreq-info output:

cpufrequtils 008: cpufreq-info (C) Dominik Brodowski 2004-2009
Report errors and bugs to cpuf...@vger.kernel.org, please.
analyzing CPU 0:
  no or unknown cpufreq driver is active on this CPU
  maximum transition latency: 4294.55 ms.
analyzing CPU 1:
  no or unknown cpufreq driver is active on this CPU
  maximum transition latency: 4294.55 ms.
analyzing CPU 2:
  no or unknown cpufreq driver is active on this CPU
  maximum transition latency: 4294.55 ms.
analyzing CPU 3:
  no or unknown cpufreq driver is active on this CPU
  maximum transition latency: 4294.55 ms.
analyzing CPU 4:
  no or unknown cpufreq driver is active on this CPU
  maximum transition latency: 4294.55 ms.
analyzing CPU 5:
  no or unknown cpufreq driver is active on this CPU
  maximum transition latency: 4294.55 ms.
analyzing CPU 6:
  no or unknown cpufreq driver is active on this CPU
  maximum transition latency: 4294.55 ms.
analyzing CPU 7:
  no or unknown cpufreq driver is active on this CPU
  maximum transition latency: 4294.55 ms.
analyzing CPU 8:
  no or unknown cpufreq driver is active on this CPU
  maximum transition latency: 4294.55 ms.
analyzing CPU 9:
  no or unknown cpufreq driver is active on this CPU
  maximum transition latency: 4294.55 ms.
analyzing CPU 10:
  no or unknown cpufreq driver is active on this CPU
  maximum transition latency: 4294.55 ms.
analyzing CPU 11:
  no or unknown cpufreq driver is active on this CPU
  maximum transition latency: 4294.55 ms.
analyzing CPU 12:
  no or unknown cpufreq driver is active on this CPU
  maximum transition latency: 4294.55 ms.
analyzing CPU 13:
  no or unknown cpufreq driver is active on this CPU
  maximum transition latency: 4294.55 ms.
analyzing CPU 14:
  no or unknown cpufreq driver is active on this CPU
  maximum transition latency: 4294.55 ms.
analyzing CPU 15:
  no or unknown cpufreq driver is active on this CPU
  maximum transition latency: 4294.55 ms.


Booting without the custom proc line:

/proc/cmdline: BOOT_IMAGE=/vmlinuz-5.19.0-31-generic
root=/dev/mapper/system-root ro

governor is acpi_cpufreq
analyzing CPU 15:
  driver: acpi-cpufreq
  CPUs which run at the same hardware frequency: 15
  CPUs which need to have their frequency coordinated by software: 15
  maximum transition latency: 4294.55 ms.
  hardware limits: 1.40 GHz - 4.37 GHz
  available frequency steps: 1.80 GHz, 1.70 GHz, 1.40 GHz
  available cpufreq governors: conservative, ondemand, userspace, powersave, 
performance, schedutil
  current policy: frequency should be within 1.40 GHz and 1.80 GHz.
                  The governor "ondemand" may decide which speed to use
                  within this range.
  current CPU frequency is 1.70 GHz (asserted by call to hardware).
  cpufreq stats: 1.80 GHz:18.76%, 1.70 GHz:5.46%, 1.40 GHz:75.77%  (573)

where amd-pstate is not there anymore

Furthermore with the downgraded kernel:

cmdline: BOOT_IMAGE=/vmlinuz-5.19.0-29-generic root=/dev/mapper/system-
root ro

cpufreq-info:
analyzing CPU 15:
  driver: amd-pstate
  CPUs which run at the same hardware frequency: 15
  CPUs which need to have their frequency coordinated by software: 15
  maximum transition latency: 131 us.
  hardware limits: 400 MHz - 4.37 GHz
  available cpufreq governors: conservative, ondemand, userspace, powersave, 
performance, schedutil
  current policy: frequency should be within 400 MHz and 2.50 GHz.
                  The governor "ondemand" may decide which speed to use
                  within this range.
  current CPU frequency is 550 MHz.



** Also affects: linux (Ubuntu)
   Importance: Undecided
       Status: New

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux-signed in Ubuntu.
https://bugs.launchpad.net/bugs/2006942

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

Status in linux package in Ubuntu:
  Incomplete
Status in linux-signed package in Ubuntu:
  New

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.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/2006942/+subscriptions


-- 
Mailing list: https://launchpad.net/~kernel-packages
Post to     : kernel-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kernel-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to