x86, cacheinfo: Fix disabling of L3 cache indices
authorBorislav Petkov <borislav.petkov@amd.com>
Fri, 22 Jan 2010 15:01:05 +0000 (16:01 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 26 Apr 2010 14:41:27 +0000 (07:41 -0700)
commit3bbcbfe0684d8cfc08d672567b930a95d0e6e46b
tree83de6621f65aa860bcbdf891bdd59a01c48c1c91
parent2444b629ee518745f54c2f7cf9e4de3d48e834cb
x86, cacheinfo: Fix disabling of L3 cache indices

commit dcf39daf3d6d97f8741e82f0b9fb7554704ed2d1 upstream.

* Correct the masks used for writing the cache index disable indices.
* Do not turn off L3 scrubber - it is not necessary.
* Make sure wbinvd is executed on the same node where the L3 is.
* Check for out-of-bounds values written to the registers.
* Make show_cache_disable hex values unambiguous
* Check for Erratum #388

Signed-off-by: Borislav Petkov <borislav.petkov@amd.com>
LKML-Reference: <1264172467-25155-4-git-send-email-bp@amd64.org>
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
arch/x86/kernel/cpu/intel_cacheinfo.c