Commit b340dc6
bnxt_en: Avoid sending firmware messages when AER error is detected.
When the driver goes through PCIe AER reset in error state, all
firmware messages will timeout because the PCIe bus is no longer
accessible. This can lead to AER reset taking many minutes to
complete as each firmware command takes time to timeout.
Define a new macro BNXT_NO_FW_ACCESS() to skip these firmware messages
when either firmware is in fatal error state or when
pci_channel_offline() is true. It now takes a more reasonable 20 to
30 seconds to complete AER recovery.
Fixes: b4fff20 ("bnxt_en: Do not send firmware messages if firmware is in error state.")
Signed-off-by: Vasundhara Volam <vasundhara-v.volam@broadcom.com>
Signed-off-by: Michael Chan <michael.chan@broadcom.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>1 parent 4ddcaf1 commit b340dc6
2 files changed
+7
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4305 | 4305 | | |
4306 | 4306 | | |
4307 | 4307 | | |
4308 | | - | |
| 4308 | + | |
4309 | 4309 | | |
4310 | 4310 | | |
4311 | 4311 | | |
| |||
5723 | 5723 | | |
5724 | 5724 | | |
5725 | 5725 | | |
5726 | | - | |
| 5726 | + | |
5727 | 5727 | | |
5728 | 5728 | | |
5729 | 5729 | | |
| |||
7817 | 7817 | | |
7818 | 7818 | | |
7819 | 7819 | | |
7820 | | - | |
| 7820 | + | |
7821 | 7821 | | |
7822 | 7822 | | |
7823 | 7823 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1737 | 1737 | | |
1738 | 1738 | | |
1739 | 1739 | | |
| 1740 | + | |
| 1741 | + | |
| 1742 | + | |
| 1743 | + | |
1740 | 1744 | | |
1741 | 1745 | | |
1742 | 1746 | | |
| |||
0 commit comments