Commit f838a63
i40e: Fix erroneous adapter reinitialization during recovery process
Fix an issue when driver incorrectly detects state
of recovery process and erroneously reinitializes interrupts,
which results in a kernel error and call trace message.
The issue was caused by a combination of two factors:
1. Assuming the EMP reset issued after completing
firmware recovery means the whole recovery process is complete.
2. Erroneous reinitialization of interrupt vector after detecting
the above mentioned EMP reset.
Fixes (1) by changing how recovery state change is detected
and (2) by adjusting the conditional expression to ensure using proper
interrupt reinitialization method, depending on the situation.
Fixes: 4ff0ee1 ("i40e: Introduce recovery mode support")
Signed-off-by: Dawid Lukwinski <dawid.lukwinski@intel.com>
Signed-off-by: Jan Sokolowski <jan.sokolowski@intel.com>
Tested-by: Konrad Jankowski <konrad0.jankowski@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
Link: https://lore.kernel.org/r/20220715214542.2968762-1-anthony.l.nguyen@intel.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>1 parent 3696c95 commit f838a63
1 file changed
Lines changed: 5 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10650 | 10650 | | |
10651 | 10651 | | |
10652 | 10652 | | |
10653 | | - | |
| 10653 | + | |
10654 | 10654 | | |
10655 | 10655 | | |
10656 | 10656 | | |
10657 | 10657 | | |
10658 | 10658 | | |
10659 | 10659 | | |
10660 | 10660 | | |
10661 | | - | |
| 10661 | + | |
10662 | 10662 | | |
10663 | | - | |
10664 | 10663 | | |
10665 | 10664 | | |
10666 | | - | |
10667 | | - | |
| 10665 | + | |
10668 | 10666 | | |
10669 | 10667 | | |
10670 | 10668 | | |
| |||
10691 | 10689 | | |
10692 | 10690 | | |
10693 | 10691 | | |
10694 | | - | |
10695 | | - | |
| 10692 | + | |
10696 | 10693 | | |
10697 | 10694 | | |
10698 | 10695 | | |
10699 | 10696 | | |
10700 | | - | |
| 10697 | + | |
10701 | 10698 | | |
10702 | 10699 | | |
10703 | 10700 | | |
| |||
0 commit comments