]> git.baikalelectronics.ru Git - kernel.git/commit
x86: unmask CPUID levels on Intel CPUs
authorH. Peter Anvin <hpa@linux.intel.com>
Wed, 21 Jan 2009 23:04:32 +0000 (15:04 -0800)
committerIngo Molnar <mingo@elte.hu>
Thu, 22 Jan 2009 08:24:02 +0000 (09:24 +0100)
commit2977089d35d9ee1355cdf6f5654268ae3d9e08d2
tree2bd4dfc033f72cbe0b3532140f54df1869dd6180
parent824bb5bd95bc23c50db8a5cf61163fbe9b5e03e4
x86: unmask CPUID levels on Intel CPUs

Impact: Fixes crashes with misconfigured BIOSes on XSAVE hardware

Avuton Olrich reported early boot crashes with v2.6.28 and
bisected it down to 9b48a59a682248a4078a075b6f2ff03153eac14d
("x86, xsave: enable xsave/xrstor on cpus with xsave support").

If the CPUID limit bit in MSR_IA32_MISC_ENABLE is set, clear it to
make all CPUID information available.  This is required for some
features to work, in particular XSAVE.

Reported-and-bisected-by: Avuton Olrich <avuton@gmail.com>
Tested-by: Avuton Olrich <avuton@gmail.com>
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
arch/x86/kernel/cpu/intel.c