megaraid_sas: reduce memory footprints in kdump mode
This patch will reduce memory footprints of megaraid_sas driver when booted in kdump mode. Driver will not allocate memory for optional and perfromance oriented features. Below are key changes done in megaraid_sas driver to do this: 1. Limit Controller's queue depth to 100 in kdump mode. 2. Do not allocate memory for system info buffer and PD info buffer. 3. Disable performance oriented features e.g. Disable RDPQ mode, disable dual queue depth, restrict to single MSI-x vector. Signed-off-by: Sumit Saxena <sumit.saxena@broadcom.com> Reviewed-by: Hannes Reinicke <hare@suse.de> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
This commit is contained in:

committed by
Martin K. Petersen

parent
1f275f976f
commit
c3e385a1b9
@@ -257,6 +257,9 @@ megasas_fusion_update_can_queue(struct megasas_instance *instance, int fw_boot_c
|
||||
if (!instance->is_rdpq)
|
||||
instance->max_fw_cmds = min_t(u16, instance->max_fw_cmds, 1024);
|
||||
|
||||
if (reset_devices)
|
||||
instance->max_fw_cmds = min(instance->max_fw_cmds,
|
||||
(u16)MEGASAS_KDUMP_QUEUE_DEPTH);
|
||||
/*
|
||||
* Reduce the max supported cmds by 1. This is to ensure that the
|
||||
* reply_q_sz (1 more than the max cmd that driver may send)
|
||||
|
Reference in New Issue
Block a user