aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/clang-tools/run-clang-tools.py
diff options
context:
space:
mode:
authorPerry Yuan <[email protected]>2022-08-30 01:56:00 +0000
committerRafael J. Wysocki <[email protected]>2022-09-03 18:17:32 +0000
commitbedadcfb011fef55273bd686e8893fdd8911dcdb (patch)
treec1d178250aaa95bb15ec7297d6e7b68b7858155c /scripts/clang-tools/run-clang-tools.py
parentcpufreq: amd-pstate: update pstate frequency transition delay time (diff)
downloadkernel-bedadcfb011fef55273bd686e8893fdd8911dcdb.tar.gz
kernel-bedadcfb011fef55273bd686e8893fdd8911dcdb.zip
cpufreq: amd-pstate: Fix initial highest_perf value
To avoid some new AMD processors use wrong highest perf when amd pstate driver loaded, this fix will query the highest perf from MSR register MSR_AMD_CPPC_CAP1 and cppc_acpi interface firstly, then compare with the highest perf value got by calling amd_get_highest_perf() function. The lower value will be the correct highest perf we need to use. Otherwise the CPU max MHz will be incorrect if the amd_get_highest_perf() did not cover the new process family and model ID. Like this lscpu info, the max frequency is incorrect. Vendor ID: AuthenticAMD Socket(s): 1 Stepping: 2 CPU max MHz: 5410.0000 CPU min MHz: 400.0000 BogoMIPS: 5600.54 Fixes: 3743d55b289c2 (x86, sched: Fix the AMD CPPC maximum performance value on certain AMD Ryzen generations) Acked-by: Huang Rui <[email protected]> Signed-off-by: Perry Yuan <[email protected]> Signed-off-by: Rafael J. Wysocki <[email protected]>
Diffstat (limited to 'scripts/clang-tools/run-clang-tools.py')
0 files changed, 0 insertions, 0 deletions