From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by gabe.freedesktop.org (Postfix) with ESMTPS id E25F389452 for ; Thu, 14 Oct 2021 05:23:58 +0000 (UTC) Date: Wed, 13 Oct 2021 22:06:29 -0700 Message-ID: <87zgrcgppm.wl-ashutosh.dixit@intel.com> From: "Dixit, Ashutosh" In-Reply-To: <871r4oi4il.wl-ashutosh.dixit@intel.com> References: <20211008065432.15482-1-zbigniew.kempczynski@intel.com> <20211008065432.15482-8-zbigniew.kempczynski@intel.com> <871r4oi4il.wl-ashutosh.dixit@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 7/7] benchmarks/gem_exec_fault: Add softpin mode to support gens with ppgtt 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 Wed, 13 Oct 2021 22:01:22 -0700, Dixit, Ashutosh wrote: > > On Thu, 07 Oct 2021 23:54:32 -0700, Zbigniew Kempczy=F1ski wrote: > > > > + /* > > + * For older gens .alignment =3D 1ull << 63 lead do bind/unbind, > > + * what doesn't work for newer gens with ppgtt. > > + * For ppgtt case we use reloc allocator which would just assigns > > + * new offset for each batch. This way we enforce bind/unbind vma > > + * for each execbuf. > > So assigning a new offset will cause a new fault-in (bind) but not sure if > it will cause an actual fault-out (unbind). Though I am not sure if there > is actually a way to force it to happen if this doesn't work? Is there a > way to verify that the unbind is actually happening? Maybe if assign the same offset to a different object/page that will cause a fault-out (unbind) followed by a fault-in (bind).