- 12 Mar, 2023 8 commits
-
-
Gleb Chesnokov authored
If after an adapter reset the appearance of link is not recovered, the devices are not rediscovered. This is result of a race condition between adapter reset (abort_isp) and the topology scan. During adapter reset, the ABORT_ISP_ACTIVE flag is set. Topology scan usually occurred after adapter reset. In this case, the topology scan came earlier than usual where it ran into problem due to ABORT_ISP_ACTIVE flag was still set. kernel: qla2xxx [0000:13:00.0]-1005:1: Cmd 0x6a aborted with timeout since ISP Abort is pending kernel: qla2xxx [0000:13:00.0]-28a0:1: MBX_GET_PORT_NAME failed, No FL Port. kernel: qla2xxx [0000:13:00.0]-286b:1: qla2x00_configure_loop: exiting normally. local port wwpn 51402ec0123d9a80 id 012300) kernel: qla2xxx [0000:13:00.0]-8017:1: ADAPTER RESET SUCCEEDED nexus=1:0:15. Allow adapter reset to complete before any scan can start. Cc: stable@vger.kernel.org Signed-off-by:
Quinn Tran <qutran@marvell.com> Signed-off-by:
Nilesh Javali <njavali@marvell.com> Reviewed-by:
Himanshu Madhani <himanshu.madhani@oracle.com> Signed-off-by:
Martin K. Petersen <martin.petersen@oracle.com> [ commit 3fbc74feb642 upstream ]
-
Gleb Chesnokov authored
FCF_ASYNC_SENT flag is used in session management. This flag is cleared in task management path by accident. Remove unintended flag clearing. Fixes: 388a49959ee4 ("scsi: qla2xxx: Fix panic from use after free in qla2x00_async_tm_cmd") Cc: stable@vger.kernel.org Signed-off-by:
Quinn Tran <qutran@marvell.com> Signed-off-by:
Nilesh Javali <njavali@marvell.com> Reviewed-by:
Himanshu Madhani <himanshu.madhani@oracle.com> Signed-off-by:
Martin K. Petersen <martin.petersen@oracle.com> [ commit 7e8a936a2d0f upstream ]
-
Gleb Chesnokov authored
If a login failed due to low FW resources, the session can stall and will not be connected. Reset session state to allow relogin logic to redrive the connection. Signed-off-by:
Quinn Tran <qutran@marvell.com> Signed-off-by:
Nilesh Javali <njavali@marvell.com> Reviewed-by:
Himanshu Madhani <himanshu.madhani@oracle.com> Signed-off-by:
Martin K. Petersen <martin.petersen@oracle.com> [ commit 40f5b1b9a4af upstream ]
-
Gleb Chesnokov authored
Add resource checking for management (non-I/O) commands. Fixes: 89c72f4245a8 ("scsi: qla2xxx: Add IOCB resource tracking") Signed-off-by:
Quinn Tran <qutran@marvell.com> Signed-off-by:
Nilesh Javali <njavali@marvell.com> Signed-off-by:
Martin K. Petersen <martin.petersen@oracle.com> [ commit 5f63a163ed2f upstream ]
-
Gleb Chesnokov authored
In large environment, it is possible to experience command timeout and escalation of path recovery. Currently the driver does not track the number of exchanges/commands sent to FW. If there is a delay for commands at the head of the queue, then this will create back pressure for commands at the back of the queue. Check for exchange availability before command submission. Fixes: 89c72f4245a8 ("scsi: qla2xxx: Add IOCB resource tracking") Signed-off-by:
Quinn Tran <qutran@marvell.com> Signed-off-by:
Nilesh Javali <njavali@marvell.com> Reviewed-by:
Himanshu Madhani <himanshu.madhani@oracle.com> Signed-off-by:
Martin K. Petersen <martin.petersen@oracle.com> [ commit 41e5afe51f75 upstream ]
-
Gleb Chesnokov authored
The following message and call trace was seen with debug kernels: DMA-API: qla2xxx 0000:41:00.0: device driver failed to check map error [device address=0x00000002a3ff38d8] [size=1024 bytes] [mapped as single] WARNING: CPU: 0 PID: 2930 at kernel/dma/debug.c:1017 check_unmap+0xf42/0x1990 Call Trace: debug_dma_unmap_page+0xc9/0x100 qla_nvme_ls_unmap+0x141/0x210 [qla2xxx] Remove DMA mapping from the driver altogether, as it is already done by FC layer. This prevents the warning. Fixes: c85ab7d9e27a ("scsi: qla2xxx: Fix missed DMA unmap for NVMe ls requests") Cc: stable@vger.kernel.org Signed-off-by:
Arun Easi <aeasi@marvell.com> Signed-off-by:
Nilesh Javali <njavali@marvell.com> Reviewed-by:
Himanshu Madhani <himanshu.madhani@oracle.com> Signed-off-by:
Martin K. Petersen <martin.petersen@oracle.com> [ commit c75e6aef5039 upstream ]
-
Gleb Chesnokov authored
User experienced symptoms of adapter failure in NPIV environment. NPIV hosts were allowed to trigger chip reset back to back due to NPIV link state being slow to come online. Fix link failure in NPIV environment by removing NPIV host from directly being able to perform chip reset. kernel: qla2xxx [0000:04:00.1]-6009:261: Loop down - aborting ISP. kernel: qla2xxx [0000:04:00.1]-6009:262: Loop down - aborting ISP. kernel: qla2xxx [0000:04:00.1]-6009:281: Loop down - aborting ISP. kernel: qla2xxx [0000:04:00.1]-6009:285: Loop down - aborting ISP Fixes: 0d6e61bc6a4f ("[SCSI] qla2xxx: Correct various NPIV issues.") Cc: stable@vger.kernel.org Signed-off-by:
Quinn Tran <qutran@marvell.com> Signed-off-by:
Nilesh Javali <njavali@marvell.com> Reviewed-by:
Himanshu Madhani <himanshu.madhani@oracle.com> Signed-off-by:
Martin K. Petersen <martin.petersen@oracle.com> [ commit b1ae65c082f7 upstream ]
-
Gleb Chesnokov authored
CT Ping and ELS cmds fail for NVMe targets. Check if port is online before sending ELS instead of sending login. Cc: stable@vger.kernel.org Signed-off-by:
Shreyas Deodhar <sdeodhar@marvell.com> Signed-off-by:
Nilesh Javali <njavali@marvell.com> Reviewed-by:
Himanshu Madhani <himanshu.madhani@oracle.com> Signed-off-by:
Martin K. Petersen <martin.petersen@oracle.com> [ commit 0c227dc22ca1 upstream ]
-
- 09 Mar, 2023 1 commit
-
-
Brian Meagher authored
Add lb_per_pb_exp attribute to allow control of whether READ CAPACITY 16 returns non-zero LOGICAL BLOCKS PER PHYSICAL BLOCK EXPONENT.
-
- 06 Mar, 2023 3 commits
-
-
Gleb Chesnokov authored
Support for the following fc changes in the Linux kernel v6.3: - 64fd2ba977b1 ("scsi: scsi_transport_fc: Add an additional flag to fc_host_fpin_rcv()")
-
Gleb Chesnokov authored
Support for the following scsi core changes in the Linux kernel v6.3: - d0949565811f ("scsi: core: Add struct for args to execution functions")
-
Gleb Chesnokov authored
Support for the following fs changes in the Linux kernel v6.3: - abf08576afe3 ("fs: port vfs_*() helpers to struct mnt_idmap")
-
- 21 Feb, 2023 1 commit
-
-
Gleb Chesnokov authored
-
- 19 Feb, 2023 1 commit
-
-
Gleb Chesnokov authored
See also PR https://github.com/SCST-project/scst/pull/132.
-
- 14 Feb, 2023 1 commit
-
-
Brian Meagher authored
When dlm_new_lockspace is called with a NULL cluster_name the kernel will emit an error message "dlm cluster name '%s' is being used without an application provided cluster name". Therefore, provide a mechanism to set a cluster_name and use it when calling dlm_new_lockspace.
-
- 12 Feb, 2023 1 commit
-
-
Gleb Chesnokov authored
Make the SCST_VERSION_STRING macro revision-independent, because it causes a version string mismatch for SCST-dependent modules where the revision is not exported. Fixes: a86e5c55 ("Makefile, scst: Add revision to SCST version macro") Fixes: https://github.com/SCST-project/scst/issues/130
-
- 30 Jan, 2023 1 commit
-
-
Gleb Chesnokov authored
See also commit 87340a84 ("scst_lib: Fix bio_kmalloc usage to match change in Linux kernel v5.19").
-
- 29 Jan, 2023 1 commit
-
-
Gleb Chesnokov authored
Add SCST revision to SCST_VERSION_STRING macro. This might be useful for issues reporting/investigation.
-
- 28 Jan, 2023 1 commit
-
-
Brian Meagher authored
In kernel commit 066ff571011d ("block: turn bio_kmalloc into a simple kmalloc wrapper"), the order of arguments to bio_kmalloc changed, as did its semantics.
-
- 27 Jan, 2023 1 commit
-
-
Brian Meagher authored
In kernel commit 772c8f6f3bbd ("Merge tag 'for-4.11/linus-merge-signed' * of git://git.kernel.dk/linux-block") both scsi_init_rq and scsi_init_request (later renamed to scsi_mq_init_request in e7008ff5c61a) initialize the scsi_request sense buffer, so we don't need to (nor should) provide our own.
-
- 20 Jan, 2023 3 commits
-
-
Gleb Chesnokov authored
This patch fixes the following Coverity complaint: CID 307352 (#1 of 1): Uninitialized pointer read (UNINIT) uninit_use_in_call: Using uninitialized value arg when calling kfree. Fixes: 7ba5b11f ("scst_disk: Add cluster SCSI sync state mode support to dev_disk")
-
Brian Meagher authored
Extend the cluster mode support that was first introduced in 9d61dc4b to include dev_disk. This will facilitate the situation where the underlying disk is another SCST target. Add the cluster_mode control to the sysfs subtree for the dev_disk to permit entering or exiting cluster mode. In disk_attach issue a INQUIRY (Unit Serial Number VPD) to obtain the serial number of the underlying disk. This is used when entering or exiting cluster mode as the cl_dev_id parameter, which ultimately is used as part of the DLM lockspace.
-
Samy Mahmoudi authored
1. Correct a sentence where 'optimal transfer length' should read 'block size'. 2. Use '4194304' instead of '4 MB' when referring to a value of the parameter.
-
- 13 Jan, 2023 3 commits
-
-
Gleb Chesnokov authored
After a transport error, return "aborted command" sense data rather than "medium error / write error" (which is more appropriate for a problem writing to the disk / tape / physical medium). Signed-off-by:
Tony Battersby <tonyb@cybernetics.com>
-
Gleb Chesnokov authored
When processing ABORT_TASK_SET, qla2xxx_scst passes the wrong LUN to SCST, resulting in errors like: sqatgt(7/0): Received task management cmd: lun=29, type=2, tag=0 sqatgt(7/0) ABORT_TS received. [161]: scst: TM fn ABORT_TASK_SET/1 (mcmd 00000000d42b66dd, initiator c0:50:76:0b:e9:52:00:a2, target 21:00:00:24:ff:82:96:a5) [10400]: scst: ***ERROR***: Corresponding device for LUN 7424 not found (where 29 is the correct LUN and 7424 is bogus) Fix by making LUN parsing for ABORT_TASK_SET the same as all the other TMR cases. Signed-off-by:
Tony Battersby <tonyb@cybernetics.com>
-
Gleb Chesnokov authored
This patch should fix the following github warning: Node.js 12 actions are deprecated. Please update the following actions to use Node.js 16: actions/checkout@v2
-
- 10 Jan, 2023 4 commits
-
-
Gleb Chesnokov authored
-
Gleb Chesnokov authored
git sha1 is a more convenient way to generate a revision than the number of commits. Also, remove svn repository support.
-
Gleb Chesnokov authored
See also commit 95c9bdc0 ("pass through `DEBUG_MODE_LEVEL` to `dpkg` make target").
-
Gleb Chesnokov authored
The latter name reflects better the role of this variable.
-
- 09 Jan, 2023 3 commits
-
-
S.Katyshev authored
It's quite strange but we can't run `make dpkg` with other debug mode level.
-
Gleb Chesnokov authored
While performing CPU hotplug, a crash with the following stack was seen: Call Trace: qla24xx_process_response_queue+0x42a/0x970 [qla2xxx] qla2x00_start_nvme_mq+0x3a2/0x4b0 [qla2xxx] qla_nvme_post_cmd+0x166/0x240 [qla2xxx] nvme_fc_start_fcp_op.part.0+0x119/0x2e0 [nvme_fc] blk_mq_dispatch_rq_list+0x17b/0x610 __blk_mq_sched_dispatch_requests+0xb0/0x140 blk_mq_sched_dispatch_requests+0x30/0x60 __blk_mq_run_hw_queue+0x35/0x90 __blk_mq_delay_run_hw_queue+0x161/0x180 blk_execute_rq+0xbe/0x160 __nvme_submit_sync_cmd+0x16f/0x220 [nvme_core] nvmf_connect_admin_queue+0x11a/0x170 [nvme_fabrics] nvme_fc_create_association.cold+0x50/0x3dc [nvme_fc] nvme_fc_connect_ctrl_work+0x19/0x30 [nvme_fc] process_one_work+0x1e8/0x3c0 On abort timeout, completion was called without checking if the I/O was already completed. Verify that I/O and abort request are indeed outstanding before attempting completion. Fixes: 71c80b75ce8f ("scsi: qla2xxx: Do command completion on abort timeout") Reported-by:
Marco Patalano <mpatalan@redhat.com> Tested-by:
Marco Patalano <mpatalan@redhat.com> Cc: stable@vger.kernel.org Signed-off-by:
Arun Easi <aeasi@marvell.com> Signed-off-by:
Nilesh Javali <njavali@marvell.com> Link: https://lore.kernel.org/r/20221129092634.15347-1-njavali@marvell.com Signed-off-by:
Martin K. Petersen <martin.petersen@oracle.com> [ commit 68ad83188d78 upstream ]
-
Gleb Chesnokov authored
bio_set_op_attrs has been removed, replace it with a direct assignment of the flags to bio->bi_opf. See also commit c34b7ac65087 ("block: remove bio_set_op_attrs") # v6.2.
-
- 05 Jan, 2023 1 commit
-
-
Brian Meagher authored
Fix a regression introduced during d989aa91 ("scst_lib: Port to Linux kernel v5.19") that breaks dev_disk operation. The kernel function blk_execute_rq_nowait will set rq->end_io to the done parameter, so pass in the existing rq->end_io rather than NULL to prevent zeroing it. Fixes: d989aa91 ("scst_lib: Port to Linux kernel v5.19") [ glebchesn: added patch description ]
-
- 28 Dec, 2022 3 commits
-
-
Gleb Chesnokov authored
-
Gleb Chesnokov authored
-
Gleb Chesnokov authored
These changes have been generated by running the following command: $ scripts/update-version 3 8 0 -pre
-
- 27 Dec, 2022 3 commits
-
-
Gleb Chesnokov authored
-
Gleb Chesnokov authored
We moved to GitHub a year ago, so replace the SourceForge URLs with the actual GitHub URLs.
-
Gleb Chesnokov authored
Additionally, change the link to the github tags page into a link to the github releases page.
-