Re: [RFC 5/7] drm/virtio: Ensure that bo's backing store is valid while updating plane

2024-04-26 Thread Weifeng Liu
On Thu, 2024-03-28 at 01:32 -0700, Vivek Kasireddy wrote: > To make sure that the imported bo's backing store is valid, we first > pin the associated dmabuf, import the sgt if need be and then unpin > it after the update is complete. Note that we pin/unpin the dmabuf > even when the backing store i

[RFC 5/7] drm/virtio: Ensure that bo's backing store is valid while updating plane

2024-03-28 Thread Vivek Kasireddy
To make sure that the imported bo's backing store is valid, we first pin the associated dmabuf, import the sgt if need be and then unpin it after the update is complete. Note that we pin/unpin the dmabuf even when the backing store is valid to ensure that it does not move when the host update (reso