Home
last modified time | relevance | path

Searched refs:wrmsr (Results 1 – 25 of 79) sorted by relevance

1234

/linux-6.1.9/tools/testing/selftests/kvm/lib/x86_64/
Dapic.c12 wrmsr(MSR_IA32_APICBASE, in apic_disable()
24 wrmsr(MSR_IA32_APICBASE, in xapic_enable()
27 wrmsr(MSR_IA32_APICBASE, val | MSR_IA32_APICBASE_ENABLE); in xapic_enable()
41 wrmsr(MSR_IA32_APICBASE, rdmsr(MSR_IA32_APICBASE) | in x2apic_enable()
/linux-6.1.9/tools/testing/selftests/kvm/x86_64/
Dhyperv_clock.c107 wrmsr(HV_X64_MSR_GUEST_OS_ID, (u64)0x8100 << 48); in guest_main()
115 wrmsr(HV_X64_MSR_REFERENCE_TSC, tsc_page_gpa); in guest_main()
123 wrmsr(HV_X64_MSR_REFERENCE_TSC, tsc_page_gpa | 0x1); in guest_main()
147 wrmsr(HV_X64_MSR_REENLIGHTENMENT_CONTROL, 0x1 << 16 | 0xff); in guest_main()
148 wrmsr(HV_X64_MSR_TSC_EMULATION_CONTROL, 0x1); in guest_main()
163 wrmsr(HV_X64_MSR_REENLIGHTENMENT_CONTROL, 0); in guest_main()
164 wrmsr(HV_X64_MSR_TSC_EMULATION_CONTROL, 0); in guest_main()
165 wrmsr(HV_X64_MSR_REFERENCE_TSC, 0); in guest_main()
Dpmu_event_filter_test.c116 wrmsr(msr, v); in check_msr()
121 wrmsr(msr, v); in check_msr()
136 wrmsr(MSR_CORE_PERF_GLOBAL_CTRL, 0); in intel_guest_code()
137 wrmsr(MSR_P6_EVNTSEL0, ARCH_PERFMON_EVENTSEL_ENABLE | in intel_guest_code()
139 wrmsr(MSR_CORE_PERF_GLOBAL_CTRL, 1); in intel_guest_code()
161 wrmsr(MSR_K7_EVNTSEL0, 0); in amd_guest_code()
162 wrmsr(MSR_K7_EVNTSEL0, ARCH_PERFMON_EVENTSEL_ENABLE | in amd_guest_code()
Dtsc_msrs_test.c28 wrmsr(MSR_IA32_TSC, val); in guest_code()
35 wrmsr(MSR_IA32_TSC_ADJUST, val); in guest_code()
50 wrmsr(MSR_IA32_TSC_ADJUST, val); in guest_code()
60 wrmsr(MSR_IA32_TSC, val); in guest_code()
Ducna_injection_test.c89 wrmsr(MSR_IA32_MCx_CTL2(UCNA_BANK), ctl2 | MCI_CTL2_CMCI_EN); in ucna_injection_guest_code()
101 wrmsr(MSR_IA32_MCx_CTL2(UCNA_BANK), ctl2 & ~MCI_CTL2_CMCI_EN); in ucna_injection_guest_code()
113 wrmsr(MSR_IA32_MCx_CTL2(UCNA_BANK), ctl2 | MCI_CTL2_CMCI_EN); in cmci_disabled_guest_code()
121 wrmsr(MSR_IA32_MCx_CTL2(UCNA_BANK), ctl2 | MCI_CTL2_RESERVED_BIT); in cmci_enabled_guest_code()
Damx_test.c254 wrmsr(MSR_IA32_XFD, 0); in guest_code()
271 wrmsr(MSR_IA32_XFD, XFEATURE_MASK_XTILEDATA); in guest_code()
291 wrmsr(MSR_IA32_XFD_ERR, 0); in guest_nm_handler()
293 wrmsr(MSR_IA32_XFD, 0); in guest_nm_handler()
Dvmx_tsc_adjust_test.c73 wrmsr(MSR_IA32_TSC, l1_tsc - TSC_ADJUST_VALUE); in l2_guest_code()
88 wrmsr(MSR_IA32_TSC, rdtsc() - TSC_ADJUST_VALUE); in l1_guest_code()
/linux-6.1.9/drivers/cpufreq/
Dlongrun.c104 wrmsr(MSR_TMTA_LONGRUN_FLAGS, msr_lo, msr_hi); in longrun_set_policy()
112 wrmsr(MSR_TMTA_LONGRUN_CTRL, msr_lo, msr_hi); in longrun_set_policy()
181 wrmsr(MSR_TMTA_LRTI_READOUT, msr_hi, msr_hi); in longrun_determine_freqs()
186 wrmsr(MSR_TMTA_LRTI_READOUT, 0, msr_hi); in longrun_determine_freqs()
219 wrmsr(MSR_TMTA_LONGRUN_CTRL, msr_lo, msr_hi); in longrun_determine_freqs()
225 wrmsr(MSR_TMTA_LONGRUN_CTRL, save_lo, save_hi); in longrun_determine_freqs()
Dpowernow-k6.c91 wrmsr(MSR_K6_EPMR, msrval, 0); /* enable the PowerNow port */ in powernow_k6_get_cpu_multiplier()
94 wrmsr(MSR_K6_EPMR, msrval, 0); /* disable it again */ in powernow_k6_get_cpu_multiplier()
121 wrmsr(MSR_K6_EPMR, msrval, 0); /* enable the PowerNow port */ in powernow_k6_set_cpu_multiplier()
127 wrmsr(MSR_K6_EPMR, msrval, 0); /* disable it again */ in powernow_k6_set_cpu_multiplier()
/linux-6.1.9/drivers/ata/
Dpata_cs5535.c105 wrmsr(ATAC_CH0D0_PIO + 2 * pair->devno, in cs5535_set_piomode()
109 wrmsr(ATAC_CH0D0_PIO + 2 * adev->devno, in cs5535_set_piomode()
114 wrmsr(ATAC_CH0D0_DMA + 2 * adev->devno, reg | 0x80000000UL, 0); in cs5535_set_piomode()
141 wrmsr(ATAC_CH0D0_DMA + 2 * adev->devno, reg, 0); in cs5535_set_dmamode()
Dpata_cs5536.c37 #undef wrmsr
39 #define wrmsr(x, y, z) do { } while (0) macro
101 wrmsr(MSR_IDE_CFG + reg, val, 0); in cs5536_write()
/linux-6.1.9/arch/x86/kernel/cpu/
Dcentaur.c34 wrmsr(MSR_VIA_FCR, lo, hi); in init_c3()
42 wrmsr(MSR_VIA_RNG, lo, hi); in init_c3()
56 wrmsr(MSR_VIA_FCR, lo, hi); in init_c3()
190 wrmsr(MSR_IDT_FCR1, newlo, hi); in init_centaur()
Dtransmeta.c87 wrmsr(0x80860004, ~0, uk); in init_transmeta()
89 wrmsr(0x80860004, cap_mask, uk); in init_transmeta()
Dzhaoxin.c33 wrmsr(MSR_ZHAOXIN_FCR57, lo, hi); in init_zhaoxin_cap()
42 wrmsr(MSR_ZHAOXIN_FCR57, lo, hi); in init_zhaoxin_cap()
Dumwait.c36 wrmsr(MSR_IA32_UMWAIT_CONTROL, READ_ONCE(umwait_control_cached), 0); in umwait_update_control_msr()
74 wrmsr(MSR_IA32_UMWAIT_CONTROL, orig_umwait_control_cached, 0); in umwait_cpu_offline()
/linux-6.1.9/drivers/thermal/intel/
Dtherm_throt.c709 wrmsr(MSR_IA32_THERM_INTERRUPT, in intel_init_thermal()
713 wrmsr(MSR_IA32_THERM_INTERRUPT, in intel_init_thermal()
717 wrmsr(MSR_IA32_THERM_INTERRUPT, in intel_init_thermal()
723 wrmsr(MSR_IA32_PACKAGE_THERM_INTERRUPT, in intel_init_thermal()
728 wrmsr(MSR_IA32_PACKAGE_THERM_INTERRUPT, in intel_init_thermal()
733 wrmsr(MSR_IA32_PACKAGE_THERM_INTERRUPT, in intel_init_thermal()
739 wrmsr(MSR_IA32_PACKAGE_THERM_INTERRUPT, in intel_init_thermal()
745 wrmsr(MSR_IA32_MISC_ENABLE, l | MSR_IA32_MISC_ENABLE_TM1, h); in intel_init_thermal()
/linux-6.1.9/arch/x86/include/asm/
Dextable.h45 extern void __noreturn ex_handler_msr_mce(struct pt_regs *regs, bool wrmsr);
47 static inline void __noreturn ex_handler_msr_mce(struct pt_regs *regs, bool wrmsr) in ex_handler_msr_mce() argument
/linux-6.1.9/arch/x86/mm/
Dextable.c148 struct pt_regs *regs, bool wrmsr, bool safe, int reg) in ex_handler_msr() argument
150 if (__ONCE_LITE_IF(!safe && wrmsr)) { in ex_handler_msr()
157 if (__ONCE_LITE_IF(!safe && !wrmsr)) { in ex_handler_msr()
163 if (!wrmsr) { in ex_handler_msr()
Dmem_encrypt_boot.S121 wrmsr
152 wrmsr
/linux-6.1.9/arch/x86/hyperv/
Dhv_apic.c79 wrmsr(HV_X64_MSR_EOI, val, 0); in hv_apic_write()
82 wrmsr(HV_X64_MSR_TPR, val, 0); in hv_apic_write()
96 wrmsr(HV_X64_MSR_EOI, val, 0); in hv_apic_eoi_write()
/linux-6.1.9/arch/x86/platform/pvh/
Dhead.S83 wrmsr
101 wrmsr
/linux-6.1.9/arch/x86/realmode/rm/
Dwakeup_asm.S104 wrmsr
124 wrmsr
/linux-6.1.9/drivers/misc/
Dcs5535-mfgpt.c91 wrmsr(msr, value, dummy); in cs5535_mfgpt_toggle_event()
138 wrmsr(MSR_PIC_ZSEL_LOW, zsel, dummy); in cs5535_mfgpt_set_irq()
255 wrmsr(MSR_MFGPT_SETUP, val, dummy); in reset_all_timers()
/linux-6.1.9/arch/x86/kernel/
Dverify_cpu.S97 wrmsr
128 wrmsr
/linux-6.1.9/arch/x86/boot/compressed/
Defi_thunk_64.S134 wrmsr
162 wrmsr

1234