drm/amdgpu: update df_v3_6 for xgmi perfmons (v2)
authorJonathan Kim <jonathan.kim@amd.com>
Thu, 20 Jun 2019 03:37:59 +0000 (23:37 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 20 Jun 2019 16:35:45 +0000 (11:35 -0500)
commite4cf4bf5b876df83ad42604e21337eb3e7dfa52c
tree33d2bfe864e3a386482c00f57210daa4b019641e
parent496091fa041fe8e8a6b2da745ba4fbcb8caed2dd
drm/amdgpu: update df_v3_6 for xgmi perfmons (v2)

add pmu attribute groups and structures for perf events.
add sysfs to track available df perfmon counters
fix overflow handling in perfmon counter reads.

v2: squash in fix (Alex)

Signed-off-by: Jonathan Kim <Jonathan.Kim@amd.com>
Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu.h
drivers/gpu/drm/amd/amdgpu/df_v3_6.c
drivers/gpu/drm/amd/amdgpu/df_v3_6.h
drivers/gpu/drm/amd/amdgpu/soc15.c