Bart Van Assche
c8fe6bdf91
qla2x00t-32gbit: Fix stuck login session using prli_pend_timer
...
Session is stuck if driver sees FW has received a PRLI. Driver allows FW to
finish with processing of PRLI by checking back with FW at a later time to
see if the PRLI has finished. Instead, driver failed to push forward after
re-checking PRLI completion.
Fixes: 974950710e2a ("qla2xxx: Fix stuck login session")
Cc: stable@vger.kernel.org # 5.3
Link: https://lore.kernel.org/r/20191217220617.28084-9-hmadhani@marvell.com
Signed-off-by: Quinn Tran <qutran@marvell.com >
Signed-off-by: Himanshu Madhani <hmadhani@marvell.com >
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com >
[ commit 08c0de658b08408284e5176d585782f924a21173 upstream ]
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8749 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-12-26 00:39:34 +00:00
Bart Van Assche
d65276050d
qla2x00t-32gbit: Use common routine to free fcport struct
...
This patch does not change any any functionality.
Link: https://lore.kernel.org/r/20191217220617.28084-8-hmadhani@marvell.com
Signed-off-by: Quinn Tran <qutran@marvell.com >
Signed-off-by: Himanshu Madhani <hmadhani@marvell.com >
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com >
[ commit 3dae220595baa7a9fb582b851b54c10ad6a0cbae upstream ]
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8748 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-12-26 00:39:13 +00:00
Bart Van Assche
6892c83653
qla2x00t-32gbit: Add D-Port Diagnostic reason explanation logs
...
This patch adds more details when D-Port diag async event is generated by
the firmware.
Link: https://lore.kernel.org/r/20191217220617.28084-7-hmadhani@marvell.com
Signed-off-by: Joe Carnuccio <joe.carnuccio@cavium.com >
Signed-off-by: Himanshu Madhani <hmadhani@marvell.com >
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com >
[ commit 425215647fc53ba183026e03206fa86fe5a4f542 upstream ]
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8747 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-12-26 00:38:50 +00:00
Bart Van Assche
6c8601bc82
qla2x00t-32gbit: Fix update_fcport for current_topology
...
logout_on_delete flag should not be set if the topology is Loop. This patch
fixes unintentional logout during loop topology.
Link: https://lore.kernel.org/r/20191217220617.28084-6-hmadhani@marvell.com
Signed-off-by: Himanshu Madhani <hmadhani@marvell.com >
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com >
[ commit 89eb2e7e794da2691e5aca02ed102bb287e3575a upstream ]
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8746 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-12-26 00:38:30 +00:00
Bart Van Assche
b7ce0c8460
qla2x00t-32gbit: Cleanup unused async_logout_done
...
This patch removes unused qla2x00_async_logout_done from the code.
Link: https://lore.kernel.org/r/20191217220617.28084-5-hmadhani@marvell.com
Signed-off-by: Shyam Sundar <ssundar@marvell.com >
Signed-off-by: Himanshu Madhani <hmadhani@marvell.com >
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com >
[ commit 96a0eb7164d125100ac692c7efeb6e70a7585042 upstream ]
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8745 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-12-26 00:38:04 +00:00
Bart Van Assche
d847f25524
qla2x00t-32gbit: Add a shadow variable to hold disc_state history of fcport
...
This patch adds a shadow variable to hold disc_state history for the fcport
and prints state transition when the logging is enabled.
Link: https://lore.kernel.org/r/20191217220617.28084-4-hmadhani@marvell.com
Signed-off-by: Shyam Sundar <ssundar@marvell.com >
Signed-off-by: Himanshu Madhani <hmadhani@marvell.com >
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com >
[ commit 27258a5771446f9c7edc929ecb76fe2c12c29d97 upstream ]
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8744 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-12-26 00:37:40 +00:00
Bart Van Assche
6ce21edf8b
qla2x00t-32gbit: Fix fabric scan hang
...
On timeout, SRB pointer was cleared from outstanding command array and
dropped. It was not allowed to go through the done process and cleanup.
This patch will abort the SRB where FW will return it with an error status
and resume the normal cleanup.
Link: https://lore.kernel.org/r/20191217220617.28084-3-hmadhani@marvell.com
Signed-off-by: Quinn Tran <qutran@marvell.com >
Signed-off-by: Himanshu Madhani <hmadhani@marvell.com >
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com >
[ commit f57a0107359605b29f4ea9afb8ee2e03473b1448 upstream ]
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8743 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-12-26 00:37:12 +00:00
Bart Van Assche
c27e7694d8
qla2x00t-32gbit: Remove defer flag to indicate immeadiate port loss
...
During cable pull test case, if the port is disconnected for time larger
than devloss timeout, driver does not mark path offline. In such case,
instead of notifying SCSI-ML of loop down, driver goes into endless loop of
device relogin because defer flag is set.
With newer handling of device relogin in driver discovery, defer flag is
now redundant. This patch removes defer flag and cleans up code handling
port lost indication to SCSI-ML.
Link: https://lore.kernel.org/r/20191217220617.28084-2-hmadhani@marvell.com
Signed-off-by: Quinn Tran <qtran@marvell.com >
Signed-off-by: Himanshu Madhani <hmadhani@marvell.com >
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com >
[ commit 3c75ad1d87c7d277c6174051b98757fe981d592d upstream ]
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8742 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-12-26 00:36:52 +00:00
Bart Van Assche
bb6f896ac4
qla2x00t-32gbit: Add debug dump of LOGO payload and ELS IOCB
...
The change adds a way to debug LOGO ELS, likewise PLOGI.
Link: https://lore.kernel.org/r/20191125165702.1013-14-r.bolshakov@yadro.com
Acked-by: Himanshu Madhani <hmadhani@marvell.com >
Acked-by: Quinn Tran <qutran@marvell.com >
Reviewed-by: Hannes Reinecke <hare@suse.de >
Tested-by: Hannes Reinecke <hare@suse.de >
Reviewed-by: Bart Van Assche <bvanassche@acm.org >
Signed-off-by: Roman Bolshakov <r.bolshakov@yadro.com >
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com >
[ commit 9545767db3cde2d4f9ca581d096d97ed00754282 upstream ]
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8741 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-12-26 00:36:30 +00:00
Bart Van Assche
be35a0b615
qla2x00t-32gbit: Ignore PORT UPDATE after N2N PLOGI
...
PORT UPDATE asynchronous event is generated on the host that issues PLOGI
ELS (in the case of higher WWPN). In that case, the event shouldn't be
handled as it sets unwanted DPC flags (i.e. LOOP_RESYNC_NEEDED) that
trigger link flap.
Ignore the event if the host has higher WWPN, but handle otherwise.
Cc: Quinn Tran <qutran@marvell.com >
Link: https://lore.kernel.org/r/20191125165702.1013-13-r.bolshakov@yadro.com
Acked-by: Himanshu Madhani <hmadhani@marvell.com >
Reviewed-by: Hannes Reinecke <hare@suse.de >
Tested-by: Hannes Reinecke <hare@suse.de >
Signed-off-by: Roman Bolshakov <r.bolshakov@yadro.com >
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com >
[ commit af22f0c7b052c5c203207f1e5ebd6aa65f87c538 upstream ]
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8740 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-12-26 00:36:11 +00:00
Bart Van Assche
027599ccd0
qla2x00t-32gbit: Don't defer relogin unconditonally
...
qla2x00_configure_local_loop sets RELOGIN_NEEDED bit and calls
qla24xx_fcport_handle_login to perform the login. This bit triggers a wake
up of DPC later after a successful login.
The deferred call is not needed if login succeeds, and it's set in
qla24xx_fcport_handle_login in case of errors, hence it should be safe to
drop.
Link: https://lore.kernel.org/r/20191125165702.1013-12-r.bolshakov@yadro.com
Acked-by: Himanshu Madhani <hmadhani@marvell.com >
Acked-by: Quinn Tran <qutran@marvell.com >
Reviewed-by: Hannes Reinecke <hare@suse.de >
Tested-by: Hannes Reinecke <hare@suse.de >
Signed-off-by: Roman Bolshakov <r.bolshakov@yadro.com >
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com >
[ commit dabc5ec915f3a2c657ecfb529cd3d4ec303a4412 upstream ]
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8739 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-12-26 00:35:42 +00:00
Bart Van Assche
341ef8cf2c
qla2x00t-32gbit: Send Notify ACK after N2N PLOGI
...
qlt_handle_login schedules session for deletion even if a login is in
progress. That causes login bouncing, i.e. a few logins are made before it
settles down.
Complete the first login by sending Notify Acknowledge IOCB via
qlt_plogi_ack_unref if the session is pending login completion.
Fixes: 9cd883f07a54 ("scsi: qla2xxx: Fix session cleanup for N2N")
Cc: Krishna Kant <krishna.kant@purestorage.com >
Cc: Alexei Potashnik <alexei@purestorage.com >
Link: https://lore.kernel.org/r/20191125165702.1013-11-r.bolshakov@yadro.com
Acked-by: Quinn Tran <qutran@marvell.com >
Acked-by: Himanshu Madhani <hmadhani@marvell.com >
Reviewed-by: Hannes Reinecke <hare@suse.de >
Tested-by: Hannes Reinecke <hare@suse.de >
Signed-off-by: Roman Bolshakov <r.bolshakov@yadro.com >
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com >
[ commit 5e6b01d84b9d20bcd77fc7c4733a2a4149bf220a upstream ]
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8738 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-12-26 00:35:23 +00:00
Bart Van Assche
0a6f0f9ac5
qla2x00t-32gbit: Configure local loop for N2N target
...
qla2x00_configure_local_loop initializes PLOGI payload for PLOGI ELS using
Get Parameters mailbox command.
In the case when the driver is running in target mode, the topology is N2N
and the target port has higher WWPN, LOCAL_LOOP_UPDATE bit is cleared too
early and PLOGI payload is not initialized by the Get Parameters
command. That causes a failure of ELS IOCB carrying the PLOGI with 0x15 aka
Data Underrun error.
LOCAL_LOOP_UPDATE has to be set to initialize PLOGI payload.
Fixes: 48acad099074 ("scsi: qla2xxx: Fix N2N link re-connect")
Link: https://lore.kernel.org/r/20191125165702.1013-10-r.bolshakov@yadro.com
Acked-by: Quinn Tran <qutran@marvell.com >
Acked-by: Himanshu Madhani <hmadhani@marvell.com >
Reviewed-by: Hannes Reinecke <hare@suse.de >
Tested-by: Hannes Reinecke <hare@suse.de >
Signed-off-by: Roman Bolshakov <r.bolshakov@yadro.com >
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com >
[ commit fd1de5830a5abaf444cc4312871e02c41e24fdc1 upstream ]
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8737 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-12-26 00:35:02 +00:00
Bart Van Assche
695f139aef
qla2x00t-32gbit: Fix PLOGI payload and ELS IOCB dump length
...
The size of the buffer is hardcoded as 0x70 or 112 bytes, while the size of
ELS IOCB is 0x40 and the size of PLOGI payload returned by Get Parameters
command is 0x74.
Cc: Quinn Tran <qutran@marvell.com >
Link: https://lore.kernel.org/r/20191125165702.1013-9-r.bolshakov@yadro.com
Acked-by: Himanshu Madhani <hmadhani@marvell.com >
Reviewed-by: Hannes Reinecke <hare@suse.de >
Tested-by: Hannes Reinecke <hare@suse.de >
Signed-off-by: Roman Bolshakov <r.bolshakov@yadro.com >
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com >
[ commit 0334cdea1fba36fad8bdf9516f267ce01de625f7 upstream ]
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8736 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-12-26 00:34:42 +00:00
Bart Van Assche
b047e2a169
qla2x00t-32gbit: Don't call qlt_async_event twice
...
MBA_PORT_UPDATE generates duplicate log lines in target mode because
qlt_async_event is called twice. Drop the calls within the case as the
function will be called right after the switch statement.
Cc: Quinn Tran <qutran@marvell.com >
Link: https://lore.kernel.org/r/20191125165702.1013-8-r.bolshakov@yadro.com
Acked-by: Himanshu Madhani <hmadhani@marvel.com >
Reviewed-by: Hannes Reinecke <hare@suse.de >
Tested-by: Hannes Reinecke <hare@suse.de >
Acked-by: Himanshu Madhani <hmadhani@marvell.com >
Signed-off-by: Roman Bolshakov <r.bolshakov@yadro.com >
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com >
[ commit 2c2f4bed9b6299e6430a65a29b5d27b8763fdf25 upstream ]
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8735 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-12-26 00:34:15 +00:00
Bart Van Assche
63d90db75d
qla2x00t-32gbit: Allow PLOGI in target mode
...
According to FC-LS-3 (Fibre Channel Link Services) 6.3.2.4
"N_Port Login - No Fabric present", if both parties in the point-to-point
connection know N_Port_Names of each other, Nx_Port with the highest
N_Port_name shall transmit PLOGI. The specification sets no restrictions on
the port role that should send PLOGI.
However, FCP-4 (Fibre Channel Protocol for SCSI, Fourth Version) 6.2
"Overview of Process Login and Process Logout", instructs that in
point-to-point topology, initiator shall send explicit PRLI ELS.
The change fixes stuck P2P login, when target WWPN is higher than initiator
WWPN.
Cc: Quinn Tran <qutran@marvell.com >
Cc: Himanshu Madhani <hmadhani@marvell.com >
Link: https://lore.kernel.org/r/20191125165702.1013-7-r.bolshakov@yadro.com
Signed-off-by: Roman Bolshakov <r.bolshakov@yadro.com >
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com >
[ commit a9ed06d4e640a8dc978a4649ab78dac8b16d2db6 upstream ]
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8734 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-12-26 00:31:26 +00:00
Bart Van Assche
cf596469d6
qla2x00t-32gbit: Change discovery state before PLOGI
...
When a port sends PLOGI, discovery state should be changed to login
pending, otherwise RELOGIN_NEEDED bit is set in
qla24xx_handle_plogi_done_event(). RELOGIN_NEEDED triggers another PLOGI,
and it never goes out of the loop until login timer expires.
Fixes: 8777e4314d397 ("scsi: qla2xxx: Migrate NVME N2N handling into state machine")
Fixes: 8b5292bcfcacf ("scsi: qla2xxx: Fix Relogin to prevent modifying scan_state flag")
Cc: Quinn Tran <qutran@marvell.com >
Cc: stable@vger.kernel.org
Link: https://lore.kernel.org/r/20191125165702.1013-6-r.bolshakov@yadro.com
Acked-by: Himanshu Madhani <hmadhani@marvell.com >
Reviewed-by: Hannes Reinecke <hare@suse.de >
Tested-by: Hannes Reinecke <hare@suse.de >
Signed-off-by: Roman Bolshakov <r.bolshakov@yadro.com >
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com >
[ commit 58e39a2ce4be08162c0368030cdc405f7fd849aa upstream ]
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8733 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-12-26 00:31:06 +00:00
Bart Van Assche
5c3f238b76
qla2x00t-32gbit: Drop superfluous INIT_WORK of del_work
...
del_work is already initialized inside qla2x00_alloc_fcport, there's no
need to overwrite it. Indeed, it might prevent complete traversal of
workqueue list.
Fixes: a01c77d2cbc45 ("scsi: qla2xxx: Move session delete to driver work queue")
Cc: Quinn Tran <qutran@marvell.com >
Link: https://lore.kernel.org/r/20191125165702.1013-5-r.bolshakov@yadro.com
Acked-by: Himanshu Madhani <hmadhani@marvell.com >
Reviewed-by: Hannes Reinecke <hare@suse.de >
Tested-by: Hannes Reinecke <hare@suse.de >
Reviewed-by: Bart Van Assche <bvanassche@acm.org >
Signed-off-by: Roman Bolshakov <r.bolshakov@yadro.com >
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com >
[ commit 600954e6f2df695434887dfc6a99a098859990cf upstream ]
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8732 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-12-26 00:30:45 +00:00
Bart Van Assche
d0a1eb9612
qla2x00t-32gbit: Initialize free_work before flushing it
...
Target creation triggers a new BUG_ON introduced in in commit 4d43d395fed1
("workqueue: Try to catch flush_work() without INIT_WORK()."). The BUG_ON
reveals an attempt to flush free_work in qla24xx_do_nack_work before it's
initialized in qlt_unreg_sess:
WARNING: CPU: 7 PID: 211 at kernel/workqueue.c:3031 __flush_work.isra.38+0x40/0x2e0
CPU: 7 PID: 211 Comm: kworker/7:1 Kdump: loaded Tainted: G E 5.3.0-rc7-vanilla+ #2
Workqueue: qla2xxx_wq qla2x00_iocb_work_fn [qla2xxx]
NIP [c000000000159620] __flush_work.isra.38+0x40/0x2e0
LR [c0080000009d91b0] qla24xx_do_nack_work+0x88/0x180 [qla2xxx]
Call Trace:
[c000000005f3f9c0] [c000000000159644] __flush_work.isra.38+0x64/0x2e0 (unreliable)
[c000000005f3fa50] [c0080000009d91a0] qla24xx_do_nack_work+0x78/0x180 [qla2xxx]
[c000000005f3fae0] [c0080000009496ec] qla2x00_do_work+0x604/0xb90 [qla2xxx]
[c000000005f3fc40] [c008000000949cd8] qla2x00_iocb_work_fn+0x60/0xe0 [qla2xxx]
[c000000005f3fc80] [c000000000157bb8] process_one_work+0x2c8/0x5b0
[c000000005f3fd10] [c000000000157f28] worker_thread+0x88/0x660
[c000000005f3fdb0] [c000000000161d64] kthread+0x1a4/0x1b0
[c000000005f3fe20] [c00000000000b960] ret_from_kernel_thread+0x5c/0x7c
Fixes: 1021f0bc2f3d6 ("scsi: qla2xxx: allow session delete to finish before create.")
Cc: Quinn Tran <qutran@marvell.com >
Cc: stable@vger.kernel.org
Link: https://lore.kernel.org/r/20191125165702.1013-4-r.bolshakov@yadro.com
Acked-by: Himanshu Madhani <hmadhani@marvell.com >
Reviewed-by: Hannes Reinecke <hare@suse.de >
Tested-by: Hannes Reinecke <hare@suse.de >
Reviewed-by: Bart Van Assche <bvanassche@acm.org >
Signed-off-by: Roman Bolshakov <r.bolshakov@yadro.com >
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com >
[ commit 4c86b037a6db3ad2922ef3ba8a8989eb7794e040 upstream ]
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8731 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-12-26 00:30:18 +00:00
Bart Van Assche
5bab3ecb99
qla2x00t-32gbit: Use explicit LOGO in target mode
...
Target makes implicit LOGO on session teardown. LOGO ELS is not send on the
wire and initiator is not aware that target no longer wants talking to
it. Initiator keeps sending I/O requests, target responds with BA_RJT, they
time out and then initiator sends ABORT TASK (ABTS-LS).
Current behaviour incurs unneeded I/O timeout and can be fixed for some
initiators by making explicit LOGO on session deletion.
Link: https://lore.kernel.org/r/20191125165702.1013-3-r.bolshakov@yadro.com
Reviewed-by: Hannes Reinecke <hare@suse.de >
Tested-by: Hannes Reinecke <hare@suse.de >
Signed-off-by: Quinn Tran <qutran@marvell.com >
Signed-off-by: Himanshu Madhani <hmadhani@marvell.com >
Signed-off-by: Roman Bolshakov <r.bolshakov@yadro.com >
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com >
[ commit 86196a8fa8a84af1395a28ea0548f2ce6ae9bc22 upstream ]
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8730 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-12-26 00:29:20 +00:00
Bart Van Assche
686aa95dcf
qla2x00t-32gbit: Fix incorrect SFUB length used for Secure Flash Update MB Cmd
...
SFUB length should be in DWORDs when passed to FW.
Fixes: 3f006ac342c03 ("scsi: qla2xxx: Secure flash update support for ISP28XX")
Cc: stable@vger.kernel.org
Link: https://lore.kernel.org/r/20191203223657.22109-4-hmadhani@marvell.com
Signed-off-by: Michael Hernandez <mhernandez@marvell.com >
Signed-off-by: Himanshu Madhani <hmadhani@marvell.com >
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com >
[ commit c868907e1ac6a08a17f8fa9ce482c0a496896e9e upstream ]
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8729 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-12-26 00:28:59 +00:00
Bart Van Assche
6c892b651d
qla2x00t-32gbit: Added support for MPI and PEP regions for ISP28XX
...
This patch adds support for MPI/PEP region updates which is required with
secure flash updates for ISP28XX.
Fixes: 3f006ac342c0 ("scsi: qla2xxx: Secure flash update support for ISP28XX")
Cc: stable@vger.kernel.org
Link: https://lore.kernel.org/r/20191203223657.22109-3-hmadhani@marvell.com
Signed-off-by: Michael Hernandez <mhernandez@marvell.com >
Signed-off-by: Himanshu Madhani <hmadhani@marvell.com >
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com >
[ commit a530bf691f0e4691214562c165e6c8889dc51e57 upstream ]
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8728 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-12-26 00:28:38 +00:00
Bart Van Assche
2806eeb93b
qla2x00t-32gbit: Correctly retrieve and interpret active flash region
...
ISP27XX/28XX supports multiple flash regions. This patch fixes issue where
active flash region was not interpreted correctly during secure flash
update process.
Fixes: 5fa8774c7f38c ("scsi: qla2xxx: Add 28xx flash primary/secondary status/image mechanism")
Cc: stable@vger.kernel.org
Link: https://lore.kernel.org/r/20191203223657.22109-2-hmadhani@marvell.com
Signed-off-by: Michael Hernandez <mhernandez@marvell.com >
Signed-off-by: Himanshu Madhani <hmadhani@marvell.com >
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com >
[mkp: typo]
[ commit 4e71dcae0c4cd1e9d19b8b3d80214a4bcdca5a42 upstream ]
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8727 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-12-26 00:28:14 +00:00
Bart Van Assche
80e6db859a
qla2x00t-32gbit: Fix qla2x00_request_irqs() for MSI
...
Commit 4fa183455988 ("scsi: qla2xxx: Utilize pci_alloc_irq_vectors/
pci_free_irq_vectors calls.") use pci_alloc_irq_vectors() to replace
pci_enable_msi() but it didn't handle the return value correctly. This bug
make qla2x00 always fail to setup MSI if MSI-X fail, so fix it.
BTW, improve the log message of return value in qla2x00_request_irqs() to
avoid confusion.
Fixes: 4fa183455988 ("scsi: qla2xxx: Utilize pci_alloc_irq_vectors/pci_free_irq_vectors calls.")
Cc: Michael Hernandez <michael.hernandez@cavium.com >
Link: https://lore.kernel.org/r/1574314847-14280-1-git-send-email-chenhc@lemote.com
Signed-off-by: Huacai Chen <chenhc@lemote.com >
Acked-by: Himanshu Madhani <hmadhani@marvell.com >
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com >
[ commit 45dc8f2d9c94ed74a5e31e63e9136a19a7e16081 upstream ]
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8726 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-12-26 00:27:52 +00:00
Bart Van Assche
5a64ee930e
qla2x00t-32gbit: unregister ports after GPN_FT failure
...
When ports are lost due to unzoning them, and the initiator port is
not part of any more zones, the GPN_FT command used for the fabric
scan may fail. In this case, the current code simply gives up after a
few retries. But if the zone is gone, all rports should actually be
marked as lost.
Fix this by jumping to the code that handles logout after GNN_FT after
scan retries are exhausted.
Fixes: f352eeb75419 ("scsi: qla2xxx: Add ability to use GPNFT/GNNFT for RSCN handling")
Link: https://lore.kernel.org/r/20191122221912.20100-3-martin.wilck@suse.com
Tested-by: Jason Orendorf <orendorf@hpe.com >
Signed-off-by: Martin Wilck <mwilck@suse.com >
Acked-by: Himanshu Madhani <hmadhani@marvell.com >
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com >
[ commit c8a347931869bf4373bfd4036d297b8e11ab48ab upstream ]
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8725 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-12-26 00:26:50 +00:00
Bart Van Assche
49cf31c71f
qla2x00t-32gbit: fix rports not being mark as lost in sync fabric scan
...
In qla2x00_find_all_fabric_devs(), fcport->flags & FCF_LOGIN_NEEDED is a
necessary condition for logging into new rports, but not for dropping lost
ones.
Fixes: 726b85487067 ("qla2xxx: Add framework for async fabric discovery")
Link: https://lore.kernel.org/r/20191122221912.20100-2-martin.wilck@suse.com
Tested-by: David Bond <dbond@suse.com >
Signed-off-by: Martin Wilck <mwilck@suse.com >
Acked-by: Himanshu Madhani <hmadhani@marvell.com >
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com >
[ commit d341e9a8f2cffe4000c610225c629f62c7489c74 upstream ]
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8724 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-12-26 00:25:44 +00:00
Bart Van Assche
91a600d894
qla2x00t-32gbit: add module to ops template to allow module references
...
In nvme-fc: it's possible to have connected active controllers
and as no references are taken on the LLDD, the LLDD can be
unloaded. The controller would enter a reconnect state and as
long as the LLDD resumed within the reconnect timeout, the
controller would resume. But if a namespace on the controller
is the root device, allowing the driver to unload can be problematic.
To reload the driver, it may require new io to the boot device,
and as it's no longer connected we get into a catch-22 that
eventually fails, and the system locks up.
Fix this issue by taking a module reference for every connected
controller (which is what the core layer did to the transport
module). Reference is cleared when the controller is removed.
Acked-by: Himanshu Madhani <hmadhani@marvell.com >
Reviewed-by: Christoph Hellwig <hch@lst.de >
Signed-off-by: James Smart <jsmart2021@gmail.com >
Signed-off-by: Keith Busch <kbusch@kernel.org >
[ commit 863fbae929c7a5b64e96b8a3ffb34a29eefb9f8f upstream ]
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8723 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-12-26 00:25:21 +00:00
Bart Van Assche
7da5ef65ff
qla2x00t-32gbit: Revert "scsi: qla2xxx: Fix memory leak when sending I/O fails"
...
This reverts commit 2f856d4e8c23f5ad5221f8da4a2f22d090627f19.
This patch was found to introduce a double free regression. The issue
it originally attempted to address was fixed in patch
f45bca8c5052 ("scsi: qla2xxx: Fix double scsi_done for abort path").
Link: https://lore.kernel.org/r/4BDE2B95-835F-43BE-A32C-2629D7E03E0A@marvell.com
Requested-by: Himanshu Madhani <hmadhani@marvell.com >
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com >
[ commit 5a993e507ee65a28eca6690ee11868555c4ca46b upstream ]
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8722 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-12-26 00:24:57 +00:00
Bart Van Assche
ca0c061ed5
qla2x00t-32gbit: don't use zero for FC4_PRIORITY_NVME
...
Avoid an uninitialized value (0) for ha->fc4_type_priority being falsely
interpreted as NVMe priority. Not strictly needed any more after the
previous patch, but makes the fc4_type_priority handling more explicit.
Link: https://lore.kernel.org/r/20191107224839.32417-3-martin.wilck@suse.com
Tested-by: David Bond <dbond@suse.com >
Acked-by: Himanshu Madhani <hmadhani@marvell.com >
Reviewed-by: Bart Van Assche <bvanassche@acm.org >
Signed-off-by: Martin Wilck <mwilck@suse.com >
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com >
[ commit a10c8803d0dbab54370eeac2a07e6540c6215908 upstream ]
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8721 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-12-26 00:24:31 +00:00
Bart Van Assche
6432df87e6
qla2x00t-32gbit: initialize fc4_type_priority
...
ha->fc4_type_priority is currently initialized only in
qla81xx_nvram_config(). That makes it default to NVMe for other adapters.
Fix it.
Fixes: 84ed362ac40c ("scsi: qla2xxx: Dual FCP-NVMe target port support")
Link: https://lore.kernel.org/r/20191107224839.32417-2-martin.wilck@suse.com
Tested-by: David Bond <dbond@suse.com >
Acked-by: Himanshu Madhani <hmadhani@marvell.com >
Reviewed-by: Bart Van Assche <bvanassche@acm.org >
Signed-off-by: Martin Wilck <mwilck@suse.com >
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com >
[ commit f5a2b219a7897751f9bb1c8d7308933e33000f2f upstream ]
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8720 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-12-26 00:24:09 +00:00
Bart Van Assche
3680a3d745
qla2x00t-32gbit: Fix a dma_pool_free() call
...
This patch fixes the following kernel warning:
DMA-API: qla2xxx 0000:00:0a.0: device driver frees DMA memory with different size [device address=0x00000000c7b60000] [map size=4088 bytes] [unmap size=512 bytes]
WARNING: CPU: 3 PID: 1122 at kernel/dma/debug.c:1021 check_unmap+0x4d0/0xbd0
CPU: 3 PID: 1122 Comm: rmmod Tainted: G O 5.4.0-rc1-dbg+ #1
RIP: 0010:check_unmap+0x4d0/0xbd0
Call Trace:
debug_dma_free_coherent+0x123/0x173
dma_free_attrs+0x76/0xe0
qla2x00_mem_free+0x329/0xc40 [qla2xxx_scst]
qla2x00_free_device+0x170/0x1c0 [qla2xxx_scst]
qla2x00_remove_one+0x4f0/0x6d0 [qla2xxx_scst]
pci_device_remove+0xd5/0x1f0
device_release_driver_internal+0x159/0x280
driver_detach+0x8b/0xf2
bus_remove_driver+0x9a/0x15a
driver_unregister+0x51/0x70
pci_unregister_driver+0x2d/0x130
qla2x00_module_exit+0x1c/0xbc [qla2xxx_scst]
__x64_sys_delete_module+0x22a/0x300
do_syscall_64+0x6f/0x2e0
entry_SYSCALL_64_after_hwframe+0x49/0xbe
Fixes: 3f006ac342c0 ("scsi: qla2xxx: Secure flash update support for ISP28XX") # v5.2-rc1~130^2~270.
Cc: Michael Hernandez <mhernandez@marvell.com >
Cc: Himanshu Madhani <hmadhani@marvell.com >
Link: https://lore.kernel.org/r/20191106044226.5207-3-bvanassche@acm.org
Reviewed-by: Martin Wilck <mwilck@suse.com >
Acked-by: Himanshu Madhani <hmadhani@marvell.com >
Signed-off-by: Bart Van Assche <bvanassche@acm.org >
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com >
[ commit 162b805e38327135168cb0938bd37b131b481cb0 upstream ]
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8719 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-12-26 00:23:44 +00:00
Bart Van Assche
7c9bf10d00
qla2x00t-32gbit: Update driver version to 10.01.00.21-k
...
Link: https://lore.kernel.org/r/20191105150657.8092-9-hmadhani@marvell.com
Reviewed-by: Ewan D. Milne <emilne@redhat.com >
Signed-off-by: Himanshu Madhani <hmadhani@marvell.com >
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com >
[ commit b3f74568411b2df0806e0d1df6458cb270eb29ce upstream ]
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8718 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-12-26 00:23:19 +00:00
Bart Van Assche
50dae0f799
qla2x00t-32gbit: Fix device connect issues in P2P configuration
...
P2P needs to take the alternate plogi route.
Link: https://lore.kernel.org/r/20191105150657.8092-8-hmadhani@marvell.com
Reviewed-by: Ewan D. Milne <emilne@redhat.com >
Signed-off-by: Arun Easi <aeasi@marvell.com >
Signed-off-by: Himanshu Madhani <hmadhani@marvell.com >
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com >
[ commit 65e9200938052ce90f24421bb057e1be1d6147c7 upstream ]
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8717 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-12-26 00:22:54 +00:00
Bart Van Assche
2888c8de2e
qla2x00t-32gbit: Fix memory leak when sending I/O fails
...
On heavy loads, a memory leak of the srb_t structure is observed. This
would make the qla2xxx_srbs cache gobble up memory.
Fixes: 219d27d7147e0 ("scsi: qla2xxx: Fix race conditions in the code for aborting SCSI commands")
Cc: stable@vger.kernel.org # 5.2
Link: https://lore.kernel.org/r/20191105150657.8092-7-hmadhani@marvell.com
Reviewed-by: Ewan D. Milne <emilne@redhat.com >
Signed-off-by: Arun Easi <aeasi@marvell.com >
Signed-off-by: Himanshu Madhani <hmadhani@marvell.com >
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com >
[ commit 2f856d4e8c23f5ad5221f8da4a2f22d090627f19 upstream ]
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8716 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-12-26 00:22:26 +00:00
Bart Van Assche
e6f87e326f
qla2x00t-32gbit: Fix double scsi_done for abort path
...
Current code assumes abort will remove the original command from the active
list where scsi_done will not be called. Instead, the eh_abort thread will
do the scsi_done. That is not the case. Instead, we have a double
scsi_done calls triggering use after free.
Abort will tell FW to release the command from FW possesion. The original
command will return to ULP with error in its normal fashion via scsi_done.
eh_abort path would wait for the original command completion before
returning. eh_abort path will not perform the scsi_done call.
Fixes: 219d27d7147e0 ("scsi: qla2xxx: Fix race conditions in the code for aborting SCSI commands")
Cc: stable@vger.kernel.org # 5.2
Link: https://lore.kernel.org/r/20191105150657.8092-6-hmadhani@marvell.com
Reviewed-by: Ewan D. Milne <emilne@redhat.com >
Signed-off-by: Quinn Tran <qutran@marvell.com >
Signed-off-by: Arun Easi <aeasi@marvell.com >
Signed-off-by: Himanshu Madhani <hmadhani@marvell.com >
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com >
[ commit f45bca8c5052e8c59bab64ee90c44441678b9a52 upstream ]
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8715 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-12-26 00:22:04 +00:00
Bart Van Assche
021c298151
qla2x00t-32gbit: Fix driver unload hang
...
This patch fixes driver unload hang by removing msleep()
Fixes: d74595278f4ab ("scsi: qla2xxx: Add multiple queue pair functionality.")
Cc: stable@vger.kernel.org
Link: https://lore.kernel.org/r/20191105150657.8092-5-hmadhani@marvell.com
Reviewed-by: Ewan D. Milne <emilne@redhat.com >
Signed-off-by: Quinn Tran <qutran@marvell.com >
Signed-off-by: Himanshu Madhani <hmadhani@marvell.com >
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com >
[ commit dd322b7f3efc8cda085bb60eadc4aee6324eadd8 upstream ]
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8714 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-12-26 00:21:37 +00:00
Bart Van Assche
958e8eda7d
qla2x00t-32gbit: Fix SRB leak on switch command timeout
...
when GPSC/GPDB switch command fails, driver just returns without doing a
proper cleanup. This patch fixes this memory leak by calling sp->free() in
the error path.
Link: https://lore.kernel.org/r/20191105150657.8092-4-hmadhani@marvell.com
Reviewed-by: Ewan D. Milne <emilne@redhat.com >
Signed-off-by: Quinn Tran <qutran@marvell.com >
Signed-off-by: Himanshu Madhani <hmadhani@marvell.com >
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com >
[ commit af2a0c51b1205327f55a7e82e530403ae1d42cbb upstream ]
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8713 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-12-26 00:21:14 +00:00
Bart Van Assche
a763c697b0
qla2x00t-32gbit: Do command completion on abort timeout
...
On switch, fabric and mgt command timeout, driver send Abort to tell FW to
return the original command. If abort is timeout, then return both Abort
and original command for cleanup.
Fixes: 219d27d7147e0 ("scsi: qla2xxx: Fix race conditions in the code for aborting SCSI commands")
Cc: stable@vger.kernel.org # 5.2
Link: https://lore.kernel.org/r/20191105150657.8092-3-hmadhani@marvell.com
Reviewed-by: Ewan D. Milne <emilne@redhat.com >
Signed-off-by: Quinn Tran <qutran@marvell.com >
Signed-off-by: Himanshu Madhani <hmadhani@marvell.com >
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com >
[ commit 71c80b75ce8f08c0978ce9a9816b81b5c3ce5e12 upstream ]
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8712 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-12-26 00:20:38 +00:00
Bart Van Assche
f6593f38cd
qla2x00t-32gbit: Retry PLOGI on FC-NVMe PRLI failure
...
Current code will send PRLI with FC-NVMe bit set for the targets which
support only FCP. This may result into issue with targets which do not
understand NVMe and will go into a strange state. This patch would restart
the login process by going back to PLOGI state. The PLOGI state will force
the target to respond to correct PRLI request.
Fixes: c76ae845ea836 ("scsi: qla2xxx: Add error handling for PLOGI ELS passthrough")
Cc: stable@vger.kernel.org # 5.4
Link: https://lore.kernel.org/r/20191105150657.8092-2-hmadhani@marvell.com
Reviewed-by: Ewan D. Milne <emilne@redhat.com >
Signed-off-by: Quinn Tran <qutran@marvell.com >
Signed-off-by: Himanshu Madhani <hmadhani@marvell.com >
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com >
[ commit 983f127603fac650fa34ee69db363e4615eaf9e7 upstream ]
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8711 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-12-26 00:20:14 +00:00
Bart Van Assche
41781f030b
qla2x00t-32gbit: Update driver version to 10.01.00.20-k
...
Link: https://lore.kernel.org/r/20190912180918.6436-15-hmadhani@marvell.com
Signed-off-by: Himanshu Madhani <hmadhani@marvell.com >
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com >
[ commit 8ae15a460b1471622f85bad6caebe56fd91f4f83 upstream ]
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8710 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-12-26 00:19:49 +00:00
Bart Van Assche
d7df645158
qla2x00t-32gbit: Improve logging for scan thread
...
Move messages to verbose logging for scan thread.
Link: https://lore.kernel.org/r/20190912180918.6436-14-hmadhani@marvell.com
Signed-off-by: Himanshu Madhani <hmadhani@marvell.com >
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com >
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8709 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-12-26 00:19:24 +00:00
Bart Van Assche
2b96536e51
qla2x00t-32gbit: Capture FW dump on MPI heartbeat stop event
...
For MPI heartbeat stop Async Event, this patch would capture MPI FW dump
and chip reset. FW will tell which function to capture FW dump for.
Link: https://lore.kernel.org/r/20190912180918.6436-13-hmadhani@marvell.com
Reviewed-by: Laurence Oberman <loberman@redhat.com >
Signed-off-by: Quinn Tran <qutran@marvell.com >
Signed-off-by: Himanshu Madhani <hmadhani@marvell.com >
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com >
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8708 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-12-26 00:19:00 +00:00
Bart Van Assche
a082f1c862
qla2x00t-32gbit: Check for MB timeout while capturing ISP27/28xx FW dump
...
Add mailbox timeout checkout for ISP 27xx/28xx during FW dump procedure.
Without the timeout check, hardware lock can be held for long period. This
patch would shorten the dump procedure if a timeout condition is
encountered.
Link: https://lore.kernel.org/r/20190912180918.6436-12-hmadhani@marvell.com
Reviewed-by: Laurence Oberman <loberman@redhat.com >
Signed-off-by: Quinn Tran <qutran@marvell.com >
Signed-off-by: Himanshu Madhani <hmadhani@marvell.com >
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com >
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8707 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-12-26 00:18:35 +00:00
Bart Van Assche
770a53d10d
qla2x00t-32gbit: Set remove flag for all VP
...
During driver unload, the remove flag will be set for all
scsi_qla_host/NPIV. This allows each NPIV to see the flag instead of
reaching for base_vha to search for it.
Link: https://lore.kernel.org/r/20190912180918.6436-11-hmadhani@marvell.com
Signed-off-by: Quinn Tran <qutran@marvell.com >
Signed-off-by: Himanshu Madhani <hmadhani@marvell.com >
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com >
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8706 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-12-26 00:18:09 +00:00
Bart Van Assche
db78f0ff56
qla2x00t-32gbit: Add error handling for PLOGI ELS passthrough
...
Add error handling logic to ELS Passthrough relating to NVME devices.
Current code does not parse error code to take proper recovery action,
instead it re-logins with the same login parameters that encountered the
error. Ex: nport handle collision.
Link: https://lore.kernel.org/r/20190912180918.6436-10-hmadhani@marvell.com
Signed-off-by: Quinn Tran <qutran@marvell.com >
Signed-off-by: Himanshu Madhani <hmadhani@marvell.com >
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com
[ commit c76ae845ea836d6128982dcbd41ac35c81e2de63 upstream ]
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8705 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-12-26 00:17:45 +00:00
Bart Van Assche
e783a511da
qla2x00t-32gbit: Dual FCP-NVMe target port support
...
Some storage arrays advertise FCP LUNs and NVMe namespaces behind the same
WWN. The driver now offers a user option by way of NVRAM parameter to
allow users to choose, on a per port basis, the kind of FC-4 type they
would like to prioritize for login.
Link: https://lore.kernel.org/r/20190912180918.6436-9-hmadhani@marvell.com
Signed-off-by: Michael Hernandez <mhernandez@marvell.com >
Signed-off-by: Himanshu Madhani <hmadhani@marvell.com >
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com >
[ commit 84ed362ac40ca44dbbbebf767301463aa72bc797 upstream ]
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8704 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-12-26 00:17:20 +00:00
Bart Van Assche
fcf0141902
qla2x00t-32gbit: Remove redundant assignment to pointer 'host'
...
The pointer 'host' is being initialized with a value that is never read and
is being re-assigned a little later on. The assignment is redundant and
hence can be removed.
Link: https://lore.kernel.org/r/20190905134229.21194-1-colin.king@canonical.com
Addresses-Coverity: ("Unused value")
Signed-off-by: Colin Ian King <colin.king@canonical.com >
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com >
[ commit da6d2965dbdb480f091c42f54a09abe8056282e5 upstream ]
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8703 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-12-26 00:16:16 +00:00
Bart Van Assche
2a757086d4
scripts/checkpatch: Ignore the iscsi-scst/usr directory
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8702 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-12-26 00:15:35 +00:00
Bart Van Assche
c312bb71c7
scst_vdisk: Change 'static const char *' into 'static const char *const'
...
This patch addresses a checkpatch complaint.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8701 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-12-26 00:14:57 +00:00
Bart Van Assche
3898bcd642
Merge branch 'svn-trunk'
2019-12-23 12:30:25 -08:00