[igt-dev] [PATCH i-g-t] lib/xe_query: Fix xe_supports_faults()

Matthew Brost matthew.brost at intel.com
Wed Dec 6 18:29:37 UTC 2023


On Wed, Dec 06, 2023 at 05:26:23PM -0800, Brian Welty wrote:
> In recent uAPI changes, it was missed that setting VM_CREATE_FLAG_FAULT_MODE
> requires VM_CREATE_FLAG_LR_MODE in this query routine.
> 
> Fixes: dc71419700 (tests/intel/xe: Adjust to KMD uAPI changes for long-running VMs)
> Closes: https://gitlab.freedesktop.org/drm/xe/kernel/-/issues/997
> Signed-off-by: Brian Welty <brian.welty at intel.com>

Reviewed-by: Matthew Brost <matthew.brost at intel.com>

> ---
>  lib/xe/xe_query.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/lib/xe/xe_query.c b/lib/xe/xe_query.c
> index 3ebce83615..701fe1d1ea 100644
> --- a/lib/xe/xe_query.c
> +++ b/lib/xe/xe_query.c
> @@ -312,6 +312,7 @@ bool xe_supports_faults(int fd)
>  
>  	struct drm_xe_vm_create create = {
>  		.flags = DRM_XE_VM_CREATE_FLAG_ASYNC_DEFAULT |
> +			 DRM_XE_VM_CREATE_FLAG_LR_MODE |
>  			 DRM_XE_VM_CREATE_FLAG_FAULT_MODE,
>  	};
>  
> -- 
> 2.38.0
> 


More information about the igt-dev mailing list