diff options
| author | Bjorn Helgaas <bhelgaas@google.com> | 2025-07-31 16:11:39 -0500 |
|---|---|---|
| committer | Bjorn Helgaas <bhelgaas@google.com> | 2025-07-31 16:11:39 -0500 |
| commit | 2de2f9274f7a1415dd88f71d7565044e1a4b8e79 (patch) | |
| tree | 1855284b59369e048a7f9f3c221555ef4a0e1eb8 | |
| parent | 19272b37aa4f83ca52bdf9c16d5d81bdd1354494 (diff) | |
| parent | a6f494becf09c9ebba72ed67d3728f6811daa634 (diff) | |
Merge branch 'pci/aer'
- Change pcie_aer_disable from int to bool (Hans Zhang)
- Add message if AER interrupt occurs and we find more downstream devices
with AER errors logged than we can process (Akshay Jindal)
* pci/aer:
PCI/AER: Add message when AER_MAX_MULTI_ERR_DEVICES limit is hit
PCI/AER: Use bool for AER disable state tracking
| -rw-r--r-- | drivers/pci/pcie/aer.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/pci/pcie/aer.c b/drivers/pci/pcie/aer.c index 70ac66188367..e286c197d716 100644 --- a/drivers/pci/pcie/aer.c +++ b/drivers/pci/pcie/aer.c @@ -116,12 +116,12 @@ struct aer_info { PCI_ERR_ROOT_MULTI_COR_RCV | \ PCI_ERR_ROOT_MULTI_UNCOR_RCV) -static int pcie_aer_disable; +static bool pcie_aer_disable; static pci_ers_result_t aer_root_reset(struct pci_dev *dev); void pci_no_aer(void) { - pcie_aer_disable = 1; + pcie_aer_disable = true; } bool pci_aer_available(void) @@ -1039,7 +1039,8 @@ static int find_device_iter(struct pci_dev *dev, void *data) /* List this device */ if (add_error_device(e_info, dev)) { /* We cannot handle more... Stop iteration */ - /* TODO: Should print error message here? */ + pci_err(dev, "Exceeded max supported (%d) devices with errors logged\n", + AER_MAX_MULTI_ERR_DEVICES); return 1; } |
