]> git.karo-electronics.de Git - linux-beck.git/commitdiff
[SCSI] megaraid_sas: Fix max_sectors for IEEE SGL
authoradam radford <aradford@gmail.com>
Fri, 25 Feb 2011 04:57:09 +0000 (20:57 -0800)
committerJames Bottomley <James.Bottomley@suse.de>
Mon, 28 Feb 2011 18:02:52 +0000 (12:02 -0600)
Signed-off-by: Adam Radford <aradford@gmail.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
drivers/scsi/megaraid/megaraid_sas.h
drivers/scsi/megaraid/megaraid_sas_base.c

index e00ee4afdbc765a79906c329f4473d7cf846745e..c782bbc57cc821fd4ba369fdc6253cb6102770e5 100644 (file)
@@ -723,6 +723,7 @@ struct megasas_ctrl_info {
                                                MEGASAS_MAX_DEV_PER_CHANNEL)
 
 #define MEGASAS_MAX_SECTORS                    (2*1024)
+#define MEGASAS_MAX_SECTORS_IEEE               (2*128)
 #define MEGASAS_DBG_LVL                                1
 
 #define MEGASAS_FW_BUSY                                1
index c9d82b56c6d797c1acf0b34e977162bfefc1d63c..960b88cb4ff678c92e7a8ed868d99510e09e0cbc 100644 (file)
@@ -3824,6 +3824,10 @@ static int megasas_io_attach(struct megasas_instance *instance)
                        instance->max_fw_cmds - MEGASAS_INT_CMDS;
        host->this_id = instance->init_id;
        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
         */