[SCSI] megaraid_sas: Fix max_sectors for IEEE SGL
Signed-off-by: Adam Radford <aradford@gmail.com> Signed-off-by: James Bottomley <James.Bottomley@suse.de>
This commit is contained in:
committed by
James Bottomley
parent
1ac515ef3f
commit
42a8d2b34d
@@ -723,6 +723,7 @@ struct megasas_ctrl_info {
|
|||||||
MEGASAS_MAX_DEV_PER_CHANNEL)
|
MEGASAS_MAX_DEV_PER_CHANNEL)
|
||||||
|
|
||||||
#define MEGASAS_MAX_SECTORS (2*1024)
|
#define MEGASAS_MAX_SECTORS (2*1024)
|
||||||
|
#define MEGASAS_MAX_SECTORS_IEEE (2*128)
|
||||||
#define MEGASAS_DBG_LVL 1
|
#define MEGASAS_DBG_LVL 1
|
||||||
|
|
||||||
#define MEGASAS_FW_BUSY 1
|
#define MEGASAS_FW_BUSY 1
|
||||||
|
@@ -3824,6 +3824,10 @@ static int megasas_io_attach(struct megasas_instance *instance)
|
|||||||
instance->max_fw_cmds - MEGASAS_INT_CMDS;
|
instance->max_fw_cmds - MEGASAS_INT_CMDS;
|
||||||
host->this_id = instance->init_id;
|
host->this_id = instance->init_id;
|
||||||
host->sg_tablesize = instance->max_num_sge;
|
host->sg_tablesize = instance->max_num_sge;
|
||||||
|
|
||||||
|
if (instance->fw_support_ieee)
|
||||||
|
instance->max_sectors_per_req = MEGASAS_MAX_SECTORS_IEEE;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Check if the module parameter value for max_sectors can be used
|
* Check if the module parameter value for max_sectors can be used
|
||||||
*/
|
*/
|
||||||
|
Reference in New Issue
Block a user