Public bug reported:

Description:   
s390/pci: Handle PCI error codes other than 0x3a

Symptom:       
When hardware reports some error other than the generic 0x3a for a PCI device 
it is left in a "frozen" state to be recovered manually.

Problem: 
This requires manual intervention in some error scenarios.

Reproduction:  
Inject errors - either through instrumented kernel code, or through HW inject 
methods.

Solution:      
Attempt the same PCI auto-recovery for these errors, if the respective device 
driver supports that.

Upstream-ID:   3cd03ea57e8e16cc78cc357d5e9f26078426f236

Upstream-Description:

s390/pci: Handle PCI error codes other than 0x3a

The Linux implementation of PCI error recovery for s390 was based on the
understanding that firmware error recovery is a two step process with an
optional initial error event to indicate the cause of the error if known
followed by either error event 0x3A (Success) or 0x3B (Failure) to
indicate whether firmware was able to recover. While this has been the
case in testing and the error cases seen in the wild it turns out this
is not correct. Instead firmware only generates 0x3A for some error and
service scenarios and expects the OS to perform recovery for all PCI
events codes except for those indicating permanent error (0x3B, 0x40)
and those indicating errors on the function measurement block (0x2A,
0x2B, 0x2C). Align Linux behavior with these expectations.

Fixes: 4cdf2f4e24ff ("s390/pci: implement minimal PCI error recovery")
Reviewed-by: Gerd Bayer <[email protected]>
Signed-off-by: Niklas Schnelle <[email protected]>
Signed-off-by: Heiko Carstens <[email protected]>

** Affects: linux (Ubuntu)
     Importance: Undecided
     Assignee: Skipper Bug Screeners (skipper-screen-team)
         Status: New


** Tags: architecture-s39064 bugnameltc-214660 severity-high 
targetmilestone-inin---

** Tags added: architecture-s39064 bugnameltc-214660 severity-high
targetmilestone-inin---

** Changed in: ubuntu
     Assignee: (unassigned) => Skipper Bug Screeners (skipper-screen-team)

** Package changed: ubuntu => linux (Ubuntu)

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2120344

Title:
  [UBUNTU 22.04] s390/pci: Handle PCI error codes other than 0x3a

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/2120344/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to