Microsemi / switchtec-kernel

A kernel module for the Microsemi PCIe switch
GNU General Public License v2.0
45 stars 31 forks source link

Proposed fix for Issue #74 "Need support for Linux AER driver's recovery sequence for fatal AERs" #75

Closed dinderieden closed 4 years ago

dinderieden commented 5 years ago

Refer to Issue #74 for problem description. Fix includes: 1) Add call to "pci_save_state()" in switchtec_pci_probe. 2) Add AER "error_detected" entry point, which disables PCI device before link reset is done. 3) Add AER "slot_reset" entry point, which reenables PCI device after link reset and clears other device state. 4) Add AER "resume" entry point, which does additional cleanup to clear AER registers state.

lsgunth commented 4 years ago

Should probably squash those, commits: no sense reviewing one commit that gets fixed in a subsequent commit. But otherwise, still looks fine to me.

dinderieden commented 4 years ago

OK, I've squashed the commits.