Bug 195275
Summary: | Max CPU frequency incorrect for AMD Ryzen 1700 | ||
---|---|---|---|
Product: | Platform Specific/Hardware | Reporter: | Jason Grunhut (jgrunhut) |
Component: | x86-64 | Assignee: | platform_x86_64 (platform_x86_64) |
Status: | NEW --- | ||
Severity: | high | CC: | ferdia, vasthusya |
Priority: | P1 | ||
Hardware: | Other | ||
OS: | Linux | ||
Kernel Version: | 4.10 | Subsystem: | |
Regression: | No | Bisected commit-id: |
Description
Jason Grunhut
2017-04-07 02:06:00 UTC
I believe CPU frequency is determined in /arch/x86/kernel/cpu/amd.c. I'll have my Risen system up and running tomorrow, and I'll be able to work on this issue then. I apologise, please ignore my previous comment. They are correctly reporting the Ryzen 1700's base frequency. Your boost frequency on single threaded workloads will be the correct 3.7GHz, but only the base is reported. I'm not sure if I should necro this ticket or start a new one. I have Ryzen 5 2500u with the same issue that it is capped at 2 GHz on coldboot. However, after it is rebooted (from Linux) and wait around 10 seconds in the boot menu, the clock speed can surpass the cap up to 3.6 GHz. The following were taken whilst running cryptsetup benchmark: $ lscpu Architecture: x86_64 CPU op-mode(s): 32-bit, 64-bit Byte Order: Little Endian Address sizes: 43 bits physical, 48 bits virtual CPU(s): 8 On-line CPU(s) list: 0-7 Thread(s) per core: 2 Core(s) per socket: 4 Socket(s): 1 NUMA node(s): 1 Vendor ID: AuthenticAMD CPU family: 23 Model: 17 Model name: AMD Ryzen 5 2500U with Radeon Vega Mobile Gfx Stepping: 0 CPU MHz: 2544.721 CPU max MHz: 2000.0000 CPU min MHz: 1600.0000 BogoMIPS: 3994.09 Virtualization: AMD-V L1d cache: 32K L1i cache: 64K L2 cache: 512K L3 cache: 4096K NUMA node0 CPU(s): 0-7 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 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 skinit wdt tce topoext perfctr_core perfctr_nb bpext perfctr_llc mwaitx hw_pstate sme ssbd sev ibpb vmmcall fsgsbase bmi1 avx2 smep bmi2 rdseed adx smap clflushopt sha_ni xsaveopt xsavec xgetbv1 xsaves clzero irperf xsaveerptr arat npt lbrv svm_lock nrip_save tsc_scale vmcb_clean flushbyasid decodeassists pausefilter pfthreshold avic v_vmsave_vmload vgif overflow_recov succor smca $ cpupower -c 0 frequency-info analyzing CPU 0: driver: acpi-cpufreq CPUs which run at the same hardware frequency: 0 CPUs which need to have their frequency coordinated by software: 0 maximum transition latency: Cannot determine or is not supported. hardware limits: 1.60 GHz - 2.00 GHz available frequency steps: 2.00 GHz, 1.70 GHz, 1.60 GHz available cpufreq governors: performance schedutil current policy: frequency should be within 1.60 GHz and 2.00 GHz. The governor "schedutil" may decide which speed to use within this range. current CPU frequency: Unable to call hardware current CPU frequency: 3.54 GHz (asserted by call to kernel) boost state support: Supported: no Active: no See AMD thread: https://community.amd.com/thread/229980#2893988 I have uploaded a set of kernel messages for another ticket #201921: Kernel messages from various boot states. (99.27 KB, application/zip) https://bugzilla.kernel.org/attachment.cgi?id=280459 I just found the processor boosting control in sysfs. https://www.kernel.org/doc/Documentation/cpu-freq/boost.txt This issue can be remedied by re-enabling boost. |