linux_dsm_epyc7002/drivers/gpu/drm/i915/selftests
Chris Wilson ba02f4c26b drm/i915/selftests: Wait for the dma-fence timeout
When testing that the timeout fired, we need to be sure we have waited
just long enough for the timeout to have occurred and for the softirq
(on another cpu) to have completed. Sleeping for an arbitrary amount is
prone to error, so wait for the timeout instead and complain if it was
too late.

v2: Use wait_event_timeout to provide an upper bound
v3: Fix inverted check for wait_event_timeout timing out
v4: Restore the check that the fences aren't signalled too early, by
inspecting them before the expected timeout.

References: https://bugs.freedesktop.org/show_bug.cgi?id=104670
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180117135713.2324-1-chris@chris-wilson.co.uk
2018-01-17 17:09:59 +00:00
..
huge_gem_object.c drm/i915: introduce page_size members 2017-10-07 10:11:48 +01:00
huge_gem_object.h
huge_pages.c drm/i915: prefer i915_gem_object_has_pages() 2017-12-18 11:53:29 +00:00
i915_gem_coherency.c drm/i915/selftests: Markup __iomem for igt_gem_coherency 2017-11-15 17:12:49 +00:00
i915_gem_context.c drm/i915/selftests: Wake the device before executing requests on the GPU 2017-12-01 10:43:04 +00:00
i915_gem_dmabuf.c
i915_gem_evict.c drm/i915/selftests: Hold rpm wakeref for request + ggtt usage 2017-11-24 09:10:58 +00:00
i915_gem_gtt.c drm/i915/selftests: Tweak igt_ggtt_page to speed it up 2018-01-02 15:27:36 +00:00
i915_gem_object.c drm/i915/selftests: Take rpm wakeref around partial tiling tests 2017-11-07 17:50:34 +00:00
i915_gem_request.c drm/i915: Automatic i915_switch_context for legacy 2017-11-20 15:56:16 +00:00
i915_gem_timeline.c drm/i915/selftests: Always initialise err 2017-11-14 23:50:49 +00:00
i915_live_selftests.h More change sets for 4.16: 2017-12-04 10:56:53 +10:00
i915_mock_selftests.h main drm pull request for v4.15 2017-11-15 20:42:10 -08:00
i915_random.c drm/i915/selftests: Allow random array allocation to fail 2018-01-02 15:30:40 +00:00
i915_random.h
i915_selftest.c
i915_sw_fence.c drm/i915/selftests: Wait for the dma-fence timeout 2018-01-17 17:09:59 +00:00
i915_syncmap.c drm/i915/selftests: Always initialise err 2017-11-14 23:50:49 +00:00
i915_vma.c drm/i915/selftests: Always initialise err 2017-11-14 23:50:49 +00:00
intel_breadcrumbs.c Pass mode to wait_on_atomic_t() action funcs and provide default actions 2017-11-13 15:38:16 +00:00
intel_guc.c drm/i915/guc: Extract doorbell creation from client allocation 2017-12-14 08:06:59 +00:00
intel_hangcheck.c drm/i915/selftests: Fix up igt_reset_engine 2017-12-18 21:54:59 +00:00
intel_uncore.c drm/i915: Acquire PUNIT->PMIC bus for intel_uncore_forcewake_reset() 2017-11-10 13:14:03 +01:00
lib_sw_fence.c drm/i915/selftests: Convert timers to use timer_setup() 2017-11-21 15:46:44 -08:00
lib_sw_fence.h drm/i915/selftests: Wrap a timer into a i915_sw_fence 2017-10-12 21:06:26 +01:00
mock_context.c drm/i915/selftests: Exercise adding requests to a full GGTT 2017-10-12 21:06:26 +01:00
mock_context.h
mock_dmabuf.c
mock_dmabuf.h
mock_drm.c
mock_drm.h
mock_engine.c drm/i915/selftests: Increase size for mock ringbuffer 2017-11-15 17:12:49 +00:00
mock_engine.h
mock_gem_device.c drm/i915/selftests: Free mock_i915->drm.mode_config 2017-12-11 11:24:30 +00:00
mock_gem_device.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
mock_gem_object.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
mock_gtt.c drm/i915: make mappable struct resource centric 2017-12-12 12:30:21 +02:00
mock_gtt.h
mock_request.c
mock_request.h
mock_timeline.c
mock_timeline.h
mock_uncore.c
mock_uncore.h
scatterlist.c drm/i915/selftests: mix huge pages 2017-10-07 10:12:03 +01:00