Bug 50331 - no Turbo Core on AMD A10-5800K
Summary: no Turbo Core on AMD A10-5800K
Status: NEW
Alias: None
Product: Platform Specific/Hardware
Classification: Unclassified
Component: x86-64 (show other bugs)
Hardware: All Linux
: P1 normal
Assignee: platform_x86_64@kernel-bugs.osdl.org
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-11-09 15:08 UTC by udo
Modified: 2020-09-07 10:50 UTC (History)
4 users (show)

See Also:
Kernel Version: 3.6.6
Subsystem:
Regression: No
Bisected commit-id:


Attachments

Description udo 2012-11-09 15:08:58 UTC
This CPU should enable us to clock at 4200 MHz.
# uname -a
Linux xx 3.6.6 #9 SMP PREEMPT Mon Nov 5 12:32:30 CET 2012 x86_64 x86_64 x86_64 GNU/Linux
# cat /proc/cpuinfo 
processor	: 0
vendor_id	: AuthenticAMD
cpu family	: 21
model		: 16
model name	: AMD A10-5800K APU with Radeon(tm) HD Graphics  
stepping	: 1
microcode	: 0x6001116
cpu MHz		: 1400.000
cache size	: 2048 KB
physical id	: 0
siblings	: 4
core id		: 0
cpu cores	: 2
apicid		: 16
initial apicid	: 0
fpu		: yes
fpu_exception	: yes
cpuid level	: 13
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 extd_apicid aperfmperf pni pclmulqdq monitor ssse3 fma cx16 sse4_1 sse4_2 popcnt aes xsave avx f16c lahf_lm cmp_legacy svm extapic cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw ibs xop skinit wdt lwp fma4 tce nodeid_msr tbm topoext perfctr_core arat cpb hw_pstate npt lbrv svm_lock nrip_save tsc_scale vmcb_clean flushbyasid decodeassists pausefilter pfthreshold bmi1
bogomips	: 7586.09
TLB size	: 1536 4K pages
clflush size	: 64
cache_alignment	: 64
address sizes	: 48 bits physical, 48 bits virtual
power management: ts ttp tm 100mhzsteps hwpstate cpb eff_freq_ro

processor	: 1
vendor_id	: AuthenticAMD
cpu family	: 21
model		: 16
model name	: AMD A10-5800K APU with Radeon(tm) HD Graphics  
stepping	: 1
microcode	: 0x6001116
cpu MHz		: 1400.000
cache size	: 2048 KB
physical id	: 0
siblings	: 4
core id		: 1
cpu cores	: 2
apicid		: 17
initial apicid	: 1
fpu		: yes
fpu_exception	: yes
cpuid level	: 13
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 extd_apicid aperfmperf pni pclmulqdq monitor ssse3 fma cx16 sse4_1 sse4_2 popcnt aes xsave avx f16c lahf_lm cmp_legacy svm extapic cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw ibs xop skinit wdt lwp fma4 tce nodeid_msr tbm topoext perfctr_core arat cpb hw_pstate npt lbrv svm_lock nrip_save tsc_scale vmcb_clean flushbyasid decodeassists pausefilter pfthreshold bmi1
bogomips	: 7586.09
TLB size	: 1536 4K pages
clflush size	: 64
cache_alignment	: 64
address sizes	: 48 bits physical, 48 bits virtual
power management: ts ttp tm 100mhzsteps hwpstate cpb eff_freq_ro

processor	: 2
vendor_id	: AuthenticAMD
cpu family	: 21
model		: 16
model name	: AMD A10-5800K APU with Radeon(tm) HD Graphics  
stepping	: 1
microcode	: 0x6001116
cpu MHz		: 1400.000
cache size	: 2048 KB
physical id	: 0
siblings	: 4
core id		: 2
cpu cores	: 2
apicid		: 18
initial apicid	: 2
fpu		: yes
fpu_exception	: yes
cpuid level	: 13
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 extd_apicid aperfmperf pni pclmulqdq monitor ssse3 fma cx16 sse4_1 sse4_2 popcnt aes xsave avx f16c lahf_lm cmp_legacy svm extapic cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw ibs xop skinit wdt lwp fma4 tce nodeid_msr tbm topoext perfctr_core arat cpb hw_pstate npt lbrv svm_lock nrip_save tsc_scale vmcb_clean flushbyasid decodeassists pausefilter pfthreshold bmi1
bogomips	: 7586.09
TLB size	: 1536 4K pages
clflush size	: 64
cache_alignment	: 64
address sizes	: 48 bits physical, 48 bits virtual
power management: ts ttp tm 100mhzsteps hwpstate cpb eff_freq_ro

processor	: 3
vendor_id	: AuthenticAMD
cpu family	: 21
model		: 16
model name	: AMD A10-5800K APU with Radeon(tm) HD Graphics  
stepping	: 1
microcode	: 0x6001116
cpu MHz		: 1400.000
cache size	: 2048 KB
physical id	: 0
siblings	: 4
core id		: 3
cpu cores	: 2
apicid		: 19
initial apicid	: 3
fpu		: yes
fpu_exception	: yes
cpuid level	: 13
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 extd_apicid aperfmperf pni pclmulqdq monitor ssse3 fma cx16 sse4_1 sse4_2 popcnt aes xsave avx f16c lahf_lm cmp_legacy svm extapic cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw ibs xop skinit wdt lwp fma4 tce nodeid_msr tbm topoext perfctr_core arat cpb hw_pstate npt lbrv svm_lock nrip_save tsc_scale vmcb_clean flushbyasid decodeassists pausefilter pfthreshold bmi1
bogomips	: 7586.09
TLB size	: 1536 4K pages
clflush size	: 64
cache_alignment	: 64
address sizes	: 48 bits physical, 48 bits virtual
power management: ts ttp tm 100mhzsteps hwpstate cpb eff_freq_ro

# cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_frequencies
3800000 3400000 2900000 2400000 1900000 1400000 

Please do note the lack of the 4200 Mhz.
Comment 1 udo 2012-11-09 15:10:51 UTC
# grep k8 dmesg-3.6.6.txt 
powernow-k8: Found 1 AMD A10-5800K APU with Radeon(tm) HD Graphics   (4 cpu cores) (version 2.20.00)
powernow-k8: Core Performance Boosting: on.
powernow-k8:    0 : pstate 0 (3800 MHz)
powernow-k8:    1 : pstate 1 (3400 MHz)
powernow-k8:    2 : pstate 2 (2900 MHz)
powernow-k8:    3 : pstate 3 (2400 MHz)
powernow-k8:    4 : pstate 4 (1900 MHz)
powernow-k8:    5 : pstate 5 (1400 MHz)

Please do note the lack of the 4200 Mhz.
Comment 2 udo 2012-11-09 16:03:47 UTC
# cpupower  frequency-info
analyzing CPU 0:
  driver: powernow-k8
  CPUs which run at the same hardware frequency: 0
  CPUs which need to have their frequency coordinated by software: 0
  maximum transition latency: 8.0 us.
  hardware limits: 1.40 GHz - 3.80 GHz
  available frequency steps: 3.80 GHz, 3.40 GHz, 2.90 GHz, 2.40 GHz, 1.90 GHz, 1.40 GHz
  available cpufreq governors: userspace, ondemand, performance
  current policy: frequency should be within 1.40 GHz and 3.80 GHz.
                  The governor "ondemand" may decide which speed to use
                  within this range.
  current CPU frequency is 1.40 GHz (asserted by call to hardware).
  cpufreq stats: 3.80 GHz:7.78%, 3.40 GHz:0.21%, 2.90 GHz:0.30%, 2.40 GHz:0.34%, 1.90 GHz:0.47%, 1.40 GHz:90.90%  (829881)
  boost state support:
    Supported: yes
    Active: yes
    Boost States: 2
    Total States: 8
    Pstate-Pb0: 4200MHz (boost state)
    Pstate-Pb1: 4200MHz (boost state)
    Pstate-P0:  3800MHz
    Pstate-P1:  3400MHz
    Pstate-P2:  2900MHz
    Pstate-P3:  2400MHz
    Pstate-P4:  1900MHz
    Pstate-P5:  1400MHz

Please note the 4200 MHz!
Comment 3 Kertesz Laszlo 2013-08-05 01:42:23 UTC
I have a A8-5500 and it has the "official" non-turbo states listed by powernow-k8, just like yours.

# cpufreq-info 
cpufrequtils 008: cpufreq-info (C) Dominik Brodowski 2004-2009
Report errors and bugs to cpufreq@vger.kernel.org, please.
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: 4.0 us.
  hardware limits: 1.40 GHz - 3.20 GHz
  available frequency steps: 3.20 GHz, 2.90 GHz, 2.60 GHz, 2.20 GHz, 1.80 GHz, 1.40 GHz
  available cpufreq governors: userspace, powersave, conservative, ondemand, performance
  current policy: frequency should be within 1.40 GHz and 3.20 GHz.
                  The governor "ondemand" may decide which speed to use
                  within this range.
  current CPU frequency is 2.60 GHz (asserted by call to hardware).
  cpufreq stats: 3.20 GHz:27.97%, 2.90 GHz:1.41%, 2.60 GHz:1.65%, 2.20 GHz:0.96%, 1.80 GHz:0.87%, 1.40 GHz:67.15%  (10603)


But, if i use cpufreq-aperf to monitor the frequencies, i get something like this (compile with 3 threads):

 cpufreq-aperf -o
CPU	Average freq(KHz)	Time in C0	Time in Cx	C0 percentage
000	3488000			00 sec 847 ms	00 sec 152 ms	84
001	3488000			00 sec 618 ms	00 sec 381 ms	61
002	3488000			00 sec 908 ms	00 sec 091 ms	90
003	3488000			00 sec 912 ms	00 sec 087 ms	91

Which is above th 3.2 frequency and, granted, below the advertised 3.7 Turbo.

Also, what you see in cpuinfo and the like isnt always true - i used the old radeon driver and despite having 3.2 GHz in cpuinfo as active p-state, cpufreq-aperf gave ~1.4 GHz as zctive frequency. And most likely had it right because i spent an eternity compiling the kernel in that state.
Comment 4 udo 2013-08-06 09:22:13 UTC
While using turbostat and making the PC do some work I see updates like:

cor CPU   GHz  TSC
        4.18 3.89
  0   0 4.15 3.89
  1   1 4.17 3.89
  2   2 4.21 3.89
  3   3 4.21 3.89

(yes, slight overclock)
Comment 5 mirh 2020-09-07 10:50:01 UTC
Duplicate of bug 81021 I guess?

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