Commit c2d20a3
bnxt_en: delay pci_alloc_irq_vectors() in the AER path
This patch is similar to the last patch to delay the
pci_alloc_irq_vectors() call in the AER path until after calling
bnxt_reserve_rings(). bnxt_reserve_rings() needs to properly map
the MSIX table first before we call pci_alloc_irq_vectors() which
may immediately write to the MSIX table in some architectures.
Move the bnxt_init_int_mode() call from bnxt_io_slot_reset() to
bnxt_io_resume() after calling bnxt_reserve_rings().
With this change, the AER path may call bnxt_open() ->
bnxt_hwrm_if_change() with bp->irq_tbl set to NULL. bp->irq_tbl is
cleared when we call bnxt_clear_int_mode() in bnxt_io_slot_reset().
So we cannot use !bp->irq_tbl to detect aborted FW reset. Add a
new BNXT_FW_RESET_STATE_ABORT to detect aborted FW reset in
bnxt_hwrm_if_change().
Signed-off-by: Kashyap Desai <[email protected]>
Signed-off-by: Michael Chan <[email protected]>
Signed-off-by: David S. Miller <[email protected]>1 parent 1ae04e4 commit c2d20a3
2 files changed
+12
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12325 | 12325 | | |
12326 | 12326 | | |
12327 | 12327 | | |
12328 | | - | |
12329 | 12328 | | |
12330 | 12329 | | |
12331 | 12330 | | |
| 12331 | + | |
12332 | 12332 | | |
12333 | 12333 | | |
| 12334 | + | |
| 12335 | + | |
| 12336 | + | |
12334 | 12337 | | |
12335 | 12338 | | |
12336 | 12339 | | |
| |||
14833 | 14836 | | |
14834 | 14837 | | |
14835 | 14838 | | |
14836 | | - | |
| 14839 | + | |
14837 | 14840 | | |
14838 | 14841 | | |
14839 | 14842 | | |
| |||
16931 | 16934 | | |
16932 | 16935 | | |
16933 | 16936 | | |
| 16937 | + | |
16934 | 16938 | | |
16935 | 16939 | | |
16936 | | - | |
16937 | | - | |
16938 | 16940 | | |
16939 | 16941 | | |
16940 | 16942 | | |
| |||
16963 | 16965 | | |
16964 | 16966 | | |
16965 | 16967 | | |
16966 | | - | |
| 16968 | + | |
16967 | 16969 | | |
16968 | | - | |
| 16970 | + | |
16969 | 16971 | | |
| 16972 | + | |
| 16973 | + | |
| 16974 | + | |
16970 | 16975 | | |
16971 | 16976 | | |
16972 | 16977 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2614 | 2614 | | |
2615 | 2615 | | |
2616 | 2616 | | |
| 2617 | + | |
2617 | 2618 | | |
2618 | 2619 | | |
2619 | 2620 | | |
| |||
0 commit comments