OSDN Git Service

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)
commit2aa472c8279a0eea4649283fd1266cb629b8a5d3
tree8b61b0458e7ebf3be1fd9ae8a9bf96011aeddec7
parentbeacbd16158a583dc22104d59ea9ac0a808be73f
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