Skip to content

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

Merged
kelvin-cao merged 1 commit intoMicrosemi:develfrom
dinderieden:aer_recovery_handling
Dec 4, 2019
Merged

Proposed fix for Issue #74 "Need support for Linux AER driver's recovery sequence for fatal AERs"#75
kelvin-cao merged 1 commit intoMicrosemi:develfrom
dinderieden:aer_recovery_handling

Conversation

@dinderieden
Copy link
Copy Markdown
Contributor

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.

Copy link
Copy Markdown
Collaborator

@lsgunth lsgunth left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! This looks good to me. Probably worth cleaning up the patch and sending it to the upstream kernel.

@lsgunth
Copy link
Copy Markdown
Collaborator

lsgunth commented Oct 15, 2019

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

…ery sequence for fatal AERs"

  - In probe routine save PCI device state and enable PCI error reporting.
  - Add "error_detected" entry point for AER recovery, which disables PCI device before link reset.
  - Add "slot_reset" entry point for AER recovery, which re-initializes and re-enables PCI device after link reset.
  - Add "resume" entry point for AER recovery, which does AER cleanup for PCI device.
@dinderieden dinderieden force-pushed the aer_recovery_handling branch from 7294365 to 6736a6f Compare November 8, 2019 20:10
@dinderieden
Copy link
Copy Markdown
Contributor Author

OK, I've squashed the commits.

@kelvin-cao kelvin-cao merged commit c7ad84c into Microsemi:devel Dec 4, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants