- 13 4月, 2021 1 次提交
-
-
由 Martin K. Petersen 提交于
Resolve a couple of conflicts between the 5.12 fixes branch and the 5.13 staging tree (iSCSI target and UFS). Signed-off-by: NMartin K. Petersen <martin.petersen@oracle.com>
-
- 06 4月, 2021 39 次提交
-
-
由 Luo Jiaxing 提交于
checkpatch reported several whitespace errors. Fix them all. Link: https://lore.kernel.org/r/1616675396-6108-3-git-send-email-luojiaxing@huawei.comSigned-off-by: NLuo Jiaxing <luojiaxing@huawei.com> Signed-off-by: NMartin K. Petersen <martin.petersen@oracle.com>
-
由 Luo Jiaxing 提交于
checkpatch reported an error in sas_to_ata_err(). switch and case statements are incorrectly indented. Link: https://lore.kernel.org/r/1616675396-6108-2-git-send-email-luojiaxing@huawei.comSigned-off-by: NLuo Jiaxing <luojiaxing@huawei.com> Signed-off-by: NMartin K. Petersen <martin.petersen@oracle.com>
-
由 Tian Tao 提交于
Remove unnecessary include of linux/version.h. Link: https://lore.kernel.org/r/1617283618-19346-1-git-send-email-tiantao6@hisilicon.comSigned-off-by: NTian Tao <tiantao6@hisilicon.com> Signed-off-by: NZhiqi Song <songzhiqi1@huawei.com> Signed-off-by: NMartin K. Petersen <martin.petersen@oracle.com>
-
由 Wan Jiabing 提交于
struct bfa_fcs_s is declared twice. First is declared at line 50, remove the duplicate. struct bfa_fcs_fabric_s is defined at line 175, remove unnecessary declaration. Link: https://lore.kernel.org/r/20210401063535.992487-1-wanjiabing@vivo.comSigned-off-by: NWan Jiabing <wanjiabing@vivo.com> Signed-off-by: NMartin K. Petersen <martin.petersen@oracle.com>
-
由 Gustavo A. R. Silva 提交于
Fix the following out-of-bounds warnings by enclosing some structure members into new structure objects upiu_req and upiu_rsp: include/linux/fortify-string.h:20:29: warning: '__builtin_memcpy' offset [29, 48] from the object at 'treq' is out of the bounds of referenced subobject 'req_header' with type 'struct utp_upiu_header' at offset 16 [-Warray-bounds] include/linux/fortify-string.h:20:29: warning: '__builtin_memcpy' offset [61, 80] from the object at 'treq' is out of the bounds of referenced subobject 'rsp_header' with type 'struct utp_upiu_header' at offset 48 [-Warray-bounds] arch/m68k/include/asm/string.h:72:25: warning: '__builtin_memcpy' offset [29, 48] from the object at 'treq' is out of the bounds of referenced subobject 'req_header' with type 'struct utp_upiu_header' at offset 16 [-Warray-bounds] arch/m68k/include/asm/string.h:72:25: warning: '__builtin_memcpy' offset [61, 80] from the object at 'treq' is out of the bounds of referenced subobject 'rsp_header' with type 'struct utp_upiu_header' at offset 48 [-Warray-bounds] Refactor the code by making it more structured. The problem is that the original code is trying to copy data into a bunch of struct members adjacent to each other in a single call to memcpy(). Now that a new struct _upiu_req_ enclosing all those adjacent members is introduced, memcpy() doesn't overrun the length of &treq.req_header, because the address of the new struct object _upiu_req_ is used as the destination, instead. The same problem is present when memcpy() overruns the length of the source &treq.rsp_header; in this case the address of the new struct object _upiu_rsp_ is used, instead. Also, this helps with the ongoing efforts to enable -Warray-bounds and avoid confusing the compiler. Link: https://github.com/KSPP/linux/issues/109 Link: https://lore.kernel.org/lkml/60640558.lsAxiK6otPwTo9rv%25lkp@intel.com/ Link: https://lore.kernel.org/r/20210331224338.GA347171@embeddedorReported-by: Nkernel test robot <lkp@intel.com> Reviewed-by: NAvri Altman <avri.altman@wdc.com> Signed-off-by: NGustavo A. R. Silva <gustavoars@kernel.org> Signed-off-by: NMartin K. Petersen <martin.petersen@oracle.com> Build-tested-by: Nkernel test robot <lkp@intel.com>
-
由 Yang Yingliang 提交于
The spinlock and list head of fnic_list are initialized statically. It is unnecessary to initialize them. Link: https://lore.kernel.org/r/20210330125911.1050879-1-yangyingliang@huawei.comReported-by: NHulk Robot <hulkci@huawei.com> Signed-off-by: NYang Yingliang <yangyingliang@huawei.com> Signed-off-by: NMartin K. Petersen <martin.petersen@oracle.com>
-
由 zhouchuangao 提交于
BUG_ON() uses unlikely in if() which can be optimized at compile time. Link: https://lore.kernel.org/r/1617108361-6870-1-git-send-email-zhouchuangao@vivo.comSigned-off-by: Nzhouchuangao <zhouchuangao@vivo.com> Signed-off-by: NMartin K. Petersen <martin.petersen@oracle.com>
-
由 Sreekanth Reddy 提交于
While diag reset is in progress there is short duration where all access to controller's PCI config space from the host needs to be blocked. This is due to a hardware limitation of the IOC controllers. Block all access to controller's config space from userland applications by calling pci_cfg_access_lock() while diag reset is in progress and unlocking it again after the controller comes back to ready state. Link: https://lore.kernel.org/r/20210330105137.20728-1-sreekanth.reddy@broadcom.com Cc: stable@vger.kernel.org #v5.4.108+ Signed-off-by: NSreekanth Reddy <sreekanth.reddy@broadcom.com> Signed-off-by: NMartin K. Petersen <martin.petersen@oracle.com>
-
由 Sreekanth Reddy 提交于
Covert ActiveCablePowerRequirement's value to target CPU endian before displaying it. Link: https://lore.kernel.org/r/20210330105106.20569-1-sreekanth.reddy@broadcom.comSigned-off-by: NSreekanth Reddy <sreekanth.reddy@broadcom.com> Signed-off-by: NMartin K. Petersen <martin.petersen@oracle.com>
-
由 Sreekanth Reddy 提交于
Whenever the driver is adding a vSES to virtual-phys list it is reinitializing the list head. Hence those vSES devices which were added previously are lost. Stop reinitializing the list every time a new vSES device is added. Link: https://lore.kernel.org/r/20210330105004.20413-1-sreekanth.reddy@broadcom.com Cc: stable@vger.kernel.org #v5.11.10+ Signed-off-by: NSreekanth Reddy <sreekanth.reddy@broadcom.com> Signed-off-by: NMartin K. Petersen <martin.petersen@oracle.com>
-
由 Konstantin Shelekhin 提交于
Create the device for the virtual LUN 0 using the DUMMY flag. This change makes it possible to remove some special-casing in the INQUIRY code. Link: https://lore.kernel.org/r/20210322200938.53300-3-k.shelekhin@yadro.comReviewed-by: NRoman Bolshakov <r.bolshakov@yadro.com> Reviewed-by: NMike Christie <michael.christie@oracle.com> Signed-off-by: NKonstantin Shelekhin <k.shelekhin@yadro.com> Signed-off-by: NMartin K. Petersen <martin.petersen@oracle.com>
-
由 Konstantin Shelekhin 提交于
This commit adds the DUMMY flag to the rd_mcp backend that forces a logical unit to report itself as not connected device of an unknown type. Essentially this allows users to create devices identical to the device for the virtual LUN 0, making it possible to explicitly create a LUN 0 device and configure its WWNs (e.g. vendor or product name). Link: https://lore.kernel.org/r/20210322200938.53300-2-k.shelekhin@yadro.comReviewed-by: NRoman Bolshakov <r.bolshakov@yadro.com> Reviewed-by: NMike Christie <michael.christie@oracle.com> Signed-off-by: NKonstantin Shelekhin <k.shelekhin@yadro.com> Signed-off-by: NMartin K. Petersen <martin.petersen@oracle.com>
-
由 Ewan D. Milne 提交于
Some arrays return ILLEGAL_REQUEST with ASC 00h if they don't support the RTPG extended header so remove the check for INVALID FIELD IN CDB. Link: https://lore.kernel.org/r/20210331201154.20348-1-emilne@redhat.comReviewed-by: NHannes Reinecke <hare@suse.de> Signed-off-by: NEwan D. Milne <emilne@redhat.com> Signed-off-by: NMartin K. Petersen <martin.petersen@oracle.com>
-
由 John Pittman 提交于
Due to the frequency that alua_rtpg() is called, the path group info print within can print the same info multiple times in the logs, subsequent prints adding no new information or value. To reproduce: # modprobe scsi_debug vpd_use_hostno=0 # systemctl start multipathd.service To fix, check stored values, only printing at alua attach/activate and if any of the values change. Link: https://lore.kernel.org/r/20210331181656.5046-1-jpittman@redhat.comReviewed-by: NDavid Jeffery <djeffery@redhat.com> Reviewed-by: NLaurence Oberman <loberman@redhat.com> Signed-off-by: NJohn Pittman <jpittman@redhat.com> Signed-off-by: NMartin K. Petersen <martin.petersen@oracle.com>
-
由 Martin Wilck 提交于
rport_dev_loss_timedout() sets the rport state to SRP_PORT_LOST and the SCSI target state to SDEV_TRANSPORT_OFFLINE. If this races with srp_reconnect_work(), a warning is printed: Mar 27 18:48:07 ictm1604s01h4 kernel: dev_loss_tmo expired for SRP port-18:1 / host18. Mar 27 18:48:07 ictm1604s01h4 kernel: ------------[ cut here ]------------ Mar 27 18:48:07 ictm1604s01h4 kernel: scsi_internal_device_block(18:0:0:100) failed: ret = -22 Mar 27 18:48:07 ictm1604s01h4 kernel: Call Trace: Mar 27 18:48:07 ictm1604s01h4 kernel: ? scsi_target_unblock+0x50/0x50 [scsi_mod] Mar 27 18:48:07 ictm1604s01h4 kernel: starget_for_each_device+0x80/0xb0 [scsi_mod] Mar 27 18:48:07 ictm1604s01h4 kernel: target_block+0x24/0x30 [scsi_mod] Mar 27 18:48:07 ictm1604s01h4 kernel: device_for_each_child+0x57/0x90 Mar 27 18:48:07 ictm1604s01h4 kernel: srp_reconnect_rport+0xe4/0x230 [scsi_transport_srp] Mar 27 18:48:07 ictm1604s01h4 kernel: srp_reconnect_work+0x40/0xc0 [scsi_transport_srp] Avoid this by not trying to block targets for rports in SRP_PORT_LOST state. Link: https://lore.kernel.org/r/20210401091105.8046-1-mwilck@suse.comReviewed-by: NBart Van Assche <bvanassche@acm.org> Signed-off-by: NMartin Wilck <mwilck@suse.com> Signed-off-by: NMartin K. Petersen <martin.petersen@oracle.com>
-
由 Roman Bolshakov 提交于
target_sequencer_start event is triggered inside target_cmd_init_cdb(). se_cmd.tag is not initialized with ITT at the moment so the event always prints zero tag. Link: https://lore.kernel.org/r/20210403215415.95077-1-r.bolshakov@yadro.com Cc: stable@vger.kernel.org # 5.10+ Reviewed-by: NMike Christie <michael.christie@oracle.com> Signed-off-by: NRoman Bolshakov <r.bolshakov@yadro.com> Signed-off-by: NMartin K. Petersen <martin.petersen@oracle.com>
-
由 Viswas G 提交于
Inbound and outbound queues were not properly configured and that lead to MPI configuration failure. Fixes: 05c6c029 ("scsi: pm80xx: Increase number of supported queues") Cc: stable@vger.kernel.org # 5.10+ Link: https://lore.kernel.org/r/20210402054212.17834-1-Viswas.G@microchip.com.comReported-and-tested-by: NAsh Izat <ash@ai0.uk> Signed-off-by: NViswas G <Viswas.G@microchip.com> Signed-off-by: NMartin K. Petersen <martin.petersen@oracle.com>
-
由 Don Brace 提交于
Update version. Link: https://lore.kernel.org/r/161549387469.25025.12859568843576080076.stgit@brunhildaReviewed-by: NScott Benesh <scott.benesh@microchip.com> Reviewed-by: NGerry Morong <gerry.morong@microchip.com> Reviewed-by: NMike McGowen <mike.mcgowen@microchip.com> Reviewed-by: NScott Teel <scott.teel@microchip.com> Reviewed-by: NKevin Barnett <kevin.barnett@microchip.com> Reviewed-by: NMartin Wilck <mwilck@suse.com> Signed-off-by: NDon Brace <don.brace@microchip.com> Signed-off-by: NMartin K. Petersen <martin.petersen@oracle.com>
-
由 Kevin Barnett 提交于
Add support for newer hardware. Link: https://lore.kernel.org/r/161549386882.25025.2594251735886014958.stgit@brunhildaReviewed-by: NScott Benesh <scott.benesh@microchip.com> Reviewed-by: NScott Teel <scott.teel@microchip.com> Acked-by: NMartin Wilck <mwilck@suse.com> Signed-off-by: NKevin Barnett <kevin.barnett@microchip.com> Signed-off-by: NDon Brace <don.brace@microchip.com> Signed-off-by: NMartin K. Petersen <martin.petersen@oracle.com>
-
由 Kevin Barnett 提交于
Correct system hangs when resuming from hibernation after first successful hibernation/resume cycle. Rare condition involving OFA. Note: Suspend/resume is not supported on many platforms. It was originally intended for workstations. Link: https://lore.kernel.org/r/161549386295.25025.14555840632114761610.stgit@brunhildaReviewed-by: NScott Benesh <scott.benesh@microchip.com> Reviewed-by: NScott Teel <scott.teel@microchip.com> Signed-off-by: NKevin Barnett <kevin.barnett@microchip.com> Signed-off-by: NDon Brace <don.brace@microchip.com> Signed-off-by: NMartin K. Petersen <martin.petersen@oracle.com>
-
由 Murthy Bhat 提交于
Update enclosure identifier field corresponding to physical devices in lsscsi/sysfs. During device add the SCSI devtype is filled in during slave_configure(). However, when pqi_scsi_update_device() runs (REGNEWD) the firmware returns zero for the SCSI devtype field, and valid devtype is overwritten by zero. Due to this, lsscsi output shows wrong values. Link: https://lore.kernel.org/r/161549385708.25025.17234953506918043750.stgit@brunhildaReviewed-by: NScott Benesh <scott.benesh@microchip.com> Reviewed-by: NMike McGowen <mike.mcgowen@microchip.com> Reviewed-by: NScott Teel <scott.teel@microchip.com> Reviewed-by: NKevin Barnett <kevin.barnett@microchip.com> Signed-off-by: NMurthy Bhat <Murthy.Bhat@microchip.com> Signed-off-by: NDon Brace <don.brace@microchip.com> Signed-off-by: NMartin K. Petersen <martin.petersen@oracle.com>
-
由 Kevin Barnett 提交于
LUN resets can take longer to complete. Adding in more driver logging helps show where the driver is in the reset process. Add a timeout in pqi_device_wait_for_pending_io() to cap how long the driver will wait for outstanding commands. Link: https://lore.kernel.org/r/161549385119.25025.10366493975709358647.stgit@brunhildaReviewed-by: NMahesh Rajashekhara <mahesh.rajashekhara@microchip.com> Reviewed-by: NScott Benesh <scott.benesh@microchip.com> Reviewed-by: NMike McGowen <mike.mcgowen@microchip.com> Reviewed-by: NScott Teel <scott.teel@microchip.com> Signed-off-by: NKevin Barnett <kevin.barnett@microchip.com> Signed-off-by: NDon Brace <don.brace@microchip.com> Signed-off-by: NMartin K. Petersen <martin.petersen@oracle.com>
-
由 Murthy Bhat 提交于
Export valid sas initiator_port_protocols and target_port_protocols to sysfs. Needed for lsscsi to show correct values. Link: https://lore.kernel.org/r/161549384532.25025.1469409935400845385.stgit@brunhildaReviewed-by: NScott Benesh <scott.benesh@microchip.com> Reviewed-by: NMike McGowen <mike.mcgowen@microchip.com> Reviewed-by: NScott Teel <scott.teel@microchip.com> Reviewed-by: NKevin Barnett <kevin.barnett@microchip.com> Reviewed-by: NMartin Wilck <mwilck@suse.com> Signed-off-by: NMurthy Bhat <Murthy.Bhat@microchip.com> Signed-off-by: NDon Brace <don.brace@microchip.com> Signed-off-by: NMartin K. Petersen <martin.petersen@oracle.com>
-
由 Murthy Bhat 提交于
Display topology using PHY numbers. PHY (both local and remote) numbers corresponding to physical drives are read from BMIC_IDENTIFY_PHYSICAL_DEVICE. Link: https://lore.kernel.org/r/161549383947.25025.16977895345376485056.stgit@brunhildaReviewed-by: NScott Benesh <scott.benesh@microchip.com> Reviewed-by: NMike McGowen <mike.mcgowen@microchip.com> Reviewed-by: NScott Teel <scott.teel@microchip.com> Reviewed-by: NKevin Barnett <kevin.barnett@microchip.com> Reviewed-by: NMartin Wilck <mwilck@suse.com> Signed-off-by: NMurthy Bhat <Murthy.Bhat@microchip.com> Signed-off-by: NDon Brace <don.brace@microchip.com> Signed-off-by: NMartin K. Petersen <martin.petersen@oracle.com>
-
由 Kevin Barnett 提交于
The entire Linux kernel has been slowly migrating from snprintf() to scnprintf(), so we are doing our part. This article explains the rationale for this change: https: //lwn.net/Articles/69419/ Link: https://lore.kernel.org/r/161549383357.25025.12363435617789964291.stgit@brunhildaReviewed-by: NScott Benesh <scott.benesh@microchip.com> Reviewed-by: NMike McGowen <mike.mcgowen@microchip.com> Reviewed-by: NScott Teel <scott.teel@microchip.com> Reviewed-by: NMartin Wilck <mwilck@suse.com> Signed-off-by: NKevin Barnett <kevin.barnett@microchip.com> Signed-off-by: NDon Brace <don.brace@microchip.com> Signed-off-by: NMartin K. Petersen <martin.petersen@oracle.com>
-
由 Kevin Barnett 提交于
- Synchronize OFA and controller offline events. Prevent I/O during the above conditions. - Cleanup pqi_device_wait_for_pending_io() by checking the device->scsi_cmds_outstanding instead of walking the device's list of commands. - Stop failing all I/O for all devices. This was causing OS to retry them, delaying OFA. - Clean up cache flush. The controller is checked for offline status in lower level functions. Link: https://lore.kernel.org/r/161549382770.25025.789855864026860170.stgit@brunhildaReviewed-by: NScott Benesh <scott.benesh@microchip.com> Reviewed-by: NMike McGowen <mike.mcgowen@microchip.com> Reviewed-by: NScott Teel <scott.teel@microchip.com> Signed-off-by: NKevin Barnett <kevin.barnett@microchip.com> Signed-off-by: NDon Brace <don.brace@microchip.com> Signed-off-by: NMartin K. Petersen <martin.petersen@oracle.com>
-
由 Kevin Barnett 提交于
Change return type from EINPROGRESS to EBUSY to signal applications to retry a REGNEWD if the driver cannot process the REGNEWD. Events such as OFA, suspend, and shutdown return EINPROGRESS if a scan is currently running. This prevents applications from immediately retrying REGNEWD. Schedule a new REGNEWD if system low on memory. Link: https://lore.kernel.org/r/161549382157.25025.16054784597622125373.stgit@brunhildaReviewed-by: NScott Benesh <scott.benesh@microchip.com> Reviewed-by: NMike McGowen <mike.mcgowen@microchip.com> Reviewed-by: NScott Teel <scott.teel@microchip.com> Signed-off-by: NKevin Barnett <kevin.barnett@microchip.com> Signed-off-by: NDon Brace <don.brace@microchip.com> Signed-off-by: NMartin K. Petersen <martin.petersen@oracle.com>
-
由 Kevin Barnett 提交于
OFA, Online Firmware Activation, allows users to update firmware without a reboot. - Change OFA setup to a worker thread - Delay soft resets - Add OFA event handler to allow FW to initiate OFA - Add in-memory allocation to OFA events - Update OFA buffer size calculations - Add ability to cancel OFA events - Update OFA quiesce/un-quiesce - Prevent Kernel crashes while issuing ioctl during OFA - Returned EBUSY for pass-through IOCTLs throughout all stages of OFA - Add mutex to prevent parallel OFA updates. Link: https://lore.kernel.org/r/161549381563.25025.2647205502550052197.stgit@brunhildaReviewed-by: NScott Benesh <scott.benesh@microchip.com> Reviewed-by: NScott Teel <scott.teel@microchip.com> Signed-off-by: NKevin Barnett <kevin.barnett@microchip.com> Signed-off-by: NDon Brace <don.brace@microchip.com> Signed-off-by: NMartin K. Petersen <martin.petersen@oracle.com>
-
由 Kevin Barnett 提交于
Simplify AIO retry management by removing retry list and list management. Need to retry is already set in the response status. Also remove the bypass worker thread. Accelerated I/O requests bypass the RAID engine and go directly to either an HBA disk or to a physical component of a RAID volume. Link: https://lore.kernel.org/r/161549380976.25025.11776487034357231156.stgit@brunhildaReviewed-by: NScott Benesh <scott.benesh@microchip.com> Reviewed-by: NScott Teel <scott.teel@microchip.com> Signed-off-by: NKevin Barnett <kevin.barnett@microchip.com> Signed-off-by: NDon Brace <don.brace@microchip.com> Signed-off-by: NMartin K. Petersen <martin.petersen@oracle.com>
-
由 Kevin Barnett 提交于
For suspend/resume and shutdown prevent: Controller events, any new I/O requests, controller requests, REGNEWD, and reset operations. Wait for any pending completions from the controller to complete to avoid controller NMI events. Link: https://lore.kernel.org/r/161549380398.25025.12266769502766103580.stgit@brunhildaReviewed-by: NScott Teel <scott.teel@microchip.com> Reviewed-by: NScott Benesh <scott.benesh@microchip.com> Signed-off-by: NKevin Barnett <kevin.barnett@microchip.com> Signed-off-by: NDon Brace <don.brace@microchip.com> Signed-off-by: NMartin K. Petersen <martin.petersen@oracle.com>
-
由 Kevin Barnett 提交于
Remove some flags used to check for device resets already in progress. Allow only 1 reset operation at a time for the host. Link: https://lore.kernel.org/r/161549379810.25025.10194117431886743795.stgit@brunhildaReviewed-by: NScott Benesh <scott.benesh@microchip.com> Reviewed-by: NMike McGowen <mike.mcgowen@microchip.com> Reviewed-by: NScott Teel <scott.teel@microchip.com> Signed-off-by: NKevin Barnett <kevin.barnett@microchip.com> Signed-off-by: NDon Brace <don.brace@microchip.com> Signed-off-by: NMartin K. Petersen <martin.petersen@oracle.com>
-
由 Kevin Barnett 提交于
Cleanup soft reset code for Online Firmware Activation (OFA). OFA allows controller firmware updates without a reboot. OFA updates require an on-line controller reset to activate the updated firmware. There were some missing actions for some of the reset cases. The controller is first set back to sis mode before returning to pqi mode. Check to ensure the controller is in sis mode. Release QRM memory (OFA buffer) on OFA error conditions. Clean up controller state which can cause a kernel panic upon reboot after an unsuccessful OFA. Link: https://lore.kernel.org/r/161549379215.25025.10654441314249183621.stgit@brunhildaReviewed-by: NScott Benesh <scott.benesh@microchip.com> Reviewed-by: NMike McGowen <mike.mcgowen@microchip.com> Reviewed-by: NScott Teel <scott.teel@microchip.com> Signed-off-by: NKevin Barnett <kevin.barnett@microchip.com> Signed-off-by: NDon Brace <don.brace@microchip.com> Signed-off-by: NMartin K. Petersen <martin.petersen@oracle.com>
-
由 Kevin Barnett 提交于
Change the data types for event_id and additional_event_id. Link: https://lore.kernel.org/r/161549378628.25025.14338046567871170916.stgit@brunhildaReviewed-by: NScott Benesh <scott.benesh@microchip.com> Reviewed-by: NMike McGowen <mike.mcgowen@microchip.com> Reviewed-by: NScott Teel <scott.teel@microchip.com> Signed-off-by: NKevin Barnett <kevin.barnett@microchip.com> Signed-off-by: NDon Brace <don.brace@microchip.com> Signed-off-by: NMartin K. Petersen <martin.petersen@oracle.com>
-
由 Kevin Barnett 提交于
WWID has been added to Report Physical LUNs in newer controller firmware. The presence of this field is detected by a feature bit. Add detection of this new feature and store the WWID when set. Link: https://lore.kernel.org/r/161549378041.25025.3869709982357729841.stgit@brunhildaReviewed-by: NScott Benesh <scott.benesh@microchip.com> Reviewed-by: NMike McGowen <mike.mcgowen@microchip.com> Reviewed-by: NScott Teel <scott.teel@microchip.com> Signed-off-by: NKevin Barnett <kevin.barnett@microchip.com> Signed-off-by: NDon Brace <don.brace@microchip.com> Signed-off-by: NMartin K. Petersen <martin.petersen@oracle.com>
-
由 Kevin Barnett 提交于
Remove timeouts for driver-initiated commands. Responses to internal requests can take longer than hard coded timeout values and the driver will still have an outstanding request that may complete in the future with no context. Link: https://lore.kernel.org/r/161549377451.25025.12306492868851801623.stgit@brunhildaReviewed-by: NScott Benesh <scott.benesh@microchip.com> Reviewed-by: NMike McGowen <mike.mcgowen@microchip.com> Reviewed-by: NScott Teel <scott.teel@microchip.com> Signed-off-by: NKevin Barnett <kevin.barnett@microchip.com> Signed-off-by: NDon Brace <don.brace@microchip.com> Signed-off-by: NMartin K. Petersen <martin.petersen@oracle.com>
-
由 Kevin Barnett 提交于
Controller does not support SCSI WRITE SAME for NVMe drives in HBA mode Link: https://lore.kernel.org/r/161549376866.25025.5961694654342018260.stgit@brunhildaReviewed-by: NScott Benesh <scott.benesh@microchip.com> Reviewed-by: NMike McGowen <mike.mcgowen@microchip.com> Reviewed-by: NScott Teel <scott.teel@microchip.com> Reviewed-by: NMartin Wilck <mwilck@suse.com> Signed-off-by: NKevin Barnett <kevin.barnett@microchip.com> Signed-off-by: NDon Brace <don.brace@microchip.com> Signed-off-by: NMartin K. Petersen <martin.petersen@oracle.com>
-
由 Don Brace 提交于
Allow R5/R6 stream detection to be disabled/enabled using sysfs entry enable_stream_detection. Example usage: lsscsi [2:2:0:0] storage Adaptec 3258P-32i /e 0010 ^ | +---- NOTE: here host is host2 find /sys -name \*enable_stream\* /sys/devices/pci0000:36/0000:36:00.0/0000:37:00.0/0000:38:00.0/0000:39:00.0/host2/scsi_host/host2/enable_stream_detection /sys/devices/pci0000:5b/0000:5b:00.0/0000:5c:00.0/host3/scsi_host/host3/enable_stream_detection Current stream detection: cat /sys/devices/pci0000:36/0000:36:00.0/0000:37:00.0/0000:38:00.0/0000:39:00.0/host2/scsi_host/host2/enable_stream_detection 1 Turn off stream detection: echo 0 > /sys/devices/pci0000:36/0000:36:00.0/0000:37:00.0/0000:38:00.0/0000:39:00.0/host2/scsi_host/host2/enable_stream_detection Turn on stream detection: echo 1 > /sys/devices/pci0000:36/0000:36:00.0/0000:37:00.0/0000:38:00.0/0000:39:00.0/host2/scsi_host/host2/enable_stream_detection Link: https://lore.kernel.org/r/161549376281.25025.1132304698441513738.stgit@brunhildaReviewed-by: NScott Benesh <scott.benesh@microchip.com> Reviewed-by: NMike McGowen <mike.mcgowen@microchip.com> Reviewed-by: NScott Teel <scott.teel@microchip.com> Reviewed-by: NKevin Barnett <kevin.barnett@microchip.com> Reviewed-by: NMartin Wilck <mwilck@suse.com> Signed-off-by: NDon Brace <don.brace@microchip.com> Signed-off-by: NMartin K. Petersen <martin.petersen@oracle.com>
-
由 Don Brace 提交于
Enhance performance by adding sequential stream detection for RAID5/RAID6 sequential write requests. Reduce stripe lock contention with full-stripe write operations. There is one common stripe lock for each RAID volume that can be set by either the RAID engine or the AIO engine. The AIO path has I/O request sizes well below the stripe size resulting in many Read-Modify-Write operations. Sending the request to the RAID engine allows for coalescing requests into full stripe operations resulting in reduced Read-Modify-Write operations. Link: https://lore.kernel.org/r/161549375693.25025.2962141451773219796.stgit@brunhildaReviewed-by: NScott Benesh <scott.benesh@microchip.com> Reviewed-by: NMike McGowen <mike.mcgowen@microchip.com> Reviewed-by: NScott Teel <scott.teel@microchip.com> Reviewed-by: NKevin Barnett <kevin.barnett@microchip.com> Signed-off-by: NDon Brace <don.brace@microchip.com> Signed-off-by: NMartin K. Petersen <martin.petersen@oracle.com>
-
由 Kevin Barnett 提交于
Reduce differences between out-of-box driver and kernel.org driver. No functional changes. Link: https://lore.kernel.org/r/161549375094.25025.9268879575316758510.stgit@brunhildaReviewed-by: NScott Benesh <scott.benesh@microchip.com> Reviewed-by: NMike McGowen <mike.mcgowen@microchip.com> Reviewed-by: NScott Teel <scott.teel@microchip.com> Signed-off-by: NKevin Barnett <kevin.barnett@microchip.com> Signed-off-by: NDon Brace <don.brace@microchip.com> Signed-off-by: NMartin K. Petersen <martin.petersen@oracle.com>
-