summaryrefslogtreecommitdiff
path: root/tests/i915/sysfs_heartbeat_interval.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2020-03-17 17:54:30 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2020-03-17 17:59:59 +0000
commitb77e3a470bdf1bc5f047ebb98ed8ca4738dd44c7 (patch)
tree166cb97bb5a3cacdcd7b1d0a6ae298174f8d630e /tests/i915/sysfs_heartbeat_interval.c
parentf698ffa1d958fcc87b596a78ff7b998faa7ea02d (diff)
i915/sysfs_heartbeat_interval: Tweak durations for 'mixed'
Be much more lenient in the face of scheduler woes that under duress cannot give us the millisecond accuracy we require for distinguishing good vs evil, every time. In particular, we set the preempt timeout to greater than our 'good' client so that when we do trigger the heartbeat check upon it, it can always preempt in time to satisfy us. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> Acked-by: Andi Shyti <andi.shyti@intel.com>
Diffstat (limited to 'tests/i915/sysfs_heartbeat_interval.c')
-rw-r--r--tests/i915/sysfs_heartbeat_interval.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/i915/sysfs_heartbeat_interval.c b/tests/i915/sysfs_heartbeat_interval.c
index f13c72cb..5da1d2e8 100644
--- a/tests/i915/sysfs_heartbeat_interval.c
+++ b/tests/i915/sysfs_heartbeat_interval.c
@@ -377,8 +377,8 @@ static void test_mixed(int i915, int engine)
* innocents. We inspect the fence status of each to verify that
* only the hogs are reset.
*/
- set_preempt_timeout(engine, 1);
- __test_mixed(i915, engine, 10, 10, 100, 5);
+ set_preempt_timeout(engine, 25);
+ __test_mixed(i915, engine, 25, 10, 250, 5);
}
static void test_long(int i915, int engine)