diff options
author | Boris Ostrovsky <boris.ostrovsky@oracle.com> | 2013-03-14 22:10:41 +0100 |
---|---|---|
committer | Borislav Petkov <bp@suse.de> | 2013-03-22 11:25:01 +0100 |
commit | bafcdd3b6cb86035cdb0511450961edcdc084c27 (patch) | |
tree | bd7882fdcc935705c41a54c66d13bebdade06e03 /tools | |
parent | x86, MCE, AMD: Replace shared_bank array with is_shared_bank() helper (diff) | |
download | linux-bafcdd3b6cb86035cdb0511450961edcdc084c27.tar.xz linux-bafcdd3b6cb86035cdb0511450961edcdc084c27.zip |
x86, MCE, AMD: Use MCG_CAP MSR to find out number of banks on AMD
Currently number of error reporting register banks is hardcoded to
6 on AMD processors. This may break in virtualized scenarios when
a hypervisor prefers to report fewer banks than what the physical
HW provides.
Since number of supported banks is reported in MSR_IA32_MCG_CAP[7:0]
that's what we should use.
Signed-off-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Link: http://lkml.kernel.org/r/1363295441-1859-3-git-send-email-boris.ostrovsky@oracle.com
[ reverse NULL ptr test logic ]
Signed-off-by: Borislav Petkov <bp@suse.de>
Diffstat (limited to 'tools')
0 files changed, 0 insertions, 0 deletions