aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorPeter Zijlstra <peterz@infradead.org>2018-08-07 13:17:27 -0400
committerIngo Molnar <mingo@kernel.org>2018-10-02 04:14:32 -0400
commitf2c4db1bd80720cd8cb2a5aa220d9bc9f374f04e (patch)
treefa931e8f14b17460f81d3d5b5e85964027fa3e77 /tools
parentaf3bdb991a5cb57c189d34aadbd3aa88995e0d9f (diff)
x86/cpu: Sanitize FAM6_ATOM naming
Going primarily by: https://en.wikipedia.org/wiki/List_of_Intel_Atom_microprocessors with additional information gleaned from other related pages; notably: - Bonnell shrink was called Saltwell - Moorefield is the Merriefield refresh which makes it Airmont The general naming scheme is: FAM6_ATOM_UARCH_SOCTYPE for i in `git grep -l FAM6_ATOM` ; do sed -i -e 's/ATOM_PINEVIEW/ATOM_BONNELL/g' \ -e 's/ATOM_LINCROFT/ATOM_BONNELL_MID/' \ -e 's/ATOM_PENWELL/ATOM_SALTWELL_MID/g' \ -e 's/ATOM_CLOVERVIEW/ATOM_SALTWELL_TABLET/g' \ -e 's/ATOM_CEDARVIEW/ATOM_SALTWELL/g' \ -e 's/ATOM_SILVERMONT1/ATOM_SILVERMONT/g' \ -e 's/ATOM_SILVERMONT2/ATOM_SILVERMONT_X/g' \ -e 's/ATOM_MERRIFIELD/ATOM_SILVERMONT_MID/g' \ -e 's/ATOM_MOOREFIELD/ATOM_AIRMONT_MID/g' \ -e 's/ATOM_DENVERTON/ATOM_GOLDMONT_X/g' \ -e 's/ATOM_GEMINI_LAKE/ATOM_GOLDMONT_PLUS/g' ${i} done Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com> Cc: Arnaldo Carvalho de Melo <acme@redhat.com> Cc: Jiri Olsa <jolsa@redhat.com> Cc: Linus Torvalds <torvalds@linux-foundation.org> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Stephane Eranian <eranian@google.com> Cc: Thomas Gleixner <tglx@linutronix.de> Cc: Vince Weaver <vincent.weaver@maine.edu> Cc: dave.hansen@linux.intel.com Cc: len.brown@intel.com Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'tools')
-rw-r--r--tools/power/x86/turbostat/turbostat.c46
1 files changed, 23 insertions, 23 deletions
diff --git a/tools/power/x86/turbostat/turbostat.c b/tools/power/x86/turbostat/turbostat.c
index 980bd9d20646..328f62e6ea02 100644
--- a/tools/power/x86/turbostat/turbostat.c
+++ b/tools/power/x86/turbostat/turbostat.c
@@ -2082,7 +2082,7 @@ int has_turbo_ratio_group_limits(int family, int model)
2082 switch (model) { 2082 switch (model) {
2083 case INTEL_FAM6_ATOM_GOLDMONT: 2083 case INTEL_FAM6_ATOM_GOLDMONT:
2084 case INTEL_FAM6_SKYLAKE_X: 2084 case INTEL_FAM6_SKYLAKE_X:
2085 case INTEL_FAM6_ATOM_DENVERTON: 2085 case INTEL_FAM6_ATOM_GOLDMONT_X:
2086 return 1; 2086 return 1;
2087 } 2087 }
2088 return 0; 2088 return 0;
@@ -3149,9 +3149,9 @@ int probe_nhm_msrs(unsigned int family, unsigned int model)
3149 pkg_cstate_limits = skx_pkg_cstate_limits; 3149 pkg_cstate_limits = skx_pkg_cstate_limits;
3150 has_misc_feature_control = 1; 3150 has_misc_feature_control = 1;
3151 break; 3151 break;
3152 case INTEL_FAM6_ATOM_SILVERMONT1: /* BYT */ 3152 case INTEL_FAM6_ATOM_SILVERMONT: /* BYT */
3153 no_MSR_MISC_PWR_MGMT = 1; 3153 no_MSR_MISC_PWR_MGMT = 1;
3154 case INTEL_FAM6_ATOM_SILVERMONT2: /* AVN */ 3154 case INTEL_FAM6_ATOM_SILVERMONT_X: /* AVN */
3155 pkg_cstate_limits = slv_pkg_cstate_limits; 3155 pkg_cstate_limits = slv_pkg_cstate_limits;
3156 break; 3156 break;
3157 case INTEL_FAM6_ATOM_AIRMONT: /* AMT */ 3157 case INTEL_FAM6_ATOM_AIRMONT: /* AMT */
@@ -3163,8 +3163,8 @@ int probe_nhm_msrs(unsigned int family, unsigned int model)
3163 pkg_cstate_limits = phi_pkg_cstate_limits; 3163 pkg_cstate_limits = phi_pkg_cstate_limits;
3164 break; 3164 break;
3165 case INTEL_FAM6_ATOM_GOLDMONT: /* BXT */ 3165 case INTEL_FAM6_ATOM_GOLDMONT: /* BXT */
3166 case INTEL_FAM6_ATOM_GEMINI_LAKE: 3166 case INTEL_FAM6_ATOM_GOLDMONT_PLUS:
3167 case INTEL_FAM6_ATOM_DENVERTON: /* DNV */ 3167 case INTEL_FAM6_ATOM_GOLDMONT_X: /* DNV */
3168 pkg_cstate_limits = bxt_pkg_cstate_limits; 3168 pkg_cstate_limits = bxt_pkg_cstate_limits;
3169 break; 3169 break;
3170 default: 3170 default:
@@ -3193,9 +3193,9 @@ int has_slv_msrs(unsigned int family, unsigned int model)
3193 return 0; 3193 return 0;
3194 3194
3195 switch (model) { 3195 switch (model) {
3196 case INTEL_FAM6_ATOM_SILVERMONT1: 3196 case INTEL_FAM6_ATOM_SILVERMONT:
3197 case INTEL_FAM6_ATOM_MERRIFIELD: 3197 case INTEL_FAM6_ATOM_SILVERMONT_MID:
3198 case INTEL_FAM6_ATOM_MOOREFIELD: 3198 case INTEL_FAM6_ATOM_AIRMONT_MID:
3199 return 1; 3199 return 1;
3200 } 3200 }
3201 return 0; 3201 return 0;
@@ -3207,7 +3207,7 @@ int is_dnv(unsigned int family, unsigned int model)
3207 return 0; 3207 return 0;
3208 3208
3209 switch (model) { 3209 switch (model) {
3210 case INTEL_FAM6_ATOM_DENVERTON: 3210 case INTEL_FAM6_ATOM_GOLDMONT_X:
3211 return 1; 3211 return 1;
3212 } 3212 }
3213 return 0; 3213 return 0;
@@ -3724,8 +3724,8 @@ double get_tdp(unsigned int model)
3724 return ((msr >> 0) & RAPL_POWER_GRANULARITY) * rapl_power_units; 3724 return ((msr >> 0) & RAPL_POWER_GRANULARITY) * rapl_power_units;
3725 3725
3726 switch (model) { 3726 switch (model) {
3727 case INTEL_FAM6_ATOM_SILVERMONT1: 3727 case INTEL_FAM6_ATOM_SILVERMONT:
3728 case INTEL_FAM6_ATOM_SILVERMONT2: 3728 case INTEL_FAM6_ATOM_SILVERMONT_X:
3729 return 30.0; 3729 return 30.0;
3730 default: 3730 default:
3731 return 135.0; 3731 return 135.0;
@@ -3791,7 +3791,7 @@ void rapl_probe(unsigned int family, unsigned int model)
3791 } 3791 }
3792 break; 3792 break;
3793 case INTEL_FAM6_ATOM_GOLDMONT: /* BXT */ 3793 case INTEL_FAM6_ATOM_GOLDMONT: /* BXT */
3794 case INTEL_FAM6_ATOM_GEMINI_LAKE: 3794 case INTEL_FAM6_ATOM_GOLDMONT_PLUS:
3795 do_rapl = RAPL_PKG | RAPL_PKG_POWER_INFO; 3795 do_rapl = RAPL_PKG | RAPL_PKG_POWER_INFO;
3796 if (rapl_joules) 3796 if (rapl_joules)
3797 BIC_PRESENT(BIC_Pkg_J); 3797 BIC_PRESENT(BIC_Pkg_J);
@@ -3850,8 +3850,8 @@ void rapl_probe(unsigned int family, unsigned int model)
3850 BIC_PRESENT(BIC_RAMWatt); 3850 BIC_PRESENT(BIC_RAMWatt);
3851 } 3851 }
3852 break; 3852 break;
3853 case INTEL_FAM6_ATOM_SILVERMONT1: /* BYT */ 3853 case INTEL_FAM6_ATOM_SILVERMONT: /* BYT */
3854 case INTEL_FAM6_ATOM_SILVERMONT2: /* AVN */ 3854 case INTEL_FAM6_ATOM_SILVERMONT_X: /* AVN */
3855 do_rapl = RAPL_PKG | RAPL_CORES; 3855 do_rapl = RAPL_PKG | RAPL_CORES;
3856 if (rapl_joules) { 3856 if (rapl_joules) {
3857 BIC_PRESENT(BIC_Pkg_J); 3857 BIC_PRESENT(BIC_Pkg_J);
@@ -3861,7 +3861,7 @@ void rapl_probe(unsigned int family, unsigned int model)
3861 BIC_PRESENT(BIC_CorWatt); 3861 BIC_PRESENT(BIC_CorWatt);
3862 } 3862 }
3863 break; 3863 break;
3864 case INTEL_FAM6_ATOM_DENVERTON: /* DNV */ 3864 case INTEL_FAM6_ATOM_GOLDMONT_X: /* DNV */
3865 do_rapl = RAPL_PKG | RAPL_DRAM | RAPL_DRAM_POWER_INFO | RAPL_DRAM_PERF_STATUS | RAPL_PKG_PERF_STATUS | RAPL_PKG_POWER_INFO | RAPL_CORES_ENERGY_STATUS; 3865 do_rapl = RAPL_PKG | RAPL_DRAM | RAPL_DRAM_POWER_INFO | RAPL_DRAM_PERF_STATUS | RAPL_PKG_PERF_STATUS | RAPL_PKG_POWER_INFO | RAPL_CORES_ENERGY_STATUS;
3866 BIC_PRESENT(BIC_PKG__); 3866 BIC_PRESENT(BIC_PKG__);
3867 BIC_PRESENT(BIC_RAM__); 3867 BIC_PRESENT(BIC_RAM__);
@@ -3884,7 +3884,7 @@ void rapl_probe(unsigned int family, unsigned int model)
3884 return; 3884 return;
3885 3885
3886 rapl_power_units = 1.0 / (1 << (msr & 0xF)); 3886 rapl_power_units = 1.0 / (1 << (msr & 0xF));
3887 if (model == INTEL_FAM6_ATOM_SILVERMONT1) 3887 if (model == INTEL_FAM6_ATOM_SILVERMONT)
3888 rapl_energy_units = 1.0 * (1 << (msr >> 8 & 0x1F)) / 1000000; 3888 rapl_energy_units = 1.0 * (1 << (msr >> 8 & 0x1F)) / 1000000;
3889 else 3889 else
3890 rapl_energy_units = 1.0 / (1 << (msr >> 8 & 0x1F)); 3890 rapl_energy_units = 1.0 / (1 << (msr >> 8 & 0x1F));
@@ -4141,8 +4141,8 @@ int has_snb_msrs(unsigned int family, unsigned int model)
4141 case INTEL_FAM6_CANNONLAKE_MOBILE: /* CNL */ 4141 case INTEL_FAM6_CANNONLAKE_MOBILE: /* CNL */
4142 case INTEL_FAM6_SKYLAKE_X: /* SKX */ 4142 case INTEL_FAM6_SKYLAKE_X: /* SKX */
4143 case INTEL_FAM6_ATOM_GOLDMONT: /* BXT */ 4143 case INTEL_FAM6_ATOM_GOLDMONT: /* BXT */
4144 case INTEL_FAM6_ATOM_GEMINI_LAKE: 4144 case INTEL_FAM6_ATOM_GOLDMONT_PLUS:
4145 case INTEL_FAM6_ATOM_DENVERTON: /* DNV */ 4145 case INTEL_FAM6_ATOM_GOLDMONT_X: /* DNV */
4146 return 1; 4146 return 1;
4147 } 4147 }
4148 return 0; 4148 return 0;
@@ -4174,7 +4174,7 @@ int has_hsw_msrs(unsigned int family, unsigned int model)
4174 case INTEL_FAM6_KABYLAKE_DESKTOP: /* KBL */ 4174 case INTEL_FAM6_KABYLAKE_DESKTOP: /* KBL */
4175 case INTEL_FAM6_CANNONLAKE_MOBILE: /* CNL */ 4175 case INTEL_FAM6_CANNONLAKE_MOBILE: /* CNL */
4176 case INTEL_FAM6_ATOM_GOLDMONT: /* BXT */ 4176 case INTEL_FAM6_ATOM_GOLDMONT: /* BXT */
4177 case INTEL_FAM6_ATOM_GEMINI_LAKE: 4177 case INTEL_FAM6_ATOM_GOLDMONT_PLUS:
4178 return 1; 4178 return 1;
4179 } 4179 }
4180 return 0; 4180 return 0;
@@ -4209,8 +4209,8 @@ int is_slm(unsigned int family, unsigned int model)
4209 if (!genuine_intel) 4209 if (!genuine_intel)
4210 return 0; 4210 return 0;
4211 switch (model) { 4211 switch (model) {
4212 case INTEL_FAM6_ATOM_SILVERMONT1: /* BYT */ 4212 case INTEL_FAM6_ATOM_SILVERMONT: /* BYT */
4213 case INTEL_FAM6_ATOM_SILVERMONT2: /* AVN */ 4213 case INTEL_FAM6_ATOM_SILVERMONT_X: /* AVN */
4214 return 1; 4214 return 1;
4215 } 4215 }
4216 return 0; 4216 return 0;
@@ -4581,11 +4581,11 @@ void process_cpuid()
4581 case INTEL_FAM6_KABYLAKE_DESKTOP: /* KBL */ 4581 case INTEL_FAM6_KABYLAKE_DESKTOP: /* KBL */
4582 crystal_hz = 24000000; /* 24.0 MHz */ 4582 crystal_hz = 24000000; /* 24.0 MHz */
4583 break; 4583 break;
4584 case INTEL_FAM6_ATOM_DENVERTON: /* DNV */ 4584 case INTEL_FAM6_ATOM_GOLDMONT_X: /* DNV */
4585 crystal_hz = 25000000; /* 25.0 MHz */ 4585 crystal_hz = 25000000; /* 25.0 MHz */
4586 break; 4586 break;
4587 case INTEL_FAM6_ATOM_GOLDMONT: /* BXT */ 4587 case INTEL_FAM6_ATOM_GOLDMONT: /* BXT */
4588 case INTEL_FAM6_ATOM_GEMINI_LAKE: 4588 case INTEL_FAM6_ATOM_GOLDMONT_PLUS:
4589 crystal_hz = 19200000; /* 19.2 MHz */ 4589 crystal_hz = 19200000; /* 19.2 MHz */
4590 break; 4590 break;
4591 default: 4591 default: