From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id CAEDB231A31; Thu, 12 Dec 2024 16:31:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1734021061; cv=none; b=cH3G1VfjTBrE/t5BaWnCbioNVv1/pFVwxVuDylsUpDRCYgLpYJ+pJ2vI861j+5EkJG+/ycOCRAJD8yHE+lmW8zNak7VvCtfI1FG3cMWm1Wo62hD4FScxllUE/hR8jr6rWSxvi6fSDKjHvQxx5uYlQ9RiiSz0PRYvL9THaE3aLkE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1734021061; c=relaxed/simple; bh=XBnS3IUyi7gleUyQYkGjev2j5XakGxHuyrrkG8xPMj4=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=tlAUG9BbeyBGofADRBAQYdWUM7pL4EKNef0F6S/7+mPtxXACafnpZXVZpqC73wvsBQds1odMThBY9Dx+J+NPb7ioiaccsKIWK0cfoA2wjg/ZutWfCct0NtH2tXzv/p3qaSLk8VvtCZ/TjKyRmZDKgSFBYWqo9ZUrkbSu6cGxDig= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=rq6NkAth; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="rq6NkAth" Received: by smtp.kernel.org (Postfix) with ESMTPSA id E07C6C4CECE; Thu, 12 Dec 2024 16:30:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1734021060; bh=XBnS3IUyi7gleUyQYkGjev2j5XakGxHuyrrkG8xPMj4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=rq6NkAth+yv2KCwgocnJ8TITitcrg2q2JOOqDhLbATL96rVxDStW38CbczRG6z31G 0FXD99AVzvhal5fwX7oASkANDsB5RPO9NfUTgxzJnpP7IvzQzWgs0QOrdjybPbZE5G 3eCKc/jg64Ad4XXo9ZPMgx/X1RRuEtghhSbm6790= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Quinn Tran , Nilesh Javali , Himanshu Madhani , "Martin K. Petersen" Subject: [PATCH 6.1 617/772] scsi: qla2xxx: Fix NVMe and NPIV connect issue Date: Thu, 12 Dec 2024 15:59:22 +0100 Message-ID: <20241212144415.424894338@linuxfoundation.org> X-Mailer: git-send-email 2.47.1 In-Reply-To: <20241212144349.797589255@linuxfoundation.org> References: <20241212144349.797589255@linuxfoundation.org> User-Agent: quilt/0.67 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.1-stable review patch. If anyone has any objections, please let me know. ------------------ From: Quinn Tran commit 4812b7796c144f63a1094f79a5eb8fbdad8d7ebc upstream. 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: stable@vger.kernel.org Fixes: f0783d43dde4 ("scsi: qla2xxx: Use correct number of vectors for online CPUs") Signed-off-by: Quinn Tran Signed-off-by: Nilesh Javali Link: https://lore.kernel.org/r/20241115130313.46826-6-njavali@marvell.com Reviewed-by: Himanshu Madhani Signed-off-by: Martin K. Petersen Signed-off-by: Greg Kroah-Hartman --- drivers/scsi/qla2xxx/qla_mid.c | 1 + 1 file changed, 1 insertion(+) --- a/drivers/scsi/qla2xxx/qla_mid.c +++ b/drivers/scsi/qla2xxx/qla_mid.c @@ -515,6 +515,7 @@ qla24xx_create_vhost(struct fc_vport *fc return(NULL); } + vha->irq_offset = QLA_BASE_VECTORS; host = vha->host; fc_vport->dd_data = vha; /* New host info */