]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitfa6be225e7e8f36356d84cb223b3d4eb75e3b4de
tree61903e2fc7a93c70bdbd895cf12fda708cba7b31
parentd40a7fb2ed4ed720d9d4a66899b5ad5c407695c9
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