Skip to content

Commit 216c15a

Browse files
author
Mete Durlu
committed
s390/pci: Do not try re-enabling load/store if device is disabled
JIRA: https://issues.redhat.com/browse/RHEL-105598 commit b97a797 Author: Niklas Schnelle <schnelle@linux.ibm.com> Date: Wed Jun 25 11:28:29 2025 +0200 s390/pci: Do not try re-enabling load/store if device is disabled If a device is disabled unblocking load/store on its own is not useful as a full re-enable of the function is necessary anyway. Note that SCLP Write Event Data Action Qualifier 0 (Reset) leaves the device disabled and triggers this case unless the driver already requests a reset. Cc: stable@vger.kernel.org Fixes: 4cdf2f4 ("s390/pci: implement minimal PCI error recovery") Reviewed-by: Farhan Ali <alifm@linux.ibm.com> Signed-off-by: Niklas Schnelle <schnelle@linux.ibm.com> Signed-off-by: Alexander Gordeev <agordeev@linux.ibm.com> Signed-off-by: Niklas Schnelle <schnelle@linux.ibm.com> Signed-off-by: Mete Durlu <mdurlu@redhat.com>
1 parent fe10539 commit 216c15a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

arch/s390/pci/pci_event.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,10 @@ static pci_ers_result_t zpci_event_do_error_state_clear(struct pci_dev *pdev,
106106
struct zpci_dev *zdev = to_zpci(pdev);
107107
int rc;
108108

109+
/* The underlying device may have been disabled by the event */
110+
if (!zdev_enabled(zdev))
111+
return PCI_ERS_RESULT_NEED_RESET;
112+
109113
pr_info("%s: Unblocking device access for examination\n", pci_name(pdev));
110114
rc = zpci_reset_load_store_blocked(zdev);
111115
if (rc) {

0 commit comments

Comments
 (0)