|
41 | 41 | #define AER_MAX_TYPEOF_UNCOR_ERRS 27 /* as per PCI_ERR_UNCOR_STATUS*/
|
42 | 42 |
|
43 | 43 | struct aer_err_source {
|
44 |
| - unsigned int status; |
45 |
| - unsigned int id; |
| 44 | + u32 status; /* PCI_ERR_ROOT_STATUS */ |
| 45 | + u32 id; /* PCI_ERR_ROOT_ERR_SRC */ |
46 | 46 | };
|
47 | 47 |
|
48 | 48 | struct aer_rpc {
|
@@ -435,10 +435,10 @@ void pci_aer_exit(struct pci_dev *dev)
|
435 | 435 | /*
|
436 | 436 | * AER error strings
|
437 | 437 | */
|
438 |
| -static const char *aer_error_severity_string[] = { |
439 |
| - "Uncorrected (Non-Fatal)", |
440 |
| - "Uncorrected (Fatal)", |
441 |
| - "Corrected" |
| 438 | +static const char * const aer_error_severity_string[] = { |
| 439 | + "Uncorrectable (Non-Fatal)", |
| 440 | + "Uncorrectable (Fatal)", |
| 441 | + "Correctable" |
442 | 442 | };
|
443 | 443 |
|
444 | 444 | static const char *aer_error_layer[] = {
|
@@ -740,7 +740,7 @@ static void aer_print_port_info(struct pci_dev *dev, struct aer_err_info *info)
|
740 | 740 | u8 bus = info->id >> 8;
|
741 | 741 | u8 devfn = info->id & 0xff;
|
742 | 742 |
|
743 |
| - pci_info(dev, "%s%s error received: %04x:%02x:%02x.%d\n", |
| 743 | + pci_info(dev, "%s%s error message received from %04x:%02x:%02x.%d\n", |
744 | 744 | info->multi_error_valid ? "Multiple " : "",
|
745 | 745 | aer_error_severity_string[info->severity],
|
746 | 746 | pci_domain_nr(dev->bus), bus, PCI_SLOT(devfn),
|
@@ -929,7 +929,12 @@ static bool find_source_device(struct pci_dev *parent,
|
929 | 929 | pci_walk_bus(parent->subordinate, find_device_iter, e_info);
|
930 | 930 |
|
931 | 931 | if (!e_info->error_dev_num) {
|
932 |
| - pci_info(parent, "can't find device of ID%04x\n", e_info->id); |
| 932 | + u8 bus = e_info->id >> 8; |
| 933 | + u8 devfn = e_info->id & 0xff; |
| 934 | + |
| 935 | + pci_info(parent, "found no error details for %04x:%02x:%02x.%d\n", |
| 936 | + pci_domain_nr(parent->bus), bus, PCI_SLOT(devfn), |
| 937 | + PCI_FUNC(devfn)); |
933 | 938 | return false;
|
934 | 939 | }
|
935 | 940 | return true;
|
|
0 commit comments