Series is:
Reviewed-by: Alex Deucher <[email protected]>

On Tue, May 12, 2026 at 12:27 PM Christian König
<[email protected]> wrote:
>
> Make sure that we only submit work with full up to date VM page tables.
>
> Signed-off-by: Christian König <[email protected]>
> ---
>  drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c | 4 +++-
>  1 file changed, 3 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c 
> b/drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c
> index 10d8dcc3a972..b26f681527f2 100644
> --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c
> +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c
> @@ -1280,6 +1280,7 @@ static int amdgpu_cs_submit(struct amdgpu_cs_parser *p,
>  {
>         struct amdgpu_fpriv *fpriv = p->filp->driver_priv;
>         struct amdgpu_job *leader = p->gang_leader;
> +       struct amdgpu_vm *vm = &fpriv->vm;
>         struct amdgpu_bo_list_entry *e;
>         struct drm_gem_object *gobj;
>         unsigned long index;
> @@ -1325,7 +1326,8 @@ static int amdgpu_cs_submit(struct amdgpu_cs_parser *p,
>                 amdgpu_hmm_range_free(e->range);
>                 e->range = NULL;
>         }
> -       if (r) {
> +
> +       if (r || !list_empty(&vm->invalidated)) {
>                 r = -EAGAIN;
>                 mutex_unlock(&p->adev->notifier_lock);
>                 return r;
> --
> 2.43.0
>

Reply via email to