]> www.infradead.org Git - users/jedix/linux-maple.git/commit
megaraid_sas: reduce memory footprints in kdump mode
authorSumit Saxena <sumit.saxena@broadcom.com>
Fri, 15 Apr 2016 07:23:30 +0000 (00:23 -0700)
committerChuck Anderson <chuck.anderson@oracle.com>
Tue, 28 Feb 2017 04:40:00 +0000 (20:40 -0800)
commitff29126cac843704c4c4fd53cd53f4d36cdfede3
tree5d9318ddffaa1eba353f1614f338f9a4d470b8a0
parentefc372c6276288e8b9d12e3a78404c39597f42fb
megaraid_sas: reduce memory footprints in kdump mode

Orabug: 25568930

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>
(cherry picked from commit c3e385a1b985a9202ba7fbd0bdbdcb909905d00c)
Signed-off-by: Brian Maly <brian.maly@oracle.com>
drivers/scsi/megaraid/megaraid_sas.h
drivers/scsi/megaraid/megaraid_sas_base.c
drivers/scsi/megaraid/megaraid_sas_fusion.c