From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by gabe.freedesktop.org (Postfix) with ESMTPS id A720F89EFF for ; Wed, 29 Dec 2021 21:05:29 +0000 (UTC) Date: Wed, 29 Dec 2021 13:05:22 -0800 Message-ID: <87ilv79l65.wl-ashutosh.dixit@intel.com> From: "Dixit, Ashutosh" In-Reply-To: <20211229114806.24218-3-zbigniew.kempczynski@intel.com> References: <20211229114806.24218-1-zbigniew.kempczynski@intel.com> <20211229114806.24218-3-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 2/2] lib/intel_allocator: Fix invalid strategy on allocator helper code 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, 29 Dec 2021 03:48:06 -0800, Zbigniew Kempczy=F1ski wrote: > > During write likely it was copy-pasted and was never changed to > valid HIGH_TO_LOW strategy. Fix this overlook. Reviewed-by: Ashutosh Dixit > Signed-off-by: Zbigniew Kempczy=F1ski > Cc: Petri Latvala > Cc: Ashutosh Dixit > --- > lib/intel_allocator.h | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/lib/intel_allocator.h b/lib/intel_allocator.h > index e8d807f9a..068985637 100644 > --- a/lib/intel_allocator.h > +++ b/lib/intel_allocator.h > @@ -251,7 +251,7 @@ static inline uint64_t get_simple_h2l_ahnd(int fd, ui= nt32_t ctx) > > return do_relocs ? 0 : intel_allocator_open_full(fd, ctx, 0, 0, > INTEL_ALLOCATOR_SIMPLE, > - ALLOC_STRATEGY_LOW_TO_HIGH); > + ALLOC_STRATEGY_HIGH_TO_LOW); > } > > static inline uint64_t get_reloc_ahnd(int fd, uint32_t ctx) > -- > 2.32.0 >