Home
last modified time | relevance | path

Searched refs:rdmsrl_safe (Results 1 – 25 of 38) sorted by relevance

12

/linux-6.1.9/arch/x86/kernel/cpu/
Daperfmperf.c102 err = rdmsrl_safe(MSR_IA32_MISC_ENABLE, &misc_en); in turbo_disabled()
113 err = rdmsrl_safe(MSR_ATOM_CORE_RATIOS, base_freq); in slv_set_max_freq_ratio()
117 err = rdmsrl_safe(MSR_ATOM_CORE_TURBO_RATIOS, turbo_freq); in slv_set_max_freq_ratio()
156 err = rdmsrl_safe(MSR_PLATFORM_INFO, base_freq); in knl_set_max_freq_ratio()
162 err = rdmsrl_safe(MSR_TURBO_RATIO_LIMIT, &msr); in knl_set_max_freq_ratio()
194 err = rdmsrl_safe(MSR_PLATFORM_INFO, base_freq); in skx_set_max_freq_ratio()
200 err = rdmsrl_safe(MSR_TURBO_RATIO_LIMIT, &ratios); in skx_set_max_freq_ratio()
204 err = rdmsrl_safe(MSR_TURBO_RATIO_LIMIT1, &counts); in skx_set_max_freq_ratio()
224 err = rdmsrl_safe(MSR_PLATFORM_INFO, base_freq); in core_set_max_freq_ratio()
228 err = rdmsrl_safe(MSR_TURBO_RATIO_LIMIT, &msr); in core_set_max_freq_ratio()
Damd.c539 if (!rdmsrl_safe(MSR_AMD64_LS_CFG, &x86_amd_ls_cfg_base)) { in bsp_init_amd()
849 if (!rdmsrl_safe(MSR_F15H_IC_CFG, &value) && !(value & 0x1E)) { in init_amd_bd()
877 if (!rdmsrl_safe(MSR_ZEN2_SPECTRAL_CHICKEN, &value)) { in init_spectral_chicken()
Dfeat_ctl.c119 if (rdmsrl_safe(MSR_IA32_FEAT_CTL, &msr)) { in init_ia32_feat_ctl()
Dintel.c618 if (!rdmsrl_safe(MSR_PLATFORM_INFO, &msr)) { in init_cpuid_fault()
628 if (rdmsrl_safe(MSR_MISC_FEATURES_ENABLES, &msr)) in init_intel_misc_features()
1088 if (rdmsrl_safe(MSR_TEST_CTRL, &ctrl)) in split_lock_verify_msr()
Dhygon.c232 if (!rdmsrl_safe(MSR_AMD64_LS_CFG, &x86_amd_ls_cfg_base)) { in bsp_init_hygon()
/linux-6.1.9/drivers/gpu/drm/i915/selftests/
Dlibrapl.c25 if (rdmsrl_safe(MSR_RAPL_POWER_UNIT, &power)) in librapl_energy_uJ()
30 if (rdmsrl_safe(MSR_PP1_ENERGY_STATUS, &power)) in librapl_energy_uJ()
/linux-6.1.9/drivers/thermal/intel/
Dintel_tcc_cooling.c32 err = rdmsrl_safe(MSR_IA32_TEMPERATURE_TARGET, &val); in tcc_offset_update()
52 err = rdmsrl_safe(MSR_IA32_TEMPERATURE_TARGET, &val); in tcc_get_cur_state()
104 err = rdmsrl_safe(MSR_PLATFORM_INFO, &val); in tcc_cooling_init()
Dintel_powerclamp.c233 if (!rdmsrl_safe(info->msr_index, &val)) in has_pkg_state_counter()
249 if (!rdmsrl_safe(info->msr_index, &val)) in pkg_state_counter()
/linux-6.1.9/drivers/platform/x86/intel/ifs/
Dcore.c42 if (rdmsrl_safe(MSR_IA32_CORE_CAPS, &msrval)) in ifs_init()
48 if (rdmsrl_safe(MSR_INTEGRITY_CAPS, &msrval)) in ifs_init()
/linux-6.1.9/drivers/platform/x86/intel/speed_select_if/
Disst_if_mbox_msr.c181 ret = rdmsrl_safe(MSR_OS_MAILBOX_INTERFACE, &data); in isst_if_mbox_init()
185 ret = rdmsrl_safe(MSR_OS_MAILBOX_DATA, &data); in isst_if_mbox_init()
Disst_if_common.c399 ret = rdmsrl_safe(MSR_CPU_BUS_NUMBER, &data); in isst_if_cpu_online()
411 ret = rdmsrl_safe(MSR_THREAD_ID_INFO, &data); in isst_if_cpu_online()
/linux-6.1.9/drivers/hwmon/
Dfam15h_power.c147 rdmsrl_safe(MSR_F15H_CU_PWR_ACCUMULATOR, &data->cu_acc_power[cu]); in do_read_registers_on_cu()
148 rdmsrl_safe(MSR_F15H_PTSC, &data->cpu_sw_pwr_ptsc[cu]); in do_read_registers_on_cu()
428 if (rdmsrl_safe(MSR_F15H_CU_MAX_PWR_ACCUMULATOR, &tmp)) { in fam15h_power_init_data()
/linux-6.1.9/drivers/thermal/intel/int340x_thermal/
Dprocessor_thermal_device.c76 err = rdmsrl_safe(MSR_IA32_TEMPERATURE_TARGET, &val); in tcc_get_offset()
104 err = rdmsrl_safe(MSR_IA32_TEMPERATURE_TARGET, &val); in tcc_offset_update()
129 err = rdmsrl_safe(MSR_PLATFORM_INFO, &val); in tcc_offset_degree_celsius_store()
/linux-6.1.9/arch/x86/events/
Dprobe.c46 if (rdmsrl_safe(msr[bit].msr, &val)) in perf_msr_probe()
/linux-6.1.9/drivers/platform/x86/intel/
Dturbo_max_3.c51 ret = rdmsrl_safe(MSR_OC_MAILBOX, &value); in get_oc_core_priority()
/linux-6.1.9/arch/x86/power/
Dcpu.c126 ctxt->misc_enable_saved = !rdmsrl_safe(MSR_IA32_MISC_ENABLE, in __save_processor_state()
439 msr_array[i].valid = !rdmsrl_safe(msr_id[j], &dummy); in msr_build_context()
/linux-6.1.9/arch/x86/lib/
Dmsr.c44 err = rdmsrl_safe(msr, &val); in msr_read()
/linux-6.1.9/arch/x86/include/asm/
Dmsr.h281 static inline int rdmsrl_safe(unsigned int msr, unsigned long long *p) in rdmsrl_safe() function
368 return rdmsrl_safe(msr_no, q); in rdmsrl_safe_on_cpu()
/linux-6.1.9/drivers/cpufreq/
Damd_freq_sensitivity.c132 if (rdmsrl_safe(MSR_AMD64_FREQ_SENSITIVITY_ACTUAL, &val)) in amd_freq_sensitivity_init()
Damd-pstate-ut.c110 ret = rdmsrl_safe(MSR_AMD_CPPC_ENABLE, &cppc_enable); in amd_pstate_ut_pstate_enable()
/linux-6.1.9/drivers/acpi/
Dacpi_lpit.c41 err = rdmsrl_safe(residency_info_ffh.gaddr.address, counter); in lpit_read_residency_counter_us()
Dacpi_extlog.c232 if (rdmsrl_safe(MSR_IA32_MCG_CAP, &cap) || in extlog_init()
/linux-6.1.9/drivers/powercap/
Dintel_rapl_msr.c117 ra->err = rdmsrl_safe(msr, &val); in rapl_msr_update_func()
/linux-6.1.9/arch/x86/events/amd/
Dpower.c275 if (rdmsrl_safe(MSR_F15H_CU_MAX_PWR_ACCUMULATOR, &max_cu_acc_power)) { in amd_power_pmu_init()
/linux-6.1.9/drivers/i2c/busses/
Di2c-designware-amdpsp.c71 if (rdmsrl_safe(MSR_AMD_PSP_ADDR, &psp_mmio)) in psp_get_mbox_addr()

12