Received: by 2002:a05:6a10:eb17:0:0:0:0 with SMTP id hx23csp1013568pxb; Thu, 9 Sep 2021 18:01:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzR6QJvqXpr+b3BBve6MLVLIXM48IE+x/L/B3vuhRocrCMINtSSezOZBjT2EwbvS13vNiWZ X-Received: by 2002:a17:906:b1d5:: with SMTP id bv21mr6533481ejb.346.1631235664349; Thu, 09 Sep 2021 18:01:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631235664; cv=none; d=google.com; s=arc-20160816; b=Mw2ztIUYUaRtxsgHOg35URoB/KTU2ReCg792pulqSh92JGpcYHuFz9vLTqNpnebmd9 YRx1PX2DiIGws57rGqj27PEq/rytyzRRSDqK4gPRts+Loo6E3PUBXSwNp8DwGrykAubP ma0wsTbZMHKgfbS6YgfTpnRe0iBRd1gFUEv0MYlZdOy26RnDODAkBfH9uvMY7w31uRhh Q8UQpT23k/icuZUW+H1FJ/qAQpBtkxizLsP4eiCu2JALk0RYAYwEo0/LNFx6QS7Wqbd3 ElaPsi/4f+m7+Nm7Bui4YJVmDL/6FYmRX0zdxnYYQF5DGZfKkQ96OQ3J071yNp3A41sX r1ug== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=YrqCKlsc+e4pbMHNYcZTNWsa/M1jP7YQzHavWSPMphw=; b=BMF3xkLSpxO3AudxpJU3ptZB/9JOZoExTD68Rh2g9Ny5LEKE4sD3LqQymOc897dTBQ e7kitGiOHdHVGO+r2AL47HxZPU86qyH9u62qSCEdp1EONe9t6J+2xe69xYwm4kXvpoJo FPYUcPKB8RyBVoi/4eGjv8W4B3Zqpa/jROqGXzKOEPYTD91W6PmtnbR+8he6NQ8teFFO Z5NmXmCi8MoLDxzlMs5woXOJwKbCxbj6dnOwqTolEkycKnBX+Ho8KF2N+wXyA4yeWtOd SkwDl6a88vpedNG5da2RPNxjf/tZDkYiGROFGs4sGtBdPh9yUncC1yrAEMROiWxFUcgI nEsw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=a8kRhRQC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n23si3674336edr.245.2021.09.09.18.00.39; Thu, 09 Sep 2021 18:01:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=a8kRhRQC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235418AbhIJA7I (ORCPT + 99 others); Thu, 9 Sep 2021 20:59:08 -0400 Received: from mail.kernel.org ([198.145.29.99]:48534 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234155AbhIJAW6 (ORCPT ); Thu, 9 Sep 2021 20:22:58 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 0EE5F60F6D; Fri, 10 Sep 2021 00:21:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1631233307; bh=VgrjoEzRRisM1bUHZg6uZpuh7YFXRDzOHlDnw8mSGt4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=a8kRhRQCsO++Dt6Jp//aroCgDB412EuH79A9xWsX92+gsXpiSyqkZS/BmWn4D++bn g08nFpxEVEwHJQKS4DiDEvjaxyk0pynt7o+GnRQBNk8kSh0E1p0b1wEssdYT4VJqGH FHdjd+aFJse3s0Onf0Uc6um4ugtCdcHjq6jr9jnq+VoVPNagll8NYiVFmGtHnNdiYZ E1RTMpKKqxZy1oVqZOSh+iAetgxHO7uPKt6f73uJVxokIMGz7adoQCYR+N0U/A95mP kFLjVBdupjvioS4UO0IUel9c+zyksZQkVeqfmE856ILpFtaSHDQ9BwF2ztnqgq5ZYW gIMXAZyHVLwlg== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: James Smart , Justin Tee , "Martin K . Petersen" , Sasha Levin , linux-scsi@vger.kernel.org Subject: [PATCH AUTOSEL 5.4 03/37] scsi: lpfc: Fix NVMe support reporting in log message Date: Thu, 9 Sep 2021 20:21:08 -0400 Message-Id: <20210910002143.175731-3-sashal@kernel.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210910002143.175731-1-sashal@kernel.org> References: <20210910002143.175731-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: James Smart [ Upstream commit ae463b60235e7a5decffbb0bd7209952ccda78eb ] The NVMe support indicator in log message 6422 is displaying a field that was initialized but never set to indicate NVMe support. Remove obsolete nvme_support element from the lpfc_hba structure and change log message to display NVMe support status as reported in SLI4 Config Parameters mailbox command. Link: https://lore.kernel.org/r/20210707184351.67872-2-jsmart2021@gmail.com Co-developed-by: Justin Tee Signed-off-by: Justin Tee Signed-off-by: James Smart Signed-off-by: Martin K. Petersen Signed-off-by: Sasha Levin --- drivers/scsi/lpfc/lpfc.h | 1 - drivers/scsi/lpfc/lpfc_init.c | 3 +-- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/scsi/lpfc/lpfc.h b/drivers/scsi/lpfc/lpfc.h index 8943d42fc406..767dbc4a5276 100644 --- a/drivers/scsi/lpfc/lpfc.h +++ b/drivers/scsi/lpfc/lpfc.h @@ -791,7 +791,6 @@ struct lpfc_hba { uint8_t wwpn[8]; uint32_t RandomData[7]; uint8_t fcp_embed_io; - uint8_t nvme_support; /* Firmware supports NVME */ uint8_t nvmet_support; /* driver supports NVMET */ #define LPFC_NVMET_MAX_PORTS 32 uint8_t mds_diags_support; diff --git a/drivers/scsi/lpfc/lpfc_init.c b/drivers/scsi/lpfc/lpfc_init.c index b5cee2a2ac66..393909a71c59 100644 --- a/drivers/scsi/lpfc/lpfc_init.c +++ b/drivers/scsi/lpfc/lpfc_init.c @@ -11653,7 +11653,6 @@ lpfc_get_sli4_parameters(struct lpfc_hba *phba, LPFC_MBOXQ_t *mboxq) bf_get(cfg_xib, mbx_sli4_parameters), phba->cfg_enable_fc4_type); fcponly: - phba->nvme_support = 0; phba->nvmet_support = 0; phba->cfg_nvmet_mrq = 0; phba->cfg_nvme_seg_cnt = 0; @@ -11714,7 +11713,7 @@ lpfc_get_sli4_parameters(struct lpfc_hba *phba, LPFC_MBOXQ_t *mboxq) "6422 XIB %d PBDE %d: FCP %d NVME %d %d %d\n", bf_get(cfg_xib, mbx_sli4_parameters), phba->cfg_enable_pbde, - phba->fcp_embed_io, phba->nvme_support, + phba->fcp_embed_io, sli4_params->nvme, phba->cfg_nvme_embed_cmd, phba->cfg_suppress_rsp); if ((bf_get(lpfc_sli_intf_if_type, &phba->sli4_hba.sli_intf) == -- 2.30.2