Skip to contentSkip to conversation

New: cpuinfo_cur_freq differs from scaling_cur_freq on an AMD FX-8320E

Bug 198637 [email protected] 1 participant 1 message Feb 1, 2018

lore
Share & tools
lore
#0 lore raw

https://bugzilla.kernel.org/show_bug.cgi?id=198637

            Bug ID: 198637
           Summary: cpuinfo_cur_freq differs from scaling_cur_freq on an
                    AMD FX-8320E
           Product: Power Management
           Version: 2.5
    Kernel Version: 4.15.0
          Hardware: x86-64
                OS: Linux
              Tree: Mainline
            Status: NEW
          Severity: normal
          Priority: P1
         Component: cpufreq
          Assignee: [email protected]
          Reporter: [email protected]
        Regression: No

With the "performance" governor:

root# cat /sys/devices/system/cpu/cpu*/cpufreq/cpuinfo_cur_freq 4400000
4400000
4400000
4400000
4400000
4400000
4400000
4400000
root# cat /sys/devices/system/cpu/cpu*/cpufreq/scaling_cur_freq 3029755
3114686
4173759
4365672
2865808
3887821
4247518
3671205

This is a problem because only the latter, wrong value is readable by non-root users and it's also the only one shown in /proc/cpuinfo.

According to this 2011 email -
http://permalink.gmane.org/gmane.linux.kernel.cpufreq/7008 :

Quoted 1 line

everyone may read out scaling_cur_freq, and scaling_cur_freq differs from

cpuinfo_cur_freq _only_ if something is broken

So what's broken and how can we fix it?

Additional info:
- scaling_driver is "acpi-cpufreq"
- scaling_min_freq and scaling_max_freq have correct values (same as their cpuinfo_ counterparts)
- the CPU has Turbo Core disabled and it's overclocked to 4.4GHz but the problem should also manifest on default setups

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.