|
|
3d7c23 |
From 8823763ab0d04b7a5062fdfc35d89f2e46edd8ae Mon Sep 17 00:00:00 2001
|
|
|
3d7c23 |
From: Himanshu Madhani <hmadhani@redhat.com>
|
|
|
3d7c23 |
Date: Wed, 4 Sep 2019 21:04:18 -0400
|
|
|
3d7c23 |
Subject: [PATCH 120/124] [scsi] scsi: qla2xxx: qla2x00_alloc_fw_dump: set
|
|
|
3d7c23 |
ha->eft
|
|
|
3d7c23 |
|
|
|
3d7c23 |
Message-id: <20190904210419.3503-2-hmadhani@redhat.com>
|
|
|
3d7c23 |
Patchwork-id: 270921
|
|
|
3d7c23 |
O-Subject: [RHEL7.8 e-stor PATCH 1/2] scsi: qla2xxx: qla2x00_alloc_fw_dump: set ha->eft
|
|
|
3d7c23 |
Bugzilla: 1749039
|
|
|
3d7c23 |
RH-Acked-by: Jarod Wilson <jarod@redhat.com>
|
|
|
3d7c23 |
RH-Acked-by: Tony Camuso <tcamuso@redhat.com>
|
|
|
3d7c23 |
RH-Acked-by: Maurizio Lombardi <mlombard@redhat.com>
|
|
|
3d7c23 |
RH-Acked-by: Ewan Milne <emilne@redhat.com>
|
|
|
3d7c23 |
|
|
|
3d7c23 |
From: Martin Wilck <mwilck@suse.com>
|
|
|
3d7c23 |
|
|
|
3d7c23 |
Bugzilla 1749039
|
|
|
3d7c23 |
|
|
|
3d7c23 |
In qla2x00_alloc_fw_dump(), an existing EFT buffer (e.g. from previous
|
|
|
3d7c23 |
invocation of qla2x00_alloc_offload_mem()) is freed. The buffer is then
|
|
|
3d7c23 |
re-allocated, but without setting the eft and eft_dma fields to the new
|
|
|
3d7c23 |
values.
|
|
|
3d7c23 |
|
|
|
3d7c23 |
Fixes: a28d9e4ef997 ("scsi: qla2xxx: Add support for multiple fwdump templates/segments")
|
|
|
3d7c23 |
Cc: Joe Carnuccio <joe.carnuccio@cavium.com>
|
|
|
3d7c23 |
Cc: Quinn Tran <qutran@marvell.com>
|
|
|
3d7c23 |
Cc: Himanshu Madhani <hmadhani@marvell.com>
|
|
|
3d7c23 |
Cc: Bart Van Assche <bvanassche@acm.org>
|
|
|
3d7c23 |
Signed-off-by: Martin Wilck <mwilck@suse.com>
|
|
|
3d7c23 |
Tested-by: Himanshu Madhani <hmadhani@marvell.com>
|
|
|
3d7c23 |
Reviewed-by: Himanshu Madhani <hmadhani@marvell.com>
|
|
|
3d7c23 |
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
|
|
|
3d7c23 |
(cherry picked from commit edbd56472a636ab396f5ee6783e8438fa725a6ee)
|
|
|
3d7c23 |
Signed-off-by: Himanshu Madhani <hmadhani@redhat.com>
|
|
|
3d7c23 |
Signed-off-by: Jan Stancek <jstancek@redhat.com>
|
|
|
3d7c23 |
---
|
|
|
3d7c23 |
drivers/scsi/qla2xxx/qla_init.c | 2 ++
|
|
|
3d7c23 |
1 file changed, 2 insertions(+)
|
|
|
3d7c23 |
|
|
|
3d7c23 |
diff --git a/drivers/scsi/qla2xxx/qla_init.c b/drivers/scsi/qla2xxx/qla_init.c
|
|
|
3d7c23 |
index 00b85cb99db1..52d336706349 100644
|
|
|
3d7c23 |
--- a/drivers/scsi/qla2xxx/qla_init.c
|
|
|
3d7c23 |
+++ b/drivers/scsi/qla2xxx/qla_init.c
|
|
|
3d7c23 |
@@ -3278,6 +3278,8 @@ try_eft:
|
|
|
3d7c23 |
ql_dbg(ql_dbg_init, vha, 0x00c3,
|
|
|
3d7c23 |
"Allocated (%d KB) EFT ...\n", EFT_SIZE / 1024);
|
|
|
3d7c23 |
eft_size = EFT_SIZE;
|
|
|
3d7c23 |
+ ha->eft_dma = tc_dma;
|
|
|
3d7c23 |
+ ha->eft = tc;
|
|
|
3d7c23 |
}
|
|
|
3d7c23 |
|
|
|
3d7c23 |
if (IS_QLA27XX(ha) || IS_QLA28XX(ha)) {
|
|
|
3d7c23 |
--
|
|
|
3d7c23 |
2.13.6
|
|
|
3d7c23 |
|