summaryrefslogtreecommitdiff
path: root/tests/i915/gem_exec_reloc.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2020-05-01 14:52:29 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2020-05-01 14:55:29 +0100
commit6b67961128e7b860946f92ca4162eae63e6a2df3 (patch)
tree835785af4b4c771f6e27ac45f743be064648138f /tests/i915/gem_exec_reloc.c
parentac3444a3997b342f43c30347539707f21357bf01 (diff)
i915/gem_exec_reloc: Trim flooding
Using a quadruplicing load factor and a 5s timeout, meant that we could submit one more workload just before the timeout that would take around 20s for the kernel to process (just from the large number of objects and relocations). As that exceeds the hangcheck, the spinner was being killed even though we did not hit the deadlock. Use a doubling factor, and aim for the worst case run to be less than 10s. 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_reloc.c')
-rw-r--r--tests/i915/gem_exec_reloc.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/i915/gem_exec_reloc.c b/tests/i915/gem_exec_reloc.c
index ddb5e50c..fda71dd2 100644
--- a/tests/i915/gem_exec_reloc.c
+++ b/tests/i915/gem_exec_reloc.c
@@ -397,7 +397,7 @@ static void many_active(int i915, unsigned engine)
const uint64_t max = gem_aperture_size(i915) / 2;
unsigned long count = 256;
- igt_until_timeout(5) {
+ igt_until_timeout(2) {
uint64_t required, total;
if (!__intel_check_memory(1, 8 * count, CHECK_RAM,
@@ -407,7 +407,7 @@ static void many_active(int i915, unsigned engine)
igt_debug("Testing count:%lu\n", count);
__many_active(i915, engine, count);
- count <<= 2;
+ count <<= 1;
if (count * 8 >= max)
break;
}
@@ -467,7 +467,7 @@ static void wide_active(int i915, unsigned engine)
const uint64_t max = gem_aperture_size(i915) / 4096 / 2;
unsigned long count = 256;
- igt_until_timeout(5) {
+ igt_until_timeout(2) {
uint64_t required, total;
if (!__intel_check_memory(count, 4096, CHECK_RAM,
@@ -477,7 +477,7 @@ static void wide_active(int i915, unsigned engine)
igt_debug("Testing count:%lu\n", count);
__wide_active(i915, engine, count);
- count <<= 2;
+ count <<= 1;
if (count >= max)
break;
}