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 B6AE66F2FE; Thu, 12 Dec 2024 15:38:59 +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=1734017939; cv=none; b=LXuiwyHchaT2LAZPvQ9fTO7vSTSWNdAulu9yQhTYvFQux99xtgc600QpfSgp3yzK/Um1z5vHfoz+ivmBjUfQB3kscv8qV2zUKAUO7eKd8oCjw0h2NISZNmpAENHRLsCnRjJsRSCPLUgG1RE7P5mpLmy64CcWxtitwIMiK4Ry+5c= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1734017939; c=relaxed/simple; bh=0lMJ48lO4iJ7vX3KADKNq8KVYE7Db1KGgN1AJXn9I0U=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=tS862KUfXGoa5L38TJ5TPnBzeNUEMh8j26t7JqqqdxNrv+FoXP1kWp+dy3uFd/w6MMhe8nbfMWMykJQwrq2Ji9TgcImepKiRrNUxvlIEd3Cz382MvLdVwd1DTZhiotZHEaxfseChdsObKGN+85zgRfUPQn/EnEmHXKoQhy1ZAYc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=WcOWd67d; 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="WcOWd67d" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 232C6C4CECE; Thu, 12 Dec 2024 15:38:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1734017939; bh=0lMJ48lO4iJ7vX3KADKNq8KVYE7Db1KGgN1AJXn9I0U=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=WcOWd67d9ysZtVkb9VSdJ88s+T1sQeuJGrS/aSWTX7SmxqnxZpj1zVdvx6+KBUm7r jSkQ95l8vnIyi/+qSbb+uec3aom12hP7YU+eGugMs/wS8wOuf5p9MyTXHTid7UIygD nS0Vqnj2LC8CioRIxsnHnYoNHYU8bMMGsWEGcA9o= 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.6 153/356] scsi: qla2xxx: Fix NVMe and NPIV connect issue Date: Thu, 12 Dec 2024 15:57:52 +0100 Message-ID: <20241212144250.683503344@linuxfoundation.org> X-Mailer: git-send-email 2.47.1 In-Reply-To: <20241212144244.601729511@linuxfoundation.org> References: <20241212144244.601729511@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.6-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 @@ -506,6 +506,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 */