[PATCH i-g-t 1/3] tests/intel/xe_vm: Update first invalid flag number
Dixit, Ashutosh
ashutosh.dixit at intel.com
Thu Jan 30 22:36:07 UTC 2025
On Thu, 30 Jan 2025 14:14:55 -0800, Daniele Ceraolo Spurio wrote:
>
> PXP introduces a new valid flag [1], so to avoid the invalid_flag test
> failing we need to prepare by shifting the first invalid bit left by one.
> The testing of the valid flag will be added later once the PXP kernel side
> is merged.
>
Reviewed-by: Ashutosh Dixit <ashutosh.dixit at intel.com>
> [1] https://patchwork.freedesktop.org/patch/634550/
> Signed-off-by: Daniele Ceraolo Spurio <daniele.ceraolospurio at intel.com>
> ---
> tests/intel/xe_vm.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/tests/intel/xe_vm.c b/tests/intel/xe_vm.c
> index 6ee3f4634..0730dd3d3 100644
> --- a/tests/intel/xe_vm.c
> +++ b/tests/intel/xe_vm.c
> @@ -2234,7 +2234,7 @@ static void bind_flag_invalid(int fd)
> syncobj_reset(fd, &sync[0].handle, 1);
>
> /* Using invalid flags should not work */
> - bind.bind.flags = 1 << 4;
> + bind.bind.flags = 1 << 5;
> igt_ioctl(fd, DRM_IOCTL_XE_VM_BIND, &bind);
> do_ioctl_err(fd, DRM_IOCTL_XE_VM_BIND, &bind, EINVAL);
>
> --
> 2.43.0
>
More information about the igt-dev
mailing list