[PATCH] drm/amdgpu: ignore duplicate BOs again

Alex Deucher alexdeucher at gmail.com
Tue Oct 17 13:04:13 UTC 2023


On Tue, Oct 17, 2023 at 8:22 AM Christian König
<ckoenig.leichtzumerken at gmail.com> wrote:
>
> Looks like RADV is actually hitting this.
>
> Signed-off-by: Christian König <christian.koenig at amd.com>
> Fixes: ca6c1e210aa7 ("drm/amdgpu: use the new drm_exec object for CS v3")

Acked-by: Alex Deucher <alexander.deucher at amd.com>

> ---
>  drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c
> index efdb1c48f431..d93a8961274c 100644
> --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c
> +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c
> @@ -65,7 +65,8 @@ static int amdgpu_cs_parser_init(struct amdgpu_cs_parser *p,
>         }
>
>         amdgpu_sync_create(&p->sync);
> -       drm_exec_init(&p->exec, DRM_EXEC_INTERRUPTIBLE_WAIT);
> +       drm_exec_init(&p->exec, DRM_EXEC_INTERRUPTIBLE_WAIT |
> +                     DRM_EXEC_IGNORE_DUPLICATES);
>         return 0;
>  }
>
> --
> 2.34.1
>


More information about the amd-gfx mailing list