From patchwork Thu Nov 8 08:24:32 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sreekanth Reddy X-Patchwork-Id: 10673691 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 82C591751 for ; Thu, 8 Nov 2018 08:24:50 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 740592D59F for ; Thu, 8 Nov 2018 08:24:50 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 679AE2D65A; Thu, 8 Nov 2018 08:24:50 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0C8EB2D59F for ; Thu, 8 Nov 2018 08:24:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726743AbeKHR7K (ORCPT ); Thu, 8 Nov 2018 12:59:10 -0500 Received: from mail-pl1-f194.google.com ([209.85.214.194]:42640 "EHLO mail-pl1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726245AbeKHR7K (ORCPT ); Thu, 8 Nov 2018 12:59:10 -0500 Received: by mail-pl1-f194.google.com with SMTP id t6-v6so9195299plo.9 for ; Thu, 08 Nov 2018 00:24:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; h=from:to:cc:subject:date:message-id; bh=nJ+D7C5n2sWoJ44p/biP07yw+JMwExXRs6yCOBW7/mI=; b=JeJmgUDnPBcfJBTp2sdahPdpRhLjyWXKl2b8cLht6tLg3vKUOxT7lfEl8uJTvuC+WZ REYc77uYjTCGbI4UCw6Jvsdwd/IDoJJ1KxUdHHjZjpGnM2hshXkQHwvywI9/TMftltxp K4XxM87/xguEamEBSyNEcgoC7eC3ZY3DDYtS4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=nJ+D7C5n2sWoJ44p/biP07yw+JMwExXRs6yCOBW7/mI=; b=HbYQE0CU+Se8/z7JNRRhzWFDH1kOLwkseZBfoDf98sed2WRyNTGGZoYBoREUhSaRqD UhW2nYKO2UZ9pltWy1gTlS2NzyuDKuCF8VqHdDutdOO3wt04xrekdEzdayJycAfV8VNc O47RtMNHmBeB4Afdni635DLTs0c/lzSlPkZZbGeosls5XyU3OkhDegfex2/LnVrmFtI2 yaSTuP+INU8pm8KH2JiBDB1lMqRk/6+hkWALpmgOIlYJuCCK7AaKrv1mr5+bxNPC1AJu vyc1UfYzp4nhhr15jJ/KahUy6UnvthrOJAwXvgXg1P9yd0e4yGIZ1q1vNjBcfdqIg4DH x28w== X-Gm-Message-State: AGRZ1gJrNU3oNrBCryQX+ts9S1E8U39SpAixtmRJCRJtXorsy30BsTE7 /ToS0pAAzhgHTQYpBTDXG0gHITUUt/A= X-Google-Smtp-Source: AJdET5c2cUzqXDfZX0eOo1NCXZj6edcFDLjpiSIDiL95TTS/k3jpbqW2LFxvC0YCX9T4OxqzLA3pfw== X-Received: by 2002:a17:902:7c94:: with SMTP id y20-v6mr3635493pll.218.1541665488947; Thu, 08 Nov 2018 00:24:48 -0800 (PST) Received: from dhcp-10-123-74-106.dhcp.broadcom.net ([192.19.234.250]) by smtp.gmail.com with ESMTPSA id k26sm2673089pgf.65.2018.11.08.00.24.46 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 08 Nov 2018 00:24:48 -0800 (PST) From: Sreekanth Reddy To: martin.petersen@oracle.com Cc: linux-scsi@vger.kernel.org, sathya.prakash@broadcom.com, suganath-prabu.subramani@broadcom.com, Sreekanth Reddy Subject: [PATCH] mpt3sas: Display message on Configurable secure HBA Date: Thu, 8 Nov 2018 13:54:32 +0530 Message-Id: <1541665472-2811-1-git-send-email-sreekanth.reddy@broadcom.com> X-Mailer: git-send-email 1.8.3.1 Sender: linux-scsi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Display below warning message only up on detection of Configurable secure type controllers. "HBA is in Configurable Secure mode" Signed-off-by: Sreekanth Reddy --- drivers/scsi/mpt3sas/mpt3sas_scsih.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/drivers/scsi/mpt3sas/mpt3sas_scsih.c b/drivers/scsi/mpt3sas/mpt3sas_scsih.c index 104413e..f73dadc 100644 --- a/drivers/scsi/mpt3sas/mpt3sas_scsih.c +++ b/drivers/scsi/mpt3sas/mpt3sas_scsih.c @@ -10366,6 +10366,10 @@ static void pcie_device_make_active(struct MPT3SAS_ADAPTER *ioc, ioc->id = mpt3_ids++; sprintf(ioc->driver_name, "%s", MPT3SAS_DRIVER_NAME); switch (pdev->device) { + case MPI26_MFGPAGE_DEVID_CFG_SEC_3816: + case MPI26_MFGPAGE_DEVID_CFG_SEC_3916: + dev_warn(&pdev->dev, + "HBA is in Configurable Secure mode\n"); case MPI26_MFGPAGE_DEVID_SAS3508: case MPI26_MFGPAGE_DEVID_SAS3508_1: case MPI26_MFGPAGE_DEVID_SAS3408: @@ -10373,9 +10377,6 @@ static void pcie_device_make_active(struct MPT3SAS_ADAPTER *ioc, case MPI26_MFGPAGE_DEVID_SAS3516_1: case MPI26_MFGPAGE_DEVID_SAS3416: case MPI26_MFGPAGE_DEVID_SAS3616: - case MPI26_MFGPAGE_DEVID_CFG_SEC_3816: - case MPI26_MFGPAGE_DEVID_CFG_SEC_3916: - ioc_warn(ioc, "HBA is in Configurable Secure mode\n"); case MPI26_MFGPAGE_DEVID_HARD_SEC_3816: case MPI26_MFGPAGE_DEVID_HARD_SEC_3916: ioc->is_gen35_ioc = 1;