Re: [Intel-gfx] [PATCH] drm/i915: Check object_can_migrate from object_migrate

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, 14 Jul 2021 at 21:45, Jason Ekstrand <jason@xxxxxxxxxxxxxx> wrote:
>
> We don't roll them together entirely because there are still a couple
> cases where we want a separate can_migrate check.  For instance, the
> display code checks that you can migrate a buffer to LMEM before it
> accepts it in fb_create.  The dma-buf import code also uses it to do an
> early check and return a different error code if someone tries to attach
> a LMEM-only dma-buf to another driver.
>
> However, no one actually wants to call object_migrate when can_migrate
> has failed.  The stated intention is for self-tests but none of those
> actually take advantage of this unsafe migration.
>
> Signed-off-by: Jason Ekstrand <jason@xxxxxxxxxxxxxx>
> Cc: Daniel Vetter <daniel@xxxxxxxx>
> Cc: Matthew Auld <matthew.auld@xxxxxxxxx>
Reviewed-by: Matthew Auld <matthew.auld@xxxxxxxxx>



[Index of Archives]     [Linux DRI Users]     [Linux Intel Graphics]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux