From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by gabe.freedesktop.org (Postfix) with ESMTPS id E797F89B8E for ; Thu, 5 Aug 2021 02:40:26 +0000 (UTC) Date: Wed, 04 Aug 2021 19:40:25 -0700 Message-ID: <877dh0ty06.wl-ashutosh.dixit@intel.com> From: "Dixit, Ashutosh" In-Reply-To: <20210726200026.4815-13-zbigniew.kempczynski@intel.com> References: <20210726200026.4815-1-zbigniew.kempczynski@intel.com> <20210726200026.4815-13-zbigniew.kempczynski@intel.com> MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=ISO-8859-2 Content-Transfer-Encoding: quoted-printable Subject: Re: [igt-dev] [PATCH i-g-t v3 12/52] tests/gem_ctx_engines: Adopt to use allocator List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: igt-dev-bounces@lists.freedesktop.org Sender: "igt-dev" To: Zbigniew =?ISO-8859-2?Q?Kempczy=F1ski?= Cc: igt-dev@lists.freedesktop.org, Petri Latvala List-ID: On Mon, 26 Jul 2021 12:59:46 -0700, Zbigniew Kempczy=F1ski wrote: > > @@ -344,9 +352,11 @@ static void execute_oneforall(int i915) > .size =3D sizeof(engines), > }; > const struct intel_execution_engine2 *e; > + uint64_t ahnd; > > for_each_physical_engine(i915, e) { > param.ctx_id =3D gem_context_create(i915); > + ahnd =3D get_reloc_ahnd(i915, param.ctx_id); Ok, the allocator is tied to the context (and the context's vm): Reviewed-by: Ashutosh Dixit