Kent Russell b45e18acd3 drm/amdgpu: Add sysfs file for PCIe usage v5
Add a sysfs file that reports the number of bytes transmitted and
received in the last second. This can be used to approximate the PCIe
bandwidth usage over the last second.

v2: Clarify use of mps as estimation of bandwidth
v3: Don't make the file on APUs
v4: Early exit for APUs in the read function, change output to
    display "packets-received packets-sent mps"
v5: fix missing header for si (Alex)

Signed-off-by: Kent Russell <kent.russell@amd.com>
Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2019-01-14 15:04:54 -05:00
..
2018-10-24 20:04:03 -05:00
2019-01-05 18:25:19 -08:00
2019-01-05 18:25:19 -08:00
2018-11-29 10:34:03 +10:00
2017-10-20 13:28:44 -04:00
2019-01-14 15:04:47 -05:00
2018-11-05 15:49:37 -05:00
2019-01-14 15:04:47 -05:00
2018-11-29 10:34:03 +10:00
2018-08-28 11:22:42 -05:00
2016-08-31 15:21:09 -04:00
2018-11-05 15:49:37 -05:00
2019-01-14 15:04:30 -05:00
2019-01-14 15:04:30 -05:00
2019-01-14 15:04:47 -05:00
2019-01-14 15:04:47 -05:00
2018-12-25 11:48:26 -08:00