drm/amd/amdgpu: re-factor debugfs wave reader
authorTom St Denis <tom.stdenis@amd.com>
Fri, 14 Oct 2016 13:49:09 +0000 (09:49 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 25 Oct 2016 18:38:48 +0000 (14:38 -0400)
commit472259f02657ef99cba2a64832ccadad8e3baabe
tree30f1adb7e02eb7a779bacb56072f220106b251ee
parent394fdde256adb5bdbe5d410cf7bdc3d7cbb889f8
drm/amd/amdgpu: re-factor debugfs wave reader

Move IP version specific code into a callback.

Also add support for gfx7 devices.

Signed-off-by: Tom St Denis <tom.stdenis@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu.h
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c
drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c