Commit Graph

5995 Commits

Author SHA1 Message Date
Bart Van Assche
cc8a7d0ae9 qla2x00t-32gbit, target: Export qla_tgt_mutex
This patch fixes a link-time error.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8140 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-04-02 04:17:32 +00:00
Bart Van Assche
5acd02c878 qla2x00t-32gbit: Define qla24xx_build_scsi_crc_2_iocbs() also if PI is disabled
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8139 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-04-02 04:16:44 +00:00
Bart Van Assche
002b335a27 qla2x00t-32gbit/Makefile_in-tree: Remove unused code
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8138 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-04-02 04:16:03 +00:00
Bart Van Assche
3c75a7c47e scst/include/backport.h: Add an IS_ENABLED() backport
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8137 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-04-02 04:15:18 +00:00
Bart Van Assche
621e67205f qla2x00t-32gbit, target: Define qlt_handle_dif_error() also if PI is disabled
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8136 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-04-02 04:14:40 +00:00
Bart Van Assche
42c39e73a0 qla2x00t-32gbit: Only include <linux/bsg-lib.h> if available
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8135 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-04-02 04:13:33 +00:00
Bart Van Assche
672b0d076e qla2x00t-32gbit, target: Only initialize session members used by SCST
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8134 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-04-02 04:13:02 +00:00
Bart Van Assche
41dd8494f7 qla2x00t-32gbit: Only include <linux/nvme.h> if available
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8133 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-04-02 04:12:16 +00:00
Bart Van Assche
7944db8387 scripts/kernel-functions: Fix a check that controls whether or not a patch should be applied
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8132 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-04-02 04:11:45 +00:00
Bart Van Assche
6d13e7783d qla2x00t-32gbit, target: Do not use se_cmd.priv
se_cmd.priv is not available in older kernel versions. Hence do not use it.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8131 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-04-02 04:11:02 +00:00
Bart Van Assche
ef1b78ba49 scst/include/backport.h: Add an alloc_workqueue() backport
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8130 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-04-02 04:09:54 +00:00
Bart Van Assche
e1de99f312 qla2x00t-32gbit: Remove debug output of variables not set by SCST
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8129 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-04-02 04:09:08 +00:00
Bart Van Assche
68e414508c qla2x00t-32gbit, target: Minimize target core include directives
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8128 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-04-02 04:08:12 +00:00
Bart Van Assche
7c66c2a47c qla2x00t-32gbit: Remove an obsolete comment
The code that grabs the host lock has been removed considerable time ago.
Hence also remove the comment that refers to the host lock.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8127 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-04-02 04:07:32 +00:00
Bart Van Assche
2e530a04ba qla2x00t-32gbit, target: Make sqa_xmit_response() easier to read
This patch does not change any functionality.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8126 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-04-02 04:06:20 +00:00
Bart Van Assche
bd3543fc7d qla2x00t-32gbit: Use pci_enable_msix_range() on RHEL 6
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8125 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-04-02 04:04:27 +00:00
Bart Van Assche
5ce12b8c42 qla2x00t-32gbit, target: Fix code for supporting older kernel versions
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8124 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-04-02 04:03:43 +00:00
Bart Van Assche
b983038d5e qla2x00t-32gbit, target: Fix an "undefined symbol" error
Fixes: commit a65843ec45 ("qla2x00t-32gbit, target: Fix W=1 warnings" / r8093)



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8123 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-04-02 04:02:47 +00:00
Bart Van Assche
de28843d9f Makefiles: Simplify Module.symvers handling
This patch does not change any functionality.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8122 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-03-31 21:13:13 +00:00
Bart Van Assche
6cb1d158e7 Makefiles: Fix $(SCST_DIR)
Fixes: dc7e039124 ("Makefiles: Remove most instances of $(SCST_INC_DIR)") (r8079)


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8121 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-03-31 21:11:17 +00:00
Bart Van Assche
6eb8e72ea6 scripts/kernel-functions: Override kernel gcc version detection
Older kernels do not support recent gcc versions. Hence override the kernel
version when building against an older kernel.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8120 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-03-31 16:34:59 +00:00
Bart Van Assche
262c7f3b64 scripts/kernel-functions: Check local kernel git repo before downloading
This approach works faster than downloading kernel source code tarballs.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8119 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-03-31 16:31:29 +00:00
Bart Van Assche
48f37a91a6 scripts/kernel-functions: Rename ${kernel_sources} into ${kernel_downloads}
This patch does not change any functionality.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8118 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-03-31 16:29:21 +00:00
Bart Van Assche
0dceefe878 qla2x00t, scripts: Introduce download_and_extract_kernel_tree()
This patch does not change any functionality.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8117 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-03-31 16:28:44 +00:00
Bart Van Assche
d790fc4cb3 qla2x00t-32gbit: Fix the build against upstream kernel v3.8
See also Linux kernel commit cf0282004166 ("UAPI: (Scripted) Disintegrate
include/scsi/fc") # v3.9.



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8116 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-03-31 16:27:59 +00:00
Bart Van Assche
0c1d1f8c98 qla2x00t-32gbit, target: Backport to kernel v3.11 and before
Note: this code has not yet been tested.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8115 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-03-31 16:26:45 +00:00
Bart Van Assche
89e7abc377 qla2x00t-32gbit: Rework scsi-mq detection code
Kernel versions v3.13..v3.16 have block-mq but no scsi-mq. Fix the
build for these kernel versions by modifying the scsi-mq detection code.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8114 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-03-31 16:25:54 +00:00
Bart Van Assche
7fc7fa3987 qla2x00t-32gbit, target: Remove unnecessary freeing code
The qla2x00t-32gbit target code never assigns a value to se_sess->sess_tag_pool.
Hence there is no need to free the memory that pointer points at.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8113 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-03-31 16:25:06 +00:00
Bart Van Assche
e24843ced5 scst: Fix kvfree() backport version check for kernel versions v3.12.41..
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8112 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-03-31 04:20:09 +00:00
Bart Van Assche
8435275aec scripts/rhel-rpm-functions: Remove because no longer used
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8111 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-03-29 04:25:14 +00:00
Bart Van Assche
9b4f212b09 scripts/generate-scst-patch: Remove this script because it is no longer used
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8110 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-03-29 04:24:35 +00:00
Bart Van Assche
43121e7ef1 qla2x00t: Add temporary directories used by generate-kernel-patch to the tree
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8109 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-03-29 04:23:54 +00:00
Bart Van Assche
e20ffb84ab qla2x00t-32gbit: Backport to RHEL 6
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8108 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-03-29 01:45:30 +00:00
Bart Van Assche
2cd3351cb3 qla2x00t-32gbit: Backport to kernel v3.10
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8107 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-03-29 01:44:34 +00:00
Bart Van Assche
c03a1817ad qla2x00t-32gbit: Backport to kernel v4.8
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8106 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-03-29 01:43:54 +00:00
Bart Van Assche
849adf540b qla2x00t-32gbit: Backport to kernel v4.9
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8105 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-03-29 01:43:15 +00:00
Bart Van Assche
a0d4136e5c qla2x00t-32gbit: Backport to kernel v4.10
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8104 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-03-29 01:41:49 +00:00
Bart Van Assche
1ccf739c01 qla2x00t-32gbit: Backport to RHEL 7
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8103 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-03-29 01:41:13 +00:00
Bart Van Assche
3738fc934d qla2x00t-32gbit: Backport to kernel v4.13
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8102 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-03-29 01:40:12 +00:00
Bart Van Assche
c691d06806 qla2x00t-32gbit: Backport to kernel v4.19
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8101 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-03-29 01:39:36 +00:00
Bart Van Assche
2b876f7093 qla2x00t-32gbit, target: Port to kernel-v5.1-rc2
Switch from percpu_ida to sbitmap since percpu_ida has been removed.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8100 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-03-29 01:38:40 +00:00
Bart Van Assche
34bbbf47d8 qla2x00t-32gbit, target: Avoid using the protocol_data member
Avoid using this structure member since it is not available in kernel
versions before v4.2. See also commit 7a971b1b3055 ("target: replace
se_cmd->execute_rw with a protocol_data field") # v4.2.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8099 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-03-29 01:37:50 +00:00
Bart Van Assche
39232f985c qla2x00t-32gbit, target: Use an on-stack completion instead of cmd_wait_comp
This patch avoids that the se_cmd.cmd_wait_comp member is used. See also
Linux kernel commit 7b2cc7dc0dbf ("scsi: target: Simplify the code for
waiting for command completion") # v4.19.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8098 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-03-29 01:36:41 +00:00
Bart Van Assche
6d5464f017 qla2x00t-32gbit, target: Use kvcalloc() instead of open-coding it
This patch does not change any functionality.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8097 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-03-29 01:35:42 +00:00
Bart Van Assche
fb5e8d28fd qla2x00t-32gbit, target: Remove a set-but-not-used variable
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8096 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-03-29 01:34:52 +00:00
Bart Van Assche
fd3fa5df34 qla2x00t-32gbit, target: Remove a kvfree() call
Since the target code never assigns a value to se_sess->sess_cmd_map,
calling kvfree on that pointer is not necessary.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8095 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-03-29 01:33:54 +00:00
Bart Van Assche
fc4c99dccd qla2x00t-32gbit: Upgrade initiator code to the code from kernel v5.1-rc2
This patch is the output of git diff v4.18.20..v5.1-rc2 drivers/scsi/qla2xxx.
Only one manual change has been applied, namely the removal of
"cmd->se_cmd.map_cpu = cpu;" from qlt_alloc_qfull_cmd().


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8094 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-03-29 01:32:45 +00:00
Bart Van Assche
a65843ec45 qla2x00t-32gbit, target: Fix W=1 warnings
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8093 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-03-29 01:31:36 +00:00
Bart Van Assche
1bef9a0ff9 qla2x00t-32gbit, target: Fix in-tree build
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8092 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-03-29 01:30:34 +00:00
Bart Van Assche
b8a1634ced qla2x00t-32gbit: Import this driver into the SCST repository
The source code in this commit is a combination of the v4.18.20 qla2xxx
driver and the QLogic target driver from the QLogic git repository
(commit ac4faf74f437 ("qla2xxx: Fix session creation fail")).


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8091 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-03-29 01:29:46 +00:00