From patchwork Fri Nov 9 09:34:12 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sreekanth Reddy X-Patchwork-Id: 10675561 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 0685D175A for ; Fri, 9 Nov 2018 09:34:29 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E8FC928C01 for ; Fri, 9 Nov 2018 09:34:28 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id DB61E2D982; Fri, 9 Nov 2018 09:34:28 +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 7898A28C01 for ; Fri, 9 Nov 2018 09:34:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727752AbeKITOL (ORCPT ); Fri, 9 Nov 2018 14:14:11 -0500 Received: from mail-wr1-f66.google.com ([209.85.221.66]:43357 "EHLO mail-wr1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727735AbeKITOL (ORCPT ); Fri, 9 Nov 2018 14:14:11 -0500 Received: by mail-wr1-f66.google.com with SMTP id y3-v6so1130641wrh.10 for ; Fri, 09 Nov 2018 01:34:26 -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=lDsOtq8XSZL4elG2/49vJ0fFtp4cRII0+5YOMNjDMIU=; b=S/9ueB+Pa9LVvSNG55I3xpATVFo4W4gtwGR4XcgnyeTAEgnqlft7t8gMhfvR173beN YaAsd/1g4wiIgykCspzGwTJBkWmT2laH7kFv89rsNeAZq6Q07P61q8cz4dapFpyT9RcJ nSqUIlceA9Sjy6cECEM0UvtEd1F58dj8iGJq4= 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=lDsOtq8XSZL4elG2/49vJ0fFtp4cRII0+5YOMNjDMIU=; b=cHbGRnrgGMC0C9A1OCXJlFvYIwyGNILAW58fEwv3khkf6ARFMQbdXvtSEvld/NtShJ 5yCatgRCaKm2m1Go3J3ZN0li0vBf/GeksIM6Ho6WPGNGy4pu6SC4UZHwY0VXtl6dbDQ0 FBk3vCqvbROgxpA9Dom9l0qovo0lrG7dvJemj04atbENkt+vugbY2NKqXUukUR+tlCVp MFpRK4RiZmM4NqmK7wujb8yBQtqSxSeTHpGSo4kHtTVHw2pxkrDa41IliocxtlwXnPTq wcaZFLoIQG1OKsqxjLqel+pfcQh9De+x7ZRonBb2dzIfjHlbeDyL3loF4Mz8XBERmP+8 A4LA== X-Gm-Message-State: AGRZ1gK6VvXX7ijS5hYmmOpxTzfcE4OMAKkp8IGEE2SSDcYBBakHD+G0 2gInaWQOtt2ha33n+KAYh2n7YA== X-Google-Smtp-Source: AJdET5eat4MDx+8UIqSpMBiRY675dnCywksYXac0yzT8hwqIkxwBLj/d9CyjoLlhcVAq1X4Bo9ecdQ== X-Received: by 2002:adf:f9d2:: with SMTP id w18-v6mr7359093wrr.134.1541756066077; Fri, 09 Nov 2018 01:34:26 -0800 (PST) Received: from dhcp-10-123-74-106.dhcp.broadcom.net ([192.19.234.250]) by smtp.gmail.com with ESMTPSA id g16-v6sm7298852wrr.38.2018.11.09.01.34.22 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 09 Nov 2018 01:34:25 -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 v2] mpt3sas: Display message on Configurable secure HBA Date: Fri, 9 Nov 2018 15:04:12 +0530 Message-Id: <1541756052-30535-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" v2 change set: Replaced dev_warn() with dev_info() function while displaying above message. 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..5b9806d 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_info(&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;