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 65BD289FAD for ; Wed, 4 Aug 2021 23:42:32 +0000 (UTC) Date: Wed, 04 Aug 2021 16:42:30 -0700 Message-ID: <87h7g4u68p.wl-ashutosh.dixit@intel.com> From: "Dixit, Ashutosh" In-Reply-To: <20210726200026.4815-8-zbigniew.kempczynski@intel.com> References: <20210726200026.4815-1-zbigniew.kempczynski@intel.com> <20210726200026.4815-8-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 07/52] lib/intel_batchbuffer: Try to avoid relocations in blitting 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 List-ID: On Mon, 26 Jul 2021 12:59:41 -0700, Zbigniew Kempczy=F1ski wrote: > > We're proposing not overlapping offsets in both blitter copying functions > so we can try to skip relocations. OK, afaiu I915_EXEC_NO_RELOC is a hint so when I915_EXEC_IS_PINNED is not specified relocations will be applied when needed (and we are providing presumed_offset's even in the relocation case): Reviewed-by: Ashutosh Dixit > Signed-off-by: Zbigniew Kempczy=F1ski > Cc: Petri Latvala > Cc: Ashutosh Dixit > Cc: Chris Wilson > --- > lib/intel_batchbuffer.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/lib/intel_batchbuffer.c b/lib/intel_batchbuffer.c > index d4a59e508..bbf8e0da2 100644 > --- a/lib/intel_batchbuffer.c > +++ b/lib/intel_batchbuffer.c > @@ -711,7 +711,7 @@ static void exec_blit(int fd, > struct drm_i915_gem_execbuffer2 exec =3D { > .buffers_ptr =3D to_user_pointer(objs), > .buffer_count =3D count, > - .flags =3D gen >=3D 6 ? I915_EXEC_BLT : 0, > + .flags =3D gen >=3D 6 ? I915_EXEC_BLT : 0 | I915_EXEC_NO_RELOC, > .rsvd1 =3D ctx, > }; > > -- > 2.26.0 >