diff options
author | Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com> | 2019-11-28 18:08:24 +0300 |
---|---|---|
committer | Borislav Petkov <bp@suse.de> | 2019-11-29 11:17:52 +0300 |
commit | 5a43b87b3c62ad149ba6e9d0d3e5c0e5da02a5ca (patch) | |
tree | 30c85a5ce6f64a5f74bb8d62a19220be17ad026b /drivers/video | |
parent | c2da5bdc66a377f0b82ee959f19f5a6774706b83 (diff) | |
download | linux-5a43b87b3c62ad149ba6e9d0d3e5c0e5da02a5ca.tar.xz |
x86/mce/therm_throt: Mask out read-only and reserved MSR bits
While writing to MSR IA32_THERM_STATUS/IA32_PKG_THERM_STATUS, avoid
writing 1 to read only and reserved fields because updating some fields
generates exception.
[ bp: Vertically align for better readability. ]
Fixes: f6656208f04e ("x86/mce/therm_throt: Optimize notifications of thermal throttle")
Reported-by: Dominik Brodowski <linux@dominikbrodowski.net>
Tested-by: Dominik Brodowski <linux@dominikbrodowski.net>
Signed-off-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Signed-off-by: Borislav Petkov <bp@suse.de>
Cc: "H. Peter Anvin" <hpa@zytor.com>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: linux-edac <linux-edac@vger.kernel.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Tony Luck <tony.luck@intel.com>
Cc: x86-ml <x86@kernel.org>
Link: https://lkml.kernel.org/r/20191128150824.22413-1-srinivas.pandruvada@linux.intel.com
Diffstat (limited to 'drivers/video')
0 files changed, 0 insertions, 0 deletions