Bart Van Assche
32c2db1acf
nightly build: Update kernel versions
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8857 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2020-04-08 14:41:35 +00:00
Bart Van Assche
a8b636e09f
scst/src/dev_handlers/scst_user: Remove two casts from dev_user_reply_get_cmd()
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8851 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2020-04-04 23:39:48 +00:00
Bart Van Assche
b2facc91c9
scst/src/dev_handlers/scst_user: Simplify dev_user_reply_get_multi()
...
Remove multiple pointer casts. This patch does not change any functionality.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8850 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2020-04-04 23:24:47 +00:00
Bart Van Assche
1db9c3c8b2
scst/kernel/in-tree/Makefile.drivers.Linux.patch: Port to kernel v5.6
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8849 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2020-04-04 22:59:14 +00:00
Bart Van Assche
fcfb8f873d
scst/kernel/in-tree/Makefile.scst: Add scst_local_cmd.o
...
Signed-off-by: Sietse van Zanen <sietse@wizdom.nu >
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8848 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2020-04-03 02:10:40 +00:00
Bart Van Assche
cff108855e
scst/src/Makefile: Sort source file names alphabetically
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8847 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2020-04-03 02:07:01 +00:00
Bart Van Assche
647f056f6b
Remove more references to the removed scst_proc.c source file
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8846 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2020-04-03 02:06:24 +00:00
Bart Van Assche
4dc7c91610
nightly build: Update kernel versions
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8845 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2020-04-01 01:22:46 +00:00
Bart Van Assche
4850c2c7c9
nightly build: Update kernel versions
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8844 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2020-03-31 05:08:15 +00:00
Bart Van Assche
a2b4edd4d2
scst/src/scst_local_cmd.h: Remove a duplicate declaration
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8843 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2020-03-20 17:25:55 +00:00
Bart Van Assche
6c543c089e
scst_targ: Sort scst_local_fns[] alphabetically
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8842 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2020-03-20 17:25:38 +00:00
Bart Van Assche
33ae08da62
scripts/kernel-functions: Apply the -fno-PIE to more kernel versions
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8841 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2020-03-20 17:25:16 +00:00
Bart Van Assche
ad089822f0
qla2x00t-32gbit: Fix the build against kernel v3.18 and older
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8840 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2020-03-20 17:24:37 +00:00
Bart Van Assche
347bbf8736
qla2x00t-32gbit: Fix the build against kernel v4.9 and older
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8839 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2020-03-20 17:24:01 +00:00
Bart Van Assche
5ebd20d839
scst/include/backport.h: Backport cpu_to_be32_array()
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8838 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2020-03-20 17:23:00 +00:00
Bart Van Assche
eb67ff6780
nightly build: Update kernel versions
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8837 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2020-03-14 22:32:47 +00:00
Bart Van Assche
8f34137fce
qla2x00t-32gbit: Improve coding style conformance
...
Do not surround single line statements with braces. Do not split strings
across multiple lines. Do not use 'return;' at the end of a function. Use
tabs to indent. Remove superfluous parentheses.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8836 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2020-03-09 02:21:33 +00:00
Bart Van Assche
1199f4247f
qla2x00t-32gbit: Suppress complaints about using smp_processor_id()
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8835 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2020-03-09 02:18:12 +00:00
Bart Van Assche
cd68a96ef9
scst-dkms.spec.in: Do not install the */conftest/*/*.ko kernel modules
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8834 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2020-03-08 20:49:11 +00:00
Bart Van Assche
b044a48cf8
RPM build: Add support for CentOSPlus
...
See also https://sourceforge.net/p/scst/tickets/34/ .
This was reported by Brandon Thetford.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8833 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2020-03-08 20:28:01 +00:00
Bart Van Assche
eea7b68473
qla2x00t-32gbit: Update driver version to 10.01.00.25-k
...
Link: https://lore.kernel.org/r/20200226224022.24518-19-hmadhani@marvell.com
Signed-off-by: Himanshu Madhani <hmadhani@marvell.com >
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com >
[ commit 4cbca7ea9edaab268f344c2bcd22afcb7370569f upstream ]
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8832 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2020-03-07 21:40:33 +00:00
Bart Van Assche
37e6d53d11
qla2x00t-32gbit: Set Nport ID for N2N
...
When transitioning from loop to N2N, stale NPort ID is not
re-assigned. Stale ID can collide with remote device. This patch will
re-assign NPort ID on N2N is detected.
Link: https://lore.kernel.org/r/20200226224022.24518-18-hmadhani@marvell.com
Signed-off-by: Himanshu Madhani <hmadhani@marvell.com >
Signed-off-by: Quinn Tran <qutran@marvell.com >
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com >
[ commit ad8a260aa80d4dfa9588fd5d23b71ec922f61c8b upstream ]
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8831 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2020-03-07 21:40:06 +00:00
Bart Van Assche
9d6877b38d
qla2x00t-32gbit: Handle NVME status iocb correctly
...
Certain state flags bit combinations are not checked and not handled
correctly. Plus, do not log a normal underrun situation where there is
no frame drop.
Link: https://lore.kernel.org/r/20200226224022.24518-17-hmadhani@marvell.com
Signed-off-by: Himanshu Madhani <hmadhani@marvell.com >
Signed-off-by: Arun Easi <aeasi@marvell.com >
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com >
[ commit 3d582b34992ba2fe4065f01019f0c08d12916faa upstream ]
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8830 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2020-03-07 21:39:29 +00:00
Bart Van Assche
b4a2b8a647
qla2x00t-32gbit: Remove restriction of FC T10-PI and FC-NVMe
...
T10-PI and FC-NVMe are not mutually exclusive. This patch removes
restrictions where if FC-NVMe is enabled T10-PI defaults to disabled.
Link: https://lore.kernel.org/r/20200226224022.24518-16-hmadhani@marvell.com
Signed-off-by: Himanshu Madhani <hmadhani@marvell.com >
Signed-off-by: Quinn Tran <qutran@marvell.com >
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com >
[ commit 3e4615a292b47632d409f0d53a23da85e039b031 upstream ]
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8829 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2020-03-07 21:38:56 +00:00
Bart Van Assche
7924ccd89c
qla2x00t-32gbit: Serialize fc_port alloc in N2N
...
For N2N, fc_port struct is created during report id acquisition. At
later time, the loop resync (fabric, n2n, loop) would trigger the rest
of the login using the created fc_port struct. The loop resync logic
can trigger another fc_port allocation if the 1st allocation was not
able to execute. This patch prevents the 2nd allocation trigger.
Link: https://lore.kernel.org/r/20200226224022.24518-15-hmadhani@marvell.com
Signed-off-by: Himanshu Madhani <hmadhani@marvell.com >
Signed-off-by: Quinn Tran <qutran@marvell.com >
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com >
[ commit 11efe8755d73efd153d6459240866b6d52448f19 upstream ]
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8828 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2020-03-07 21:38:18 +00:00
Bart Van Assche
231611a186
qla2x00t-32gbit: Fix NPIV instantiation after FW dump
...
NPIV re-enable code was blocked after FW had been initialized. The
blocking check was too broad. Reduce the check to make sure if FW is
initialized or not.
Link: https://lore.kernel.org/r/20200226224022.24518-14-hmadhani@marvell.com
Signed-off-by: Himanshu Madhani <hmadhani@marvell.com >
Signed-off-by: Quinn Tran <qutran@marvell.com >
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com >
[ commit ab391abdc191c2a2874098df86d1fe4b9762ef60 upstream ]
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8827 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2020-03-07 21:37:32 +00:00
Bart Van Assche
cacab3adea
qla2x00t-32gbit: Fix RDP respond data format
...
RPD information failed to display by switch cli command. This is
caused by driver failure to properly format RDP response data with
data descriptor to allow switch to parse it correctly.
Link: https://lore.kernel.org/r/20200226224022.24518-13-hmadhani@marvell.com
Signed-off-by: Himanshu Madhani <hmadhani@marvell.com >
Signed-off-by: Quinn Tran <qutran@marvell.com >
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com >
[ commit 770538c3012ac8ff92d5e4ae18850588c188c5fa upstream ]
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8826 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2020-03-07 21:37:02 +00:00
Bart Van Assche
44ab6ef708
qla2x00t-32gbit: Force semaphore on flash validation failure
...
For single port 28XX adapter, the second core can still run in the
background. The flash semaphore can be held by the non-active core.
This patch tell MPI FW to check for this case and clear the semaphore
from the non-active core.
Link: https://lore.kernel.org/r/20200226224022.24518-12-hmadhani@marvell.com
Signed-off-by: Himanshu Madhani <hmadhani@marvell.com >
Signed-off-by: Quinn Tran <qutran@marvell.com >
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com >
[ commit cad9c2d28ec69f1d0370b2ba5abe309b0b709be4 upstream ]
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8825 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2020-03-07 21:36:34 +00:00
Bart Van Assche
8b1ff82c99
qla2x00t-32gbit: add more FW debug information
...
Per FW request, MB 1-7 should be logged for 8002 error.
Link: https://lore.kernel.org/r/20200226224022.24518-11-hmadhani@marvell.com
Signed-off-by: Himanshu Madhani <hmadhani@marvell.com >
Signed-off-by: Quinn Tran <qutran@marvell.com >
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com >
[ commit a82c307e69c465e4d80cc15fde3c00f5b95832d6 upstream ]
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8824 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2020-03-07 21:36:04 +00:00
Bart Van Assche
44b99951e2
qla2x00t-32gbit: Update BPM enablement semantics.
...
commit e4e3a2ce9556 ("scsi: qla2xxx: Add ability to autodetect SFP
type") takes a heavy handed approach to BPM (Buffer Plus Management)
enablement:
1) During hardware initialization, if an LR-capable transceiver is
recognized, the driver schedules a disruptive post-initialization
chip-reset (ISP-ABORT) to allow the BPM settings to be sent to the
firmware. This chip-reset will result in (short-term) path-loss to
all fc-rports and their attached SCSI devices.
2) LR-detection is triggered during any link-up event, resulting in a
refresh and potential chip-reset
Based on firmware-team guidance, upon LR-capable transceiver
recognition, the driver's hardware initialization code will now
re-execute firmware with the new BPM settings, then continue on with
driver initialization. To address the second issue, the driver
performs LR-capable detection upon the driver receiving a
transceiver-insertion asynchronous event from firmware. No short-term
path loss is needed with this new semantic.
Link: https://lore.kernel.org/r/20200226224022.24518-10-hmadhani@marvell.com
Signed-off-by: Himanshu Madhani <hmadhani@marvell.com >
Signed-off-by: Andrew Vasquez <andrewv@marvell.com >
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com >
[ commit b0f18eee6fc1ee21c07abb55e9ccabc9ed9c09f0 upstream ]
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8823 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2020-03-07 21:35:34 +00:00
Bart Van Assche
98844e3456
qla2x00t-32gbit: fix FW resource count values
...
This patch fixes issue where current and original exchanges count
were swapped for intiator and targets.
Also fix IOCB count for current and original which were swapped.
Link: https://lore.kernel.org/r/20200226224022.24518-9-hmadhani@marvell.com
Signed-off-by: Himanshu Madhani <hmadhani@marvell.com >
Signed-off-by: Quinn Tran <qutran@marvell.com >
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com >
[ commit ce1ee122e0f048fc67c1259489f0802a28049bfd upstream ]
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8822 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2020-03-07 21:35:00 +00:00
Bart Van Assche
99aaaf0a06
qla2x00t-32gbit: Use a dedicated interrupt handler for 'handshake-required' ISPs
...
There's no point checking flags.disable_msix_handshake in the
interrupt handler hot-path. Instead perform the check during
queue-pair instantiation and use the proper interrupt handler.
Link: https://lore.kernel.org/r/20200226224022.24518-8-hmadhani@marvell.com
Signed-off-by: Himanshu Madhani <hmadhani@marvell.com >
Signed-off-by: Andrew Vasquez <andrewv@marvell.com >
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com >
[ commit 7b2a73963c91cf6bad6b8f58636560cd1f3cf319 upstream ]
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8821 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2020-03-07 21:34:25 +00:00
Bart Van Assche
c04763810c
qla2x00t-32gbit: Return appropriate failure through BSG Interface
...
This patch ensures flash updates API calls return possible failure
status through BSG interface to the application.
Link: https://lore.kernel.org/r/20200226224022.24518-7-hmadhani@marvell.com
Signed-off-by: Himanshu Madhani <hmadhani@marvell.com >
Signed-off-by: Michael Hernandez <mhernandez@marvell.com >
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com >
[ commit 1b81e7f3019d632a707e07927e946ffbbc102910 upstream ]
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8820 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2020-03-07 21:33:31 +00:00
Bart Van Assche
f3061aef5f
qla2x00t-32gbit: Improved secure flash support messages
...
This patch improved message for Secure Flash support. No
functionality has been changed.
Link: https://lore.kernel.org/r/20200226224022.24518-6-hmadhani@marvell.com
Signed-off-by: Himanshu Madhani <hmadhani@marvell.com >
Signed-off-by: Michael Hernandez <mhernandez@marvell.com >
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com >
[ commit 4ba836f686284ef1eab0cf7a8f3402e24e6dc4cd upstream ]
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8819 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2020-03-07 21:32:39 +00:00
Bart Van Assche
f0e0dcd903
qla2x00t-32gbit: Fix FCP-SCSI FC4 flag passing error
...
This patch fixes issue where incorrect flag was used for sending
switch commands.
Link: https://lore.kernel.org/r/20200226224022.24518-5-hmadhani@marvell.com
Fixes: e8c72ba51a15 ("[SCSI] qla2xxx: Use GFF_ID to check FCP-SCSI FC4 type before logging into Nx_Ports")
Fixes: a4239945b8ad ("scsi: qla2xxx: Add switch command to simplify fabric discovery")
Signed-off-by: Himanshu Madhani <hmadhani@marvell.com >
Signed-off-by: Quinn Tran <qutran@marvell.com >
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com >
[ commit 8e0e063af0d1be30245a08fab0515a3cccfcd513 upstream ]
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8818 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2020-03-07 21:31:52 +00:00
Bart Van Assche
545a43ff56
qla2x00t-32gbit: Use FC generic update firmware options routine for ISP27xx
...
This patch uses generic firmware update options for FCoE based
adapters as well to reduce code duplication.
Link: https://lore.kernel.org/r/20200226224022.24518-4-hmadhani@marvell.com
Signed-off-by: Himanshu Madhani <hmadhani@marvell.com >
Signed-off-by: Giridhar Malavali <gmalavali@marvell.com >
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com >
[ commit 37efd51f75f30b48c2d19ee94eeccfd4325c3cb4 upstream ]
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8817 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2020-03-07 21:31:12 +00:00
Bart Van Assche
ab031229ce
qla2x00t-32gbit: Avoid setting firmware options twice in 24xx_update_fw_options.
...
This patch moves ql2xrdpenable check earlier to avoids setting
fw_option once again before exiting qla24xx_update_fw_options.
Link: https://lore.kernel.org/r/20200226224022.24518-3-hmadhani@marvell.com
Signed-off-by: Himanshu Madhani <hmadhani@marvell.com >
Signed-off-by: Giridhar Malavali <gmalavali@marvell.com >
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com >
[ commit 9ef4847a80d317e4033c2ecf0e73e54c5fd4771d upstream ]
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8816 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2020-03-07 21:30:37 +00:00
Bart Van Assche
4000dcb0fa
qla2x00t-32gbit: Add 16.0GT for PCI String
...
This patch adds 16.0GT for readable display string.
Link: https://lore.kernel.org/r/20200226224022.24518-2-hmadhani@marvell.com
Signed-off-by: Himanshu Madhani <hmadhani@marvell.com >
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com >
[ commit efd39a2ad6ff6d1187caac8491d710f41b6a93ab upstream ]
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8815 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2020-03-07 21:30:03 +00:00
Bart Van Assche
c9e7188d20
qla2x00t-32gbit: Convert MAKE_HANDLE() from a define into an inline function
...
This patch allows sparse to verify the endianness of the arguments passed
to make_handle().
Link: https://lore.kernel.org/r/20200220043441.20504-5-bvanassche@acm.org
Cc: Roman Bolshakov <r.bolshakov@yadro.com >
Cc: Daniel Wagner <dwagner@suse.de >
Cc: Martin Wilck <mwilck@suse.com >
Cc: Quinn Tran <qutran@marvell.com >
Reviewed-by: Daniel Wagner <dwagner@suse.de >
Reviewed-by: Roman Bolshakov <r.bolshakov@yadro.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 c25eb70a10243c1ad24e74375aceb65ab8951e93 upstream ]
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8814 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2020-03-07 21:29:20 +00:00
Bart Van Assche
37b9c87479
qla2x00t-32gbit: Fix sparse warnings triggered by the PCI state checking code
...
This patch fixes the following sparse warnings:
drivers/scsi/qla2xxx/qla_mbx.c:120:21: warning: restricted pci_channel_state_t degrades to integer
drivers/scsi/qla2xxx/qla_mbx.c:120:37: warning: restricted pci_channel_state_t degrades to integer
>From include/linux/pci.h:
enum pci_channel_state {
/* I/O channel is in normal state */
pci_channel_io_normal = (__force pci_channel_state_t) 1,
/* I/O to channel is blocked */
pci_channel_io_frozen = (__force pci_channel_state_t) 2,
/* PCI card is dead */
pci_channel_io_perm_failure = (__force pci_channel_state_t) 3,
};
Link: https://lore.kernel.org/r/20200220043441.20504-4-bvanassche@acm.org
Cc: Roman Bolshakov <r.bolshakov@yadro.com >
Cc: Martin Wilck <mwilck@suse.com >
Cc: Quinn Tran <qutran@marvell.com >
Reviewed-by: Daniel Wagner <dwagner@suse.de >
Reviewed-by: Roman Bolshakov <r.bolshakov@yadro.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 471298cab82d255e358901ea5baff24abe1a53b8 upstream ]
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8813 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2020-03-07 21:28:39 +00:00
Bart Van Assche
69315453ff
qla2x00t-32gbit: Suppress endianness complaints in qla2x00_configure_local_loop()
...
Instead of changing endianness in-place, write the data in CPU endian
format in another buffer and copy that buffer back. This patch does not
change any functionality but silences some sparse endianness warnings.
Link: https://lore.kernel.org/r/20200220043441.20504-3-bvanassche@acm.org
Cc: Roman Bolshakov <r.bolshakov@yadro.com >
Cc: Martin Wilck <mwilck@suse.com >
Cc: Quinn Tran <qutran@marvell.com >
Reviewed-by: Daniel Wagner <dwagner@suse.de >
Reviewed-by: Roman Bolshakov <r.bolshakov@yadro.com >
Signed-off-by: Bart Van Assche <bvanassche@acm.org >
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com >
[ commit 1ee5ac365c2a554b59b0e7445455d93a0577662b upstream ]
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8812 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2020-03-07 21:27:57 +00:00
Bart Van Assche
75581dea86
qla2x00t-32gbit: Simplify the code for aborting SCSI commands
...
Since the SCSI core does not reuse the tag of the SCSI command that is
being aborted by .eh_abort() before .eh_abort() has finished it is not
necessary to check from inside that callback whether or not the SCSI
command has already completed. Instead, rely on the firmware to return an
error code when attempting to abort a command that has already
completed. Additionally, rely on the firmware to return an error code when
attempting to abort an already aborted command.
In qla2x00_abort_srb(), use blk_mq_request_started() instead of
sp->completed and sp->aborted.
Link: https://lore.kernel.org/r/20200220043441.20504-2-bvanassche@acm.org
Cc: Martin Wilck <mwilck@suse.com >
Cc: Quinn Tran <qutran@marvell.com >
Reviewed-by: Daniel Wagner <dwagner@suse.de >
Reviewed-by: Roman Bolshakov <r.bolshakov@yadro.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 >
c81ef0ed4477c637d1f1dd96ecd8e8fbe18b7283
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8811 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2020-03-07 21:27:19 +00:00
Bart Van Assche
0f6172d6ac
qla2x00t-32gbit: Fix sparse warning reported by kbuild bot
...
this patch fixes following sparse warnings
>> drivers/scsi/qla2xxx/qla_tmpl.c:873:32: sparse: sparse: incorrect type in assignment (different base types)
>> drivers/scsi/qla2xxx/qla_tmpl.c:873:32: sparse: expected unsigned int [usertype] capture_timestamp
>> drivers/scsi/qla2xxx/qla_tmpl.c:873:32: sparse: got restricted __le32 [usertype]
drivers/scsi/qla2xxx/qla_tmpl.c:885:29: sparse: sparse: incorrect type in assignment (different base types)
>> drivers/scsi/qla2xxx/qla_tmpl.c:885:29: sparse: expected unsigned int
vim +873 drivers/scsi/qla2xxx/qla_tmpl.c
869
870 static void
871 qla27xx_time_stamp(struct qla27xx_fwdt_template *tmp)
872 {
> 873 tmp->capture_timestamp = cpu_to_le32(jiffies);
874 }
875
876 static void
877 qla27xx_driver_info(struct qla27xx_fwdt_template *tmp)
878 {
879 uint8_t v[] = { 0, 0, 0, 0, 0, 0 };
880
881 WARN_ON_ONCE(sscanf(qla2x00_version_str,
882 "%hhu.%hhu.%hhu.%hhu.%hhu.%hhu",
883 v+0, v+1, v+2, v+3, v+4, v+5) != 6);
884
> 885 tmp->driver_info[0] = cpu_to_le32(
886 v[3] << 24 | v[2] << 16 | v[1] << 8 | v[0]);
887 tmp->driver_info[1] = cpu_to_le32(v[5] << 8 | v[4]);
888 tmp->driver_info[2] = __constant_cpu_to_le32(0x12345678);
889 }
890
Link: https://lore.kernel.org/r/20200227201148.13973-1-hmadhani@marvell.com
Fixes: a31056ddc665 ("scsi: qla2xxx: Use endian macros to assign static fields in fwdump header")
Reported-by: kbuild test robot <lkp@intel.com >
Signed-off-by: Himanshu Madhani <hmadhani@marvell.com >
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com >
[ commit 0a36fd6cef5e3a11a273300e777a26cb26274547 upstream ]
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8810 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2020-03-07 21:26:34 +00:00
Bart Van Assche
f46232802b
qla2x00t-32gbit: Update driver version to 10.01.00.24-k
...
Link: https://lore.kernel.org/r/20200212214436.25532-26-hmadhani@marvell.com
Signed-off-by: Himanshu Madhani <hmadhani@marvell.com >
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com >
[ commit 1939295a8dfa7be1cea478d6d7d283c091b780d4 upstream ]
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8809 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2020-03-07 21:25:31 +00:00
Bart Van Assche
9959382e10
qla2x00t-32gbit: Use QLA_FW_STOPPED macro to propagate flag
...
This patch uses QLA_FW_STOPPED macro so that flag is propogated to all the
QPairs.
Link: https://lore.kernel.org/r/20200212214436.25532-25-hmadhani@marvell.com
Signed-off-by: Himanshu Madhani <hmadhani@marvell.com >
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com >
[ commit 0fc5b7e62322e1aa8384013ee1caff3f87d30207 upstream ]
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8808 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2020-03-07 21:24:47 +00:00
Bart Van Assche
b72c9a33d2
qla2x00t-32gbit: Add fixes for mailbox command
...
This patch fixes:
- qla2x00_issue_iocb_timeout will now return if chip is down
- only check for sp->qpair in abort handling
Link: https://lore.kernel.org/r/20200212214436.25532-24-hmadhani@marvell.com
Signed-off-by: Himanshu Madhani <hmadhani@marvell.com >
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com >
[ commit 345f574dac85276d1471492c6e90c57e3f90a4f3 upstream ]
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8807 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2020-03-07 21:23:58 +00:00
Bart Van Assche
7c96145fa5
qla2x00t-32gbit: Fix control flags for login/logout IOCB
...
This patch fixes control flag options for login/logout IOCB.
Link: https://lore.kernel.org/r/20200212214436.25532-23-hmadhani@marvell.com
Signed-off-by: Himanshu Madhani <hmadhani@marvell.com >
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com >
[ commit 419ae5fe73e50084fa794934fb62fab34f564b7c upstream ]
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8806 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2020-03-07 21:23:24 +00:00
Bart Van Assche
a14a1505f2
qla2x00t-32gbit: Save rscn_gen for new fcport
...
Add missing rscn_gen when creating new fcport.
Link: https://lore.kernel.org/r/20200212214436.25532-22-hmadhani@marvell.com
Signed-off-by: Himanshu Madhani <hmadhani@marvell.com >
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com >
[ commit d26a8982c9bd92ce3596eb4f86e922cdaf6751e5 upstream ]
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8805 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2020-03-07 21:22:51 +00:00
Bart Van Assche
62a6e7be90
qla2x00t-32gbit: Use correct ISP28xx active FW region
...
For ISP28xx, use 28xx call to retrieve active FW region.
Link: https://lore.kernel.org/r/20200212214436.25532-21-hmadhani@marvell.com
Signed-off-by: Himanshu Madhani <hmadhani@marvell.com >
Signed-off-by: Quinn Tran <qutran@marvell.com >
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com >
[ commit 8d4926d13076a89c1f750fe5af4c082d8ea15008 upstream ]
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8804 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2020-03-07 21:22:15 +00:00
Bart Van Assche
be964cdb42
qla2x00t-32gbit: Print portname for logging in qla24xx_logio_entry()
...
Add port name in the messages file to help debugging of Login/Logout IOCBs
Link: https://lore.kernel.org/r/20200212214436.25532-20-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 cbe729a63d5a2c5909c6ae7e54665059496e43b9 upstream ]
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8803 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2020-03-07 21:21:46 +00:00