Skip to content

Commit

Permalink
x86/msr: do not warn on writes to OC_MAILBOX
Browse files Browse the repository at this point in the history
Popular tools, like intel-undervolt, use MSR 0x150 to control the CPU
voltage offset. In fact, evidently the intel_turbo_max_3 driver in-tree
also uses this MSR. So, teach the kernel's MSR list about this, so that
intel-undervolt and other such tools don't spew warnings to dmesg, while
unifying the constant used throughout the kernel.

Fixes: a7e1f67 ("x86/msr: Filter MSR writes")
Cc: Borislav Petkov <[email protected]>
Signed-off-by: Jason A. Donenfeld <[email protected]>
  • Loading branch information
zx2c4 authored and KenHV committed Jun 26, 2022
1 parent d5b577f commit 1256753
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions arch/x86/include/asm/msr-index.h
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,8 @@

#define MSR_IA32_OC_MAILBOX 0x00000150

#define MSR_IA32_OC_MAILBOX 0x00000150

#define MSR_IA32_SYSENTER_CS 0x00000174
#define MSR_IA32_SYSENTER_ESP 0x00000175
#define MSR_IA32_SYSENTER_EIP 0x00000176
Expand Down

0 comments on commit 1256753

Please sign in to comment.