megaraid_sas: reserve commands for IOCTLs and internal DCMDs
1) For fusion adapters, limit reserved frames for non SCSI commands to 8 (3 for parallel IOCTLs + 5 for driver's internal DCMDs). Earlier reserved commands for non SCSI IO frames was set to 32, so with this implementation, increased per controller "can_queue". Behavior of MFI controllers will remain unchanged. 2) Optimize the code related to per controller's 'can_queue' setting. Signed-off-by: Sumit Saxena <sumit.saxena@avagotech.com> Signed-off-by: Chaitra Basappa <chaitra.basappa@avagotech.com> Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com> Signed-off-by: Christoph Hellwig <hch@lst.de>
This commit is contained in:

committed by
Christoph Hellwig

parent
c8dd61eff2
commit
ae09a6c1fd
@@ -1082,6 +1082,8 @@ enum MR_SCSI_CMD_TYPE {
|
||||
*/
|
||||
#define MEGASAS_INT_CMDS 32
|
||||
#define MEGASAS_SKINNY_INT_CMDS 5
|
||||
#define MEGASAS_FUSION_INTERNAL_CMDS 5
|
||||
#define MEGASAS_FUSION_IOCTL_CMDS 3
|
||||
|
||||
#define MEGASAS_MAX_MSIX_QUEUES 128
|
||||
/*
|
||||
@@ -1687,9 +1689,8 @@ struct megasas_instance {
|
||||
|
||||
u16 max_num_sge;
|
||||
u16 max_fw_cmds;
|
||||
/* For Fusion its num IOCTL cmds, for others MFI based its
|
||||
max_fw_cmds */
|
||||
u16 max_mfi_cmds;
|
||||
u16 max_scsi_cmds;
|
||||
u32 max_sectors_per_req;
|
||||
struct megasas_aen_event *ev;
|
||||
|
||||
@@ -1765,7 +1766,7 @@ struct megasas_instance {
|
||||
u8 requestorId;
|
||||
char PlasmaFW111;
|
||||
char mpio;
|
||||
int throttlequeuedepth;
|
||||
u16 throttlequeuedepth;
|
||||
u8 mask_interrupts;
|
||||
u8 is_imr;
|
||||
};
|
||||
|
Reference in New Issue
Block a user