[PATCH] drm/xe: Do not kill VM in PT code on -ENODATA
Ghimiray, Himal Prasad
himal.prasad.ghimiray at intel.com
Mon Jun 16 04:17:26 UTC 2025
On 14-06-2025 04:48, Matthew Brost wrote:
> No need kill on -ENODATA as is this non-fatal error can occur when MMU
> notifiers race with prefetches.
>
> Fixes: 09ba0a8f06cd ("drm/xe/svm: Implement prefetch support for SVM ranges")
> Cc: stable at vger.kernel.org
> Signed-off-by: Matthew Brost <matthew.brost at intel.com>
> ---
> drivers/gpu/drm/xe/xe_pt.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/xe/xe_pt.c b/drivers/gpu/drm/xe/xe_pt.c
> index f39d5cc9f411..971e55fd0061 100644
> --- a/drivers/gpu/drm/xe/xe_pt.c
> +++ b/drivers/gpu/drm/xe/xe_pt.c
> @@ -2524,7 +2524,7 @@ xe_pt_update_ops_run(struct xe_tile *tile, struct xe_vma_ops *vops)
> kfree(mfence);
> kfree(ifence);
> kill_vm_tile1:
> - if (err != -EAGAIN && tile->id)
> + if (err != -EAGAIN && err != -ENODATA && tile->id)
Thats true xe_pt_svm_pre_commit can indeed return -ENODATA in prefetch.
Thanks for the fix.
Reviewed-by: Himal Prasad Ghimiray <himal.prasad.ghimiray at intel.com>>
xe_vm_kill(vops->vm, false);
>
> return ERR_PTR(err);
More information about the Intel-xe
mailing list