[Intel-xe] [PATCH v2 29/31] drm/xe: Allow compute VMs to output dma-fences on binds

Rodrigo Vivi rodrigo.vivi at intel.com
Tue May 9 14:50:50 UTC 2023


On Mon, May 01, 2023 at 05:17:25PM -0700, Matthew Brost wrote:
> Binds are not long running jobs thus we can export dma-fences even if a
> VM is in compute mode.

is this true independent of the series? or something changed in the
series that made this to be true?

I wonder if this is not a good candidate for standalone patch...

> 
> Signed-off-by: Matthew Brost <matthew.brost at intel.com>
> ---
>  drivers/gpu/drm/xe/xe_vm.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/gpu/drm/xe/xe_vm.c b/drivers/gpu/drm/xe/xe_vm.c
> index 55cced8870e6..07023506ce6b 100644
> --- a/drivers/gpu/drm/xe/xe_vm.c
> +++ b/drivers/gpu/drm/xe/xe_vm.c
> @@ -3047,7 +3047,7 @@ int xe_vm_bind_ioctl(struct drm_device *dev, void *data, struct drm_file *file)
>  	for (num_syncs = 0; num_syncs < args->num_syncs; num_syncs++) {
>  		err = xe_sync_entry_parse(xe, xef, &syncs[num_syncs],
>  					  &syncs_user[num_syncs], false,
> -					  xe_vm_no_dma_fences(vm));
> +					  xe_vm_in_fault_mode(vm));
>  		if (err)
>  			goto free_syncs;
>  	}
> -- 
> 2.34.1
> 


More information about the Intel-xe mailing list