Skip to content

Commit

Permalink
scsi: megaraid_sas: Introduce new Aero adapter type
Browse files Browse the repository at this point in the history
ANBZ: torvalds#633

commit 154a7cd upstream.

Identify all Aero controller PCI IDs with new adapter type.

Signed-off-by: Shivasharan S <shivasharan.srikanteshwara@broadcom.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Reviewed-by: Xunlei Pang <xlpang@linux.alibaba.com>
Signed-off-by: Guixin Liu <kanie@linux.alibaba.com>
  • Loading branch information
shivasharan-s authored and guixinliu1995 committed Mar 10, 2022
1 parent 04ae9cb commit 766cf65
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 6 deletions.
1 change: 1 addition & 0 deletions drivers/scsi/megaraid/megaraid_sas.h
Original file line number Diff line number Diff line change
Expand Up @@ -1553,6 +1553,7 @@ enum MR_ADAPTER_TYPE {
THUNDERBOLT_SERIES = 2,
INVADER_SERIES = 3,
VENTURA_SERIES = 4,
AERO_SERIES = 5,
};

/*
Expand Down
18 changes: 12 additions & 6 deletions drivers/scsi/megaraid/megaraid_sas_base.c
Original file line number Diff line number Diff line change
Expand Up @@ -5358,6 +5358,7 @@ static int megasas_init_fw(struct megasas_instance *instance)
if (instance->msix_vectors > 8)
instance->msix_combined = true;
break;
case AERO_SERIES:
case VENTURA_SERIES:
if (instance->msix_vectors > 16)
instance->msix_combined = true;
Expand Down Expand Up @@ -6125,12 +6126,14 @@ megasas_set_dma_mask(struct megasas_instance *instance)
/*
* megasas_set_adapter_type - Set adapter type.
* Supported controllers can be divided in
* 4 categories- enum MR_ADAPTER_TYPE {
* MFI_SERIES = 1,
* THUNDERBOLT_SERIES = 2,
* INVADER_SERIES = 3,
* VENTURA_SERIES = 4,
* };
* different categories-
* enum MR_ADAPTER_TYPE {
* MFI_SERIES = 1,
* THUNDERBOLT_SERIES = 2,
* INVADER_SERIES = 3,
* VENTURA_SERIES = 4,
* AERO_SERIES = 5,
* };
* @instance: Adapter soft state
* return: void
*/
Expand All @@ -6145,6 +6148,8 @@ static inline void megasas_set_adapter_type(struct megasas_instance *instance)
case PCI_DEVICE_ID_LSI_AERO_10E2:
case PCI_DEVICE_ID_LSI_AERO_10E5:
case PCI_DEVICE_ID_LSI_AERO_10E6:
instance->adapter_type = AERO_SERIES;
break;
case PCI_DEVICE_ID_LSI_VENTURA:
case PCI_DEVICE_ID_LSI_CRUSADER:
case PCI_DEVICE_ID_LSI_HARPOON:
Expand Down Expand Up @@ -6212,6 +6217,7 @@ static int megasas_alloc_ctrl_mem(struct megasas_instance *instance)
if (megasas_alloc_mfi_ctrl_mem(instance))
goto fail;
break;
case AERO_SERIES:
case VENTURA_SERIES:
case THUNDERBOLT_SERIES:
case INVADER_SERIES:
Expand Down

0 comments on commit 766cf65

Please sign in to comment.