drm/amdgpu: Refactor amdgpu_cs_ib_vm_chunk and amdgpu_cs_ib_fill.
authorAndrey Grodzovsky <andrey.grodzovsky@amd.com>
Tue, 10 Oct 2017 20:50:16 +0000 (16:50 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 19 Oct 2017 19:26:58 +0000 (15:26 -0400)
commitad864d243826cedc53404a1c0db7d1e38ddceb84
tree1a77151d8588c460b26fb2d91d1dec0066d9d37e
parentf15507a1ac0dcdbda0c6c4fe4dc168bfe0034535
drm/amdgpu: Refactor amdgpu_cs_ib_vm_chunk and amdgpu_cs_ib_fill.

This enables old fence waiting before reservation lock is aquired
which in turn is part of a bigger solution to deadlock happening
when gpu reset with VRAM recovery accures during intensive rendering.

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>
drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c