From: Alex Deucher Date: Wed, 11 Dec 2019 16:39:35 +0000 (-0500) Subject: Revert "drm/amdgpu: dont schedule jobs while in reset" X-Git-Tag: baikal/mips/sdk5.9~14712^2^2~3 X-Git-Url: https://git.baikalelectronics.ru/sdk/?a=commitdiff_plain;h=42ea91e8311b00daba4f525aa9851848ffdc663e;p=kernel.git Revert "drm/amdgpu: dont schedule jobs while in reset" This reverts commit e4654059c2144b215b05f2b551ff11b83d2d0467. This was fixed properly for 5.5, but came back via 5.4 merge into drm-next, so revert it again. Reviewed-by: Christian König Signed-off-by: Alex Deucher --- diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c index 2cdaf3b2a7217..6614d8a6f4c8d 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c @@ -604,11 +604,8 @@ void amdgpu_ctx_mgr_entity_fini(struct amdgpu_ctx_mgr *mgr) continue; } - for (i = 0; i < num_entities; i++) { - mutex_lock(&ctx->adev->lock_reset); + for (i = 0; i < num_entities; i++) drm_sched_entity_fini(&ctx->entities[0][i].entity); - mutex_unlock(&ctx->adev->lock_reset); - } } }