From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: From: Tvrtko Ursulin Date: Fri, 24 Jan 2020 12:17:59 +0000 Message-Id: <20200124121759.22308-2-tvrtko.ursulin@linux.intel.com> In-Reply-To: <20200124121759.22308-1-tvrtko.ursulin@linux.intel.com> References: <20200124121759.22308-1-tvrtko.ursulin@linux.intel.com> MIME-Version: 1.0 Subject: [igt-dev] [PATCH i-g-t 2/2] tests/i915/gem_exec_parallel:Set engine map to default context 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 Cc: Intel-gfx@lists.freedesktop.org, Tvrtko Ursulin List-ID: From: Sreedhar Telukuntla Set the potential engine map of the parent client's default context to the newly created DRM client's default context. Without doing so there is a mismatch between the intended and actual engine used by the *-fds subtests. v2: Fix FDS flags check Tvrtko: v3: Use new helper gem_context_copy_engines. Signed-off-by: Sreedhar Telukuntla Cc: Tvrtko Ursulin --- tests/i915/gem_exec_parallel.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/i915/gem_exec_parallel.c b/tests/i915/gem_exec_parallel.c index cfbe78070873..0d4d6c6283e0 100644 --- a/tests/i915/gem_exec_parallel.c +++ b/tests/i915/gem_exec_parallel.c @@ -83,10 +83,12 @@ static void *thread(void *data) pthread_cond_wait(t->cond, t->mutex); pthread_mutex_unlock(t->mutex); - if (t->flags & FDS) + if (t->flags & FDS) { fd = drm_open_driver(DRIVER_INTEL); - else + gem_context_copy_engines(t->fd, 0, fd, 0); + } else { fd = t->fd; + } i = 0; batch[i] = MI_STORE_DWORD_IMM | (t->gen < 6 ? 1 << 22 : 0); -- 2.20.1 _______________________________________________ igt-dev mailing list igt-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/igt-dev From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.8 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, HK_RANDOM_FROM,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE, SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5475AC2D0DB for ; Fri, 24 Jan 2020 12:18:08 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 352E1206D4 for ; Fri, 24 Jan 2020 12:18:08 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 352E1206D4 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linux.intel.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=intel-gfx-bounces@lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 2FC136FA4D; Fri, 24 Jan 2020 12:18:07 +0000 (UTC) Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by gabe.freedesktop.org (Postfix) with ESMTPS id A762F6E362; Fri, 24 Jan 2020 12:18:04 +0000 (UTC) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga105.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 24 Jan 2020 04:18:04 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.70,357,1574150400"; d="scan'208";a="245692868" Received: from wmszyfel-mobl2.ger.corp.intel.com (HELO localhost.localdomain) ([10.252.10.247]) by orsmga002.jf.intel.com with ESMTP; 24 Jan 2020 04:18:03 -0800 From: Tvrtko Ursulin To: igt-dev@lists.freedesktop.org Date: Fri, 24 Jan 2020 12:17:59 +0000 Message-Id: <20200124121759.22308-2-tvrtko.ursulin@linux.intel.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200124121759.22308-1-tvrtko.ursulin@linux.intel.com> References: <20200124121759.22308-1-tvrtko.ursulin@linux.intel.com> MIME-Version: 1.0 Subject: [Intel-gfx] [PATCH i-g-t 2/2] tests/i915/gem_exec_parallel:Set engine map to default context X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Intel-gfx@lists.freedesktop.org Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" From: Sreedhar Telukuntla Set the potential engine map of the parent client's default context to the newly created DRM client's default context. Without doing so there is a mismatch between the intended and actual engine used by the *-fds subtests. v2: Fix FDS flags check Tvrtko: v3: Use new helper gem_context_copy_engines. Signed-off-by: Sreedhar Telukuntla Cc: Tvrtko Ursulin --- tests/i915/gem_exec_parallel.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/i915/gem_exec_parallel.c b/tests/i915/gem_exec_parallel.c index cfbe78070873..0d4d6c6283e0 100644 --- a/tests/i915/gem_exec_parallel.c +++ b/tests/i915/gem_exec_parallel.c @@ -83,10 +83,12 @@ static void *thread(void *data) pthread_cond_wait(t->cond, t->mutex); pthread_mutex_unlock(t->mutex); - if (t->flags & FDS) + if (t->flags & FDS) { fd = drm_open_driver(DRIVER_INTEL); - else + gem_context_copy_engines(t->fd, 0, fd, 0); + } else { fd = t->fd; + } i = 0; batch[i] = MI_STORE_DWORD_IMM | (t->gen < 6 ? 1 << 22 : 0); -- 2.20.1 _______________________________________________ Intel-gfx mailing list Intel-gfx@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/intel-gfx