]> git.baikalelectronics.ru Git - 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)
commit567c4a77ae7cc8556d2c9d724a1a393f40ffec62
treed5bc47553183dfe5ec29a23fe3e7d78f1906fc2d
parent7b18da3feb30bc682d87ca880937a5f5adf87583
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