Home
last modified time | relevance | path

Searched refs:wrmsrl (Results 1 – 25 of 64) sorted by relevance

123

/Linux-v4.19/arch/x86/hyperv/
Dhv_init.c128 wrmsrl(HV_X64_MSR_VP_ASSIST_PAGE, val); in hv_cpu_init()
155 wrmsrl(HV_X64_MSR_TSC_EMULATION_STATUS, *(u64 *)&emu_status); in hyperv_stop_tsc_emulation()
203 wrmsrl(HV_X64_MSR_REENLIGHTENMENT_CONTROL, *((u64 *)&re_ctrl)); in set_hv_tscchange_cb()
204 wrmsrl(HV_X64_MSR_TSC_EMULATION_CONTROL, *((u64 *)&emu_ctrl)); in set_hv_tscchange_cb()
217 wrmsrl(HV_X64_MSR_REENLIGHTENMENT_CONTROL, *(u64 *)&re_ctrl); in clear_hv_tscchange_cb()
239 wrmsrl(HV_X64_MSR_VP_ASSIST_PAGE, 0); in hv_cpu_die()
250 wrmsrl(HV_X64_MSR_REENLIGHTENMENT_CONTROL, *((u64 *)&re_ctrl)); in hv_cpu_die()
317 wrmsrl(HV_X64_MSR_GUEST_OS_ID, guest_id); in hyperv_init()
321 wrmsrl(HV_X64_MSR_GUEST_OS_ID, 0); in hyperv_init()
328 wrmsrl(HV_X64_MSR_HYPERCALL, hypercall_msr.as_uint64); in hyperv_init()
[all …]
/Linux-v4.19/arch/x86/oprofile/
Dop_model_amd.c156 wrmsrl(MSR_AMD64_IBSFETCHCTL, ctl); in op_amd_handle_ibs()
185 wrmsrl(MSR_AMD64_IBSOPCTL, ctl); in op_amd_handle_ibs()
211 wrmsrl(MSR_AMD64_IBSFETCHCTL, val); in op_amd_start_ibs()
248 wrmsrl(MSR_AMD64_IBSOPCTL, val); in op_amd_start_ibs()
259 wrmsrl(MSR_AMD64_IBSFETCHCTL, 0); in op_amd_stop_ibs()
263 wrmsrl(MSR_AMD64_IBSOPCTL, 0); in op_amd_stop_ibs()
282 wrmsrl(msrs->controls[i].addr, val); in op_mux_switch_ctrl()
356 wrmsrl(msrs->controls[i].addr, val); in op_amd_setup_ctrs()
361 wrmsrl(msrs->counters[i].addr, -1LL); in op_amd_setup_ctrs()
371 wrmsrl(msrs->counters[i].addr, -(u64)reset_value[virt]); in op_amd_setup_ctrs()
[all …]
Dop_model_ppro.c103 wrmsrl(msrs->controls[i].addr, val); in ppro_setup_ctrs()
108 wrmsrl(msrs->counters[i].addr, -1LL); in ppro_setup_ctrs()
115 wrmsrl(msrs->counters[i].addr, -reset_value[i]); in ppro_setup_ctrs()
119 wrmsrl(msrs->controls[i].addr, val); in ppro_setup_ctrs()
140 wrmsrl(msrs->counters[i].addr, -reset_value[i]); in ppro_check_ctrs()
167 wrmsrl(msrs->controls[i].addr, val); in ppro_start()
183 wrmsrl(msrs->controls[i].addr, val); in ppro_stop()
/Linux-v4.19/arch/x86/events/intel/
Duncore_nhmex.c202 wrmsrl(NHMEX_U_MSR_PMON_GLOBAL_CTL, NHMEX_U_PMON_GLOBAL_EN_ALL); in nhmex_uncore_msr_init_box()
207 wrmsrl(NHMEX_U_MSR_PMON_GLOBAL_CTL, 0); in nhmex_uncore_msr_exit_box()
221 wrmsrl(msr, config); in nhmex_uncore_msr_disable_box()
236 wrmsrl(msr, config); in nhmex_uncore_msr_enable_box()
242 wrmsrl(event->hw.config_base, 0); in nhmex_uncore_msr_disable_event()
250 wrmsrl(hwc->config_base, NHMEX_PMON_CTL_EN_BIT0); in nhmex_uncore_msr_enable_event()
252 wrmsrl(hwc->config_base, hwc->config | NHMEX_PMON_CTL_EN_BIT22); in nhmex_uncore_msr_enable_event()
254 wrmsrl(hwc->config_base, hwc->config | NHMEX_PMON_CTL_EN_BIT0); in nhmex_uncore_msr_enable_event()
384 wrmsrl(reg1->reg, reg1->config); in nhmex_bbox_msr_enable_event()
385 wrmsrl(reg1->reg + 1, reg2->config); in nhmex_bbox_msr_enable_event()
[all …]
Duncore_snb.c90 wrmsrl(hwc->config_base, hwc->config | SNB_UNC_CTL_EN); in snb_uncore_msr_enable_event()
92 wrmsrl(hwc->config_base, SNB_UNC_CTL_EN); in snb_uncore_msr_enable_event()
97 wrmsrl(event->hw.config_base, 0); in snb_uncore_msr_disable_event()
103 wrmsrl(SNB_UNC_PERF_GLOBAL_CTL, in snb_uncore_msr_init_box()
110 wrmsrl(SNB_UNC_PERF_GLOBAL_CTL, in snb_uncore_msr_enable_box()
117 wrmsrl(SNB_UNC_PERF_GLOBAL_CTL, 0); in snb_uncore_msr_exit_box()
202 wrmsrl(SKL_UNC_PERF_GLOBAL_CTL, in skl_uncore_msr_init_box()
209 wrmsrl(SKL_UNC_PERF_GLOBAL_CTL, in skl_uncore_msr_enable_box()
216 wrmsrl(SKL_UNC_PERF_GLOBAL_CTL, 0); in skl_uncore_msr_exit_box()
683 wrmsrl(NHM_UNC_PERF_GLOBAL_CTL, 0); in nhm_uncore_msr_disable_box()
[all …]
Dlbr.c172 wrmsrl(MSR_LBR_SELECT, lbr_select); in __intel_pmu_lbr_enable()
185 wrmsrl(MSR_IA32_DEBUGCTLMSR, debugctl); in __intel_pmu_lbr_enable()
194 wrmsrl(MSR_IA32_DEBUGCTLMSR, debugctl); in __intel_pmu_lbr_disable()
202 wrmsrl(x86_pmu.lbr_from + i, 0); in intel_pmu_lbr_reset_32()
210 wrmsrl(x86_pmu.lbr_from + i, 0); in intel_pmu_lbr_reset_64()
211 wrmsrl(x86_pmu.lbr_to + i, 0); in intel_pmu_lbr_reset_64()
213 wrmsrl(MSR_LBR_INFO_0 + i, 0); in intel_pmu_lbr_reset_64()
314 wrmsrl(x86_pmu.lbr_from + idx, val); in wrlbr_from()
319 wrmsrl(x86_pmu.lbr_to + idx, val); in wrlbr_to()
373 wrmsrl(MSR_LBR_INFO_0 + lbr_idx, task_ctx->lbr_info[i]); in __intel_pmu_lbr_restore()
[all …]
Dknc.c164 wrmsrl(MSR_KNC_IA32_PERF_GLOBAL_CTRL, val); in knc_pmu_disable_all()
173 wrmsrl(MSR_KNC_IA32_PERF_GLOBAL_CTRL, val); in knc_pmu_enable_all()
210 wrmsrl(MSR_KNC_IA32_PERF_GLOBAL_OVF_CONTROL, ack); in knc_pmu_ack_status()
Dp6.c145 wrmsrl(MSR_P6_EVNTSEL0, val); in p6_pmu_disable_all()
155 wrmsrl(MSR_P6_EVNTSEL0, val); in p6_pmu_enable_all()
Dpt.c454 wrmsrl(pt_address_ranges[range].msr_a, filter->msr_a); in pt_config_filters()
459 wrmsrl(pt_address_ranges[range].msr_b, filter->msr_b); in pt_config_filters()
477 wrmsrl(MSR_IA32_RTIT_STATUS, 0); in pt_config()
507 wrmsrl(MSR_IA32_RTIT_CTL, reg); in pt_config()
521 wrmsrl(MSR_IA32_RTIT_CTL, ctl); in pt_config_stop()
541 wrmsrl(MSR_IA32_RTIT_OUTPUT_BASE, virt_to_phys(buf)); in pt_config_buffer()
545 wrmsrl(MSR_IA32_RTIT_OUTPUT_MASK, reg); in pt_config_buffer()
857 wrmsrl(MSR_IA32_RTIT_STATUS, status); in pt_handle_status()
1331 wrmsrl(MSR_IA32_RTIT_CTL, event->hw.config); in intel_pt_handle_vmx()
/Linux-v4.19/arch/x86/include/asm/
Dmshyperv.h75 wrmsrl(HV_X64_MSR_EOM, 0); in vmbus_signal_eom()
80 wrmsrl(HV_X64_MSR_STIMER0_COUNT + (2*timer), tick)
82 wrmsrl(HV_X64_MSR_STIMER0_CONFIG + (2*timer), val)
85 #define hv_set_simp(val) wrmsrl(HV_X64_MSR_SIMP, val)
88 #define hv_set_siefp(val) wrmsrl(HV_X64_MSR_SIEFP, val)
91 #define hv_set_synic_state(val) wrmsrl(HV_X64_MSR_SCONTROL, val)
98 wrmsrl(HV_X64_MSR_SINT0 + int_num, val)
Dvirtext.h115 wrmsrl(MSR_VM_HSAVE_PA, 0); in cpu_svm_disable()
117 wrmsrl(MSR_EFER, efer & ~EFER_SVME); in cpu_svm_disable()
/Linux-v4.19/arch/x86/power/
Dcpu.c55 wrmsrl(msr->info.msr_no, msr->info.reg.q); in msr_restore_context()
200 wrmsrl(MSR_IA32_MISC_ENABLE, ctxt->misc_enable); in __restore_processor_state()
210 wrmsrl(MSR_EFER, ctxt->efer); in __restore_processor_state()
234 wrmsrl(MSR_GS_BASE, ctxt->kernelmode_gs_base); in __restore_processor_state()
258 wrmsrl(MSR_FS_BASE, ctxt->fs_base); in __restore_processor_state()
259 wrmsrl(MSR_KERNEL_GS_BASE, ctxt->usermode_gs_base); in __restore_processor_state()
/Linux-v4.19/arch/x86/kernel/
Dprocess.c198 wrmsrl(MSR_MISC_FEATURES_ENABLES, msrval); in set_cpuid_faulting()
349 wrmsrl(MSR_AMD64_LS_CFG, msr); in amd_set_core_ssb_state()
366 wrmsrl(MSR_AMD64_LS_CFG, msr); in amd_set_core_ssb_state()
376 wrmsrl(MSR_AMD64_LS_CFG, msr); in amd_set_core_ssb_state()
385 wrmsrl(MSR_AMD64_LS_CFG, msr); in amd_set_core_ssb_state()
395 wrmsrl(MSR_AMD64_VIRT_SPEC_CTRL, ssbd_tif_to_spec_ctrl(tifn)); in amd_set_ssb_virt_state()
402 wrmsrl(MSR_IA32_SPEC_CTRL, msr); in intel_set_ssb_state()
445 wrmsrl(MSR_IA32_DEBUGCTLMSR, debugctl); in __switch_to_xtra()
Dtsc_sync.c71 wrmsrl(MSR_IA32_TSC_ADJUST, adj->adjusted); in tsc_verify_tsc_adjust()
103 wrmsrl(MSR_IA32_TSC_ADJUST, 0); in tsc_sanitize_first_cpu()
192 wrmsrl(MSR_IA32_TSC_ADJUST, ref->adjusted); in tsc_store_and_check_tsc_adjust()
489 wrmsrl(MSR_IA32_TSC_ADJUST, cur->adjusted); in check_tsc_sync_target()
Dkvm.c301 wrmsrl(MSR_KVM_STEAL_TIME, (slow_virt_to_phys(st) | KVM_MSR_ENABLED)); in kvm_register_steal_time()
338 wrmsrl(MSR_KVM_ASYNC_PF_EN, pa); in kvm_guest_cpu_init()
351 wrmsrl(MSR_KVM_PV_EOI_EN, pa); in kvm_guest_cpu_init()
363 wrmsrl(MSR_KVM_ASYNC_PF_EN, 0); in kvm_pv_disable_apf()
378 wrmsrl(MSR_KVM_PV_EOI_EN, 0); in kvm_pv_guest_cpu_reboot()
564 wrmsrl(MSR_KVM_PV_EOI_EN, 0); in kvm_guest_cpu_offline()
Dkvmclock.c87 wrmsrl(msr_kvm_wall_clock, slow_virt_to_phys(&wall_clock)); in kvm_get_wallclock()
197 wrmsrl(msr_kvm_system_time, pa); in kvm_register_clock()
/Linux-v4.19/arch/x86/kernel/cpu/mcheck/
Dmce-inject.c468 wrmsrl(MSR_IA32_MCG_STATUS, m.mcgstatus); in prepare_msrs()
472 wrmsrl(MSR_AMD64_SMCA_MCx_DESTAT(b), m.status); in prepare_msrs()
473 wrmsrl(MSR_AMD64_SMCA_MCx_DEADDR(b), m.addr); in prepare_msrs()
475 wrmsrl(MSR_AMD64_SMCA_MCx_STATUS(b), m.status); in prepare_msrs()
476 wrmsrl(MSR_AMD64_SMCA_MCx_ADDR(b), m.addr); in prepare_msrs()
479 wrmsrl(MSR_AMD64_SMCA_MCx_MISC(b), m.misc); in prepare_msrs()
480 wrmsrl(MSR_AMD64_SMCA_MCx_SYND(b), m.synd); in prepare_msrs()
482 wrmsrl(MSR_IA32_MCx_STATUS(b), m.status); in prepare_msrs()
483 wrmsrl(MSR_IA32_MCx_ADDR(b), m.addr); in prepare_msrs()
484 wrmsrl(MSR_IA32_MCx_MISC(b), m.misc); in prepare_msrs()
Dmce_intel.c168 wrmsrl(MSR_IA32_MCx_CTL2(bank), val); in cmci_toggle_interrupt_mode()
306 wrmsrl(MSR_IA32_MCx_CTL2(i), val); in cmci_discover()
361 wrmsrl(MSR_IA32_MCx_CTL2(bank), val); in __cmci_disable_bank()
455 wrmsrl(MSR_IA32_MCG_EXT_CTL, val | MCG_EXT_CTL_LMCE_EN); in intel_init_lmce()
467 wrmsrl(MSR_IA32_MCG_EXT_CTL, val); in intel_clear_lmce()
/Linux-v4.19/arch/x86/xen/
Dsuspend.c44 wrmsrl(MSR_IA32_SPEC_CTRL, this_cpu_read(spec_ctrl)); in xen_vcpu_notify_restore()
62 wrmsrl(MSR_IA32_SPEC_CTRL, 0); in xen_vcpu_notify_suspend()
/Linux-v4.19/drivers/video/fbdev/geode/
Dvideo_gx.c158 wrmsrl(MSR_GLCP_DOTPLL, dotpll); in gx_set_dclk_frequency()
166 wrmsrl(MSR_GLCP_SYS_RSTPLL, sys_rstpll); in gx_set_dclk_frequency()
170 wrmsrl(MSR_GLCP_DOTPLL, dotpll); in gx_set_dclk_frequency()
190 wrmsrl(MSR_GX_MSR_PADSEL, val); in gx_configure_tft()
Dlxfb_ops.c378 wrmsrl(MSR_LX_GLD_MSR_CONFIG, msrval); in lx_set_mode()
434 wrmsrl(MSR_LX_SPARE_MSR, msrval); in lx_set_mode()
673 wrmsrl(MSR_LX_SPARE_MSR, par->msr.dcspare); in lx_restore_display_ctlr()
737 wrmsrl(MSR_LX_GLD_MSR_CONFIG, par->msr.dfglcfg); in lx_restore_video_proc()
738 wrmsrl(MSR_LX_MSR_PADSEL, par->msr.padsel); in lx_restore_video_proc()
/Linux-v4.19/drivers/cpufreq/
Dlonghaul.c147 wrmsrl(MSR_VIA_BCR2, bcr2.val); in do_longhaul1()
156 wrmsrl(MSR_VIA_BCR2, bcr2.val); in do_longhaul1()
183 wrmsrl(MSR_VIA_LONGHAUL, longhaul.val); in do_powersaver()
197 wrmsrl(MSR_VIA_LONGHAUL, longhaul.val); in do_powersaver()
202 wrmsrl(MSR_VIA_LONGHAUL, longhaul.val); in do_powersaver()
215 wrmsrl(MSR_VIA_LONGHAUL, longhaul.val); in do_powersaver()
220 wrmsrl(MSR_VIA_LONGHAUL, longhaul.val); in do_powersaver()
234 wrmsrl(MSR_VIA_LONGHAUL, longhaul.val); in do_powersaver()
/Linux-v4.19/arch/x86/kernel/cpu/
Dbugs.c176 wrmsrl(MSR_IA32_SPEC_CTRL, msrval); in x86_virt_spec_ctrl()
217 wrmsrl(MSR_AMD64_VIRT_SPEC_CTRL, SPEC_CTRL_SSBD); in x86_amd_ssb_disable()
219 wrmsrl(MSR_AMD64_LS_CFG, msrval); in x86_amd_ssb_disable()
351 wrmsrl(MSR_IA32_SPEC_CTRL, x86_spec_ctrl_base); in spectre_v2_select_mitigation()
546 wrmsrl(MSR_IA32_SPEC_CTRL, x86_spec_ctrl_base); in __ssb_select_mitigation()
654 wrmsrl(MSR_IA32_SPEC_CTRL, x86_spec_ctrl_base); in x86_spec_ctrl_setup_ap()
Dcommon.c500 wrmsrl(MSR_GS_BASE, cpu_kernelmode_gs_base(cpu)); in load_percpu_segment()
1185 wrmsrl(MSR_FS_BASE, 1); in detect_null_seg_behavior()
1190 wrmsrl(MSR_FS_BASE, old_base); in detect_null_seg_behavior()
1544 wrmsrl(MSR_LSTAR, SYSCALL64_entry_trampoline); in syscall_init()
1546 wrmsrl(MSR_LSTAR, (unsigned long)entry_SYSCALL_64); in syscall_init()
1549 wrmsrl(MSR_CSTAR, (unsigned long)entry_SYSCALL_compat); in syscall_init()
1560 wrmsrl(MSR_CSTAR, (unsigned long)ignore_sysret); in syscall_init()
1567 wrmsrl(MSR_SYSCALL_MASK, in syscall_init()
1729 wrmsrl(MSR_FS_BASE, 0); in cpu_init()
1730 wrmsrl(MSR_KERNEL_GS_BASE, 0); in cpu_init()
/Linux-v4.19/drivers/platform/x86/
Dintel_ips.c395 wrmsrl(TURBO_POWER_CURRENT_LIMIT, turbo_override); in ips_cpu_raise()
400 wrmsrl(TURBO_POWER_CURRENT_LIMIT, turbo_override); in ips_cpu_raise()
430 wrmsrl(TURBO_POWER_CURRENT_LIMIT, turbo_override); in ips_cpu_lower()
435 wrmsrl(TURBO_POWER_CURRENT_LIMIT, turbo_override); in ips_cpu_lower()
453 wrmsrl(IA32_PERF_CTL, perf_ctl); in do_enable_cpu_turbo()
491 wrmsrl(IA32_PERF_CTL, perf_ctl); in do_disable_cpu_turbo()
1679 wrmsrl(TURBO_POWER_CURRENT_LIMIT, turbo_override); in ips_remove()
1680 wrmsrl(TURBO_POWER_CURRENT_LIMIT, ips->orig_turbo_limit); in ips_remove()

123