Return-Path: Received: from mail-pl1-x635.google.com (mail-pl1-x635.google.com [IPv6:2607:f8b0:4864:20::635]) by gabe.freedesktop.org (Postfix) with ESMTPS id A08AB6EC6D for ; Fri, 23 Apr 2021 21:50:00 +0000 (UTC) Received: by mail-pl1-x635.google.com with SMTP id t22so25546695ply.1 for ; Fri, 23 Apr 2021 14:50:00 -0700 (PDT) From: Jason Ekstrand Date: Fri, 23 Apr 2021 16:48:01 -0500 Message-Id: <20210423214853.876911-38-jason@jlekstrand.net> In-Reply-To: <20210423214853.876911-1-jason@jlekstrand.net> References: <20210423214853.876911-1-jason@jlekstrand.net> MIME-Version: 1.0 Subject: [igt-dev] [PATCH i-g-t 37/89] 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 03c66bf7..95b286b2 100644 --- a/tests/i915/gem_ctx_exec.c +++ b/tests/i915/gem_ctx_exec.c @@ -350,7 +350,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); @@ -404,8 +404,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