diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2020-10-11 19:41:01 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2020-10-11 19:44:12 +0100 |
commit | f78ce760920efb5015725c749f411c5724114bda (patch) | |
tree | 950c7249f54d698961d2240a9a794280617a7f78 /tests/i915/gem_exec_capture.c | |
parent | 188da85750b4157f409d9bffbc7b5a11f7752471 (diff) |
i915/gem_exec_capture: Check for preempt-reset for rescheduling capture
The async capture is implemented as a side-effect of preempt-reset,
restricting it's availablity to the more recent machines. In theory it
can be made to work with gen8, we just need to keep on breaking up the
global reset into smaller chunks that are free to be rearranged.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Acked-by: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Diffstat (limited to 'tests/i915/gem_exec_capture.c')
-rw-r--r-- | tests/i915/gem_exec_capture.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/i915/gem_exec_capture.c b/tests/i915/gem_exec_capture.c index 84efdd94..85645a26 100644 --- a/tests/i915/gem_exec_capture.c +++ b/tests/i915/gem_exec_capture.c @@ -515,6 +515,7 @@ static void prioinv(int fd, int dir, unsigned ring, const char *name) igt_require(gem_gpu_reset_type(fd) > 1); /* Needs to be fast enough for the hangcheck to return within 1s */ + igt_require(gem_engine_property_printf(fd, name, "preempt_timeout_ms", "%d", 0) > 0); gem_engine_property_printf(fd, name, "preempt_timeout_ms", "%d", 500); gtt = gem_aperture_size(fd) / size; |