]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
drm/amdgpu: Move old fence waiting before reservation lock is aquired v2
authorAndrey Grodzovsky <andrey.grodzovsky@amd.com>
Tue, 10 Oct 2017 20:50:17 +0000 (16:50 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 19 Oct 2017 19:26:59 +0000 (15:26 -0400)
commit0ae94444c08a0adf2fab4aab26be0646ee445a19
treed5bc47553183dfe5ec29a23fe3e7d78f1906fc2d
parentad864d243826cedc53404a1c0db7d1e38ddceb84
drm/amdgpu: Move old fence waiting before reservation lock is aquired v2

Helps avoiding deadlock during GPU reset.
Added mutex to amdgpu_ctx to preserve order of fences on a ring.

v2:
Put waiting logic in a function in a seperate function in amdgpu_ctx.c

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