Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit bafcdd3b authored by Boris Ostrovsky's avatar Boris Ostrovsky Committed by Borislav Petkov
Browse files

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: default avatarBoris 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: default avatarBorislav Petkov <bp@suse.de>
parent c76e8164
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment