Re: [PATCH] drm/amd/amdgpu: Remove double lock from gfx v6

2016-09-07 Thread StDenis, Tom
d-gfx/2016-September/002042.html Tom From: Christian König Sent: Wednesday, September 7, 2016 08:33 To: Tom St Denis; amd-gfx@lists.freedesktop.org Cc: StDenis, Tom Subject: Re: [PATCH] drm/amd/amdgpu: Remove double lock from gfx v6 Am 07.09.2016 um 14:07 schrie

Re: [PATCH] drm/amd/amdgpu: Remove double lock from gfx v6

2016-09-07 Thread Christian König
Am 07.09.2016 um 14:07 schrieb Tom St Denis: 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 Den

[PATCH] drm/amd/amdgpu: Remove double lock from gfx v6

2016-09-07 Thread Tom St Denis
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 --- drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c