diff options
author | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2016-07-25 07:46:30 -0400 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2016-07-25 07:46:30 -0400 |
commit | bc841e260c95608921809a2c7481cf6f03bec21a (patch) | |
tree | 2c2863c2b4024ac8c9de72eaa9e032f417d5d4d1 | |
parent | e717a62d3602e41d4b0f9cd2d18e6851d33a2150 (diff) | |
parent | a0c9b8cc43e0acada4574b33a19b5178520f1218 (diff) |
Merge branch 'pm-cpu'
* pm-cpu:
x86: remove duplicate turbo ratio limit MSRs
tools/power turbostat: Replace MSR_NHM_TURBO_RATIO_LIMIT
cpufreq: intel_pstate: Replace MSR_NHM_TURBO_RATIO_LIMIT
-rw-r--r-- | arch/x86/include/asm/msr-index.h | 2 | ||||
-rw-r--r-- | drivers/cpufreq/intel_pstate.c | 4 | ||||
-rw-r--r-- | tools/power/x86/turbostat/turbostat.8 | 2 | ||||
-rw-r--r-- | tools/power/x86/turbostat/turbostat.c | 2 |
4 files changed, 4 insertions, 6 deletions
diff --git a/arch/x86/include/asm/msr-index.h b/arch/x86/include/asm/msr-index.h index 5a73a9c62c39..56f4c6676b29 100644 --- a/arch/x86/include/asm/msr-index.h +++ b/arch/x86/include/asm/msr-index.h | |||
@@ -64,8 +64,6 @@ | |||
64 | 64 | ||
65 | #define MSR_OFFCORE_RSP_0 0x000001a6 | 65 | #define MSR_OFFCORE_RSP_0 0x000001a6 |
66 | #define MSR_OFFCORE_RSP_1 0x000001a7 | 66 | #define MSR_OFFCORE_RSP_1 0x000001a7 |
67 | #define MSR_NHM_TURBO_RATIO_LIMIT 0x000001ad | ||
68 | #define MSR_IVT_TURBO_RATIO_LIMIT 0x000001ae | ||
69 | #define MSR_TURBO_RATIO_LIMIT 0x000001ad | 67 | #define MSR_TURBO_RATIO_LIMIT 0x000001ad |
70 | #define MSR_TURBO_RATIO_LIMIT1 0x000001ae | 68 | #define MSR_TURBO_RATIO_LIMIT1 0x000001ae |
71 | #define MSR_TURBO_RATIO_LIMIT2 0x000001af | 69 | #define MSR_TURBO_RATIO_LIMIT2 0x000001af |
diff --git a/drivers/cpufreq/intel_pstate.c b/drivers/cpufreq/intel_pstate.c index d8028def199d..9ec033b4f2d9 100644 --- a/drivers/cpufreq/intel_pstate.c +++ b/drivers/cpufreq/intel_pstate.c | |||
@@ -972,7 +972,7 @@ static int core_get_turbo_pstate(void) | |||
972 | u64 value; | 972 | u64 value; |
973 | int nont, ret; | 973 | int nont, ret; |
974 | 974 | ||
975 | rdmsrl(MSR_NHM_TURBO_RATIO_LIMIT, value); | 975 | rdmsrl(MSR_TURBO_RATIO_LIMIT, value); |
976 | nont = core_get_max_pstate(); | 976 | nont = core_get_max_pstate(); |
977 | ret = (value) & 255; | 977 | ret = (value) & 255; |
978 | if (ret <= nont) | 978 | if (ret <= nont) |
@@ -1001,7 +1001,7 @@ static int knl_get_turbo_pstate(void) | |||
1001 | u64 value; | 1001 | u64 value; |
1002 | int nont, ret; | 1002 | int nont, ret; |
1003 | 1003 | ||
1004 | rdmsrl(MSR_NHM_TURBO_RATIO_LIMIT, value); | 1004 | rdmsrl(MSR_TURBO_RATIO_LIMIT, value); |
1005 | nont = core_get_max_pstate(); | 1005 | nont = core_get_max_pstate(); |
1006 | ret = (((value) >> 8) & 0xFF); | 1006 | ret = (((value) >> 8) & 0xFF); |
1007 | if (ret <= nont) | 1007 | if (ret <= nont) |
diff --git a/tools/power/x86/turbostat/turbostat.8 b/tools/power/x86/turbostat/turbostat.8 index 89a55d5e32f3..492e84fbebfa 100644 --- a/tools/power/x86/turbostat/turbostat.8 +++ b/tools/power/x86/turbostat/turbostat.8 | |||
@@ -123,7 +123,7 @@ cpu0: MSR_NHM_PLATFORM_INFO: 0x80838f3012300 | |||
123 | 35 * 100 = 3500 MHz TSC frequency | 123 | 35 * 100 = 3500 MHz TSC frequency |
124 | cpu0: MSR_IA32_POWER_CTL: 0x0004005d (C1E auto-promotion: DISabled) | 124 | cpu0: MSR_IA32_POWER_CTL: 0x0004005d (C1E auto-promotion: DISabled) |
125 | cpu0: MSR_NHM_SNB_PKG_CST_CFG_CTL: 0x1e000400 (UNdemote-C3, UNdemote-C1, demote-C3, demote-C1, UNlocked: pkg-cstate-limit=0: pc0) | 125 | cpu0: MSR_NHM_SNB_PKG_CST_CFG_CTL: 0x1e000400 (UNdemote-C3, UNdemote-C1, demote-C3, demote-C1, UNlocked: pkg-cstate-limit=0: pc0) |
126 | cpu0: MSR_NHM_TURBO_RATIO_LIMIT: 0x25262727 | 126 | cpu0: MSR_TURBO_RATIO_LIMIT: 0x25262727 |
127 | 37 * 100 = 3700 MHz max turbo 4 active cores | 127 | 37 * 100 = 3700 MHz max turbo 4 active cores |
128 | 38 * 100 = 3800 MHz max turbo 3 active cores | 128 | 38 * 100 = 3800 MHz max turbo 3 active cores |
129 | 39 * 100 = 3900 MHz max turbo 2 active cores | 129 | 39 * 100 = 3900 MHz max turbo 2 active cores |
diff --git a/tools/power/x86/turbostat/turbostat.c b/tools/power/x86/turbostat/turbostat.c index acbf7ff2ee6e..3e199b508a96 100644 --- a/tools/power/x86/turbostat/turbostat.c +++ b/tools/power/x86/turbostat/turbostat.c | |||
@@ -1480,7 +1480,7 @@ dump_knl_turbo_ratio_limits(void) | |||
1480 | unsigned int cores[buckets_no]; | 1480 | unsigned int cores[buckets_no]; |
1481 | unsigned int ratio[buckets_no]; | 1481 | unsigned int ratio[buckets_no]; |
1482 | 1482 | ||
1483 | get_msr(base_cpu, MSR_NHM_TURBO_RATIO_LIMIT, &msr); | 1483 | get_msr(base_cpu, MSR_TURBO_RATIO_LIMIT, &msr); |
1484 | 1484 | ||
1485 | fprintf(outf, "cpu%d: MSR_TURBO_RATIO_LIMIT: 0x%08llx\n", | 1485 | fprintf(outf, "cpu%d: MSR_TURBO_RATIO_LIMIT: 0x%08llx\n", |
1486 | base_cpu, msr); | 1486 | base_cpu, msr); |