[PATCH v3 3/5] drm/virtio: Add helpers to initialize and free the imported object
Dmitry Osipenko
dmitry.osipenko at collabora.com
Mon Nov 25 02:08:08 UTC 2024
On 11/19/24 08:59, Vivek Kasireddy wrote:
> +static void virtgpu_dma_buf_free_obj(struct drm_gem_object *obj)
> +{
> + struct virtio_gpu_object *bo = gem_to_virtio_gpu_obj(obj);
> + struct virtio_gpu_device *vgdev = obj->dev->dev_private;
> + struct dma_buf_attachment *attach = obj->import_attach;
> +
> + if (attach) {
> + if (bo->sgt)
> + dma_buf_unmap_attachment(attach, bo->sgt,
> + DMA_BIDIRECTIONAL);
Is virtio_gpu_detach_object_fenced(bo) missing here?
--
Best regards,
Dmitry
More information about the dri-devel
mailing list