]> 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)
commit1d5df0d565f52ebbf9981793beb2c84a867d3b81
tree61903e2fc7a93c70bdbd895cf12fda708cba7b31
parenta32681281ef78d0ab5b279a025b4cca361e21cc6
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