diff options
| author | Quinn Tran <[email protected]> | 2024-11-15 13:03:11 +0000 |
|---|---|---|
| committer | Martin K. Petersen <[email protected]> | 2024-12-04 18:22:59 +0000 |
| commit | 4812b7796c144f63a1094f79a5eb8fbdad8d7ebc (patch) | |
| tree | 78d065d36be173ccaa8d504da2a8ab8c06d7c86b /drivers/scsi/scsi_debug.c | |
| parent | scsi: qla2xxx: Remove check req_sg_cnt should be equal to rsp_sg_cnt (diff) | |
| download | kernel-4812b7796c144f63a1094f79a5eb8fbdad8d7ebc.tar.gz kernel-4812b7796c144f63a1094f79a5eb8fbdad8d7ebc.zip | |
scsi: qla2xxx: Fix NVMe and NPIV connect issue
NVMe controller fails to send connect command due to failure to locate
hw context buffer for NVMe queue 0 (blk_mq_hw_ctx, hctx_idx=0). The
cause of the issue is NPIV host did not initialize the vha->irq_offset
field. This field is given to blk-mq (blk_mq_pci_map_queues) to help
locate the beginning of IO Queues which in turn help locate NVMe queue
0.
Initialize this field to allow NVMe to work properly with NPIV host.
kernel: nvme nvme5: Connect command failed, errno: -18
kernel: nvme nvme5: qid 0: secure concatenation is not supported
kernel: nvme nvme5: NVME-FC{5}: create_assoc failed, assoc_id 2e9100 ret 401
kernel: nvme nvme5: NVME-FC{5}: reset: Reconnect attempt failed (401)
kernel: nvme nvme5: NVME-FC{5}: Reconnect attempt in 2 seconds
Cc: [email protected]
Fixes: f0783d43dde4 ("scsi: qla2xxx: Use correct number of vectors for online CPUs")
Signed-off-by: Quinn Tran <[email protected]>
Signed-off-by: Nilesh Javali <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Reviewed-by: Himanshu Madhani <[email protected]>
Signed-off-by: Martin K. Petersen <[email protected]>
Diffstat (limited to 'drivers/scsi/scsi_debug.c')
0 files changed, 0 insertions, 0 deletions
