]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/selftests: Test i915_sw_fence/dma_fence interop
authorChris Wilson <chris@chris-wilson.co.uk>
Mon, 15 Jan 2018 20:43:48 +0000 (20:43 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Tue, 16 Jan 2018 10:38:50 +0000 (10:38 +0000)
commitc4bb85e4e1b6ac023128b532c43ccab2b6085768
tree8b61b0458e7ebf3be1fd9ae8a9bf96011aeddec7
parent093f4725374167ddfd70578fb4db4aad7569c076
drm/i915/selftests: Test i915_sw_fence/dma_fence interop

Check that we can successfully wait upon a dma_fence using the
i915_sw_fence, including the optional timeout mechanism.

v2: Account for the rounding up of the timeout to the next second.
Unfortunately, the minimum delay is then 1 second.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180115204348.8480-1-chris@chris-wilson.co.uk
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
drivers/gpu/drm/i915/selftests/i915_sw_fence.c