Bart Van Assche
158da57a2c
Merge branch 'svn-trunk'
2020-02-23 15:07:26 -08:00
Bart Van Assche
e8de615950
scst: Move RTPG and STPG handling into the SCST core
...
This patch does not change the behavior when using one of the vdisk handlers.
When using dev_disk to forward SCSI commands from one SCST node to another,
this patch causes RTPG and STPG commands to be processed on the source SCST
node (as it should) instead of on the destination SCST node.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8778 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2020-02-23 23:07:18 +00:00
Bart Van Assche
6d4c15da22
scst: Move the expl_alua member variable from scst_vdisk_dev into scst_device
...
This patch does not change any functionality.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8777 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2020-02-23 23:05:43 +00:00
Bart Van Assche
785e721cf3
scst: Add the 'forward_src' sysfs attribute
...
Make forwarding source mode configurable per target port instead of
having a compile-time global option.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8776 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2020-02-23 23:05:13 +00:00
Bart Van Assche
2e5620098c
scst: Add the 'forward_dst' sysfs attribute
...
Add the 'forward_dst' sysfs attribute next to the 'forwarding' attribute. The
plan is to remove the 'forwarding' attribute at some time in the future.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8775 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2020-02-23 23:04:11 +00:00
Bart Van Assche
bf2393ff01
scst: Split scst_tg_set_group_info()
...
Since scst_tg_set_group_info() is too long, split it into two functions.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8774 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2020-02-23 22:59:32 +00:00
Bart Van Assche
dc670b9c07
scst_vdisk: Clean up show() functions
...
Leave out "? 1 : 0" from after single bit variables.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8773 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2020-02-23 22:58:25 +00:00
Bart Van Assche
88711323dc
scst: Use bitmap_parse() instead of __bitmap_parse()
...
__bitmap_parse() has been removed from kernel v5.6. See also commit
2d6261583be0 ("lib: rework bitmap_parse()") # v5.6-rc1.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8772 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2020-02-23 22:57:43 +00:00
Bart Van Assche
3ad0566ac7
scst/README: Fix spelling
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8771 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2020-02-23 22:55:59 +00:00
Bart Van Assche
fdc8a3f2a0
Merge branch 'svn-trunk'
2020-02-23 09:32:07 -08:00
Bart Van Assche
4402104510
scst: Add a source code comment
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8770 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2020-02-23 17:31:58 +00:00
Bart Van Assche
20a1d7e12d
Merge branch 'svn-trunk'
2020-02-23 09:30:04 -08:00
Bart Van Assche
3d98a7174e
scst: Use enum scst_exec_res where appropriate
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8769 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2020-02-23 17:29:26 +00:00
Bart Van Assche
581b334d67
Merge branch 'svn-trunk'
2020-02-23 09:16:27 -08:00
Bart Van Assche
40b4dfd289
scst: Split the scst_targ.c source file
...
Since the scst_targ.c source file is large, move the functions for processing
SCSI commands into a new source file, scst_local_cmd.c.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8768 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2020-02-23 17:16:12 +00:00
Bart Van Assche
2c743b65c8
Merge branch 'svn-trunk'
2020-02-22 16:03:40 -08:00
Bart Van Assche
e72eae316a
scst: Replace relative target port information in the INQUIRY response
...
Signed-off-by: Tamas Bartha <tamas.bartha@barre.hu >
[ bvanassche: reformatted this patch and renamed several variables ]
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8767 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2020-02-23 00:03:28 +00:00
Bart Van Assche
5b7f3987c4
Merge branch 'svn-trunk'
2020-02-07 21:45:50 -08:00
Bart Van Assche
e2c2fab4a0
nightly build: Update kernel versions
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8766 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2020-02-08 05:45:43 +00:00
Bart Van Assche
47a8b4d2e8
Merge branch 'svn-trunk'
2020-01-27 20:23:12 -08:00
Bart Van Assche
a709260f2e
scst/kernel/in-tree/Makefile.drivers.Linux-5.5.patch: Add this file
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8765 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2020-01-28 04:22:39 +00:00
Bart Van Assche
525e6a7028
qla2x00t-32gbit: Port to Linux kernel v5.5
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8764 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2020-01-28 04:22:07 +00:00
Bart Van Assche
54b2ed5965
Merge branch 'svn-trunk'
2020-01-19 13:15:39 -08:00
Bart Van Assche
af64553f9f
nightly build: Update kernel versions
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8763 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2020-01-19 21:15:31 +00:00
Bart Van Assche
db2b55e0ea
Merge branch 'svn-trunk'
2020-01-12 20:25:32 -08:00
Bart Van Assche
07ef7d36ca
nightly build: Update kernel versions
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8762 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2020-01-13 04:25:25 +00:00
Bart Van Assche
5cac184944
Merge branch 'svn-trunk'
2020-01-11 21:38:48 -08:00
Bart Van Assche
f0e474c4d8
iscsi-scst: Suppress multiple Coverity complaints
...
Suppress several Coverity "tainted scalar" complaints and also two other
false positive Coverity complaints.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8761 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2020-01-12 05:37:34 +00:00
Bart Van Assche
04226e0ec5
Merge branch 'svn-trunk'
2020-01-04 09:46:20 -08:00
Bart Van Assche
ffd85476ae
scst: Suppress a false positive Coverity memory corruption complaint
...
This patch suppresses the following Coverity complaint:
CID 119689 (#1 of 1): Out-of-bounds access (OVERRUN)
overrun-buffer-arg: Overrunning struct type scst_event of 64 bytes by
passing it to a function which accesses it at byte offset 3135 using
argument 64UL + payload_len (which evaluates to 3136). [Note: The source
code implementation of the function has been overridden by a builtin model.]
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8760 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2020-01-04 17:46:07 +00:00
Bart Van Assche
da537c5077
Merge branch 'svn-trunk'
2019-12-29 20:38:56 -08:00
Bart Van Assche
2c530f79af
scst: Use designated initializers for sys_alloc_fns
...
Designated initializers are required for GCC to safely implement
RANDSTRUCT, a GCC plugin pulled from the Grsecurity patch set
upstream ~2017.
Fix the compile error caused by implementation of sys_alloc_fns
by rewriting the struct with designated members.
See also https://github.com/bvanassche/scst/pull/17 .
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8759 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-12-30 04:38:51 +00:00
Bart Van Assche
8c148efcce
Merge branch 'svn-trunk'
2019-12-27 20:28:26 -08:00
Bart Van Assche
422d670126
srpt, isert-scst: Fix the build against MOFED
...
This patch is a fix for commit a169500590 ("Makefiles:
Use KBUILD_EXTRA_SYMBOLS instead of copying Module.symvers"; r8686).
Reported-by: Grant Albitz <GAlbitz@All-Bits.com >
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8758 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-12-28 04:28:19 +00:00
Bart Van Assche
82fbf1dc3c
Merge branch 'svn-trunk'
2019-12-25 16:44:46 -08:00
Bart Van Assche
52370acb84
qla2x00t-32gbit: Reduce the size of struct qla_tgt_cmd
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8757 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-12-26 00:43:09 +00:00
Bart Van Assche
4978587a52
qla2x00t-32gbit: Fix a bug in qlt_alloc_qfull_cmd()
...
Remove a memset() call that clears the data members initialized by
sqa_qla2xxx_get_cmd().
Fixes: b8a1634ced ("qla2x00t-32gbit: Import this driver into the SCST repository")
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8756 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-12-26 00:42:31 +00:00
Bart Van Assche
3f63399dff
qla2x00t-32gbit: Update driver version to 10.01.00.22-k
...
Link: https://lore.kernel.org/r/20191217220617.28084-15-hmadhani@marvell.com
Signed-off-by: Himanshu Madhani <hmadhani@marvell.com >
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com >
[ commit e849efe8c8734aee0d207a1f006705d7a6d8dd39 upstream ]
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8755 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-12-26 00:42:06 +00:00
Bart Van Assche
cbe98a9ce7
qla2x00t-32gbit: Fix mtcp dump collection failure
...
MTCP dump failed due to MB Reg 10 was picking garbage data from stack
memory.
Fixes: 81178772b636a ("[SCSI] qla2xxx: Implemetation of mctp.")
Cc: stable@vger.kernel.org
Link: https://lore.kernel.org/r/20191217220617.28084-14-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 7ae8c12cb1a5278795afbefabc67b119fe769b61 upstream ]
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8754 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-12-26 00:41:45 +00:00
Bart Van Assche
c75fc9910e
qla2x00t-32gbit: Fix stuck session in GNL
...
Fix race condition between GNL completion processing and GNL request. Late
submission of GNL request was not seen by the GNL completion thread. This
patch will re-submit the GNL request for late submission fcport.
Link: https://lore.kernel.org/r/20191217220617.28084-13-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 5c3f46d332234b833ed733144fb9dd40577eb8bc upstream ]
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8753 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-12-26 00:41:20 +00:00
Bart Van Assche
22c88c2686
qla2x00t-32gbit: Fix RIDA Format-2
...
This patch fixes offset for Format-2 data structure for Report ID
Acquisition. This caused driver to set remote_nport_id to 0x0000 in N2N
configuration. In a scenario where initiator's WWPN is higher than target's
WWPN, driver will assign 0x00 as target nport-id, which results into login
failure.
Link: https://lore.kernel.org/r/20191217220617.28084-12-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 101346ec73d9376823e7471b719c2e8445aa3541 upstream ]
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8752 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-12-26 00:40:58 +00:00
Bart Van Assche
a838112bdb
qla2x00t-32gbit: Consolidate fabric scan
...
Consolidate scan for fabric loop and fabric topologies into a single scan.
Link: https://lore.kernel.org/r/20191217220617.28084-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 >
[ commit 25009f0e147951f02618d71e4671a3104e2bb552 upstream ]
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8751 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-12-26 00:40:25 +00:00
Bart Van Assche
9d2b5a9184
qla2x00t-32gbit: Correct fcport flags handling
...
This patch fixes some instances of FCF_ASYNC_{SENT|ACTIVE} flag setting and
clearning were missing.
Link: https://lore.kernel.org/r/20191217220617.28084-10-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 0333e5f4f5d3edb2d0f43ea0f4befd20aaf812b4 upstream ]
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8750 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-12-26 00:40:05 +00:00
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