drm/amdgpu: new implement for fence_wait_any (v2)
authormonk.liu <monk.liu@amd.com>
Thu, 30 Jul 2015 07:19:05 +0000 (15:19 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 17 Aug 2015 20:50:47 +0000 (16:50 -0400)
commit332dfe907bef6f299f5844f947c4e141eebb8091
tree9ff30976b2294dc4b49e4bc0b83f75a29b23dd8b
parent2e536084f24f99f0a2cc0b6ce38ad8298ea58b22
drm/amdgpu: new implement for fence_wait_any (v2)

origninal method will sleep/schedule at the granurarity of HZ/2 and
based on seq signal method, the new implement is based on kernel fance
interface, no unnecessary schedule at all

v2: replace logic of original amdgpu_fence_wait_any

Signed-off-by: monk.liu <monk.liu@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu.h
drivers/gpu/drm/amd/amdgpu/amdgpu_fence.c
drivers/gpu/drm/amd/amdgpu/amdgpu_sa.c