]> git.karo-electronics.de Git - linux-beck.git/commit
drm/amd/amdgpu: Remove double lock from gfx v6
authorTom St Denis <tom.stdenis@amd.com>
Wed, 7 Sep 2016 12:03:28 +0000 (08:03 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 14 Sep 2016 13:43:41 +0000 (09:43 -0400)
commitf166d9f297684faa153dabc2b8887f61bbe7858c
tree51fd18782131307966af3de8330b781e2b49e9d8
parent075719c3cb79f309fc775a7f8f49d91a0351ceb3
drm/amd/amdgpu: Remove double lock from gfx v6

The function gfx_v6_0_get_cu_info() was taking the
grbm_idx_mutex which was then taken by a dependent
function gfx_v6_0_get_cu_active_bitmap().

This patch removes the select from the parent function
to avoid the double lock.

Signed-off-by: Tom St Denis <tom.stdenis@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c