From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from fireflyinternet.com (mail.fireflyinternet.com [109.228.58.192]) by gabe.freedesktop.org (Postfix) with ESMTPS id 05A406E15D for ; Sat, 9 May 2020 08:23:41 +0000 (UTC) MIME-Version: 1.0 In-Reply-To: <20200509002124.3174-1-ashutosh.dixit@intel.com> References: <20200509002124.3174-1-ashutosh.dixit@intel.com> From: Chris Wilson Message-ID: <158901261810.20071.3560954329087404453@build.alporthouse.com> Date: Sat, 09 May 2020 09:23:38 +0100 Subject: Re: [igt-dev] [PATCH i-g-t] i915/gem_spin_batch: Use __for_each_physical_engine 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: Ashutosh Dixit , igt-dev@lists.freedesktop.org List-ID: Quoting Ashutosh Dixit (2020-05-09 01:21:24) > Instead of the legacy for_each_physical_engine use > __for_each_physical_engine to utilize all engines. > > Fixes: 57efd81037 ("i915/gem_spin_batch: Add test to execute in parallel on all engines") > Signed-off-by: Ashutosh Dixit > --- > tests/i915/gem_spin_batch.c | 5 +++-- > 1 file changed, 3 insertions(+), 2 deletions(-) > > diff --git a/tests/i915/gem_spin_batch.c b/tests/i915/gem_spin_batch.c > index e7dd58ec2..6a7753ced 100644 > --- a/tests/i915/gem_spin_batch.c > +++ b/tests/i915/gem_spin_batch.c > @@ -137,10 +137,11 @@ static void spin_on_all_engines(int fd, unsigned int timeout_sec) > static void spin_all(int i915, unsigned int flags) > #define PARALLEL_SPIN_NEW_CTX BIT(0) > { > + const struct intel_execution_engine2 *e2; > struct igt_spin *spin, *n; > IGT_LIST_HEAD(list); > > - for_each_physical_engine(e, i915) { > + __for_each_physical_engine(i915, e2) { This is intentionally using the legacy interface; there's a variant to use the ctx->engines[] path as well. -Chris _______________________________________________ igt-dev mailing list igt-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/igt-dev