diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2020-01-31 18:14:14 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2020-01-31 18:26:43 +0000 |
commit | 9d3872ede14307ef4adb0866f8474f5c41e6b1c1 (patch) | |
tree | e5bc14fe0e464f08e9757bd57c47817db9261a05 /tests/i915/gem_ctx_persistence.c | |
parent | d524f385a17a73e3cfeeb2ed5a0610f0f0e3a61b (diff) |
lib: Don't feed IGT_SPIN_INVALID_CS to the command parser
If using a cmdparser, it may be intelligent enough to not execute the
invalid batch leading to an unwritten breadcrumb and
igt_spin_busywait_until_started() in an infinite loop.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Diffstat (limited to 'tests/i915/gem_ctx_persistence.c')
-rw-r--r-- | tests/i915/gem_ctx_persistence.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/i915/gem_ctx_persistence.c b/tests/i915/gem_ctx_persistence.c index c0e2354b..b84d210a 100644 --- a/tests/i915/gem_ctx_persistence.c +++ b/tests/i915/gem_ctx_persistence.c @@ -380,6 +380,8 @@ static void test_nohangcheck_hang(int i915) * we forcibly terminate that context. */ + igt_require(!gem_has_cmdparser(i915, ALL_ENGINES)); + dir = igt_sysfs_open_parameters(i915); igt_require(dir != -1); |