diff options
| author | Christian König <christian.koenig@amd.com> | 2025-02-11 17:26:16 +0300 |
|---|---|---|
| committer | Christian König <christian.koenig@amd.com> | 2025-03-06 17:21:29 +0300 |
| commit | de68b17d5d0716c9a02b8a6ffa34f47c8f2f7690 (patch) | |
| tree | b1c66e406d7e2b83d6458f55018475edfa4cc640 /include/linux | |
| parent | 2ce07fea3cc8b866f7955a7ce1d62b0cc1f74819 (diff) | |
| download | linux-de68b17d5d0716c9a02b8a6ffa34f47c8f2f7690.tar.xz | |
dma-buf: dma-buf: stop mapping sg_tables on attach v2
As a workaround to smoothly transit from static to dynamic DMA-buf
handling we cached the sg_table on attach if dynamic handling mismatched
between exporter and importer.
Since Dmitry and Thomas cleaned that up and also documented the lock
handling we can drop this workaround now.
V2: implement Sima's comments
Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Simona Vetter <simona.vetter@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/20250211163109.12200-4-christian.koenig@amd.com
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/dma-buf.h | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/include/linux/dma-buf.h b/include/linux/dma-buf.h index 36216d28d8bd..c54ff2dda8cb 100644 --- a/include/linux/dma-buf.h +++ b/include/linux/dma-buf.h @@ -583,20 +583,6 @@ static inline bool dma_buf_is_dynamic(struct dma_buf *dmabuf) return !!dmabuf->ops->pin; } -/** - * dma_buf_attachment_is_dynamic - check if a DMA-buf attachment uses dynamic - * mappings - * @attach: the DMA-buf attachment to check - * - * Returns true if a DMA-buf importer wants to call the map/unmap functions with - * the dma_resv lock held. - */ -static inline bool -dma_buf_attachment_is_dynamic(struct dma_buf_attachment *attach) -{ - return !!attach->importer_ops; -} - struct dma_buf_attachment *dma_buf_attach(struct dma_buf *dmabuf, struct device *dev); struct dma_buf_attachment * |
