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)
committerH. Peter Anvin <hpa@zytor.com>
Sat, 23 Jan 2010 00:06:31 +0000 (16:06 -0800)
commitdcf39daf3d6d97f8741e82f0b9fb7554704ed2d1
tree5659b2ca396e48cd955cd9d2ee3eacbddb904d9f
parent48a719c238bcbb72d6da79de9c5b3b93ab472107
x86, cacheinfo: Fix disabling of L3 cache indices

* 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>
arch/x86/kernel/cpu/intel_cacheinfo.c