All of lore.kernel.org
 help / color / mirror / Atom feed
* [igt-dev] [i-g-t] test/i915/gem_exec_reloc: set max practical relocation limit
@ 2021-02-16  9:24 Tejas Upadhyay
  2021-02-16 10:13 ` [igt-dev] ✓ Fi.CI.BAT: success for " Patchwork
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Tejas Upadhyay @ 2021-02-16  9:24 UTC (permalink / raw)
  To: igt-dev; +Cc: hariom.pandey, maarten.lankhorst

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>
---
 tests/i915/gem_exec_reloc.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tests/i915/gem_exec_reloc.c b/tests/i915/gem_exec_reloc.c
index cc9b8cd6..69c8b4f7 100644
--- a/tests/i915/gem_exec_reloc.c
+++ b/tests/i915/gem_exec_reloc.c
@@ -405,7 +405,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) {
@@ -419,7 +419,7 @@ static void many_active(int i915, unsigned engine)
 		__many_active(i915, engine, count);
 
 		count <<= 1;
-		if (count * 8 >= max)
+		if (count >= max)
 			break;
 	}
 }
-- 
2.30.0

_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2021-02-16 11:17 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-16  9:24 [igt-dev] [i-g-t] test/i915/gem_exec_reloc: set max practical relocation limit Tejas Upadhyay
2021-02-16 10:13 ` [igt-dev] ✓ Fi.CI.BAT: success for " Patchwork
2021-02-16 11:13 ` [igt-dev] ✓ Fi.CI.IGT: " Patchwork
2021-02-16 11:17 ` [igt-dev] [i-g-t] " Chris Wilson

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.