From patchwork Wed Nov 7 18:38:54 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shivasharan Srikanteshwara X-Patchwork-Id: 10672881 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 B0AFF13AD for ; Wed, 7 Nov 2018 18:39:31 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A1B152C7B9 for ; Wed, 7 Nov 2018 18:39:31 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 956AE2C7F9; Wed, 7 Nov 2018 18:39:31 +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 84F8E2C7B9 for ; Wed, 7 Nov 2018 18:39:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727843AbeKHELG (ORCPT ); Wed, 7 Nov 2018 23:11:06 -0500 Received: from mail-wr1-f68.google.com ([209.85.221.68]:40288 "EHLO mail-wr1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727065AbeKHELG (ORCPT ); Wed, 7 Nov 2018 23:11:06 -0500 Received: by mail-wr1-f68.google.com with SMTP id i17-v6so18507485wre.7 for ; Wed, 07 Nov 2018 10:39:29 -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=UuIMq7SarRjSGAqp2NABQ97isR9nlxyeHwHfCnsDBlw=; b=PZVO673ECcV5fOt5er8ZseLzxpB1cWObKM4NIpRYTTkJmPjY5jk5fVW8eb7kZbnscA j7Joba8tLPrNrgvrozqQ8ukf/p1VtfvnBZgD5jEV8YJEcuWcmPGdvl0/cdj8WtSK8ihB 92dkWsWJWJ42xs2FfwwfkIlLJnsdV15d6I0Eo= 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=UuIMq7SarRjSGAqp2NABQ97isR9nlxyeHwHfCnsDBlw=; b=F+6iD4c8Djzbz7ke7qMVUUtMbN+GQcyjPq1ZBzNp+9wVXBChA/GKnpMu7v0s6Buh/M EMwnFw9xQi+/JbyL+bRlxvbfj1GWDlB/qQdeo6Kjscu/1+y59F5Wb/kACct+CrGUSIje /MPyKEuxJfIokmSTmwQzPy4uoorXoA2qJ8KPyUQHnU1DAsU8mKfk0LR3FGRftwF7jsAa tzUYyAC/pzEXpMZ39V3alxxuaYOce5XA2TwSQwPbWz58apXZJMcuQVSGUVGA2+YeX+PF uvjtbq90siuJHEqR6iuQ7xqwrowyHvnazeqIGi/bjoBDSHd9ibjn0Tpx3d9aBcbCyiZh AXFg== X-Gm-Message-State: AGRZ1gJ/AfPJXcVSOCvN231uIzoLCU8gCSxK9H940plAtkrrsxjmNJvC HRaEv9B3HDkzuNsyGDVYUMb1+6ulFP8= X-Google-Smtp-Source: AJdET5cudKlf8inFmwTrLawE9nia7E0hNlu9SIWZrGSWdUQ0O4mFMOtqQqgxR4CEipJGKHLB8CavGA== X-Received: by 2002:adf:f082:: with SMTP id n2-v6mr1200779wro.88.1541615967868; Wed, 07 Nov 2018 10:39:27 -0800 (PST) Received: from dhcp-135-24-192-142.dhcp.broadcom.net ([192.19.234.250]) by smtp.gmail.com with ESMTPSA id 74-v6sm2365828wmi.23.2018.11.07.10.39.23 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 07 Nov 2018 10:39:26 -0800 (PST) From: Shivasharan S To: linux-scsi@vger.kernel.org Cc: kashyap.desai@broadcom.com, sumit.saxena@broadcom.com, Shivasharan S Subject: [PATCH] megaraid_sas: Add support for MegaRAID Aero controllers Date: Wed, 7 Nov 2018 10:38:54 -0800 Message-Id: <1541615934-26522-1-git-send-email-shivasharan.srikanteshwara@broadcom.com> X-Mailer: git-send-email 2.4.3 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 This patch adds support for MegaRAID Aero controller PCI IDs. Throw a warning message when a Configurable secure type controller is encountered. Signed-off-by: Shivasharan S --- drivers/scsi/megaraid/megaraid_sas.h | 4 ++++ drivers/scsi/megaraid/megaraid_sas_base.c | 15 +++++++++++++++ 2 files changed, 19 insertions(+) diff --git a/drivers/scsi/megaraid/megaraid_sas.h b/drivers/scsi/megaraid/megaraid_sas.h index 8edba2227cd3..55f6662ceb55 100644 --- a/drivers/scsi/megaraid/megaraid_sas.h +++ b/drivers/scsi/megaraid/megaraid_sas.h @@ -60,6 +60,10 @@ #define PCI_DEVICE_ID_LSI_TOMCAT 0x0017 #define PCI_DEVICE_ID_LSI_VENTURA_4PORT 0x001B #define PCI_DEVICE_ID_LSI_CRUSADER_4PORT 0x001C +#define PCI_DEVICE_ID_LSI_AERO_10E1 0x10e1 +#define PCI_DEVICE_ID_LSI_AERO_10E2 0x10e2 +#define PCI_DEVICE_ID_LSI_AERO_10E5 0x10e5 +#define PCI_DEVICE_ID_LSI_AERO_10E6 0x10e6 /* * Intel HBA SSDIDs diff --git a/drivers/scsi/megaraid/megaraid_sas_base.c b/drivers/scsi/megaraid/megaraid_sas_base.c index 27fab13c55ea..bc8e4d91d34b 100644 --- a/drivers/scsi/megaraid/megaraid_sas_base.c +++ b/drivers/scsi/megaraid/megaraid_sas_base.c @@ -162,6 +162,10 @@ static struct pci_device_id megasas_pci_table[] = { {PCI_DEVICE(PCI_VENDOR_ID_LSI_LOGIC, PCI_DEVICE_ID_LSI_TOMCAT)}, {PCI_DEVICE(PCI_VENDOR_ID_LSI_LOGIC, PCI_DEVICE_ID_LSI_VENTURA_4PORT)}, {PCI_DEVICE(PCI_VENDOR_ID_LSI_LOGIC, PCI_DEVICE_ID_LSI_CRUSADER_4PORT)}, + {PCI_DEVICE(PCI_VENDOR_ID_LSI_LOGIC, PCI_DEVICE_ID_LSI_AERO_10E1)}, + {PCI_DEVICE(PCI_VENDOR_ID_LSI_LOGIC, PCI_DEVICE_ID_LSI_AERO_10E2)}, + {PCI_DEVICE(PCI_VENDOR_ID_LSI_LOGIC, PCI_DEVICE_ID_LSI_AERO_10E5)}, + {PCI_DEVICE(PCI_VENDOR_ID_LSI_LOGIC, PCI_DEVICE_ID_LSI_AERO_10E6)}, {} }; @@ -6235,6 +6239,10 @@ static inline void megasas_set_adapter_type(struct megasas_instance *instance) instance->adapter_type = MFI_SERIES; } else { switch (instance->pdev->device) { + case PCI_DEVICE_ID_LSI_AERO_10E1: + case PCI_DEVICE_ID_LSI_AERO_10E2: + case PCI_DEVICE_ID_LSI_AERO_10E5: + case PCI_DEVICE_ID_LSI_AERO_10E6: case PCI_DEVICE_ID_LSI_VENTURA: case PCI_DEVICE_ID_LSI_CRUSADER: case PCI_DEVICE_ID_LSI_HARPOON: @@ -6598,6 +6606,13 @@ static int megasas_probe_one(struct pci_dev *pdev, struct megasas_instance *instance; u16 control = 0; + switch (pdev->device) { + case PCI_DEVICE_ID_LSI_AERO_10E1: + case PCI_DEVICE_ID_LSI_AERO_10E5: + dev_warn(&pdev->dev, "Adapter is in configurable secure mode\n"); + break; + } + /* Reset MSI-X in the kdump kernel */ if (reset_devices) { pos = pci_find_capability(pdev, PCI_CAP_ID_MSIX);