]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
x86, avx: don't use avx instructions with "noxsave" boot param
authorSuresh Siddha <suresh.b.siddha@intel.com>
Tue, 31 Jul 2012 17:29:14 +0000 (10:29 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 2 Oct 2012 17:39:39 +0000 (10:39 -0700)
commit4a74b60aa6551430ed6e700568199f50eca67028
tree8eca32e20f8547c53bfd4847d2e0596ac52987a3
parent9ad3eca2bd7f1a10d59816ae8262877d265d0f6f
x86, avx: don't use avx instructions with "noxsave" boot param

commit c6fd893da927c6cefb2ece22402765379921a834 upstream.

Clear AVX, AVX2 features along with clearing XSAVE feature bits,
as part of the parsing "noxsave" parameter.

Fixes the kernel boot panic with "noxsave" boot parameter.

We could have checked cpu_has_osxsave along with cpu_has_avx etc, but Peter
mentioned clearing the feature bits will be better for uses like
static_cpu_has() etc.

Signed-off-by: Suresh Siddha <suresh.b.siddha@intel.com>
Link: http://lkml.kernel.org/r/1343755754.2041.2.camel@sbsiddha-desk.sc.intel.com
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/x86/kernel/cpu/common.c