drm/amd/gfx11: move the gfx mutex into the caller
authorAlex Deucher <alexander.deucher@amd.com>
Tue, 20 Aug 2024 14:35:49 +0000 (10:35 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 21 Aug 2024 02:14:14 +0000 (22:14 -0400)
commit88c511dea151b931ba4873119b1b3555aac0ce53
treea96ccb5299df06a28a99974b100157c4928fee7c
parent186fb12e7a7b038c2710ceb2fb74068f1b5d55a4
drm/amd/gfx11: move the gfx mutex into the caller

Otherwise we can fail to drop the software mutex when
we fail to take the hardware mutex.

Fixes: 76acba7b7f12 ("drm/amdgpu/gfx11: add a mutex for the gfx semaphore")
Reported-by: Dan Carpenter <dan.carpenter@linaro.org>
Reviewed-by: Dan Carpenter <dan.carpenter@linaro.org>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c