]> www.infradead.org Git - users/hch/misc.git/commitdiff
powerpc/eeh: Use result of error_detected() in uevent
authorNiklas Schnelle <schnelle@linux.ibm.com>
Thu, 7 Aug 2025 13:55:40 +0000 (15:55 +0200)
committerBjorn Helgaas <bhelgaas@google.com>
Thu, 14 Aug 2025 20:58:11 +0000 (15:58 -0500)
Ever since uevent support was added for AER and EEH with commit
856e1eb9bdd4 ("PCI/AER: Add uevents in AER and EEH error/resume"), it
reported PCI_ERS_RESULT_NONE as uevent when recovery begins.

Commit 7b42d97e99d3 ("PCI/ERR: Always report current recovery status for
udev") subsequently amended AER to report the actual return value of
error_detected().

Make the same change to EEH to align it with AER and s390.

Suggested-by: Lukas Wunner <lukas@wunner.de>
Link: https://lore.kernel.org/linux-pci/aIp6LiKJor9KLVpv@wunner.de/
Signed-off-by: Niklas Schnelle <schnelle@linux.ibm.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Lukas Wunner <lukas@wunner.de>
Reviewed-by: Kuppuswamy Sathyanarayanan <sathyanarayanan.kuppuswamy@linux.intel.com>
Acked-by: Mahesh Salgaonkar <mahesh@linux.ibm.com>
Link: https://patch.msgid.link/20250807-add_err_uevents-v5-3-adf85b0620b0@linux.ibm.com
arch/powerpc/kernel/eeh_driver.c

index 48ad0116f35906aca17d1586580d608397f4dce4..ef78ff77cf8f211eace654a2aca17318c0d0c2eb 100644 (file)
@@ -334,7 +334,7 @@ static enum pci_ers_result eeh_report_error(struct eeh_dev *edev,
        rc = driver->err_handler->error_detected(pdev, pci_channel_io_frozen);
 
        edev->in_error = true;
-       pci_uevent_ers(pdev, PCI_ERS_RESULT_NONE);
+       pci_uevent_ers(pdev, rc);
        return rc;
 }