linux/include/ufs
Akinobu Mita 045da3077b scsi: ufs: core: Make fault injection dynamically configurable per HBA
The UFS driver has two driver-specific fault injection mechanisms
(trigger_eh and timeout). Each fault injection configuration can only be
specified by a module parameter and cannot be reconfigured without
reloading the driver. Also, each configuration is common to all HBAs.

This change adds the following subdirectories for each UFS HBA when
debugfs is enabled:

  /sys/kernel/debug/ufshcd/<HBA>/timeout_inject
  /sys/kernel/debug/ufshcd/<HBA>/trigger_eh_inject

Each fault injection attribute can be dynamically set per HBA by a
corresponding file in these directories.

This is tested with QEMU UFS devices.

Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com>
Link: https://lore.kernel.org/r/20231118124443.1007116-1-akinobu.mita@gmail.com
Reviewed-by: Bart Van Assche <bvanassche@acm.org>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
2023-11-24 19:23:35 -05:00
..
ufs_quirks.h scsi: ufs: core: Remove HPB support 2023-07-23 16:40:39 -04:00
ufs.h scsi: ufs: core: Set the Command Priority (CP) flag for RT requests 2023-09-27 11:12:50 -04:00
ufshcd.h scsi: ufs: core: Make fault injection dynamically configurable per HBA 2023-11-24 19:23:35 -05:00
ufshci.h scsi: ufs: Simplify transfer request header initialization 2023-07-31 15:17:51 -04:00
unipro.h scsi: ufs: ufs-sysfs: Expose UFS power info 2023-11-15 10:23:55 -05:00