nb/amd/amdfam10: Only flag machine check exception if valid bit is set

Change-Id: I42d901ae9445943a863fb3ba9bda5a915f255e02
Signed-off-by: Timothy Pearson <tpearson@raptorengineeringinc.com>
Reviewed-on: https://review.coreboot.org/14264
Tested-by: build bot (Jenkins)
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Tested-by: Raptor Engineering Automated Test Stand <noreply@raptorengineeringinc.com>
Reviewed-by: Martin Roth <martinroth@google.com>
This commit is contained in:
Timothy Pearson 2016-04-06 13:24:21 -05:00
parent 056e454da3
commit 49e917bffd
1 changed files with 1 additions and 1 deletions

View File

@ -178,7 +178,7 @@ static void misc_control_init(struct device *dev)
if (dimm_present) {
uint32_t mc4_status_high = pci_read_config32(dev, 0x4c);
uint32_t mc4_status_low = pci_read_config32(dev, 0x48);
if (mc4_status_high != 0) {
if ((mc4_status_high & (0x1 << 31)) && (mc4_status_high != 0xffffffff)) {
printk(BIOS_WARNING, "\nWARNING: MC4 Machine Check Exception detected on node %d!\n"
"Signature: %08x%08x\n", node, mc4_status_high, mc4_status_low);
}