diff options
| author | James Smart <jsmart2021@gmail.com> | 2019-08-14 16:56:43 -0700 |
|---|---|---|
| committer | Martin K. Petersen <martin.petersen@oracle.com> | 2019-08-19 22:41:09 -0400 |
| commit | 3ad348d94452d6ab3aa0316105fb9f34f8ed3140 (patch) | |
| tree | 91ad77e2ca9b658f9a9402a31c36e859e99974a9 /tools/perf/scripts/python/bin | |
| parent | scsi: lpfc: Fix irq raising in lpfc_sli_hba_down (diff) | |
| download | linux-3ad348d94452d6ab3aa0316105fb9f34f8ed3140.tar.gz linux-3ad348d94452d6ab3aa0316105fb9f34f8ed3140.zip | |
scsi: lpfc: Fix oops when fewer hdwqs than cpus
When tearing down the adapter for a reset, online/offline, or driver
unload, the queue free routine would hit a GPF oops. This only occurs on
conditions where the number of hardware queues created is fewer than the
number of cpus in the system. In this condition cpus share a hardware
queue. And of course, it's the 2nd cpu that shares a hardware that
attempted to free it a second time and hit the oops.
Fix by reworking the cpu to hardware queue mapping such that:
Assignment of hardware queues to cpus occur in two passes:
first pass: is first time assignment of a hardware queue to a cpu.
This will set the LPFC_CPU_FIRST_IRQ flag for the cpu.
second pass: for cpus that did not get a hardware queue they will
be assigned one from a primary cpu (one set in first pass).
Deletion of hardware queues is driven by cpu itteration, and queues
will only be deleted if the LPFC_CPU_FIRST_IRQ flag is set.
Also contains a few small cleanup fixes and a little better logging.
Signed-off-by: Dick Kennedy <dick.kennedy@broadcom.com>
Signed-off-by: James Smart <jsmart2021@gmail.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions
