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 E312B20A5EE; Thu, 12 Dec 2024 17:30:50 +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=1734024651; cv=none; b=ja2qp+kaXfBK8hJzcawEtorFBbhLQln9h3J51HgVUsW4PWpBugcYvk93gL/4lhM50MKb9XE+8hMS+sbshTLMg6FhjGKodTsK79RC/cLcs9gwRoMdQAPo2ykv63uL4FSJoWdtEf5+HqqB0Y5AeSBYdv2xHDH6iPmNTM+vO8MS750= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1734024651; c=relaxed/simple; bh=+0wRa3tLu7RRJlNOrj0qfEbEoqL5MmHuKePIPcMR4rA=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=ius37dgsv02IkJoEjGGYlCkp/avomuGIal8Q/Z0wYPmOISFWBbrJB7IjhZHbiTnB/1T+cudK/13/1ehYcEpx/V9fiwk234tVAScmekbINAxyLepClCkIjiajOSbeBVc4SMF2+I7yt91R1n5FHOprBcvYoX5L694WvTKvEvmKJlA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=L/bx8rkP; 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="L/bx8rkP" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6DA8DC4CECE; Thu, 12 Dec 2024 17:30:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1734024650; bh=+0wRa3tLu7RRJlNOrj0qfEbEoqL5MmHuKePIPcMR4rA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=L/bx8rkPIIkCsYTmk/86s8KtFxNcTo42avE+NguzLB0zoAkRbmCqgf81go8L60KjZ zBH6hUEO+sga/llKAhjrjC/nsVAQwCN56PCD8IYApynQ0gwyOpeaOCS8+0vlGQ+kPD 0QR+8YAAFeovXecVxdbsuUkTExaOFUsH3t1Bwpvg= 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 5.10 366/459] scsi: qla2xxx: Fix NVMe and NPIV connect issue Date: Thu, 12 Dec 2024 16:01:44 +0100 Message-ID: <20241212144308.132444636@linuxfoundation.org> X-Mailer: git-send-email 2.47.1 In-Reply-To: <20241212144253.511169641@linuxfoundation.org> References: <20241212144253.511169641@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 5.10-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 @@ -498,6 +498,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 */