Return-Path: Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by gabe.freedesktop.org (Postfix) with ESMTPS id A18F46F45E for ; Thu, 7 Oct 2021 12:33:36 +0000 (UTC) Date: Thu, 7 Oct 2021 15:36:54 +0300 From: Petri Latvala Message-ID: References: <20211006161444.904476-1-rodrigo.vivi@intel.com> <20211006161444.904476-5-rodrigo.vivi@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20211006161444.904476-5-rodrigo.vivi@intel.com> Subject: Re: [igt-dev] [PATCH i-g-t 4/8] tests/gem_userptr_blits: Remove LOCAL_ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: igt-dev-bounces@lists.freedesktop.org Sender: "igt-dev" To: Rodrigo Vivi Cc: igt-dev@lists.freedesktop.org, Zbigniew =?utf-8?Q?Kempczy=C5=84ski?= , Chris Wilson List-ID: On Wed, Oct 06, 2021 at 12:14:40PM -0400, Rodrigo Vivi wrote: > These UAPIs are upstreamed now. > > Cc: Zbigniew KempczyƄski > Cc: Chris Wilson > Cc: Petri Latvala > Signed-off-by: Rodrigo Vivi Reviewed-by: Petri Latvala > --- > tests/i915/gem_userptr_blits.c | 7 ++----- > 1 file changed, 2 insertions(+), 5 deletions(-) > > diff --git a/tests/i915/gem_userptr_blits.c b/tests/i915/gem_userptr_blits.c > index 756bd6e4..0d084674 100644 > --- a/tests/i915/gem_userptr_blits.c > +++ b/tests/i915/gem_userptr_blits.c > @@ -2151,16 +2151,13 @@ static int userfaultfd(int flags) > return syscall(SYS_userfaultfd, flags); > } > > -#define LOCAL_I915_PARAM_HAS_USERPTR_PROBE 56 > -#define LOCAL_I915_USERPTR_PROBE 0x2 > - > static bool has_userptr_probe(int fd) > { > struct drm_i915_getparam gp; > int value = 0; > > memset(&gp, 0, sizeof(gp)); > - gp.param = LOCAL_I915_PARAM_HAS_USERPTR_PROBE; > + gp.param = I915_PARAM_HAS_USERPTR_PROBE; > gp.value = &value; > > ioctl(fd, DRM_IOCTL_I915_GETPARAM, &gp, sizeof(gp)); > @@ -2222,7 +2219,7 @@ static void test_probe(int fd) > } > > igt_assert_eq(__gem_userptr(fd, ptr + PAGE_SIZE, 3*PAGE_SIZE, > - 0, LOCAL_I915_USERPTR_PROBE, &handle), > + 0, I915_USERPTR_PROBE, &handle), > expected); > > munmap(ptr, N_PAGES * PAGE_SIZE); > -- > 2.31.1 >