From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pj1-x1036.google.com (mail-pj1-x1036.google.com [IPv6:2607:f8b0:4864:20::1036]) by gabe.freedesktop.org (Postfix) with ESMTPS id 1A5C36EA29 for ; Wed, 9 Jun 2021 17:37:32 +0000 (UTC) Received: by mail-pj1-x1036.google.com with SMTP id h12-20020a17090aa88cb029016400fd8ad8so1861208pjq.3 for ; Wed, 09 Jun 2021 10:37:32 -0700 (PDT) From: Jason Ekstrand Date: Wed, 9 Jun 2021 12:36:20 -0500 Message-Id: <20210609173632.248880-38-jason@jlekstrand.net> In-Reply-To: <20210609173632.248880-1-jason@jlekstrand.net> References: <20210609173632.248880-1-jason@jlekstrand.net> MIME-Version: 1.0 Subject: [igt-dev] [PATCH i-g-t 37/93] tests/i915/gem_ctx_exec: Stop cloning contexts in close_race 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: Nothing in this subtest sets the set of engines on ctx0 so there's no point in cloning them. Signed-off-by: Jason Ekstrand --- tests/i915/gem_ctx_exec.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tests/i915/gem_ctx_exec.c b/tests/i915/gem_ctx_exec.c index a8616f95..6db2d598 100644 --- a/tests/i915/gem_ctx_exec.c +++ b/tests/i915/gem_ctx_exec.c @@ -351,7 +351,7 @@ static void close_race(int i915) igt_assert(contexts != MAP_FAILED); for (int child = 0; child < ncpus; child++) - contexts[child] = gem_context_clone_with_engines(i915, 0); + contexts[child] = gem_context_create(i915); igt_fork(child, ncpus) { spin = __igt_spin_new(i915, .flags = IGT_SPIN_POLL_RUN); @@ -405,8 +405,7 @@ static void close_race(int i915) */ for (int child = 0; child < ncpus; child++) { gem_context_destroy(i915, contexts[child]); - contexts[child] = - gem_context_clone_with_engines(i915, 0); + contexts[child] = gem_context_create(i915); } usleep(1000 + hars_petruska_f54_1_random_unsafe() % 2000); } -- 2.31.1 _______________________________________________ igt-dev mailing list igt-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/igt-dev