[igt-dev] [PATCH i-g-t 4/8] tests/gem_userptr_blits: Remove LOCAL_

Petri Latvala petri.latvala at intel.com
Thu Oct 7 12:36:54 UTC 2021


On Wed, Oct 06, 2021 at 12:14:40PM -0400, Rodrigo Vivi wrote:
> These UAPIs are upstreamed now.
> 
> Cc: Zbigniew Kempczyński <zbigniew.kempczynski at intel.com>
> Cc: Chris Wilson <chris at chris-wilson.co.uk>
> Cc: Petri Latvala <petri.latvala at intel.com>
> Signed-off-by: Rodrigo Vivi <rodrigo.vivi at intel.com>

Reviewed-by: Petri Latvala <petri.latvala at intel.com>

> ---
>  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
> 


More information about the igt-dev mailing list