Re: [PATCH v2 2/5] drm/virtio: Add a helper to map and note the dma addrs and lengths

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

 



On 8/13/24 06:49, Vivek Kasireddy wrote:
> +long virtgpu_dma_buf_import_sgt(struct virtio_gpu_mem_entry **ents,
> +				unsigned int *nents,
> +				struct virtio_gpu_object *bo,
> +				struct dma_buf_attachment *attach)
> +{
> +	struct scatterlist *sl;
> +	struct sg_table *sgt;
> +	long i, ret;
> +
> +	dma_resv_assert_held(attach->dmabuf->resv);
> +
> +	ret = dma_resv_wait_timeout(attach->dmabuf->resv,
> +				    DMA_RESV_USAGE_KERNEL,
> +				    false, MAX_SCHEDULE_TIMEOUT);

Why this wait is needed?

-- 
Best regards,
Dmitry



[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