Patch "PCI/ERR: Retain status from error notification" has been added to the 5.11-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    PCI/ERR: Retain status from error notification

to the 5.11-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     pci-err-retain-status-from-error-notification.patch
and it can be found in the queue-5.11 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit f5306be39340057c76153cb3b33c9873a5bbd47c
Author: Keith Busch <kbusch@xxxxxxxxxx>
Date:   Mon Jan 4 15:02:58 2021 -0800

    PCI/ERR: Retain status from error notification
    
    [ Upstream commit 387c72cdd7fb6bef650fb078d0f6ae9682abf631 ]
    
    Overwriting the frozen detected status with the result of the link reset
    loses the NEED_RESET result that drivers are depending on for error
    handling to report the .slot_reset() callback. Retain this status so
    that subsequent error handling has the correct flow.
    
    Link: https://lore.kernel.org/r/20210104230300.1277180-4-kbusch@xxxxxxxxxx
    Reported-by: Hinko Kocevar <hinko.kocevar@xxxxxx>
    Tested-by: Hedi Berriche <hedi.berriche@xxxxxxx>
    Signed-off-by: Keith Busch <kbusch@xxxxxxxxxx>
    Signed-off-by: Bjorn Helgaas <bhelgaas@xxxxxxxxxx>
    Acked-by: Sean V Kelley <sean.v.kelley@xxxxxxxxx>
    Acked-by: Hedi Berriche <hedi.berriche@xxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/drivers/pci/pcie/err.c b/drivers/pci/pcie/err.c
index 510f31f0ef6d..4798bd6de97d 100644
--- a/drivers/pci/pcie/err.c
+++ b/drivers/pci/pcie/err.c
@@ -198,8 +198,7 @@ pci_ers_result_t pcie_do_recovery(struct pci_dev *dev,
 	pci_dbg(bridge, "broadcast error_detected message\n");
 	if (state == pci_channel_io_frozen) {
 		pci_walk_bridge(bridge, report_frozen_detected, &status);
-		status = reset_subordinates(bridge);
-		if (status != PCI_ERS_RESULT_RECOVERED) {
+		if (reset_subordinates(bridge) != PCI_ERS_RESULT_RECOVERED) {
 			pci_warn(bridge, "subordinate device reset failed\n");
 			goto failed;
 		}



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux