scsi: ufs: core: Introduce HBA performance monitor sysfs nodes
authorCan Guo <cang@codeaurora.org>
Thu, 22 Apr 2021 02:28:39 +0000 (19:28 -0700)
committerMartin K. Petersen <martin.petersen@oracle.com>
Sat, 15 May 2021 01:52:09 +0000 (21:52 -0400)
commit1d8613a23f3c3b8f0101e453ff150e05a0d1cd4f
tree4a5e94cfd1041293d75363ba21dc8bb908d1d354
parent39107e8577ad177db4585d99f1fcc5a29a754ee2
scsi: ufs: core: Introduce HBA performance monitor sysfs nodes

Add a new sysfs group which has nodes to monitor data/request transfer
performance. This sysfs group has nodes showing total sectors/requests
transferred, total busy time spent and max/min/avg/sum latencies. This
group can be enhanced later to show more UFS driver layer performance
statistics data during runtime.

Link: https://lore.kernel.org/r/1619058521-35307-2-git-send-email-cang@codeaurora.org
Reviewed-by: Daejun Park <daejun7.park@samsung.com>
Acked-by: Bean Huo <beanhuo@micron.com>
Signed-off-by: Can Guo <cang@codeaurora.org>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Documentation/ABI/testing/sysfs-driver-ufs
drivers/scsi/ufs/ufs-sysfs.c
drivers/scsi/ufs/ufshcd.c
drivers/scsi/ufs/ufshcd.h