drm/amdgpu: Add support for SRBM selection v3
authorAndrey Grodzovsky <andrey.grodzovsky@amd.com>
Thu, 29 Mar 2018 13:09:39 +0000 (09:09 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 3 Apr 2018 18:08:44 +0000 (13:08 -0500)
commitf7a9ee81a88b83915e7c15895c507abede44b0c5
tree61903e2fc7a93c70bdbd895cf12fda708cba7b31
parent073997ccd9dd8eb8015f5371ff0ea85a48814bb4
drm/amdgpu: Add support for SRBM selection v3

Also remove code duplication in write and read regs functions.
This also fixes potential missing unlock in amdgpu_debugfs_regs_write
in case get_user would fail.

v2: Add SRBM mutex locking.
v3: Fix TO counter and fix comment location.

Signed-off-by: Andrey Grodzovsky <andrey.grodzovsky@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_debugfs.c
drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c
drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c
drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c
drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c