Lines Matching refs:msr

266 int get_msr(int cpu, off_t offset, unsigned long long *msr)  in get_msr()  argument
277 retval = pread(fd, msr, sizeof *msr, offset); in get_msr()
280 if (retval != sizeof *msr) in get_msr()
982 unsigned long long msr; in get_counters() local
1001 if (get_msr(cpu, MSR_SMI_COUNT, &msr)) in get_counters()
1003 t->smi_count = msr & 0xFFFFFFFF; in get_counters()
1006 if (get_msr(cpu, extra_delta_offset32, &msr)) in get_counters()
1008 t->extra_delta32 = msr & 0xFFFFFFFF; in get_counters()
1016 if (get_msr(cpu, extra_msr_offset32, &msr)) in get_counters()
1018 t->extra_msr32 = msr & 0xFFFFFFFF; in get_counters()
1052 if (get_msr(cpu, MSR_IA32_THERM_STATUS, &msr)) in get_counters()
1054 c->core_temp_c = tcc_activation_temp - ((msr >> 16) & 0x7F); in get_counters()
1093 if (get_msr(cpu, MSR_PKG_ENERGY_STATUS, &msr)) in get_counters()
1095 p->energy_pkg = msr & 0xFFFFFFFF; in get_counters()
1098 if (get_msr(cpu, MSR_PP0_ENERGY_STATUS, &msr)) in get_counters()
1100 p->energy_cores = msr & 0xFFFFFFFF; in get_counters()
1103 if (get_msr(cpu, MSR_DRAM_ENERGY_STATUS, &msr)) in get_counters()
1105 p->energy_dram = msr & 0xFFFFFFFF; in get_counters()
1108 if (get_msr(cpu, MSR_PP1_ENERGY_STATUS, &msr)) in get_counters()
1110 p->energy_gfx = msr & 0xFFFFFFFF; in get_counters()
1113 if (get_msr(cpu, MSR_PKG_PERF_STATUS, &msr)) in get_counters()
1115 p->rapl_pkg_perf_status = msr & 0xFFFFFFFF; in get_counters()
1118 if (get_msr(cpu, MSR_DRAM_PERF_STATUS, &msr)) in get_counters()
1120 p->rapl_dram_perf_status = msr & 0xFFFFFFFF; in get_counters()
1123 if (get_msr(cpu, MSR_IA32_PACKAGE_THERM_STATUS, &msr)) in get_counters()
1125 p->pkg_temp_c = tcc_activation_temp - ((msr >> 16) & 0x7F); in get_counters()
1173 unsigned long long msr; in dump_nhm_platform_info() local
1176 get_msr(base_cpu, MSR_PLATFORM_INFO, &msr); in dump_nhm_platform_info()
1178 fprintf(stderr, "cpu%d: MSR_PLATFORM_INFO: 0x%08llx\n", base_cpu, msr); in dump_nhm_platform_info()
1180 ratio = (msr >> 40) & 0xFF; in dump_nhm_platform_info()
1184 ratio = (msr >> 8) & 0xFF; in dump_nhm_platform_info()
1188 get_msr(base_cpu, MSR_IA32_POWER_CTL, &msr); in dump_nhm_platform_info()
1190 base_cpu, msr, msr & 0x2 ? "EN" : "DIS"); in dump_nhm_platform_info()
1198 unsigned long long msr; in dump_hsw_turbo_ratio_limits() local
1201 get_msr(base_cpu, MSR_TURBO_RATIO_LIMIT2, &msr); in dump_hsw_turbo_ratio_limits()
1203 fprintf(stderr, "cpu%d: MSR_TURBO_RATIO_LIMIT2: 0x%08llx\n", base_cpu, msr); in dump_hsw_turbo_ratio_limits()
1205 ratio = (msr >> 8) & 0xFF; in dump_hsw_turbo_ratio_limits()
1210 ratio = (msr >> 0) & 0xFF; in dump_hsw_turbo_ratio_limits()
1220 unsigned long long msr; in dump_ivt_turbo_ratio_limits() local
1223 get_msr(base_cpu, MSR_TURBO_RATIO_LIMIT1, &msr); in dump_ivt_turbo_ratio_limits()
1225 fprintf(stderr, "cpu%d: MSR_TURBO_RATIO_LIMIT1: 0x%08llx\n", base_cpu, msr); in dump_ivt_turbo_ratio_limits()
1227 ratio = (msr >> 56) & 0xFF; in dump_ivt_turbo_ratio_limits()
1232 ratio = (msr >> 48) & 0xFF; in dump_ivt_turbo_ratio_limits()
1237 ratio = (msr >> 40) & 0xFF; in dump_ivt_turbo_ratio_limits()
1242 ratio = (msr >> 32) & 0xFF; in dump_ivt_turbo_ratio_limits()
1247 ratio = (msr >> 24) & 0xFF; in dump_ivt_turbo_ratio_limits()
1252 ratio = (msr >> 16) & 0xFF; in dump_ivt_turbo_ratio_limits()
1257 ratio = (msr >> 8) & 0xFF; in dump_ivt_turbo_ratio_limits()
1262 ratio = (msr >> 0) & 0xFF; in dump_ivt_turbo_ratio_limits()
1272 unsigned long long msr; in dump_nhm_turbo_ratio_limits() local
1275 get_msr(base_cpu, MSR_TURBO_RATIO_LIMIT, &msr); in dump_nhm_turbo_ratio_limits()
1277 fprintf(stderr, "cpu%d: MSR_TURBO_RATIO_LIMIT: 0x%08llx\n", base_cpu, msr); in dump_nhm_turbo_ratio_limits()
1279 ratio = (msr >> 56) & 0xFF; in dump_nhm_turbo_ratio_limits()
1284 ratio = (msr >> 48) & 0xFF; in dump_nhm_turbo_ratio_limits()
1289 ratio = (msr >> 40) & 0xFF; in dump_nhm_turbo_ratio_limits()
1294 ratio = (msr >> 32) & 0xFF; in dump_nhm_turbo_ratio_limits()
1299 ratio = (msr >> 24) & 0xFF; in dump_nhm_turbo_ratio_limits()
1304 ratio = (msr >> 16) & 0xFF; in dump_nhm_turbo_ratio_limits()
1309 ratio = (msr >> 8) & 0xFF; in dump_nhm_turbo_ratio_limits()
1314 ratio = (msr >> 0) & 0xFF; in dump_nhm_turbo_ratio_limits()
1326 unsigned long long msr; in dump_knl_turbo_ratio_limits() local
1331 get_msr(base_cpu, MSR_NHM_TURBO_RATIO_LIMIT, &msr); in dump_knl_turbo_ratio_limits()
1334 base_cpu, msr); in dump_knl_turbo_ratio_limits()
1357 cores = msr & 0xFF; in dump_knl_turbo_ratio_limits()
1358 ratio = (msr >> 8) && 0xFF; in dump_knl_turbo_ratio_limits()
1365 delta_cores = (msr >> i) & 0x1F; in dump_knl_turbo_ratio_limits()
1366 delta_ratio = (msr >> (i + 5)) && 0x7; in dump_knl_turbo_ratio_limits()
1385 unsigned long long msr; in dump_nhm_cst_cfg() local
1387 get_msr(base_cpu, MSR_NHM_SNB_PKG_CST_CFG_CTL, &msr); in dump_nhm_cst_cfg()
1392 fprintf(stderr, "cpu%d: MSR_NHM_SNB_PKG_CST_CFG_CTL: 0x%08llx", base_cpu, msr); in dump_nhm_cst_cfg()
1395 (msr & SNB_C3_AUTO_UNDEMOTE) ? "UNdemote-C3, " : "", in dump_nhm_cst_cfg()
1396 (msr & SNB_C1_AUTO_UNDEMOTE) ? "UNdemote-C1, " : "", in dump_nhm_cst_cfg()
1397 (msr & NHM_C3_AUTO_DEMOTE) ? "demote-C3, " : "", in dump_nhm_cst_cfg()
1398 (msr & NHM_C1_AUTO_DEMOTE) ? "demote-C1, " : "", in dump_nhm_cst_cfg()
1399 (msr & (1 << 15)) ? "" : "UN", in dump_nhm_cst_cfg()
1400 (unsigned int)msr & 7, in dump_nhm_cst_cfg()
1408 unsigned long long msr; in dump_config_tdp() local
1410 get_msr(base_cpu, MSR_CONFIG_TDP_NOMINAL, &msr); in dump_config_tdp()
1411 fprintf(stderr, "cpu%d: MSR_CONFIG_TDP_NOMINAL: 0x%08llx", base_cpu, msr); in dump_config_tdp()
1412 fprintf(stderr, " (base_ratio=%d)\n", (unsigned int)msr & 0xEF); in dump_config_tdp()
1414 get_msr(base_cpu, MSR_CONFIG_TDP_LEVEL_1, &msr); in dump_config_tdp()
1415 fprintf(stderr, "cpu%d: MSR_CONFIG_TDP_LEVEL_1: 0x%08llx (", base_cpu, msr); in dump_config_tdp()
1416 if (msr) { in dump_config_tdp()
1417 fprintf(stderr, "PKG_MIN_PWR_LVL1=%d ", (unsigned int)(msr >> 48) & 0xEFFF); in dump_config_tdp()
1418 fprintf(stderr, "PKG_MAX_PWR_LVL1=%d ", (unsigned int)(msr >> 32) & 0xEFFF); in dump_config_tdp()
1419 fprintf(stderr, "LVL1_RATIO=%d ", (unsigned int)(msr >> 16) & 0xEF); in dump_config_tdp()
1420 fprintf(stderr, "PKG_TDP_LVL1=%d", (unsigned int)(msr) & 0xEFFF); in dump_config_tdp()
1424 get_msr(base_cpu, MSR_CONFIG_TDP_LEVEL_2, &msr); in dump_config_tdp()
1425 fprintf(stderr, "cpu%d: MSR_CONFIG_TDP_LEVEL_2: 0x%08llx (", base_cpu, msr); in dump_config_tdp()
1426 if (msr) { in dump_config_tdp()
1427 fprintf(stderr, "PKG_MIN_PWR_LVL2=%d ", (unsigned int)(msr >> 48) & 0xEFFF); in dump_config_tdp()
1428 fprintf(stderr, "PKG_MAX_PWR_LVL2=%d ", (unsigned int)(msr >> 32) & 0xEFFF); in dump_config_tdp()
1429 fprintf(stderr, "LVL2_RATIO=%d ", (unsigned int)(msr >> 16) & 0xEF); in dump_config_tdp()
1430 fprintf(stderr, "PKG_TDP_LVL2=%d", (unsigned int)(msr) & 0xEFFF); in dump_config_tdp()
1434 get_msr(base_cpu, MSR_CONFIG_TDP_CONTROL, &msr); in dump_config_tdp()
1435 fprintf(stderr, "cpu%d: MSR_CONFIG_TDP_CONTROL: 0x%08llx (", base_cpu, msr); in dump_config_tdp()
1436 if ((msr) & 0x3) in dump_config_tdp()
1437 fprintf(stderr, "TDP_LEVEL=%d ", (unsigned int)(msr) & 0x3); in dump_config_tdp()
1438 fprintf(stderr, " lock=%d", (unsigned int)(msr >> 31) & 1); in dump_config_tdp()
1441 get_msr(base_cpu, MSR_TURBO_ACTIVATION_RATIO, &msr); in dump_config_tdp()
1442 fprintf(stderr, "cpu%d: MSR_TURBO_ACTIVATION_RATIO: 0x%08llx (", base_cpu, msr); in dump_config_tdp()
1443 fprintf(stderr, "MAX_NON_TURBO_RATIO=%d", (unsigned int)(msr) & 0x7F); in dump_config_tdp()
1444 fprintf(stderr, " lock=%d", (unsigned int)(msr >> 31) & 1); in dump_config_tdp()
1823 unsigned long long msr; in probe_nhm_msrs() local
1876 get_msr(base_cpu, MSR_NHM_SNB_PKG_CST_CFG_CTL, &msr); in probe_nhm_msrs()
1877 pkg_cstate_limit = pkg_cstate_limits[msr & 0xF]; in probe_nhm_msrs()
1879 get_msr(base_cpu, MSR_PLATFORM_INFO, &msr); in probe_nhm_msrs()
1880 base_ratio = (msr >> 8) & 0xFF; in probe_nhm_msrs()
2005 unsigned long long msr; in print_epb() local
2023 if (get_msr(cpu, MSR_IA32_ENERGY_PERF_BIAS, &msr)) in print_epb()
2026 switch (msr & 0xF) { in print_epb()
2040 fprintf(stderr, "cpu%d: MSR_IA32_ENERGY_PERF_BIAS: 0x%08llx (%s)\n", cpu, msr, epb_string); in print_epb()
2050 unsigned long long msr; in print_perf_limit() local
2065 get_msr(cpu, MSR_CORE_PERF_LIMIT_REASONS, &msr); in print_perf_limit()
2066 fprintf(stderr, "cpu%d: MSR_CORE_PERF_LIMIT_REASONS, 0x%08llx", cpu, msr); in print_perf_limit()
2068 (msr & 1 << 15) ? "bit15, " : "", in print_perf_limit()
2069 (msr & 1 << 14) ? "bit14, " : "", in print_perf_limit()
2070 (msr & 1 << 13) ? "Transitions, " : "", in print_perf_limit()
2071 (msr & 1 << 12) ? "MultiCoreTurbo, " : "", in print_perf_limit()
2072 (msr & 1 << 11) ? "PkgPwrL2, " : "", in print_perf_limit()
2073 (msr & 1 << 10) ? "PkgPwrL1, " : "", in print_perf_limit()
2074 (msr & 1 << 9) ? "CorePwr, " : "", in print_perf_limit()
2075 (msr & 1 << 8) ? "Amps, " : "", in print_perf_limit()
2076 (msr & 1 << 6) ? "VR-Therm, " : "", in print_perf_limit()
2077 (msr & 1 << 5) ? "Auto-HWP, " : "", in print_perf_limit()
2078 (msr & 1 << 4) ? "Graphics, " : "", in print_perf_limit()
2079 (msr & 1 << 2) ? "bit2, " : "", in print_perf_limit()
2080 (msr & 1 << 1) ? "ThermStatus, " : "", in print_perf_limit()
2081 (msr & 1 << 0) ? "PROCHOT, " : ""); in print_perf_limit()
2083 (msr & 1 << 31) ? "bit31, " : "", in print_perf_limit()
2084 (msr & 1 << 30) ? "bit30, " : "", in print_perf_limit()
2085 (msr & 1 << 29) ? "Transitions, " : "", in print_perf_limit()
2086 (msr & 1 << 28) ? "MultiCoreTurbo, " : "", in print_perf_limit()
2087 (msr & 1 << 27) ? "PkgPwrL2, " : "", in print_perf_limit()
2088 (msr & 1 << 26) ? "PkgPwrL1, " : "", in print_perf_limit()
2089 (msr & 1 << 25) ? "CorePwr, " : "", in print_perf_limit()
2090 (msr & 1 << 24) ? "Amps, " : "", in print_perf_limit()
2091 (msr & 1 << 22) ? "VR-Therm, " : "", in print_perf_limit()
2092 (msr & 1 << 21) ? "Auto-HWP, " : "", in print_perf_limit()
2093 (msr & 1 << 20) ? "Graphics, " : "", in print_perf_limit()
2094 (msr & 1 << 18) ? "bit18, " : "", in print_perf_limit()
2095 (msr & 1 << 17) ? "ThermStatus, " : "", in print_perf_limit()
2096 (msr & 1 << 16) ? "PROCHOT, " : ""); in print_perf_limit()
2100 get_msr(cpu, MSR_GFX_PERF_LIMIT_REASONS, &msr); in print_perf_limit()
2101 fprintf(stderr, "cpu%d: MSR_GFX_PERF_LIMIT_REASONS, 0x%08llx", cpu, msr); in print_perf_limit()
2103 (msr & 1 << 0) ? "PROCHOT, " : "", in print_perf_limit()
2104 (msr & 1 << 1) ? "ThermStatus, " : "", in print_perf_limit()
2105 (msr & 1 << 4) ? "Graphics, " : "", in print_perf_limit()
2106 (msr & 1 << 6) ? "VR-Therm, " : "", in print_perf_limit()
2107 (msr & 1 << 8) ? "Amps, " : "", in print_perf_limit()
2108 (msr & 1 << 9) ? "GFXPwr, " : "", in print_perf_limit()
2109 (msr & 1 << 10) ? "PkgPwrL1, " : "", in print_perf_limit()
2110 (msr & 1 << 11) ? "PkgPwrL2, " : ""); in print_perf_limit()
2112 (msr & 1 << 16) ? "PROCHOT, " : "", in print_perf_limit()
2113 (msr & 1 << 17) ? "ThermStatus, " : "", in print_perf_limit()
2114 (msr & 1 << 20) ? "Graphics, " : "", in print_perf_limit()
2115 (msr & 1 << 22) ? "VR-Therm, " : "", in print_perf_limit()
2116 (msr & 1 << 24) ? "Amps, " : "", in print_perf_limit()
2117 (msr & 1 << 25) ? "GFXPwr, " : "", in print_perf_limit()
2118 (msr & 1 << 26) ? "PkgPwrL1, " : "", in print_perf_limit()
2119 (msr & 1 << 27) ? "PkgPwrL2, " : ""); in print_perf_limit()
2122 get_msr(cpu, MSR_RING_PERF_LIMIT_REASONS, &msr); in print_perf_limit()
2123 fprintf(stderr, "cpu%d: MSR_RING_PERF_LIMIT_REASONS, 0x%08llx", cpu, msr); in print_perf_limit()
2125 (msr & 1 << 0) ? "PROCHOT, " : "", in print_perf_limit()
2126 (msr & 1 << 1) ? "ThermStatus, " : "", in print_perf_limit()
2127 (msr & 1 << 6) ? "VR-Therm, " : "", in print_perf_limit()
2128 (msr & 1 << 8) ? "Amps, " : "", in print_perf_limit()
2129 (msr & 1 << 10) ? "PkgPwrL1, " : "", in print_perf_limit()
2130 (msr & 1 << 11) ? "PkgPwrL2, " : ""); in print_perf_limit()
2132 (msr & 1 << 16) ? "PROCHOT, " : "", in print_perf_limit()
2133 (msr & 1 << 17) ? "ThermStatus, " : "", in print_perf_limit()
2134 (msr & 1 << 22) ? "VR-Therm, " : "", in print_perf_limit()
2135 (msr & 1 << 24) ? "Amps, " : "", in print_perf_limit()
2136 (msr & 1 << 26) ? "PkgPwrL1, " : "", in print_perf_limit()
2137 (msr & 1 << 27) ? "PkgPwrL2, " : ""); in print_perf_limit()
2147 unsigned long long msr; in get_tdp() local
2150 if (!get_msr(base_cpu, MSR_PKG_POWER_INFO, &msr)) in get_tdp()
2151 return ((msr >> 0) & RAPL_POWER_GRANULARITY) * rapl_power_units; in get_tdp()
2190 unsigned long long msr; in rapl_probe() local
2233 if (get_msr(base_cpu, MSR_RAPL_POWER_UNIT, &msr)) in rapl_probe()
2236 rapl_power_units = 1.0 / (1 << (msr & 0xF)); in rapl_probe()
2238 rapl_energy_units = 1.0 * (1 << (msr >> 8 & 0x1F)) / 1000000; in rapl_probe()
2240 rapl_energy_units = 1.0 / (1 << (msr >> 8 & 0x1F)); in rapl_probe()
2244 time_unit = msr >> 16 & 0xF; in rapl_probe()
2282 unsigned long long msr; in print_thermal() local
2301 if (get_msr(cpu, MSR_IA32_PACKAGE_THERM_STATUS, &msr)) in print_thermal()
2304 dts = (msr >> 16) & 0x7F; in print_thermal()
2306 cpu, msr, tcc_activation_temp - dts); in print_thermal()
2309 if (get_msr(cpu, MSR_IA32_PACKAGE_THERM_INTERRUPT, &msr)) in print_thermal()
2312 dts = (msr >> 16) & 0x7F; in print_thermal()
2313 dts2 = (msr >> 8) & 0x7F; in print_thermal()
2315 cpu, msr, tcc_activation_temp - dts, tcc_activation_temp - dts2); in print_thermal()
2323 if (get_msr(cpu, MSR_IA32_THERM_STATUS, &msr)) in print_thermal()
2326 dts = (msr >> 16) & 0x7F; in print_thermal()
2327 resolution = (msr >> 27) & 0xF; in print_thermal()
2329 cpu, msr, tcc_activation_temp - dts, resolution); in print_thermal()
2332 if (get_msr(cpu, MSR_IA32_THERM_INTERRUPT, &msr)) in print_thermal()
2335 dts = (msr >> 16) & 0x7F; in print_thermal()
2336 dts2 = (msr >> 8) & 0x7F; in print_thermal()
2338 cpu, msr, tcc_activation_temp - dts, tcc_activation_temp - dts2); in print_thermal()
2345 void print_power_limit_msr(int cpu, unsigned long long msr, char *label) in print_power_limit_msr() argument
2349 ((msr >> 15) & 1) ? "EN" : "DIS", in print_power_limit_msr()
2350 ((msr >> 0) & 0x7FFF) * rapl_power_units, in print_power_limit_msr()
2351 (1.0 + (((msr >> 22) & 0x3)/4.0)) * (1 << ((msr >> 17) & 0x1F)) * rapl_time_units, in print_power_limit_msr()
2352 (((msr >> 16) & 1) ? "EN" : "DIS")); in print_power_limit_msr()
2359 unsigned long long msr; in print_rapl() local
2375 if (get_msr(cpu, MSR_RAPL_POWER_UNIT, &msr)) in print_rapl()
2380 "(%f Watts, %f Joules, %f sec.)\n", cpu, msr, in print_rapl()
2385 if (get_msr(cpu, MSR_PKG_POWER_INFO, &msr)) in print_rapl()
2390 cpu, msr, in print_rapl()
2391 ((msr >> 0) & RAPL_POWER_GRANULARITY) * rapl_power_units, in print_rapl()
2392 ((msr >> 16) & RAPL_POWER_GRANULARITY) * rapl_power_units, in print_rapl()
2393 ((msr >> 32) & RAPL_POWER_GRANULARITY) * rapl_power_units, in print_rapl()
2394 ((msr >> 48) & RAPL_TIME_GRANULARITY) * rapl_time_units); in print_rapl()
2399 if (get_msr(cpu, MSR_PKG_POWER_LIMIT, &msr)) in print_rapl()
2403 cpu, msr, (msr >> 63) & 1 ? "": "UN"); in print_rapl()
2405 print_power_limit_msr(cpu, msr, "PKG Limit #1"); in print_rapl()
2408 ((msr >> 47) & 1) ? "EN" : "DIS", in print_rapl()
2409 ((msr >> 32) & 0x7FFF) * rapl_power_units, in print_rapl()
2410 (1.0 + (((msr >> 54) & 0x3)/4.0)) * (1 << ((msr >> 49) & 0x1F)) * rapl_time_units, in print_rapl()
2411 ((msr >> 48) & 1) ? "EN" : "DIS"); in print_rapl()
2415 if (get_msr(cpu, MSR_DRAM_POWER_INFO, &msr)) in print_rapl()
2419 cpu, msr, in print_rapl()
2420 ((msr >> 0) & RAPL_POWER_GRANULARITY) * rapl_power_units, in print_rapl()
2421 ((msr >> 16) & RAPL_POWER_GRANULARITY) * rapl_power_units, in print_rapl()
2422 ((msr >> 32) & RAPL_POWER_GRANULARITY) * rapl_power_units, in print_rapl()
2423 ((msr >> 48) & RAPL_TIME_GRANULARITY) * rapl_time_units); in print_rapl()
2426 if (get_msr(cpu, MSR_DRAM_POWER_LIMIT, &msr)) in print_rapl()
2429 cpu, msr, (msr >> 31) & 1 ? "": "UN"); in print_rapl()
2431 print_power_limit_msr(cpu, msr, "DRAM Limit"); in print_rapl()
2435 if (get_msr(cpu, MSR_PP0_POLICY, &msr)) in print_rapl()
2438 fprintf(stderr, "cpu%d: MSR_PP0_POLICY: %lld\n", cpu, msr & 0xF); in print_rapl()
2444 if (get_msr(cpu, MSR_PP0_POWER_LIMIT, &msr)) in print_rapl()
2447 cpu, msr, (msr >> 31) & 1 ? "": "UN"); in print_rapl()
2448 print_power_limit_msr(cpu, msr, "Cores Limit"); in print_rapl()
2453 if (get_msr(cpu, MSR_PP1_POLICY, &msr)) in print_rapl()
2456 fprintf(stderr, "cpu%d: MSR_PP1_POLICY: %lld\n", cpu, msr & 0xF); in print_rapl()
2458 if (get_msr(cpu, MSR_PP1_POWER_LIMIT, &msr)) in print_rapl()
2461 cpu, msr, (msr >> 31) & 1 ? "": "UN"); in print_rapl()
2462 print_power_limit_msr(cpu, msr, "GFX Limit"); in print_rapl()
2581 unsigned long long msr = 3; in slm_bclk() local
2585 if (get_msr(base_cpu, MSR_FSB_FREQ, &msr)) in slm_bclk()
2588 i = msr & 0xf; in slm_bclk()
2591 msr = 3; in slm_bclk()
2624 unsigned long long msr; in set_temperature_target() local
2653 if (get_msr(base_cpu, MSR_IA32_TEMPERATURE_TARGET, &msr)) in set_temperature_target()
2656 target_c_local = (msr >> 16) & 0xFF; in set_temperature_target()
2660 cpu, msr, target_c_local); in set_temperature_target()