summaryrefslogtreecommitdiffstats
path: root/lib/test_user_copy.c
diff options
context:
space:
mode:
authorAravind Gopalakrishnan <Aravind.Gopalakrishnan@amd.com>2015-05-27 21:03:34 +0200
committerBorislav Petkov <bp@suse.de>2015-06-03 16:18:22 +0200
commit685d46d72ba456569d739cc3ff43577f4001d52f (patch)
treee42e289d0baa778239c2f01536261633bd2a5848 /lib/test_user_copy.c
parentEDAC, mce_amd_inj: Use MCE_INJECT_GET macro for bank node too (diff)
downloadlinux-685d46d72ba456569d739cc3ff43577f4001d52f.tar.xz
linux-685d46d72ba456569d739cc3ff43577f4001d52f.zip
EDAC, mce_amd_inj: Read out number of MCE banks from the hardware
The number of banks for a given processor is encoded in MSR_IA32_MCG_CAP[7:0]. So obtain the value from that MSR and use it for sanity checking in inj_bank_set() instead of doing a family/model check. Signed-off-by: Aravind Gopalakrishnan <Aravind.Gopalakrishnan@amd.com> Cc: linux-edac <linux-edac@vger.kernel.org> Cc: mchehab@osg.samsung.com Link: http://lkml.kernel.org/r/1432753418-2985-3-git-send-email-Aravind.Gopalakrishnan@amd.com Signed-off-by: Borislav Petkov <bp@suse.de>
Diffstat (limited to 'lib/test_user_copy.c')
0 files changed, 0 insertions, 0 deletions