linux_dsm_epyc7002/tools/power/cpupower/utils
Prarit Bhargava f69ffc5d3d cpupower: Fix coredump on VMWare
cpupower crashes on VMWare guests.  The guests have the AMD PStateDef MSR
(0xC0010064 + state number) set to zero.  As a result fid and did are zero
and the crash occurs because of a divide by zero (cof = fid/did).  This
can be prevented by checking the enable bit in the PStateDef MSR before
calculating cof.  By doing this the value of pstate[i] remains zero and
the value can be tested before displaying the active Pstates.

Check the enable bit in the PstateDef register for all supported families
and only print out enabled Pstates.

Signed-off-by: Prarit Bhargava <prarit@redhat.com>
Cc: Shuah Khan <shuah@kernel.org>
Cc: Stafford Horne <shorne@gmail.com>
Signed-off-by: Shuah Khan (Samsung OSG) <shuah@kernel.org>
2018-10-08 09:19:15 -06:00
..
helpers cpupower: Fix coredump on VMWare 2018-10-08 09:19:15 -06:00
idle_monitor cpupower : Fix header name to read idle state name 2018-05-29 10:48:33 -06:00
builtin.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
cpufreq-info.c cpupower: Fix coredump on VMWare 2018-10-08 09:19:15 -06:00
cpufreq-set.c cpupower: Correct return type of cpu_power_is_cpu_online() in cpufreq-set 2016-11-01 06:16:52 +01:00
cpuidle-info.c cpupower: Add cpuidle parts into library 2016-04-28 16:02:29 +02:00
cpuidle-set.c License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
cpupower-info.c cpupower: Do not analyse offlined cpus 2015-12-03 02:30:30 +01:00
cpupower-set.c cpupower: Do not analyse offlined cpus 2015-12-03 02:30:30 +01:00
cpupower.c tools/power/cpupower: allow running without cpu0 2017-07-31 14:17:30 +02:00
version-gen.sh License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00