-
Notifications
You must be signed in to change notification settings - Fork 5.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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/[email protected] Reviewed-by: Daejun Park <[email protected]> Acked-by: Bean Huo <[email protected]> Signed-off-by: Can Guo <[email protected]> Signed-off-by: Martin K. Petersen <[email protected]>
- Loading branch information
1 parent
39107e8
commit 1d8613a
Showing
4 changed files
with
446 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -995,6 +995,132 @@ Description: This entry shows the target state of an UFS UIC link | |
|
||
The file is read only. | ||
|
||
What: /sys/bus/platform/drivers/ufshcd/*/monitor/monitor_enable | ||
Date: January 2021 | ||
Contact: Can Guo <[email protected]> | ||
Description: This file shows the status of performance monitor enablement | ||
and it can be used to start/stop the monitor. When the monitor | ||
is stopped, the performance data collected is also cleared. | ||
|
||
What: /sys/bus/platform/drivers/ufshcd/*/monitor/monitor_chunk_size | ||
Date: January 2021 | ||
Contact: Can Guo <[email protected]> | ||
Description: This file tells the monitor to focus on requests transferring | ||
data of specific chunk size (in Bytes). 0 means any chunk size. | ||
It can only be changed when monitor is disabled. | ||
|
||
What: /sys/bus/platform/drivers/ufshcd/*/monitor/read_total_sectors | ||
Date: January 2021 | ||
Contact: Can Guo <[email protected]> | ||
Description: This file shows how many sectors (in 512 Bytes) have been | ||
sent from device to host after monitor gets started. | ||
|
||
The file is read only. | ||
|
||
What: /sys/bus/platform/drivers/ufshcd/*/monitor/read_total_busy | ||
Date: January 2021 | ||
Contact: Can Guo <[email protected]> | ||
Description: This file shows how long (in micro seconds) has been spent | ||
sending data from device to host after monitor gets started. | ||
|
||
The file is read only. | ||
|
||
What: /sys/bus/platform/drivers/ufshcd/*/monitor/read_nr_requests | ||
Date: January 2021 | ||
Contact: Can Guo <[email protected]> | ||
Description: This file shows how many read requests have been sent after | ||
monitor gets started. | ||
|
||
The file is read only. | ||
|
||
What: /sys/bus/platform/drivers/ufshcd/*/monitor/read_req_latency_max | ||
Date: January 2021 | ||
Contact: Can Guo <[email protected]> | ||
Description: This file shows the maximum latency (in micro seconds) of | ||
read requests after monitor gets started. | ||
|
||
The file is read only. | ||
|
||
What: /sys/bus/platform/drivers/ufshcd/*/monitor/read_req_latency_min | ||
Date: January 2021 | ||
Contact: Can Guo <[email protected]> | ||
Description: This file shows the minimum latency (in micro seconds) of | ||
read requests after monitor gets started. | ||
|
||
The file is read only. | ||
|
||
What: /sys/bus/platform/drivers/ufshcd/*/monitor/read_req_latency_avg | ||
Date: January 2021 | ||
Contact: Can Guo <[email protected]> | ||
Description: This file shows the average latency (in micro seconds) of | ||
read requests after monitor gets started. | ||
|
||
The file is read only. | ||
|
||
What: /sys/bus/platform/drivers/ufshcd/*/monitor/read_req_latency_sum | ||
Date: January 2021 | ||
Contact: Can Guo <[email protected]> | ||
Description: This file shows the total latency (in micro seconds) of | ||
read requests sent after monitor gets started. | ||
|
||
The file is read only. | ||
|
||
What: /sys/bus/platform/drivers/ufshcd/*/monitor/write_total_sectors | ||
Date: January 2021 | ||
Contact: Can Guo <[email protected]> | ||
Description: This file shows how many sectors (in 512 Bytes) have been sent | ||
from host to device after monitor gets started. | ||
|
||
The file is read only. | ||
|
||
What: /sys/bus/platform/drivers/ufshcd/*/monitor/write_total_busy | ||
Date: January 2021 | ||
Contact: Can Guo <[email protected]> | ||
Description: This file shows how long (in micro seconds) has been spent | ||
sending data from host to device after monitor gets started. | ||
|
||
The file is read only. | ||
|
||
What: /sys/bus/platform/drivers/ufshcd/*/monitor/write_nr_requests | ||
Date: January 2021 | ||
Contact: Can Guo <[email protected]> | ||
Description: This file shows how many write requests have been sent after | ||
monitor gets started. | ||
|
||
The file is read only. | ||
|
||
What: /sys/bus/platform/drivers/ufshcd/*/monitor/write_req_latency_max | ||
Date: January 2021 | ||
Contact: Can Guo <[email protected]> | ||
Description: This file shows the maximum latency (in micro seconds) of write | ||
requests after monitor gets started. | ||
|
||
The file is read only. | ||
|
||
What: /sys/bus/platform/drivers/ufshcd/*/monitor/write_req_latency_min | ||
Date: January 2021 | ||
Contact: Can Guo <[email protected]> | ||
Description: This file shows the minimum latency (in micro seconds) of write | ||
requests after monitor gets started. | ||
|
||
The file is read only. | ||
|
||
What: /sys/bus/platform/drivers/ufshcd/*/monitor/write_req_latency_avg | ||
Date: January 2021 | ||
Contact: Can Guo <[email protected]> | ||
Description: This file shows the average latency (in micro seconds) of write | ||
requests after monitor gets started. | ||
|
||
The file is read only. | ||
|
||
What: /sys/bus/platform/drivers/ufshcd/*/monitor/write_req_latency_sum | ||
Date: January 2021 | ||
Contact: Can Guo <[email protected]> | ||
Description: This file shows the total latency (in micro seconds) of write | ||
requests after monitor gets started. | ||
|
||
The file is read only. | ||
|
||
What: /sys/bus/platform/drivers/ufshcd/*/device_descriptor/wb_presv_us_en | ||
Date: June 2020 | ||
Contact: Asutosh Das <[email protected]> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.