Return-Path: Received: from mblankhorst.nl (mblankhorst.nl [141.105.120.124]) by gabe.freedesktop.org (Postfix) with ESMTPS id B83DE6E9A0 for ; Wed, 16 Sep 2020 10:59:35 +0000 (UTC) From: Maarten Lankhorst Date: Wed, 16 Sep 2020 12:59:32 +0200 Message-Id: <20200916105932.908590-1-maarten.lankhorst@linux.intel.com> MIME-Version: 1.0 Subject: [igt-dev] [PATCH i-g-t] tests/gem_exec_reloc: Cap max amount of active relocations in basic-many-active. List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: igt-dev-bounces@lists.freedesktop.org Sender: "igt-dev" To: igt-dev@lists.freedesktop.org List-ID: Especially with -EDEADLK handling we can add relocations many times, cap the amount of relocations tested, so that we still correctly test that we can fill more than PAGE_SIZE / sizeof(relocation) relocations. Signed-off-by: Maarten Lankhorst Bugzilla: https://gitlab.freedesktop.org/drm/intel/-/issues/2389 --- 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 85df3da7e011..cca82ec74cce 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 = 8192; 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; } } base-commit: 7be11303a08de934478b1d44963cef00c7adc786 -- 2.28.0 _______________________________________________ igt-dev mailing list igt-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/igt-dev