diff options
author | Tejas Upadhyay <tejaskumarx.surendrakumar.upadhyay@intel.com> | 2021-02-16 14:54:53 +0530 |
---|---|---|
committer | Maarten Lankhorst <maarten.lankhorst@linux.intel.com> | 2021-04-06 11:21:35 +0200 |
commit | 5db5b0d311e79ecb45d3f5a7b98c430c3bb1ed6b (patch) | |
tree | ceb184edfbc1f100266da15e0409f708dd0e3174 /tests/i915/gem_exec_reloc.c | |
parent | 67c297bb3ed3aacac406eca454de41c4d7848d48 (diff) |
test/i915/gem_exec_reloc: set max practical relocation limit
practically lets assume we will have < 512 relocations per page and
multiple object relocations will continue to work. Its highly unlike
to get as many relocations which basic-many-active test is testing
thus setting max limit to 2048 should suffice reloactions test.
Cc: Maarten Lankhorst <maarten.lankhorst@intel.com>
Signed-off-by: Tejas Upadhyay <tejaskumarx.surendrakumar.upadhyay@intel.com>
Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Diffstat (limited to 'tests/i915/gem_exec_reloc.c')
-rw-r--r-- | tests/i915/gem_exec_reloc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/i915/gem_exec_reloc.c b/tests/i915/gem_exec_reloc.c index a897cc67..397c335e 100644 --- a/tests/i915/gem_exec_reloc.c +++ b/tests/i915/gem_exec_reloc.c @@ -407,7 +407,7 @@ static void __many_active(int i915, unsigned engine, unsigned long count) static void many_active(int i915, unsigned engine) { - const uint64_t max = gem_aperture_size(i915) / 2; + const uint64_t max = 2048; unsigned long count = 256; igt_until_timeout(2) { @@ -421,7 +421,7 @@ static void many_active(int i915, unsigned engine) __many_active(i915, engine, count); count <<= 1; - if (count * 8 >= max) + if (count >= max) break; } } |