diff options
author | Tvrtko Ursulin <tvrtko.ursulin@intel.com> | 2022-01-06 16:42:58 +0000 |
---|---|---|
committer | Ashutosh Dixit <ashutosh.dixit@intel.com> | 2022-01-06 12:54:58 -0800 |
commit | ac29e097d4ff0f2e269a955ca86c5eb23908467a (patch) | |
tree | f459954f460f5fc636c3a39da87cd582fa7f04f3 /tests/i915/perf_pmu.c | |
parent | 6e009504d5f7cc39866191e4bff813a4512c3e9b (diff) |
tests/i915/perf_pmu: Fix allow hang handling
Commit d7a74b959eea ("tests/i915/perf_pmu: Convert to intel_ctx_t (v3)")
broke the test when it is run in its entirety.
Correct context id needs to be used with igt_allow_hang to avoid context
ban preventing the test to run to completion.
Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Fixes: d7a74b959eea ("tests/i915/perf_pmu: Convert to intel_ctx_t (v3)")
Cc: Ashutosh Dixit <ashutosh.dixit@intel.com>
Cc: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Reviewed-by: Ashutosh Dixit <ashutosh.dixit@intel.com>
Diffstat (limited to 'tests/i915/perf_pmu.c')
-rw-r--r-- | tests/i915/perf_pmu.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/i915/perf_pmu.c b/tests/i915/perf_pmu.c index 581da848..1665dc5e 100644 --- a/tests/i915/perf_pmu.c +++ b/tests/i915/perf_pmu.c @@ -2319,7 +2319,7 @@ igt_main } test_each_engine("busy-hang", fd, ctx, e) { - igt_hang_t hang = igt_allow_hang(fd, 0, 0); + igt_hang_t hang = igt_allow_hang(fd, ctx->id, 0); single(fd, ctx, e, TEST_BUSY | FLAG_HANG); |