Skip to content

Commit 469f72d

Browse files
shivasharan-smartinkpetersen
authored andcommitted
scsi: megaraid_sas: Add support for MegaRAID Aero controllers
This patch adds support for MegaRAID Aero controller PCI IDs. Print a message when a configurable secure type controller is encountered. Signed-off-by: Shivasharan S <shivasharan.srikanteshwara@broadcom.com> Reviewed-by: Hannes Reinecke <hare@suse.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
1 parent 1c7a94e commit 469f72d

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

drivers/scsi/megaraid/megaraid_sas.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,10 @@
6060
#define PCI_DEVICE_ID_LSI_TOMCAT 0x0017
6161
#define PCI_DEVICE_ID_LSI_VENTURA_4PORT 0x001B
6262
#define PCI_DEVICE_ID_LSI_CRUSADER_4PORT 0x001C
63+
#define PCI_DEVICE_ID_LSI_AERO_10E1 0x10e1
64+
#define PCI_DEVICE_ID_LSI_AERO_10E2 0x10e2
65+
#define PCI_DEVICE_ID_LSI_AERO_10E5 0x10e5
66+
#define PCI_DEVICE_ID_LSI_AERO_10E6 0x10e6
6367

6468
/*
6569
* Intel HBA SSDIDs

drivers/scsi/megaraid/megaraid_sas_base.c

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,10 @@ static struct pci_device_id megasas_pci_table[] = {
162162
{PCI_DEVICE(PCI_VENDOR_ID_LSI_LOGIC, PCI_DEVICE_ID_LSI_TOMCAT)},
163163
{PCI_DEVICE(PCI_VENDOR_ID_LSI_LOGIC, PCI_DEVICE_ID_LSI_VENTURA_4PORT)},
164164
{PCI_DEVICE(PCI_VENDOR_ID_LSI_LOGIC, PCI_DEVICE_ID_LSI_CRUSADER_4PORT)},
165+
{PCI_DEVICE(PCI_VENDOR_ID_LSI_LOGIC, PCI_DEVICE_ID_LSI_AERO_10E1)},
166+
{PCI_DEVICE(PCI_VENDOR_ID_LSI_LOGIC, PCI_DEVICE_ID_LSI_AERO_10E2)},
167+
{PCI_DEVICE(PCI_VENDOR_ID_LSI_LOGIC, PCI_DEVICE_ID_LSI_AERO_10E5)},
168+
{PCI_DEVICE(PCI_VENDOR_ID_LSI_LOGIC, PCI_DEVICE_ID_LSI_AERO_10E6)},
165169
{}
166170
};
167171

@@ -6235,6 +6239,10 @@ static inline void megasas_set_adapter_type(struct megasas_instance *instance)
62356239
instance->adapter_type = MFI_SERIES;
62366240
} else {
62376241
switch (instance->pdev->device) {
6242+
case PCI_DEVICE_ID_LSI_AERO_10E1:
6243+
case PCI_DEVICE_ID_LSI_AERO_10E2:
6244+
case PCI_DEVICE_ID_LSI_AERO_10E5:
6245+
case PCI_DEVICE_ID_LSI_AERO_10E6:
62386246
case PCI_DEVICE_ID_LSI_VENTURA:
62396247
case PCI_DEVICE_ID_LSI_CRUSADER:
62406248
case PCI_DEVICE_ID_LSI_HARPOON:
@@ -6598,6 +6606,13 @@ static int megasas_probe_one(struct pci_dev *pdev,
65986606
struct megasas_instance *instance;
65996607
u16 control = 0;
66006608

6609+
switch (pdev->device) {
6610+
case PCI_DEVICE_ID_LSI_AERO_10E1:
6611+
case PCI_DEVICE_ID_LSI_AERO_10E5:
6612+
dev_info(&pdev->dev, "Adapter is in configurable secure mode\n");
6613+
break;
6614+
}
6615+
66016616
/* Reset MSI-X in the kdump kernel */
66026617
if (reset_devices) {
66036618
pos = pci_find_capability(pdev, PCI_CAP_ID_MSIX);

0 commit comments

Comments
 (0)