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
..
2019-01-10 05:58:52 +10:00
2018-12-20 13:25:28 +01:00
2019-01-10 05:58:52 +10:00
2018-11-22 12:54:38 +10:00
2019-01-10 05:58:52 +10:00
2019-01-10 05:58:52 +10:00
2018-12-25 11:48:26 -08:00
2019-01-10 05:58:52 +10:00
2018-11-28 09:31:07 -08:00
2019-01-10 05:58:52 +10:00
2019-01-10 05:58:52 +10:00
2018-12-25 11:48:26 -08:00
2019-01-10 05:58:52 +10:00
2019-01-10 05:58:52 +10:00
2018-12-17 10:51:20 +01:00
2019-01-01 15:55:29 -08:00
2019-01-10 05:58:52 +10:00
2019-01-10 05:58:52 +10:00
2019-01-02 11:37:11 +02:00
2018-11-20 14:56:18 +01:00
2019-01-10 05:58:52 +10:00
2018-12-25 11:48:26 -08:00
2018-11-20 14:56:18 +01:00
2019-01-10 05:58:52 +10:00
2019-01-10 05:58:52 +10:00
2019-01-10 05:58:52 +10:00
2018-10-04 11:03:34 +10:00
2018-11-30 10:57:18 +01:00