PCI: pcie, aer: report multiple/first error on a device

Multiple bits might be set in the Uncorrectable Error Status
register.  But aer_print_error_source() only report a error of
the lowest bit set in the error status register.

So print strings for all bits unmasked and set.

And check First Error Pointer to mark the error occured first.
This FEP is not valid when the corresponing bit of the Uncorrectable
Error Status register is not set, or unimplemented or undefined.

Signed-off-by: Hidetoshi Seto <seto.hidetoshi@jp.fujitsu.com>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
This commit is contained in:
Hidetoshi Seto
2009-09-07 17:13:42 +09:00
committed by Jesse Barnes
parent 0d90c3ac0b
commit e7a0d92b19
3 changed files with 10 additions and 5 deletions

View File

@@ -169,11 +169,11 @@ static void aer_print_error_source(struct aer_err_info *info)
errmsg = aer_uncorrectable_error_string[i];
if (errmsg)
AER_PR(info, "%s\t:\n", errmsg);
AER_PR(info, "%s\t: %s\n", errmsg,
info->first == i ? "First" : "");
else
AER_PR(info, "Unknown Error Bit %2d \t:\n", i);
break;
AER_PR(info, "Unknown Error Bit %2d \t: %s\n",
i, info->first == i ? "First" : "");
}
}