[Intel-xe] [PATCH v3 3/4] drm/xe/bo: Gracefully handle errors from ttm_bo_move_accel_cleanup().

Matthew Auld matthew.william.auld at gmail.com
Tue Jun 27 08:55:36 UTC 2023


On Mon, 26 Jun 2023 at 19:18, Thomas Hellström
<thomas.hellstrom at linux.intel.com> wrote:
>
> The function ttm_bo_move_accel_cleanup() attempts to help pipeline a
> move, and in doing so, needs memory allocations which may fail.
>
> Rather than failing in a state where the new resource may freed while
> accessed by the copy engine, sync uninterruptible and do a failsafe
> cleanup.
>
> v2:
> - Don't try to attach the signaled fence on ttm_bo_move_accel_cleanup()
>   error.
>
> Signed-off-by: Thomas Hellström <thomas.hellstrom at linux.intel.com>
Reviewed-by: Matthew Auld <matthew.auld at intel.com>


More information about the Intel-xe mailing list