diff options
author | Andrey Grodzovsky <andrey.grodzovsky@amd.com> | 2019-11-04 23:03:27 +0300 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2019-11-08 02:08:07 +0300 |
commit | 7c55adb0a9a004a1857bec1f1cd28a5bce95e40a (patch) | |
tree | 0ca7b7ad2c9fff7bc69414fd6932a1da5d2fee11 /drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c | |
parent | 83a7772ba223333755d8afd90ab8b2ea3f57d4e6 (diff) | |
download | linux-7c55adb0a9a004a1857bec1f1cd28a5bce95e40a.tar.xz |
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 <andrey.grodzovsky@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c | 5 |
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); - } } } |