Bug 218686 - Fail to set energy_performance_preference of amd processor on asus ga403uv
Summary: Fail to set energy_performance_preference of amd processor on asus ga403uv
Status: RESOLVED DOCUMENTED
Alias: None
Product: Power Management
Classification: Unclassified
Component: cpufreq (show other bugs)
Hardware: AMD Linux
: P3 normal
Assignee: linux-pm@vger.kernel.org
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-04-06 02:56 UTC by al0uette
Modified: 2024-04-23 07:25 UTC (History)
3 users (show)

See Also:
Kernel Version: 6.8.x, 6.9.0-rc1
Subsystem:
Regression: No
Bisected commit-id:


Attachments
ssdt table containing _CPC things (251.70 KB, text/x-csrc)
2024-04-06 02:56 UTC, al0uette
Details
cpuinfo (28.10 KB, text/plain)
2024-04-10 05:33 UTC, al0uette
Details
output (114.19 KB, text/plain)
2024-04-10 06:17 UTC, al0uette
Details
Screenshot of HWinfo64 (16.23 KB, image/png)
2024-04-11 04:19 UTC, al0uette
Details
Screenshot of Windows event viewer (84.27 KB, image/png)
2024-04-11 04:20 UTC, al0uette
Details

Description al0uette 2024-04-06 02:56:57 UTC
Created attachment 306091 [details]
ssdt table containing _CPC things

I enabled amd-pstate-epp driver by appending 'amd_pstate=active' to kernel cmdline, and set scaling_governer to powersave, and

'cat /sys/devices/system/cpu/cpu*/cpufreq/energy_performance_available_preferences'

do show

'default performance balance_performance balance_power power'.

However when I try to change epp to anything other than 'performance'(which is the default) with something like

'echo power |sudo tee /sys/devices/system/cpu/cpufreq/policy*/energy_performance_preference',

I get 'tee: /sys/devices/system/cpu/cpufreq/policy0/energy_performance_preference: Unknown error 524', which, according to source code, I guess is ENOTSUPP. And I guess it's because cppc_set_epp_perf() in     linux/drivers/acpi/cppc_acpi.c checks CPC_IN_PCC(epp_set_reg), and think the register doesn't exist. However I do see the _CPC things in my ssdt. Don't know its' a bug in kernel or BIOS so I report it here
Comment 1 al0uette 2024-04-10 03:36:05 UTC
can anyone take a look at this issue?
Comment 2 Mario Limonciello (AMD) 2024-04-10 05:28:41 UTC
This is a modern machine (Phoenix) that should support X86_FEATURE_CPPC.  Do you "need" to set amd_pstate=active on the kernel command line?  If so, then that points at a bigger problem to me.  That's supposed to be the default on machines like yours.

Can you please share /proc/cpuinfo?

I suggest turning on dynamic debug for drivers/cpufreq/amd-pstate.c while reproducing this error and then sharing the snippet it has with the messages that occurred.

https://www.kernel.org/doc/html/v6.9-rc3/admin-guide/dynamic-debug-howto.html
Comment 3 al0uette 2024-04-10 05:33:32 UTC
Created attachment 306116 [details]
cpuinfo

I'm not sure do I need to append amd_pstate=active to commandline to enable amd-pstate-epp, I'll try to boot without it and see which governer is in use.

As for the /proc/cpuinfo, I've uploaded in attachments
Comment 4 al0uette 2024-04-10 05:39:05 UTC
OK without that parameter my system uses schedutil as scaling_governer :(
Comment 5 Perry Yuan(AMD) 2024-04-10 05:41:03 UTC
Hi,please help to provide this output with below commands.

# cd /sys/devices/system/cpu/cpu0/cpufreq
# grep . *
#sudo rdmsr 0xc00102b3 -a
#lscpu -ae
#dmesg
Comment 6 al0uette 2024-04-10 05:46:24 UTC
(In reply to Perry Yuan(AMD) from comment #5)
> Hi,please help to provide this output with below commands.
> 
> # cd /sys/devices/system/cpu/cpu0/cpufreq
> # grep . *
> #sudo rdmsr 0xc00102b3 -a
> #lscpu -ae
> #dmesg

Should I do this with amd_pstate=active commandline?
Comment 7 Perry Yuan(AMD) 2024-04-10 05:48:47 UTC
(In reply to al0uette from comment #6)
> (In reply to Perry Yuan(AMD) from comment #5)
> > Hi,please help to provide this output with below commands.
> > 
> > # cd /sys/devices/system/cpu/cpu0/cpufreq
> > # grep . *
> > #sudo rdmsr 0xc00102b3 -a
> > #lscpu -ae
> > #dmesg
> 
> Should I do this with amd_pstate=active commandline?

Yes, if your kernel is not updated to include the patches which make the amd_pstate_epp as the default mode, you would need to add amd_pstate=active commandline.

After you added the amd_pstate=active and boot system up, we can check why  the EPP values cannot be changed. 

Perry.
Comment 8 al0uette 2024-04-10 06:17:45 UTC
Created attachment 306117 [details]
output
Comment 9 al0uette 2024-04-10 06:19:00 UTC
(In reply to Perry Yuan(AMD) from comment #7)
> (In reply to al0uette from comment #6)
> > (In reply to Perry Yuan(AMD) from comment #5)
> > > Hi,please help to provide this output with below commands.
> > > 
> > > # cd /sys/devices/system/cpu/cpu0/cpufreq
> > > # grep . *
> > > #sudo rdmsr 0xc00102b3 -a
> > > #lscpu -ae
> > > #dmesg
> > 
> > Should I do this with amd_pstate=active commandline?
> 
> Yes, if your kernel is not updated to include the patches which make the
> amd_pstate_epp as the default mode, you would need to add amd_pstate=active
> commandline.
> 
> After you added the amd_pstate=active and boot system up, we can check why 
> the EPP values cannot be changed. 
> 
> Perry.

I've uploaded my output. BTW I do use a quite new kernel (6.9.0-rc1), however without amd_pstate=active my system uses acpi-cpufreq :(
Comment 10 Perry Yuan(AMD) 2024-04-10 06:26:11 UTC
# sudo apt install msr-tools
# sudo rdmsr 0xc00102b3 -a
please try this to capture the msr values.
Comment 11 al0uette 2024-04-10 06:27:40 UTC
(In reply to Perry Yuan(AMD) from comment #10)
> # sudo apt install msr-tools
> # sudo rdmsr 0xc00102b3 -a
> please try this to capture the msr values.

I did capture msr value, but it shows segmentation fault, which has been presented in my output
Comment 12 al0uette 2024-04-10 06:29:36 UTC
[  107.095506] rdmsr[3791]: segfault at fffffffffffffff2 ip 00000000004019ee sp 00007ffd3b1558f0 error 5 in rdmsr[401000+1000] likely on CPU 2 (core 2, socket 0)
[  107.095526] Code: 89 44 24 08 31 c0 48 89 e6 e8 ee f6 ff ff 85 c0 74 40 8d 58 ff 0f 1f 80 00 00 00 00 48 8b 04 24 4c 63 e3 31 f6 ba 0a 00 00 00 <4a> 8b 3c e0 48 83 c7 13 e8 b5 f6 ff ff 89 ef 89 c6 e8 fc fa ff ff

This part is already included in my output
Comment 13 al0uette 2024-04-10 06:42:48 UTC
(In reply to Perry Yuan(AMD) from comment #10)
> # sudo apt install msr-tools
> # sudo rdmsr 0xc00102b3 -a
> please try this to capture the msr values.

It turns out that the segfault is cause by my distribution/kernel version. I changed to archlinux with 6.9.0-rc2 and got all zeros after executing rdmsr
Comment 14 Perry Yuan(AMD) 2024-04-10 06:43:49 UTC
(In reply to al0uette from comment #13)
> (In reply to Perry Yuan(AMD) from comment #10)
> > # sudo apt install msr-tools
> > # sudo rdmsr 0xc00102b3 -a
> > please try this to capture the msr values.
> 
> It turns out that the segfault is cause by my distribution/kernel version. I
> changed to archlinux with 6.9.0-rc2 and got all zeros after executing rdmsr

Got it, I will get one same CPU system to check the issue. 
thanks for the issue reporting.


Perry.
Comment 15 Perry Yuan(AMD) 2024-04-10 06:47:24 UTC
Could you check the BIOS setting for the CPPC enablement?

1. boot into BIOS
2. turn on the CPPC "CBS — SMU Feature — Enable CPPC"
Comment 16 al0uette 2024-04-10 06:49:54 UTC
(In reply to Perry Yuan(AMD) from comment #15)
> Could you check the BIOS setting for the CPPC enablement?
> 
> 1. boot into BIOS
> 2. turn on the CPPC "CBS — SMU Feature — Enable CPPC"

Asus don't provide that option in BIOS, I guess I can only do that via Smokeless UMAF? But it's not officially supported.
Comment 17 al0uette 2024-04-10 06:51:51 UTC
(In reply to Perry Yuan(AMD) from comment #14)
> (In reply to al0uette from comment #13)
> > (In reply to Perry Yuan(AMD) from comment #10)
> > > # sudo apt install msr-tools
> > > # sudo rdmsr 0xc00102b3 -a
> > > please try this to capture the msr values.
> > 
> > It turns out that the segfault is cause by my distribution/kernel version.
> I
> > changed to archlinux with 6.9.0-rc2 and got all zeros after executing rdmsr
> 
> Got it, I will get one same CPU system to check the issue. 
> thanks for the issue reporting.
> 
> 
> Perry.

Thank you too for your response. I got zero response from nvidia guys after reporting a bug to them ;)
Comment 18 Perry Yuan(AMD) 2024-04-10 06:55:12 UTC
I guess all the OEMs should provide the option to users,
just need to find it.
How about this path?
Advanced-> AMD CBS -> NBIO Common options -> SMU Common Options-> CPPC
Comment 19 al0uette 2024-04-10 07:02:35 UTC
(In reply to Perry Yuan(AMD) from comment #18)
> I guess all the OEMs should provide the option to users,
> just need to find it.
> How about this path?
> Advanced-> AMD CBS -> NBIO Common options -> SMU Common Options-> CPPC

No, they just don't provide it, you can take a look of this picture.

https://www.notebookcheck.pl/fileadmin/_processed_/f/9/csm_bios_3_2616b186e4.jpg

original post here:

https://www.notebookcheck.pl/Recenzja-Asus-ROG-Zephyrus-M-GM501GS.299168.0.html

Though my BIOS is slightly different from that, but they still don't provide that option.
Comment 20 Perry Yuan(AMD) 2024-04-10 07:12:10 UTC
Hi bro,
I checked your cpuinfo log, the CPPC is not enabled on your system, so the MSR will not work at all, EPP values need to update through MSR interface and you also see the crash log when you try to read or write MSR.



for example, this is captured from my system, lscpu need to expose the cppc flag on your system like mine.
------------------------------------------------------
    CPU family:          25
    Model:               116
#  lscpu | grep cppc
rdpru wbnoinvd <CPPC> arat npt lbrv...
------------------------------------------------------


If your system BIOS have no such option, it will not allow amd pstate driver work as expected. 
 
Please contact with ASUS to request new BIOS to enable CPPC for your system.

Perry.
Comment 21 al0uette 2024-04-10 07:21:10 UTC
Thank you for all of your help. But I don't know how to contact with ASUS to request new BIOS, can you please tell me how?
Comment 22 Perry Yuan(AMD) 2024-04-10 07:26:43 UTC
(In reply to al0uette from comment #21)
> Thank you for all of your help. But I don't know how to contact with ASUS to
> request new BIOS, can you please tell me how?

I guess you can get contact window by searching the "ASUS Support" or service call/asus contact support something like that.
Comment 23 al0uette 2024-04-10 07:27:24 UTC
OK, thank you.
Comment 24 Mario Limonciello (AMD) 2024-04-10 16:08:08 UTC
As this is caused by a BIOS issue that we can't do anything about in Linux, closing the issue.

FWIW if you're getting resistance from ASUS in fixing it you can try to reproduce it in Windows.  AFAICT HWinfo64 will report whether CPPC is working or not.

https://www.hwinfo.com/forum/threads/how-does-hwinfo-query-the-cppc-preferred-cores-data.7927/
Comment 25 al0uette 2024-04-11 04:18:45 UTC
Strangely I found CPPC do work on Windows
Comment 26 al0uette 2024-04-11 04:19:49 UTC
Created attachment 306126 [details]
Screenshot of HWinfo64
Comment 27 al0uette 2024-04-11 04:20:19 UTC
Created attachment 306127 [details]
Screenshot of Windows event viewer
Comment 28 xiaojian.du 2024-04-11 05:29:04 UTC
confirmed from another Phoenix 7840HS platform:
CPPC flag is exposed by BIOS.
So, on your 8945H CPU platform, it is very possible that ASUS doesn't enable the CPPC in the BIOS.
I see this BIOS is built at 02/15/2024
"DMI: ASUSTeK COMPUTER INC. ROG Zephyrus G14 GA403UV_GA403UV/GA403UV, BIOS GA403UV.303 02/15/2024"

~$ cat /proc/cpuinfo | grep cppc
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 amd_lbr_v2 nopl nonstop_tsc cpuid extd_apicid aperfmperf rapl pni pclmulqdq monitor ssse3 fma cx16 sse4_1 sse4_2 x2apic 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 perfmon_v2 ibrs ibpb stibp ibrs_enhanced vmmcall fsgsbase bmi1 avx2 smep bmi2 erms invpcid cqm rdt_a avx512f avx512dq rdseed adx smap avx512ifma clflushopt clwb avx512cd sha_ni avx512bw avx512vl xsaveopt xsavec xgetbv1 xsaves cqm_llc cqm_occup_llc cqm_mbm_total cqm_mbm_local avx512_bf16 clzero irperf xsaveerptr rdpru wbnoinvd **cppc** arat npt lbrv svm_lock nrip_save tsc_scale vmcb_clean flushbyasid decodeassists pausefilter pfthreshold v_vmsave_vmload vgif x2avic v_spec_ctrl vnmi avx512vbmi umip pku ospke avx512_vbmi2 gfni vaes vpclmulqdq avx512_vnni avx512_bitalg avx512_vpopcntdq rdpid overflow_recov succor smca fsrm flush_l1d


BTW, suppose you're using a test kernel 6.9-rc built by yourslef,, need to check kernel building config file to enable msr support:
make menucofnig  -> Processor type and features -> <M>/dev/cpu/*/msr - Model-specific register support, change <M> to <*>
Comment 29 xiaojian.du 2024-04-11 05:30:54 UTC
(In reply to xiaojian.du from comment #28)
> confirmed from another Phoenix 7840HS platform:
> CPPC flag is exposed by BIOS.
> So, on your 8945H CPU platform, it is very possible that ASUS doesn't enable
> the CPPC in the BIOS.
> I see this BIOS is built at 02/15/2024
> "DMI: ASUSTeK COMPUTER INC. ROG Zephyrus G14 GA403UV_GA403UV/GA403UV, BIOS
> GA403UV.303 02/15/2024"
> 
> ~$ cat /proc/cpuinfo | grep cppc
> 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 amd_lbr_v2 nopl nonstop_tsc cpuid extd_apicid
> aperfmperf rapl pni pclmulqdq monitor ssse3 fma cx16 sse4_1 sse4_2 x2apic
> 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 perfmon_v2 ibrs ibpb stibp ibrs_enhanced vmmcall fsgsbase
> bmi1 avx2 smep bmi2 erms invpcid cqm rdt_a avx512f avx512dq rdseed adx smap
> avx512ifma clflushopt clwb avx512cd sha_ni avx512bw avx512vl xsaveopt xsavec
> xgetbv1 xsaves cqm_llc cqm_occup_llc cqm_mbm_total cqm_mbm_local avx512_bf16
> clzero irperf xsaveerptr rdpru wbnoinvd **cppc** arat npt lbrv svm_lock
> nrip_save tsc_scale vmcb_clean flushbyasid decodeassists pausefilter
> pfthreshold v_vmsave_vmload vgif x2avic v_spec_ctrl vnmi avx512vbmi umip pku
> ospke avx512_vbmi2 gfni vaes vpclmulqdq avx512_vnni avx512_bitalg
> avx512_vpopcntdq rdpid overflow_recov succor smca fsrm flush_l1d
> 
> 
> BTW, suppose you're using a test kernel 6.9-rc built by yourslef,, need to
> check kernel building config file to enable msr support:
> make menucofnig  -> Processor type and features -> <M>/dev/cpu/*/msr -
> Model-specific register support, change <M> to <*>

typo: make menuconfig  -> Processor type and features -> <M>/dev/cpu/*/msr -
> Model-specific register support, change <M> to <*>
Comment 30 al0uette 2024-04-11 07:25:17 UTC
(In reply to xiaojian.du from comment #28)
> confirmed from another Phoenix 7840HS platform:
> CPPC flag is exposed by BIOS.
> So, on your 8945H CPU platform, it is very possible that ASUS doesn't enable
> the CPPC in the BIOS.
> I see this BIOS is built at 02/15/2024
> "DMI: ASUSTeK COMPUTER INC. ROG Zephyrus G14 GA403UV_GA403UV/GA403UV, BIOS
> GA403UV.303 02/15/2024"
> 
> ~$ cat /proc/cpuinfo | grep cppc
> 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 amd_lbr_v2 nopl nonstop_tsc cpuid extd_apicid
> aperfmperf rapl pni pclmulqdq monitor ssse3 fma cx16 sse4_1 sse4_2 x2apic
> 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 perfmon_v2 ibrs ibpb stibp ibrs_enhanced vmmcall fsgsbase
> bmi1 avx2 smep bmi2 erms invpcid cqm rdt_a avx512f avx512dq rdseed adx smap
> avx512ifma clflushopt clwb avx512cd sha_ni avx512bw avx512vl xsaveopt xsavec
> xgetbv1 xsaves cqm_llc cqm_occup_llc cqm_mbm_total cqm_mbm_local avx512_bf16
> clzero irperf xsaveerptr rdpru wbnoinvd **cppc** arat npt lbrv svm_lock
> nrip_save tsc_scale vmcb_clean flushbyasid decodeassists pausefilter
> pfthreshold v_vmsave_vmload vgif x2avic v_spec_ctrl vnmi avx512vbmi umip pku
> ospke avx512_vbmi2 gfni vaes vpclmulqdq avx512_vnni avx512_bitalg
> avx512_vpopcntdq rdpid overflow_recov succor smca fsrm flush_l1d
> 
> 
> BTW, suppose you're using a test kernel 6.9-rc built by yourslef,, need to
> check kernel building config file to enable msr support:
> make menucofnig  -> Processor type and features -> <M>/dev/cpu/*/msr -
> Model-specific register support, change <M> to <*>

I've also confirmed this on prebuilt stable kernel from my distribution, so it's not my config's problem.

But why CPPC works on Windows? Can we add something like a quirk to make CPPC work on Linux for these machines?
Comment 31 xiaojian.du 2024-04-11 09:02:00 UTC
(In reply to al0uette from comment #30)
> (In reply to xiaojian.du from comment #28)
> > confirmed from another Phoenix 7840HS platform:
> > CPPC flag is exposed by BIOS.
> > So, on your 8945H CPU platform, it is very possible that ASUS doesn't
> enable
> > the CPPC in the BIOS.
> > I see this BIOS is built at 02/15/2024
> > "DMI: ASUSTeK COMPUTER INC. ROG Zephyrus G14 GA403UV_GA403UV/GA403UV, BIOS
> > GA403UV.303 02/15/2024"
> > 
> > ~$ cat /proc/cpuinfo | grep cppc
> > 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 amd_lbr_v2 nopl nonstop_tsc cpuid extd_apicid
> > aperfmperf rapl pni pclmulqdq monitor ssse3 fma cx16 sse4_1 sse4_2 x2apic
> > 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 perfmon_v2 ibrs ibpb stibp ibrs_enhanced vmmcall
> fsgsbase
> > bmi1 avx2 smep bmi2 erms invpcid cqm rdt_a avx512f avx512dq rdseed adx smap
> > avx512ifma clflushopt clwb avx512cd sha_ni avx512bw avx512vl xsaveopt
> xsavec
> > xgetbv1 xsaves cqm_llc cqm_occup_llc cqm_mbm_total cqm_mbm_local
> avx512_bf16
> > clzero irperf xsaveerptr rdpru wbnoinvd **cppc** arat npt lbrv svm_lock
> > nrip_save tsc_scale vmcb_clean flushbyasid decodeassists pausefilter
> > pfthreshold v_vmsave_vmload vgif x2avic v_spec_ctrl vnmi avx512vbmi umip
> pku
> > ospke avx512_vbmi2 gfni vaes vpclmulqdq avx512_vnni avx512_bitalg
> > avx512_vpopcntdq rdpid overflow_recov succor smca fsrm flush_l1d
> > 
> > 
> > BTW, suppose you're using a test kernel 6.9-rc built by yourslef,, need to
> > check kernel building config file to enable msr support:
> > make menucofnig  -> Processor type and features -> <M>/dev/cpu/*/msr -
> > Model-specific register support, change <M> to <*>
> 
> I've also confirmed this on prebuilt stable kernel from my distribution, so
> it's not my config's problem.
> 
> But why CPPC works on Windows? Can we add something like a quirk to make
> CPPC work on Linux for these machines?

From my own platform, renoir APU, amd ryzen 4750g + a520 mainboard,
I check hwinfo64 when enabled/disabled CPPC, hwinfo shows diff info.
(BIOS pah: AMD CBS->NBIO->SMU COMMON->CPPC auto/enable/disable)

From you pic, it shows only "one line" info of CPPC, it matches with mine when disbaled CPPC in BIOS.

When enabled CPPC in BIOS, hwinfo shows "two lines" of CPPC info.
核心性能顺序:           8, 5, 1, 7, 3, 4, 2, 6
核心性能顺序(CPPC):    1, 2, 3, 4, 5, 6, 7, 8
Comment 32 xiaojian.du 2024-04-11 09:15:12 UTC
On another Phoenix/7840H APU platform, the BIOS also doesn't provide SMU option.
In Win11, Hwinfo64 shows only one line info of CPPC:
"核心性能顺序(CPPC):  2, 4, 7, 6, 8, 3, 5, 1"
But in Ubuntu 22.04.4 OS, "lscpu" command shows CPPC flag truly.
Comment 33 al0uette 2024-04-11 10:09:36 UTC
(In reply to xiaojian.du from comment #32)
> On another Phoenix/7840H APU platform, the BIOS also doesn't provide SMU
> option.
> In Win11, Hwinfo64 shows only one line info of CPPC:
> "核心性能顺序(CPPC):  2, 4, 7, 6, 8, 3, 5, 1"
> But in Ubuntu 22.04.4 OS, "lscpu" command shows CPPC flag truly.

Thank you for your explanation. So I guess I can only wait asus to fix it?
Comment 34 Mario Limonciello (AMD) 2024-04-11 11:14:02 UTC
Well now that you know it happens in Windows too maybe it's easier to report to them.
Comment 35 Mario Limonciello (AMD) 2024-04-11 12:56:46 UTC
One more idea for you. Can you please try to go into BIOS and do "reset BIOS default settings"? Even if you haven't changed anything this will reset any hidden settings too in case there is a problem with one of them.
Comment 36 al0uette 2024-04-11 15:53:35 UTC
(In reply to Mario Limonciello (AMD) from comment #35)
> One more idea for you. Can you please try to go into BIOS and do "reset BIOS
> default settings"? Even if you haven't changed anything this will reset any
> hidden settings too in case there is a problem with one of them.

I've reset and even reflashed BIOS, still no luck
Comment 37 al0uette 2024-04-11 15:54:41 UTC
(In reply to Mario Limonciello (AMD) from comment #34)
> Well now that you know it happens in Windows too maybe it's easier to report
> to them.

I'll try to persuade them
Comment 38 Perry Yuan(AMD) 2024-04-15 08:37:13 UTC
Hi,

sudo apt install cpuid
sudo cpuid -l 0x80000008 -r

Please help to provide this output. 

Perry.
Comment 39 al0uette 2024-04-18 07:36:03 UTC
(In reply to Perry Yuan(AMD) from comment #38)
> Hi,
> 
> sudo apt install cpuid
> sudo cpuid -l 0x80000008 -r
> 
> Please help to provide this output. 
> 
> Perry.

Here's the output: 

CPU 0:
   0x80000008 0x00: eax=0x00003030 ebx=0x111ef257 ecx=0x0000400f edx=0x00010000
CPU 1:
   0x80000008 0x00: eax=0x00003030 ebx=0x111ef257 ecx=0x0000400f edx=0x00010000
CPU 2:
   0x80000008 0x00: eax=0x00003030 ebx=0x111ef257 ecx=0x0000400f edx=0x00010000
CPU 3:
   0x80000008 0x00: eax=0x00003030 ebx=0x111ef257 ecx=0x0000400f edx=0x00010000
CPU 4:
   0x80000008 0x00: eax=0x00003030 ebx=0x111ef257 ecx=0x0000400f edx=0x00010000
CPU 5:
   0x80000008 0x00: eax=0x00003030 ebx=0x111ef257 ecx=0x0000400f edx=0x00010000
CPU 6:
   0x80000008 0x00: eax=0x00003030 ebx=0x111ef257 ecx=0x0000400f edx=0x00010000
CPU 7:
   0x80000008 0x00: eax=0x00003030 ebx=0x111ef257 ecx=0x0000400f edx=0x00010000
CPU 8:
   0x80000008 0x00: eax=0x00003030 ebx=0x111ef257 ecx=0x0000400f edx=0x00010000
CPU 9:
   0x80000008 0x00: eax=0x00003030 ebx=0x111ef257 ecx=0x0000400f edx=0x00010000
CPU 10:
   0x80000008 0x00: eax=0x00003030 ebx=0x111ef257 ecx=0x0000400f edx=0x00010000
CPU 11:
   0x80000008 0x00: eax=0x00003030 ebx=0x111ef257 ecx=0x0000400f edx=0x00010000
CPU 12:
   0x80000008 0x00: eax=0x00003030 ebx=0x111ef257 ecx=0x0000400f edx=0x00010000
CPU 13:
   0x80000008 0x00: eax=0x00003030 ebx=0x111ef257 ecx=0x0000400f edx=0x00010000
CPU 14:
   0x80000008 0x00: eax=0x00003030 ebx=0x111ef257 ecx=0x0000400f edx=0x00010000
CPU 15:
   0x80000008 0x00: eax=0x00003030 ebx=0x111ef257 ecx=0x0000400f edx=0x00010000
Comment 40 Perry Yuan(AMD) 2024-04-18 07:56:36 UTC
(In reply to al0uette from comment #39)
> (In reply to Perry Yuan(AMD) from comment #38)
> > Hi,
> > 
> > sudo apt install cpuid
> > sudo cpuid -l 0x80000008 -r
> > 
> > Please help to provide this output. 
> > 
> > Perry.
> 
> Here's the output: 
> 
> CPU 0:
>    0x80000008 0x00: eax=0x00003030 ebx=0x111ef257 ecx=0x0000400f
> edx=0x00010000
> CPU 1:
>    0x80000008 0x00: eax=0x00003030 ebx=0x111ef257 ecx=0x0000400f
> edx=0x00010000
> CPU 2:
>    0x80000008 0x00: eax=0x00003030 ebx=0x111ef257 ecx=0x0000400f
> edx=0x00010000
> CPU 3:
>    0x80000008 0x00: eax=0x00003030 ebx=0x111ef257 ecx=0x0000400f
> edx=0x00010000
> CPU 4:
>    0x80000008 0x00: eax=0x00003030 ebx=0x111ef257 ecx=0x0000400f
> edx=0x00010000
> CPU 5:
>    0x80000008 0x00: eax=0x00003030 ebx=0x111ef257 ecx=0x0000400f
> edx=0x00010000
> CPU 6:
>    0x80000008 0x00: eax=0x00003030 ebx=0x111ef257 ecx=0x0000400f
> edx=0x00010000
> CPU 7:
>    0x80000008 0x00: eax=0x00003030 ebx=0x111ef257 ecx=0x0000400f
> edx=0x00010000
> CPU 8:
>    0x80000008 0x00: eax=0x00003030 ebx=0x111ef257 ecx=0x0000400f
> edx=0x00010000
> CPU 9:
>    0x80000008 0x00: eax=0x00003030 ebx=0x111ef257 ecx=0x0000400f
> edx=0x00010000
> CPU 10:
>    0x80000008 0x00: eax=0x00003030 ebx=0x111ef257 ecx=0x0000400f
> edx=0x00010000
> CPU 11:
>    0x80000008 0x00: eax=0x00003030 ebx=0x111ef257 ecx=0x0000400f
> edx=0x00010000
> CPU 12:
>    0x80000008 0x00: eax=0x00003030 ebx=0x111ef257 ecx=0x0000400f
> edx=0x00010000
> CPU 13:
>    0x80000008 0x00: eax=0x00003030 ebx=0x111ef257 ecx=0x0000400f
> edx=0x00010000
> CPU 14:
>    0x80000008 0x00: eax=0x00003030 ebx=0x111ef257 ecx=0x0000400f
> edx=0x00010000
> CPU 15:
>    0x80000008 0x00: eax=0x00003030 ebx=0x111ef257 ecx=0x0000400f
> edx=0x00010000

thanks to share the info, I have been checking with internal teams for this issue.  will update here if I got any progres.

Perry.
Comment 41 al0uette 2024-04-18 08:41:12 UTC
(In reply to Perry Yuan(AMD) from comment #40)
> (In reply to al0uette from comment #39)
> > (In reply to Perry Yuan(AMD) from comment #38)
> > > Hi,
> > > 
> > > sudo apt install cpuid
> > > sudo cpuid -l 0x80000008 -r
> > > 
> > > Please help to provide this output. 
> > > 
> > > Perry.
> > 
> > Here's the output: 
> > 
> > CPU 0:
> >    0x80000008 0x00: eax=0x00003030 ebx=0x111ef257 ecx=0x0000400f
> > edx=0x00010000
> > CPU 1:
> >    0x80000008 0x00: eax=0x00003030 ebx=0x111ef257 ecx=0x0000400f
> > edx=0x00010000
> > CPU 2:
> >    0x80000008 0x00: eax=0x00003030 ebx=0x111ef257 ecx=0x0000400f
> > edx=0x00010000
> > CPU 3:
> >    0x80000008 0x00: eax=0x00003030 ebx=0x111ef257 ecx=0x0000400f
> > edx=0x00010000
> > CPU 4:
> >    0x80000008 0x00: eax=0x00003030 ebx=0x111ef257 ecx=0x0000400f
> > edx=0x00010000
> > CPU 5:
> >    0x80000008 0x00: eax=0x00003030 ebx=0x111ef257 ecx=0x0000400f
> > edx=0x00010000
> > CPU 6:
> >    0x80000008 0x00: eax=0x00003030 ebx=0x111ef257 ecx=0x0000400f
> > edx=0x00010000
> > CPU 7:
> >    0x80000008 0x00: eax=0x00003030 ebx=0x111ef257 ecx=0x0000400f
> > edx=0x00010000
> > CPU 8:
> >    0x80000008 0x00: eax=0x00003030 ebx=0x111ef257 ecx=0x0000400f
> > edx=0x00010000
> > CPU 9:
> >    0x80000008 0x00: eax=0x00003030 ebx=0x111ef257 ecx=0x0000400f
> > edx=0x00010000
> > CPU 10:
> >    0x80000008 0x00: eax=0x00003030 ebx=0x111ef257 ecx=0x0000400f
> > edx=0x00010000
> > CPU 11:
> >    0x80000008 0x00: eax=0x00003030 ebx=0x111ef257 ecx=0x0000400f
> > edx=0x00010000
> > CPU 12:
> >    0x80000008 0x00: eax=0x00003030 ebx=0x111ef257 ecx=0x0000400f
> > edx=0x00010000
> > CPU 13:
> >    0x80000008 0x00: eax=0x00003030 ebx=0x111ef257 ecx=0x0000400f
> > edx=0x00010000
> > CPU 14:
> >    0x80000008 0x00: eax=0x00003030 ebx=0x111ef257 ecx=0x0000400f
> > edx=0x00010000
> > CPU 15:
> >    0x80000008 0x00: eax=0x00003030 ebx=0x111ef257 ecx=0x0000400f
> > edx=0x00010000
> 
> thanks to share the info, I have been checking with internal teams for this
> issue.  will update here if I got any progres.
> 
> Perry.

Thank you for your help :)
Comment 43 Perry Yuan(AMD) 2024-04-23 07:03:15 UTC
The issue has been confirmed that CPPC is not enabled by default on the ASUS GA403uv BIOS release. AMD has requested ASUS to enable CPPC in future BIOS releases. If you wish to expedite the release, you may consider contacting ASUS customer service.

Perry.
Comment 44 al0uette 2024-04-23 07:25:52 UTC
(In reply to Perry Yuan(AMD) from comment #43)
> The issue has been confirmed that CPPC is not enabled by default on the ASUS
> GA403uv BIOS release. AMD has requested ASUS to enable CPPC in future BIOS
> releases. If you wish to expedite the release, you may consider contacting
> ASUS customer service.
> 
> Perry.

You really helped me a lot, thank you Perry!

Note You need to log in before you can comment on or make changes to this bug.