OSDN Git Service

PCI/AER: Add additional PCIe AER error strings
authorChen, Gong <gong.chen@linux.intel.com>
Thu, 25 Sep 2014 15:36:43 +0000 (09:36 -0600)
committerBjorn Helgaas <bhelgaas@google.com>
Thu, 25 Sep 2014 15:42:40 +0000 (09:42 -0600)
Add strings for all AER error bits defined in PCIe r3.0.

[bhelgaas: changelog, drop designated initializer change]
Signed-off-by: Chen, Gong <gong.chen@linux.intel.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/pcie/aer/aerdrv_errprint.c

index 35d06e1..c6849d9 100644 (file)
@@ -89,15 +89,17 @@ static const char *aer_correctable_error_string[] = {
        NULL,
        "Replay Timer Timeout",         /* Bit Position 12      */
        "Advisory Non-Fatal",           /* Bit Position 13      */
+       "Corrected Internal Error",     /* Bit Position 14      */
+       "Header Log Overflow",          /* Bit Position 15      */
 };
 
 static const char *aer_uncorrectable_error_string[] = {
-       NULL,
+       "Undefined",                    /* Bit Position 0       */
        NULL,
        NULL,
        NULL,
        "Data Link Protocol",           /* Bit Position 4       */
-       NULL,
+       "Surprise Down Error",          /* Bit Position 5       */
        NULL,
        NULL,
        NULL,
@@ -113,6 +115,11 @@ static const char *aer_uncorrectable_error_string[] = {
        "Malformed TLP",                /* Bit Position 18      */
        "ECRC",                         /* Bit Position 19      */
        "Unsupported Request",          /* Bit Position 20      */
+       "ACS Violation",                /* Bit Position 21      */
+       "Uncorrectable Internal Error", /* Bit Position 22      */
+       "MC Blocked TLP",               /* Bit Position 23      */
+       "AtomicOp Egress Blocked",      /* Bit Position 24      */
+       "TLP Prefix Blocked Error",     /* Bit Position 25      */
 };
 
 static const char *aer_agent_string[] = {