[PATCH 2/2] drm/ttm, drm/i915: Update ttm_move_memcpy for async use

Matthew Auld matthew.william.auld at gmail.com
Wed Jun 30 14:43:59 UTC 2021


On Thu, 24 Jun 2021 at 20:31, Thomas Hellström
<thomas.hellstrom at linux.intel.com> wrote:
>
> The buffer object argument to ttm_move_memcpy was only used to
> determine whether the destination memory should be cleared only
> or whether we should copy data. Replace it with a "clear" bool, and
> update the callers.
>
> The intention here is to be able to use ttm_move_memcpy() async under
> a dma-fence as a fallback if an accelerated blit fails in a security-
> critical path where data might leak if the blit is not properly
> performed. For that purpose the bo is an unsuitable argument since
> its relevant members might already have changed at call time.
>
> Finally, update the ttm_move_memcpy kerneldoc that seems to have
> ended up with a stale version.
>
> 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 dri-devel mailing list