Home
last modified time | relevance | path

Searched refs:rdmsrl (Results 1 – 25 of 72) sorted by relevance

123

/Linux-v4.19/arch/x86/oprofile/
Dop_model_amd.c142 rdmsrl(MSR_AMD64_IBSFETCHCTL, ctl); in op_amd_handle_ibs()
144 rdmsrl(MSR_AMD64_IBSFETCHLINAD, val); in op_amd_handle_ibs()
149 rdmsrl(MSR_AMD64_IBSFETCHPHYSAD, val); in op_amd_handle_ibs()
161 rdmsrl(MSR_AMD64_IBSOPCTL, ctl); in op_amd_handle_ibs()
163 rdmsrl(MSR_AMD64_IBSOPRIP, val); in op_amd_handle_ibs()
167 rdmsrl(MSR_AMD64_IBSOPDATA, val); in op_amd_handle_ibs()
169 rdmsrl(MSR_AMD64_IBSOPDATA2, val); in op_amd_handle_ibs()
171 rdmsrl(MSR_AMD64_IBSOPDATA3, val); in op_amd_handle_ibs()
173 rdmsrl(MSR_AMD64_IBSDCLINAD, val); in op_amd_handle_ibs()
175 rdmsrl(MSR_AMD64_IBSDCPHYSAD, val); in op_amd_handle_ibs()
[all …]
Dop_model_ppro.c99 rdmsrl(msrs->controls[i].addr, val); in ppro_setup_ctrs()
116 rdmsrl(msrs->controls[i].addr, val); in ppro_setup_ctrs()
136 rdmsrl(msrs->counters[i].addr, val); in ppro_check_ctrs()
165 rdmsrl(msrs->controls[i].addr, val); in ppro_start()
181 rdmsrl(msrs->controls[i].addr, val); in ppro_stop()
/Linux-v4.19/arch/x86/hyperv/
Dhv_init.c49 rdmsrl(HV_X64_MSR_TIME_REF_COUNT, current_tick); in read_hv_clock_tsc()
71 rdmsrl(HV_X64_MSR_TIME_REF_COUNT, current_tick); in read_hv_clock_msr()
140 rdmsrl(HV_X64_MSR_TSC_EMULATION_STATUS, *(u64 *)&emu_status); in hv_reenlightenment_notify()
153 rdmsrl(HV_X64_MSR_TSC_EMULATION_STATUS, *(u64 *)&emu_status); in hyperv_stop_tsc_emulation()
157 rdmsrl(HV_X64_MSR_TSC_FREQUENCY, freq); in hyperv_stop_tsc_emulation()
215 rdmsrl(HV_X64_MSR_REENLIGHTENMENT_CONTROL, *(u64 *)&re_ctrl); in clear_hv_tscchange_cb()
244 rdmsrl(HV_X64_MSR_REENLIGHTENMENT_CONTROL, *((u64 *)&re_ctrl)); in hv_cpu_die()
325 rdmsrl(HV_X64_MSR_HYPERCALL, hypercall_msr.as_uint64); in hyperv_init()
345 rdmsrl(HV_X64_MSR_REFERENCE_TSC, tsc_msr.as_uint64); in hyperv_init()
414 rdmsrl(HV_X64_MSR_GUEST_OS_ID, guest_id); in hyperv_report_panic()
[all …]
/Linux-v4.19/arch/x86/kernel/cpu/mcheck/
Dmce_intel.c92 rdmsrl(MSR_IA32_MCG_CAP, cap); in cmci_supported()
104 rdmsrl(MSR_IA32_MCG_CAP, tmp); in lmce_supported()
119 rdmsrl(MSR_IA32_FEATURE_CONTROL, tmp); in lmce_supported()
161 rdmsrl(MSR_IA32_MCx_CTL2(bank), val); in cmci_toggle_interrupt_mode()
283 rdmsrl(MSR_IA32_MCx_CTL2(i), val); in cmci_discover()
307 rdmsrl(MSR_IA32_MCx_CTL2(i), val); in cmci_discover()
359 rdmsrl(MSR_IA32_MCx_CTL2(bank), val); in __cmci_disable_bank()
452 rdmsrl(MSR_IA32_MCG_EXT_CTL, val); in intel_init_lmce()
465 rdmsrl(MSR_IA32_MCG_EXT_CTL, val); in intel_clear_lmce()
/Linux-v4.19/arch/x86/platform/olpc/
Dolpc-xo1-rtc.c70 rdmsrl(MSR_RTC_DOMA_OFFSET, rtc_info.rtc_day_alarm); in xo1_rtc_init()
71 rdmsrl(MSR_RTC_MONA_OFFSET, rtc_info.rtc_mon_alarm); in xo1_rtc_init()
72 rdmsrl(MSR_RTC_CEN_OFFSET, rtc_info.rtc_century); in xo1_rtc_init()
/Linux-v4.19/arch/x86/include/asm/
Dmshyperv.h84 #define hv_get_simp(val) rdmsrl(HV_X64_MSR_SIMP, val)
87 #define hv_get_siefp(val) rdmsrl(HV_X64_MSR_SIEFP, val)
90 #define hv_get_synic_state(val) rdmsrl(HV_X64_MSR_SCONTROL, val)
93 #define hv_get_vp_index(index) rdmsrl(HV_X64_MSR_VP_INDEX, index)
96 rdmsrl(HV_X64_MSR_SINT0 + int_num, val)
101 rdmsrl(HV_X64_MSR_CRASH_CTL, val)
/Linux-v4.19/arch/x86/events/amd/
Dpower.c58 rdmsrl(MSR_F15H_CU_PWR_ACCUMULATOR, new_pwr_acc); in event_update()
59 rdmsrl(MSR_F15H_PTSC, new_ptsc); in event_update()
85 rdmsrl(MSR_F15H_PTSC, event->hw.ptsc); in __pmu_event_start()
86 rdmsrl(MSR_F15H_CU_PWR_ACCUMULATOR, event->hw.pwr_acc); in __pmu_event_start()
Dibs.c370 rdmsrl(event->hw.config_base, *config); in perf_ibs_event_update()
444 rdmsrl(hwc->config_base, config); in perf_ibs_stop()
611 rdmsrl(msr, *buf); in perf_ibs_handle_irq()
632 rdmsrl(msr + offset, *buf++); in perf_ibs_handle_irq()
645 rdmsrl(MSR_AMD64_IBSBRTARGET, *buf++); in perf_ibs_handle_irq()
649 rdmsrl(MSR_AMD64_IBSOPDATA4, *buf++); in perf_ibs_handle_irq()
807 rdmsrl(MSR_AMD64_IBSCTL, val); in ibs_eilvt_valid()
922 rdmsrl(MSR_AMD64_IBSCTL, val); in get_ibs_lvt_offset()
/Linux-v4.19/drivers/video/fbdev/geode/
Dvideo_gx.c149 rdmsrl(MSR_GLCP_SYS_RSTPLL, sys_rstpll); in gx_set_dclk_frequency()
150 rdmsrl(MSR_GLCP_DOTPLL, dotpll); in gx_set_dclk_frequency()
174 rdmsrl(MSR_GLCP_DOTPLL, dotpll); in gx_set_dclk_frequency()
187 rdmsrl(MSR_GX_MSR_PADSEL, val); in gx_configure_tft()
Dsuspend_gx.c30 rdmsrl(MSR_GX_MSR_PADSEL, par->msr.padsel); in gx_save_regs()
31 rdmsrl(MSR_GLCP_DOTPLL, par->msr.dotpll); in gx_save_regs()
52 rdmsrl(MSR_GLCP_DOTPLL, dotpll_lo); in gx_set_dotpll()
59 rdmsrl(MSR_GLCP_DOTPLL, dotpll_lo); in gx_set_dotpll()
/Linux-v4.19/arch/x86/kernel/
Dprocess_64.c94 rdmsrl(MSR_FS_BASE, fs); in __show_regs()
95 rdmsrl(MSR_KERNEL_GS_BASE, shadowgs); in __show_regs()
107 rdmsrl(MSR_FS_BASE, fs); in __show_regs()
108 rdmsrl(MSR_GS_BASE, gs); in __show_regs()
109 rdmsrl(MSR_KERNEL_GS_BASE, shadowgs); in __show_regs()
665 rdmsrl(MSR_FS_BASE, base); in do_arch_prctl_64()
675 rdmsrl(MSR_KERNEL_GS_BASE, base); in do_arch_prctl_64()
Dmmconf-fam10h_64.c99 rdmsrl(address, val); in get_fam10h_pci_mmconf_base()
107 rdmsrl(address, val); in get_fam10h_pci_mmconf_base()
179 rdmsrl(address, val); in fam10h_check_enable_mmcfg()
Dtsc_sync.c66 rdmsrl(MSR_IA32_TSC_ADJUST, curval); in tsc_verify_tsc_adjust()
126 rdmsrl(MSR_IA32_TSC_ADJUST, bootval); in tsc_store_and_check_tsc_adjust()
148 rdmsrl(MSR_IA32_TSC_ADJUST, bootval); in tsc_store_and_check_tsc_adjust()
/Linux-v4.19/arch/x86/power/
Dcpu.c111 rdmsrl(MSR_FS_BASE, ctxt->fs_base); in __save_processor_state()
112 rdmsrl(MSR_GS_BASE, ctxt->kernelmode_gs_base); in __save_processor_state()
113 rdmsrl(MSR_KERNEL_GS_BASE, ctxt->usermode_gs_base); in __save_processor_state()
116 rdmsrl(MSR_EFER, ctxt->efer); in __save_processor_state()
/Linux-v4.19/arch/x86/kernel/cpu/
Damd.c366 rdmsrl(MSR_FAM10H_NODE_ID, value); in amd_get_topology()
514 rdmsrl(MSR_K7_HWCR, val); in bsp_init_amd()
546 rdmsrl(MSR_FAM10H_NODE_ID, value); in bsp_init_amd()
591 rdmsrl(MSR_K8_SYSCFG, msr); in early_detect_mem_encrypt()
605 rdmsrl(MSR_K7_HWCR, msr); in early_detect_mem_encrypt()
706 rdmsrl(0xc0011005, value); in early_init_amd()
1057 rdmsrl(MSR_AMD64_OSVW_ID_LENGTH, osvw_len); in cpu_has_amd_erratum()
1061 rdmsrl(MSR_AMD64_OSVW_STATUS + (osvw_id >> 6), in cpu_has_amd_erratum()
Daperfmperf.c46 rdmsrl(MSR_IA32_APERF, aperf); in aperfmperf_snapshot_khz()
47 rdmsrl(MSR_IA32_MPERF, mperf); in aperfmperf_snapshot_khz()
/Linux-v4.19/arch/x86/pci/
Damd_bus.c196 rdmsrl(address, val); in early_root_info_init()
287 rdmsrl(address, val); in early_root_info_init()
292 rdmsrl(address, val); in early_root_info_init()
335 rdmsrl(MSR_AMD64_NB_CFG, reg); in amd_bus_cpu_online()
/Linux-v4.19/arch/x86/kernel/apic/
Dapic_numachip.c34 rdmsrl(MSR_FAM10H_NODE_ID, value); in numachip1_get_apic_id()
50 rdmsrl(MSR_FAM10H_MMIO_CONF_BASE, mcfg); in numachip2_get_apic_id()
179 rdmsrl(MSR_FAM10H_NODE_ID, val); in fixup_cpu_id()
/Linux-v4.19/arch/x86/events/intel/
Dknc.c162 rdmsrl(MSR_KNC_IA32_PERF_GLOBAL_CTRL, val); in knc_pmu_disable_all()
171 rdmsrl(MSR_KNC_IA32_PERF_GLOBAL_CTRL, val); in knc_pmu_enable_all()
203 rdmsrl(MSR_KNC_IA32_PERF_GLOBAL_STATUS, status); in knc_pmu_get_status()
Dlbr.c174 rdmsrl(MSR_IA32_DEBUGCTLMSR, debugctl); in __intel_pmu_lbr_enable()
192 rdmsrl(MSR_IA32_DEBUGCTLMSR, debugctl); in __intel_pmu_lbr_disable()
240 rdmsrl(x86_pmu.lbr_tos, tos); in intel_pmu_lbr_tos()
326 rdmsrl(x86_pmu.lbr_from + idx, val); in rdlbr_from()
335 rdmsrl(x86_pmu.lbr_to + idx, val); in rdlbr_to()
410 rdmsrl(MSR_LBR_INFO_0 + lbr_idx, task_ctx->lbr_info[i]); in __intel_pmu_lbr_save()
547 rdmsrl(x86_pmu.lbr_from + lbr_idx, msr_lastbranch.lbr); in intel_pmu_lbr_read_32()
603 rdmsrl(MSR_LBR_INFO_0 + lbr_idx, info); in intel_pmu_lbr_read_64()
/Linux-v4.19/drivers/cpufreq/
Dpowernow-k7.c222 rdmsrl(MSR_K7_FID_VID_CTL, fidvidctl.val); in change_FID()
237 rdmsrl(MSR_K7_FID_VID_CTL, fidvidctl.val); in change_VID()
263 rdmsrl(MSR_K7_FID_VID_STATUS, fidvidstatus.val); in powernow_target()
560 rdmsrl(MSR_K7_FID_VID_STATUS, fidvidstatus.val); in powernow_get()
601 rdmsrl(MSR_K7_FID_VID_STATUS, fidvidstatus.val); in powernow_cpu_init()
Dintel_pstate.c483 rdmsrl(MSR_IA32_MISC_ENABLE, misc_en); in update_turbo_state()
1164 rdmsrl(MSR_ATOM_CORE_RATIOS, value); in atom_get_min_pstate()
1172 rdmsrl(MSR_ATOM_CORE_RATIOS, value); in atom_get_max_pstate()
1180 rdmsrl(MSR_ATOM_CORE_TURBO_RATIOS, value); in atom_get_turbo_pstate()
1215 rdmsrl(MSR_FSB_FREQ, value); in silvermont_get_scaling()
1231 rdmsrl(MSR_FSB_FREQ, value); in airmont_get_scaling()
1242 rdmsrl(MSR_ATOM_CORE_VIDS, value); in atom_get_vid()
1250 rdmsrl(MSR_ATOM_CORE_TURBO_VIDS, value); in atom_get_vid()
1258 rdmsrl(MSR_PLATFORM_INFO, value); in core_get_min_pstate()
1266 rdmsrl(MSR_PLATFORM_INFO, value); in core_get_max_pstate_physical()
[all …]
/Linux-v4.19/drivers/idle/
Dintel_idle.c971 rdmsrl(MSR_PKG_CST_CONFIG_CONTROL, msr_bits); in auto_demotion_disable()
979 rdmsrl(MSR_IA32_POWER_CTL, msr_bits); in c1e_promotion_disable()
1233 rdmsrl(MSR_PKGC6_IRTL, msr); in bxt_idle_state_table_update()
1240 rdmsrl(MSR_PKGC7_IRTL, msr); in bxt_idle_state_table_update()
1247 rdmsrl(MSR_PKGC8_IRTL, msr); in bxt_idle_state_table_update()
1254 rdmsrl(MSR_PKGC9_IRTL, msr); in bxt_idle_state_table_update()
1261 rdmsrl(MSR_PKGC10_IRTL, msr); in bxt_idle_state_table_update()
1289 rdmsrl(MSR_PKG_CST_CONFIG_CONTROL, msr); in sklh_idle_state_table_update()
1301 rdmsrl(MSR_IA32_FEATURE_CONTROL, msr); in sklh_idle_state_table_update()
/Linux-v4.19/drivers/platform/x86/
Dintel_ips.c383 rdmsrl(TURBO_POWER_CURRENT_LIMIT, turbo_override); in ips_cpu_raise()
418 rdmsrl(TURBO_POWER_CURRENT_LIMIT, turbo_override); in ips_cpu_lower()
450 rdmsrl(IA32_PERF_CTL, perf_ctl); in do_enable_cpu_turbo()
488 rdmsrl(IA32_PERF_CTL, perf_ctl); in do_disable_cpu_turbo()
1254 rdmsrl(TURBO_POWER_CURRENT_LIMIT, turbo_override); in show_cpu_clamp()
1370 rdmsrl(IA32_MISC_ENABLE, misc_en); in ips_detect_cpu()
1392 rdmsrl(TURBO_POWER_CURRENT_LIMIT, turbo_power); in ips_detect_cpu()
1574 rdmsrl(PLATFORM_INFO, platform_info); in ips_probe()
1607 rdmsrl(TURBO_POWER_CURRENT_LIMIT, ips->orig_turbo_limit); in ips_probe()
1677 rdmsrl(TURBO_POWER_CURRENT_LIMIT, turbo_override); in ips_remove()
/Linux-v4.19/drivers/mtd/nand/raw/
Dcs553x_nand.c289 rdmsrl(MSR_DIVIL_GLD_CAP, val); in cs553x_init()
295 rdmsrl(MSR_DIVIL_BALL_OPTS, val); in cs553x_init()
302 rdmsrl(MSR_DIVIL_LBAR_FLSH0 + i, val); in cs553x_init()

123