Skip to content

Commit 3bc0a18

Browse files
l1kgregkh
authored andcommitted
PCI/AER: Support errors introduced by PCIe r6.0
commit 6633875 upstream. 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 Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent a4bc85f commit 3bc0a18

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

drivers/pci/pcie/aer.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
#define AER_ERROR_SOURCES_MAX 128
3939

4040
#define AER_MAX_TYPEOF_COR_ERRS 16 /* as per PCI_ERR_COR_STATUS */
41-
#define AER_MAX_TYPEOF_UNCOR_ERRS 27 /* as per PCI_ERR_UNCOR_STATUS*/
41+
#define AER_MAX_TYPEOF_UNCOR_ERRS 32 /* as per PCI_ERR_UNCOR_STATUS*/
4242

4343
struct aer_err_source {
4444
u32 status; /* PCI_ERR_ROOT_STATUS */
@@ -510,11 +510,11 @@ static const char *aer_uncorrectable_error_string[] = {
510510
"AtomicOpBlocked", /* Bit Position 24 */
511511
"TLPBlockedErr", /* Bit Position 25 */
512512
"PoisonTLPBlocked", /* Bit Position 26 */
513-
NULL, /* Bit Position 27 */
514-
NULL, /* Bit Position 28 */
515-
NULL, /* Bit Position 29 */
516-
NULL, /* Bit Position 30 */
517-
NULL, /* Bit Position 31 */
513+
"DMWrReqBlocked", /* Bit Position 27 */
514+
"IDECheck", /* Bit Position 28 */
515+
"MisIDETLP", /* Bit Position 29 */
516+
"PCRC_CHECK", /* Bit Position 30 */
517+
"TLPXlatBlocked", /* Bit Position 31 */
518518
};
519519

520520
static const char *aer_agent_string[] = {

0 commit comments

Comments
 (0)