]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/commitdiff
3.18-stable patches
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 7 Aug 2018 13:11:40 +0000 (15:11 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 7 Aug 2018 13:11:40 +0000 (15:11 +0200)
added patches:
scsi-qla2xxx-fix-isp-recovery-on-unload.patch
scsi-qla2xxx-return-error-when-tmf-returns.patch

queue-3.18/scsi-qla2xxx-fix-isp-recovery-on-unload.patch [new file with mode: 0644]
queue-3.18/scsi-qla2xxx-return-error-when-tmf-returns.patch [new file with mode: 0644]
queue-3.18/series

diff --git a/queue-3.18/scsi-qla2xxx-fix-isp-recovery-on-unload.patch b/queue-3.18/scsi-qla2xxx-fix-isp-recovery-on-unload.patch
new file mode 100644 (file)
index 0000000..ed7e07a
--- /dev/null
@@ -0,0 +1,38 @@
+From b08abbd9f5996309f021684f9ca74da30dcca36a Mon Sep 17 00:00:00 2001
+From: Quinn Tran <quinn.tran@cavium.com>
+Date: Wed, 18 Jul 2018 14:29:54 -0700
+Subject: scsi: qla2xxx: Fix ISP recovery on unload
+
+From: Quinn Tran <quinn.tran@cavium.com>
+
+commit b08abbd9f5996309f021684f9ca74da30dcca36a upstream.
+
+During unload process, the chip can encounter problem where a FW dump would
+be captured. For this case, the full reset sequence will be skip to bring
+the chip back to full operational state.
+
+Fixes: e315cd28b9ef ("[SCSI] qla2xxx: Code changes for qla data structure refactoring")
+Cc: <stable@vger.kernel.org>
+Signed-off-by: Quinn Tran <quinn.tran@cavium.com>
+Signed-off-by: Himanshu Madhani <himanshu.madhani@cavium.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 |    5 +++--
+ 1 file changed, 3 insertions(+), 2 deletions(-)
+
+--- a/drivers/scsi/qla2xxx/qla_os.c
++++ b/drivers/scsi/qla2xxx/qla_os.c
+@@ -5000,8 +5000,9 @@ qla2x00_do_dpc(void *data)
+                       }
+               }
+-              if (test_and_clear_bit(ISP_ABORT_NEEDED,
+-                                              &base_vha->dpc_flags)) {
++              if (test_and_clear_bit
++                  (ISP_ABORT_NEEDED, &base_vha->dpc_flags) &&
++                  !test_bit(UNLOADING, &base_vha->dpc_flags)) {
+                       ql_dbg(ql_dbg_dpc, base_vha, 0x4007,
+                           "ISP abort scheduled.\n");
diff --git a/queue-3.18/scsi-qla2xxx-return-error-when-tmf-returns.patch b/queue-3.18/scsi-qla2xxx-return-error-when-tmf-returns.patch
new file mode 100644 (file)
index 0000000..280a60e
--- /dev/null
@@ -0,0 +1,40 @@
+From b4146c4929ef61d5afca011474d59d0918a0cd82 Mon Sep 17 00:00:00 2001
+From: Anil Gurumurthy <anil.gurumurthy@cavium.com>
+Date: Wed, 18 Jul 2018 14:29:55 -0700
+Subject: scsi: qla2xxx: Return error when TMF returns
+
+From: Anil Gurumurthy <anil.gurumurthy@cavium.com>
+
+commit b4146c4929ef61d5afca011474d59d0918a0cd82 upstream.
+
+Propagate the task management completion status properly to avoid
+unnecessary waits for commands to complete.
+
+Fixes: faef62d13463 ("[SCSI] qla2xxx: Fix Task Management command asynchronous handling")
+Cc: <stable@vger.kernel.org>
+Signed-off-by: Anil Gurumurthy <anil.gurumurthy@cavium.com>
+Signed-off-by: Himanshu Madhani <himanshu.madhani@cavium.com>
+Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
+Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+
+---
+ drivers/scsi/qla2xxx/qla_init.c |    7 +++----
+ 1 file changed, 3 insertions(+), 4 deletions(-)
+
+--- a/drivers/scsi/qla2xxx/qla_init.c
++++ b/drivers/scsi/qla2xxx/qla_init.c
+@@ -325,11 +325,10 @@ qla2x00_async_tm_cmd(fc_port_t *fcport,
+       wait_for_completion(&tm_iocb->u.tmf.comp);
+-      rval = tm_iocb->u.tmf.comp_status == CS_COMPLETE ?
+-          QLA_SUCCESS : QLA_FUNCTION_FAILED;
++      rval = tm_iocb->u.tmf.data;
+-      if ((rval != QLA_SUCCESS) || tm_iocb->u.tmf.data) {
+-              ql_dbg(ql_dbg_taskm, vha, 0x8030,
++      if (rval != QLA_SUCCESS) {
++              ql_log(ql_log_warn, vha, 0x8030,
+                   "TM IOCB failed (%x).\n", rval);
+       }
index bd4a26b4aa3b9821aabbc9a42ada5409d873e5ef..d84200e911684a802f44a28a8b599a5b8526e028 100644 (file)
@@ -79,3 +79,5 @@ can-ems_usb-fix-memory-leak-on-ems_usb_disconnect.patch
 virtio_balloon-fix-another-race-between-migration-and-ballooning.patch
 crypto-padlock-aes-fix-nano-workaround-data-corruption.patch
 scsi-sg-fix-minor-memory-leak-in-error-path.patch
+scsi-qla2xxx-fix-isp-recovery-on-unload.patch
+scsi-qla2xxx-return-error-when-tmf-returns.patch