Skip to content

Commit 6633875

Browse files
l1kbjorn-helgaas
authored andcommitted
PCI/AER: Support errors introduced by PCIe r6.0
PCIe r6.0 defined five additional errors in the Uncorrectable Error Status, Mask and Severity Registers (PCIe r7.0 sec 7.8.4.2ff). lspci has been supporting them since commit 144b0911cc0b ("ls-ecaps: extend decode support for more fields for AER CE and UE status"): https://git.kernel.org/pub/scm/utils/pciutils/pciutils.git/commit/?id=144b0911cc0b Amend the AER driver to recognize them as well, instead of logging them as "Unknown Error Bit". Signed-off-by: Lukas Wunner <lukas@wunner.de> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com> Reviewed-by: Kuppuswamy Sathyanarayanan <sathyanarayanan.kuppuswamy@linux.intel.com> Cc: stable@vger.kernel.org Link: https://patch.msgid.link/21f1875b18d4078c99353378f37dcd6b994f6d4e.1756301211.git.lukas@wunner.de
1 parent 704e5dd commit 6633875

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

drivers/pci/pcie/aer.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
#define AER_ERROR_SOURCES_MAX 128
4444

4545
#define AER_MAX_TYPEOF_COR_ERRS 16 /* as per PCI_ERR_COR_STATUS */
46-
#define AER_MAX_TYPEOF_UNCOR_ERRS 27 /* as per PCI_ERR_UNCOR_STATUS*/
46+
#define AER_MAX_TYPEOF_UNCOR_ERRS 32 /* as per PCI_ERR_UNCOR_STATUS*/
4747

4848
struct aer_err_source {
4949
u32 status; /* PCI_ERR_ROOT_STATUS */
@@ -525,11 +525,11 @@ static const char *aer_uncorrectable_error_string[] = {
525525
"AtomicOpBlocked", /* Bit Position 24 */
526526
"TLPBlockedErr", /* Bit Position 25 */
527527
"PoisonTLPBlocked", /* Bit Position 26 */
528-
NULL, /* Bit Position 27 */
529-
NULL, /* Bit Position 28 */
530-
NULL, /* Bit Position 29 */
531-
NULL, /* Bit Position 30 */
532-
NULL, /* Bit Position 31 */
528+
"DMWrReqBlocked", /* Bit Position 27 */
529+
"IDECheck", /* Bit Position 28 */
530+
"MisIDETLP", /* Bit Position 29 */
531+
"PCRC_CHECK", /* Bit Position 30 */
532+
"TLPXlatBlocked", /* Bit Position 31 */
533533
};
534534

535535
static const char *aer_agent_string[] = {

0 commit comments

Comments
 (0)