@@ -1154,7 +1154,21 @@ static void aer_recover_work_func(struct work_struct *work)
ghes_estatus_pool_region_free((unsigned long)entry.regs,
sizeof(struct aer_capability_regs));
- if (entry.severity == AER_NONFATAL)
+ if (entry.severity == AER_CORRECTABLE) {
+ if (entry.regs->cor_status & PCI_ERR_COR_ADV_NFAT) {
+ pci_err(pdev, "%04x:%02x:%02x:%x advisory non-fatal error\n",
+ entry.domain, entry.bus, PCI_SLOT(entry.devfn),
+ PCI_FUNC(entry.devfn));
+ if (entry.regs->uncor_status & PCI_ERR_UNC_COMP_TIME) {
+ pci_err(pdev, "%04x:%02x:%02x:%x completion timeout\n",
+ entry.domain, entry.bus,
+ PCI_SLOT(entry.devfn),
+ PCI_FUNC(entry.devfn));
+ pcie_do_recovery(pdev, pci_channel_io_frozen,
+ aer_root_reset);
+ }
+ }
+ } else if (entry.severity == AER_NONFATAL)
pcie_do_recovery(pdev, pci_channel_io_normal,
aer_root_reset);
else if (entry.severity == AER_FATAL)