drm/amd/amdgpu: Add debugfs support for reading GPRs (v2)
authorTom St Denis <tom.stdenis@amd.com>
Mon, 5 Dec 2016 16:39:19 +0000 (11:39 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 8 Dec 2016 19:12:17 +0000 (14:12 -0500)
commitc5a60ce81b4962d35a6bbb328fb234d33254cfb7
tree4fdb880c0467c68e9aee75febc93a066928ecd19
parent40ee5888faecf4ea5423dbe94c862d03c3e7e12c
drm/amd/amdgpu: Add debugfs support for reading GPRs (v2)

Implemented for SGPRs for GFX v8 initially.

(v2) cleanup minor whitespace and remove sanity check and
     addressing is in dwords not bytes

Signed-off-by: Tom St Denis <tom.stdenis@amd.com>
Acked-by: Edward O'Callaghan <funfunctor@folklore1984.net>
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_v8_0.c