aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrey Grodzovsky <[email protected]>2019-11-04 15:03:27 -0500
committerAlex Deucher <[email protected]>2019-11-07 18:08:07 -0500
commit7c55adb0a9a004a1857bec1f1cd28a5bce95e40a (patch)
tree0ca7b7ad2c9fff7bc69414fd6932a1da5d2fee11
parent83a7772ba223333755d8afd90ab8b2ea3f57d4e6 (diff)
Revert "drm/amdgpu: dont schedule jobs while in reset"
This reverts commit 89b3d86403f1025f6b430d8f9ffc590efbadce62. We will do a proper fix in next patch. Signed-off-by: Andrey Grodzovsky <[email protected]> Reviewed-by: Christian König <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c
index 2cdaf3b2a721..6614d8a6f4c8 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);
- }
}
}