diff mbox series

[3/4] lpfc: Fix queue failures when recovering from PCI parity error

Message ID 20220317032737.45308-4-jsmart2021@gmail.com (mailing list archive)
State Accepted
Headers show
Series lpfc: Update lpfc to revision 14.2.0.1 | expand

Commit Message

James Smart March 17, 2022, 3:27 a.m. UTC
When recovering from a pci-parity error the driver is failing to
re-create queues, causing recovery to fail. Looking deeper, it was
found tha the interrupt vector count allocated on the recovery is
fewer than the vectors originally allocated. This disparity resulted
in cpu map entries with stale information. When the driver tries to
re-create the queues, it attempts to use the stale information which
indicates an eq/interrupt vector that was no longer created.

Fix by clearng the cpup map array before enabling and requesting the
irqs in the lpfc_sli_reset_slot_s4 routine.

Co-developed-by: Justin Tee <justin.tee@broadcom.com>
Signed-off-by: Justin Tee <justin.tee@broadcom.com>
Signed-off-by: James Smart <jsmart2021@gmail.com>
---
 drivers/scsi/lpfc/lpfc_init.c | 2 ++
 1 file changed, 2 insertions(+)
diff mbox series

Patch

diff --git a/drivers/scsi/lpfc/lpfc_init.c b/drivers/scsi/lpfc/lpfc_init.c
index cf83bc0e27c0..461d333b1b3a 100644
--- a/drivers/scsi/lpfc/lpfc_init.c
+++ b/drivers/scsi/lpfc/lpfc_init.c
@@ -15236,6 +15236,8 @@  lpfc_io_slot_reset_s4(struct pci_dev *pdev)
 	psli->sli_flag &= ~LPFC_SLI_ACTIVE;
 	spin_unlock_irq(&phba->hbalock);
 
+	/* Init cpu_map array */
+	lpfc_cpu_map_array_init(phba);
 	/* Configure and enable interrupt */
 	intr_mode = lpfc_sli4_enable_intr(phba, phba->intr_mode);
 	if (intr_mode == LPFC_INTR_ERROR) {