]> git.baikalelectronics.ru Git - kernel.git/commitdiff
scsi: qla2xxx: Changes to support kdump kernel
authorSaurav Kashyap <skashyap@marvell.com>
Tue, 10 Aug 2021 04:37:17 +0000 (21:37 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 22 Sep 2021 10:26:37 +0000 (12:26 +0200)
commit 62e0dec59c1e139dab55aff5aa442adc97804271 upstream.

Avoid allocating firmware dump and only allocate a single queue for a kexec
kernel.

Link: https://lore.kernel.org/r/20210810043720.1137-12-njavali@marvell.com
Cc: stable@vger.kernel.org
Reviewed-by: Himanshu Madhani <himanshu.madhani@oracle.com>
Signed-off-by: Saurav Kashyap <skashyap@marvell.com>
Signed-off-by: Nilesh Javali <njavali@marvell.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/scsi/qla2xxx/qla_os.c

index 052ce78814075ed350b01536fafdb72f0ea6281a..28cbefe715e59ab311516ae0975178d529982619 100644 (file)
@@ -15,6 +15,7 @@
 #include <linux/slab.h>
 #include <linux/blk-mq-pci.h>
 #include <linux/refcount.h>
+#include <linux/crash_dump.h>
 
 #include <scsi/scsi_tcq.h>
 #include <scsi/scsicam.h>
@@ -2799,6 +2800,11 @@ qla2x00_probe_one(struct pci_dev *pdev, const struct pci_device_id *id)
                        return ret;
        }
 
+       if (is_kdump_kernel()) {
+               ql2xmqsupport = 0;
+               ql2xallocfwdump = 0;
+       }
+
        /* This may fail but that's ok */
        pci_enable_pcie_error_reporting(pdev);