]> 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)
commit067076486a8b73fce1cf158aadb1aad87e671e3b
tree8b61b0458e7ebf3be1fd9ae8a9bf96011aeddec7
parenta147a75a5a9e32b4f778ecc9491fdc6ca69d0cfd
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