8786 Commits

Author SHA1 Message Date
Bart Van Assche
bd051656d0 qla2x00t: Declare fourth qla2x00_set_model_info() argument const
This patch does not change any functionality.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8382 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-05-27 22:09:07 +00:00
Bart Van Assche
6ab417a5ef qla2x00t-32gbit: Always check the qla2x00_wait_for_hba_online() return value
This patch avoids that Coverity complains that the return value of
qla2x00_wait_for_hba_online() is not always checked.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8381 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-05-27 22:08:26 +00:00
Bart Van Assche
9a9acef676 qla2x00t-32gbit: Suppress multiple Coverity complaint about out-of-bounds accesses
This patch does not change any functionality.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8380 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-05-27 22:07:32 +00:00
Bart Van Assche
6cd0355c1d qla2x00t-32gbit: Suppress a Coverity complaint about integer overflow
This patch avoids that Coverity reports the following:

Unintentional integer overflow (OVERFLOW_BEFORE_WIDEN)
overflow_before_widen: Potentially overflowing expression dma_eng_num *
65536U with type unsigned int (32 bits, unsigned) is evaluated using 32-bit
arithmetic, and then used in a context that expects an expression of type
uint64_t (64 bits, unsigned).



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8379 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-05-27 17:47:16 +00:00
Bart Van Assche
1b4af79f28 qla2x00t-32gbit: Remove unreachable code from qla83xx_idc_lock()
This was detected by Coverity.



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8378 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-05-27 17:44:39 +00:00
Bart Van Assche
6ab230ed4a qla2x00t-32gbit: Fix qla24xx_process_bidir_cmd()
Set the r??_data_len variables before using these instead of after.

This patch avoids that Coverity reports the following:

const: At condition req_data_len != rsp_data_len, the value of req_data_len must be equal to 0.
const: At condition req_data_len != rsp_data_len, the value of rsp_data_len must be equal to 0.
dead_error_condition: The condition req_data_len != rsp_data_len cannot be true.



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8377 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-05-27 17:43:52 +00:00
Bart Van Assche
74ab26b723 qla2x00t-32gbit: Simplify a debug statement
This patch avoids that Coverity reports the following:
    
Unchecked return value (CHECKED_RETURN)34. check_return: Calling
atomic_read without checking return value (as is done elsewhere 80 out
of 92 times).



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8376 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-05-27 17:42:22 +00:00
Bart Van Assche
5e5e99a67a qla2x00t-32gbit: Remove dead code
Since sess == NULL before 'goto out_term2' is executed, the code under
'if (sess)' cannot be reached. Hence remove that code. This was detected
by Coverity.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8375 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-05-27 17:40:38 +00:00
Bart Van Assche
a337199f8e qla2x00t-32gbit: Remove a superfluous pointer check
Checking a pointer after it has been dereferenced is not useful. This was
detected by Coverity.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8374 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-05-27 17:38:21 +00:00
Bart Van Assche
6968c63610 qla2x00t-32gbit: Complain loudly if parsing the version string fails
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8373 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-05-27 17:37:47 +00:00
Bart Van Assche
3a3de2bc20 qla2x00t-32gbit: Complain if a mailbox command times out
This patch avoids that Coverity reports the following:
    
Unchecked return value (CHECKED_RETURN)16. check_return: Calling
wait_for_completion_timeout without checking return value (as is done
elsewhere 14 out of 17 times).


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8372 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-05-27 17:36:17 +00:00
Bart Van Assche
29bc124020 qla2x00t-32gbit: Remove two superfluous if-tests
This patch avoids that Coverity reports the following:

Null-checking sp->u.iocb_cmd.u.ctarg.rsp suggests that it may be null, but
it has already been dereferenced on all paths leading to the check.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8371 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-05-27 17:34:47 +00:00
Bart Van Assche
3560f6650a qla2x00t-32gbit: Change data_dsd into an array
This patch avoids that Coverity complains about using a scalar as an array.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8370 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-05-27 17:33:20 +00:00
Bart Van Assche
81bc0e717a iscsi-scst: Suppress a false positive Coverity complaint
Avoid that Coverity complains about using a scalar as an array.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8369 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-05-27 17:31:40 +00:00
Bart Van Assche
c5d4686660 scst_lib: Add a scst_put_buf_full() call in scst_block_generic_dev_done()
Avoid that Coverity complains (incorrectly) that there is a memory leak
in an error path in scst_block_generic_dev_done().


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8368 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-05-27 17:28:50 +00:00
Bart Van Assche
dc78c5025e qla2x00t-32gbit: Declare local symbols 'static'
This patch avoids that sparse complains about local symbols not having been
declared 'static'.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8367 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-05-27 17:27:47 +00:00
Bart Van Assche
ed72c37437 qla2x00t-32gbit: Use strlcpy() instead of strncpy()
This patch avoids that gcc complains that the output may be truncated.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8366 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-05-26 16:57:59 +00:00
Bart Van Assche
dff864f63e qla2x00t-32gbit: Add cleanup for PCI EEH recovery
During EEH error recovery testing it was discovered that driver's reset()
callback partially frees resources used by driver, leaving some stale
memory.  After reset() is done and when resume() callback in driver uses
old data which results into error leaving adapter disabled due to PCIe
error.

This patch does cleanup for EEH recovery code path and prevents adapter
from getting disabled.

Signed-off-by: Quinn Tran <qutran@marvell.com>
Signed-off-by: Himanshu Madhani <hmadhani@marvell.com>
Reviewed-by: Ewan D. Milne <emilne@redhat.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
[ bvanassche: Ported from upstream kernel to SCST ]



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8365 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-05-26 16:51:26 +00:00
Bart Van Assche
9f3248f224 nightly build: Update kernel versions
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8364 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-05-26 12:02:04 +00:00
Bart Van Assche
e2818b97f0 scst/Makefile: Avoid that "nothing to do" is reported when running e.g. make 2perf
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8363 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-05-16 16:30:48 +00:00
Bart Van Assche
86b2b49ade scripts/kernel-functions: Fetch both Linus' tree and the stable tree
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8362 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-05-16 16:30:08 +00:00
Bart Van Assche
b0991f6043 nightly build: Update kernel versions
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8361 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-05-11 01:27:54 +00:00
Bart Van Assche
5cbef0a06e Merge branch 'svn-trunk' 2019-05-09 15:48:33 -07:00
Bart Van Assche
8ae4d56ad7 usr/fileio/common.c: Annotate a switch/case fall-through
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8360 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-05-09 16:48:18 +00:00
Bart Van Assche
11bbb0b613 qla2x00t-32gbit: Improve coding style conformance
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8359 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-05-09 16:30:57 +00:00
Bart Van Assche
e851438472 qla2x00t: Improve coding style conformance
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8358 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-05-09 16:29:24 +00:00
Bart Van Assche
b350c846f1 scst/src/scst_sysfs: Improve coding style conformance
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8357 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-05-09 16:27:41 +00:00
Bart Van Assche
e945943861 iscsi-scst/usr: Improve coding style
This patch only affects code formatting and does not change any functionality.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8356 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-05-09 16:26:46 +00:00
Bart Van Assche
370e25813e usr/fileio: Make the coding style more consistent
This patch only changes whitespace.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8355 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-05-09 16:25:29 +00:00
Bart Van Assche
cbb86c8af7 Merge branch 'svn-trunk' 2019-05-08 07:24:45 -07:00
Bart Van Assche
005eec88bd nightly build: Update kernel versions
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8354 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-05-08 13:52:23 +00:00
Bart Van Assche
38f211de97 qla2x00t-32gbit, target: Make the use of whitespace conform the Linux kernel coding style
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8353 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-05-07 02:46:22 +00:00
Bart Van Assche
3ab9bc61b7 qla2x00t-32gbit: Make the pointer notation conform with the Linux kernel coding style
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8352 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-05-07 02:41:22 +00:00
Bart Van Assche
b58ab63d11 Merge branch 'svn-trunk' 2019-05-05 18:47:35 -07:00
Bart Van Assche
0ed0d35395 qla2x00t-32gbit: Fix PRLI and PLOGI handling
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8351 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-05-06 01:47:21 +00:00
Bart Van Assche
86f828d714 qla2x00t-32gbit: Rework key encoding in qlt_find_host_by_d_id()
Use the same approach for encoding the destination ID as the approach
used by qlt_update_vp_map().


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8350 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-05-06 00:42:19 +00:00
Bart Van Assche
71948beae4 Merge branch 'svn-trunk' 2019-05-05 11:24:28 -07:00
Bart Van Assche
c8d12894cf scst/Makefile: Remove a debug statement
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8349 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-05-05 18:24:18 +00:00
Bart Van Assche
c9cd5d43a3 Merge branch 'svn-trunk' 2019-05-05 11:23:08 -07:00
Bart Van Assche
9add6c3983 Update Subversion ignore files
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8348 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-05-05 18:22:21 +00:00
Bart Van Assche
22f1132073 Makefiles: Rework build mode switching
Move the build_mode file from the top level into the scst directory. Write
build mode defines into scst/include/build_mode.h and include that file
directly or indirectly in all source files that depend on these #defines.
This approach has the advantage that "make clean" does no longer has to
be run when switching between build modes because the kernel build system
recognizes build_mode.h as a dependency and triggers a rebuild of all
source files that directly or indirectly include the build_mode.h header
file.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8347 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-05-05 18:19:38 +00:00
Bart Van Assche
d973bda70a srpt/conftest/rdma_destroy_ah_with_flags: Update Subversion ignore list
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8346 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-05-05 16:55:52 +00:00
Bart Van Assche
058cf8834a scst_vdisk: Make a warning message more clear
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8345 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-05-05 16:03:10 +00:00
Bart Van Assche
b56d9ce600 scst_vdisk: Suggest to disable thin provisioning for ZFS
Apparently ZFS does not support FALLOC_FL_PUNCH_HOLE | FALLOC_FL_KEEP_SIZE.
Hence suggest to disable thin provisioning if fallocate() returns -EOPNOTSUPP.
See also https://github.com/zfsonlinux/zfs/issues/326.

Reported-by: Sietse van Zanen <sietse@wizdom.nu>


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8344 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-05-05 15:59:00 +00:00
Bart Van Assche
47d3ba1f99 nightly build: Update kernel versions
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8343 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-05-05 14:23:18 +00:00
Bart Van Assche
278fe65bf1 Merge branch 'svn-trunk' 2019-05-04 19:36:58 -07:00
Bart Van Assche
609bd271c4 qla2x00t-32gbit: Submit ELS pass-through IOCBs in the proper format
Pass length parameters in little endian format and set responder mode
if appropriate.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8342 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-05-05 02:34:08 +00:00
Bart Van Assche
0841504028 qla2x00t-32gbit: Simplify qlt_lport_dump()
This patch does not change any functionality.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8341 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-05-05 02:25:50 +00:00
Bart Van Assche
606d65a1c0 qla2x00t-32gbit: Disable ql2xallocfwdump by default
Disable allocation of memory for a firmware dump during module initialization
by default because it triggers DMAR faults with the IOMMU enabled.

Reported-by: Sietse van Zanen <sietse@wizdom.nu>


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8340 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2019-05-05 02:05:46 +00:00
Bart Van Assche
e770b4bbc2 Merge branch 'svn-trunk' 2019-05-04 19:03:41 -07:00