• Borislav Petkov's avatar
    x86, cacheinfo: Carve out L3 cache slot accessors · 8cc1176e
    Borislav Petkov authored
    This is in preparation for disabling L3 cache indices after having
    received correctable ECCs in the L3 cache. Now we allow for initial
    setting of a disabled index slot (write once) and deny writing new
    indices to it after it has been disabled. Also, we deny using both slots
    to disable one and the same index.
    
    Userspace can restore the previously disabled indices by rewriting those
    sysfs entries when booting.
    
    Cleanup and reorganize code while at it.
    Signed-off-by: default avatarBorislav Petkov <borislav.petkov@amd.com>
    LKML-Reference: <20100602161840.GI18327@aftab>
    Signed-off-by: default avatarH. Peter Anvin <hpa@linux.intel.com>
    8cc1176e
intel_cacheinfo.c 31.4 KB