[igt-dev] [PATCH i-g-t] gem_shrink:Removed gem_mappable_aperture_size and initialize alloc size to 128 MiB

Arjun Melkaveri arjun.melkaveri at intel.com
Tue Dec 8 05:03:25 UTC 2020


Initialized alloc_size to 128 MiB by replacing
gem_mappable_aperture_size. As half of
available mappable aperture may return different
size than targeted 128 MiB per process.

Cc: Chris Wilson <chris at chris-wilson.co.uk>
Cc: Tvrtko Ursulin <tvrtko.ursulin at intel.com>
Signed-off-by: Arjun Melkaveri <arjun.melkaveri at intel.com>
---
 tests/i915/gem_shrink.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/i915/gem_shrink.c b/tests/i915/gem_shrink.c
index dba62c8f..273234d5 100644
--- a/tests/i915/gem_shrink.c
+++ b/tests/i915/gem_shrink.c
@@ -439,7 +439,7 @@ igt_main
 		 * we expect the shrinker to start purging objects,
 		 * and possibly fail.
 		 */
-		alloc_size = gem_mappable_aperture_size() / 2;
+		alloc_size = 128 * 1024 * 1024;
 		num_processes = 1 + (mem_size / (alloc_size >> 20));
 
 		igt_info("Using %d processes and %'lluMiB per process\n",
-- 
2.25.1



More information about the igt-dev mailing list