drm/amdgpu: revert "fix deadlock of reservation between cs and gpu reset v2"
authorChristian König <christian.koenig@amd.com>
Tue, 5 Sep 2017 13:10:50 +0000 (15:10 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 13 Sep 2017 02:16:31 +0000 (22:16 -0400)
commit3d138c14c4174a2c80874a96935c87eee7c82ecf
tree4ee8b15492e57641a66a113f8f6cd4a494cb63e6
parent403df1f66cc0457221f3be5c210f128ab87de547
drm/amdgpu: revert "fix deadlock of reservation between cs and gpu reset v2"

This reverts commit 10e709cb296c98424c03408d23e3addeddcd4088.

The patch doesn't work at all:
1. The CS can still be blocked because of amdgpu_ctx_add_fence().
2. The order of submission isn't correct any more.
3. We could end up using freed up memory because we now drop the
   ctx reference to early.

This needs to be fixed cleanly by doing the context handling after the BO
handling, but this is a larger task just avoid the obvious crashes for now.

Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Monk Liu monk.liu@amd.com
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c