aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/scsi')
-rw-r--r--drivers/scsi/megaraid/megaraid_sas.h1
-rw-r--r--drivers/scsi/megaraid/megaraid_sas_base.c4
2 files changed, 5 insertions, 0 deletions
diff --git a/drivers/scsi/megaraid/megaraid_sas.h b/drivers/scsi/megaraid/megaraid_sas.h
index e00ee4afdbc7..c782bbc57cc8 100644
--- a/drivers/scsi/megaraid/megaraid_sas.h
+++ b/drivers/scsi/megaraid/megaraid_sas.h
@@ -723,6 +723,7 @@ struct megasas_ctrl_info {
723 MEGASAS_MAX_DEV_PER_CHANNEL) 723 MEGASAS_MAX_DEV_PER_CHANNEL)
724 724
725#define MEGASAS_MAX_SECTORS (2*1024) 725#define MEGASAS_MAX_SECTORS (2*1024)
726#define MEGASAS_MAX_SECTORS_IEEE (2*128)
726#define MEGASAS_DBG_LVL 1 727#define MEGASAS_DBG_LVL 1
727 728
728#define MEGASAS_FW_BUSY 1 729#define MEGASAS_FW_BUSY 1
diff --git a/drivers/scsi/megaraid/megaraid_sas_base.c b/drivers/scsi/megaraid/megaraid_sas_base.c
index c9d82b56c6d7..960b88cb4ff6 100644
--- a/drivers/scsi/megaraid/megaraid_sas_base.c
+++ b/drivers/scsi/megaraid/megaraid_sas_base.c
@@ -3824,6 +3824,10 @@ static int megasas_io_attach(struct megasas_instance *instance)
3824 instance->max_fw_cmds - MEGASAS_INT_CMDS; 3824 instance->max_fw_cmds - MEGASAS_INT_CMDS;
3825 host->this_id = instance->init_id; 3825 host->this_id = instance->init_id;
3826 host->sg_tablesize = instance->max_num_sge; 3826 host->sg_tablesize = instance->max_num_sge;
3827
3828 if (instance->fw_support_ieee)
3829 instance->max_sectors_per_req = MEGASAS_MAX_SECTORS_IEEE;
3830
3827 /* 3831 /*
3828 * Check if the module parameter value for max_sectors can be used 3832 * Check if the module parameter value for max_sectors can be used
3829 */ 3833 */