Commit 8844d5c
Shruti Parab
bnxt_en: delay pci_alloc_irq_vectors() in the AER path
JIRA: https://issues.redhat.com/browse/RHEL-76568
commit c2d20a3
Author: Kashyap Desai <kashyap.desai@broadcom.com>
Date: Mon Apr 28 15:59:00 2025 -0700
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 <kashyap.desai@broadcom.com>
Signed-off-by: Michael Chan <michael.chan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Shruti Parab <shruti.parab@broadcom.com>1 parent 17dea41 commit 8844d5c
2 files changed
+12
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12197 | 12197 | | |
12198 | 12198 | | |
12199 | 12199 | | |
12200 | | - | |
12201 | 12200 | | |
12202 | 12201 | | |
12203 | 12202 | | |
| 12203 | + | |
12204 | 12204 | | |
12205 | 12205 | | |
| 12206 | + | |
| 12207 | + | |
| 12208 | + | |
12206 | 12209 | | |
12207 | 12210 | | |
12208 | 12211 | | |
| |||
14704 | 14707 | | |
14705 | 14708 | | |
14706 | 14709 | | |
14707 | | - | |
| 14710 | + | |
14708 | 14711 | | |
14709 | 14712 | | |
14710 | 14713 | | |
| |||
16787 | 16790 | | |
16788 | 16791 | | |
16789 | 16792 | | |
| 16793 | + | |
16790 | 16794 | | |
16791 | 16795 | | |
16792 | | - | |
16793 | | - | |
16794 | 16796 | | |
16795 | 16797 | | |
16796 | 16798 | | |
| |||
16819 | 16821 | | |
16820 | 16822 | | |
16821 | 16823 | | |
16822 | | - | |
| 16824 | + | |
16823 | 16825 | | |
16824 | | - | |
| 16826 | + | |
16825 | 16827 | | |
| 16828 | + | |
| 16829 | + | |
| 16830 | + | |
16826 | 16831 | | |
16827 | 16832 | | |
16828 | 16833 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2609 | 2609 | | |
2610 | 2610 | | |
2611 | 2611 | | |
| 2612 | + | |
2612 | 2613 | | |
2613 | 2614 | | |
2614 | 2615 | | |
| |||
0 commit comments