diff options
| author | Christian König <christian.koenig@amd.com> | 2025-02-11 19:20:53 +0300 |
|---|---|---|
| committer | Christian König <christian.koenig@amd.com> | 2025-03-06 17:21:36 +0300 |
| commit | b72f66f22c0e39ae6684c43fead774c13db24e73 (patch) | |
| tree | 6e254677457b5ea9bfbc58e78a034518cb3ddf89 /include/linux | |
| parent | de68b17d5d0716c9a02b8a6ffa34f47c8f2f7690 (diff) | |
| download | linux-b72f66f22c0e39ae6684c43fead774c13db24e73.tar.xz | |
dma-buf: drop caching of sg_tables
That was purely for the transition from static to dynamic dma-buf
handling and can be removed again now.
Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Simona Vetter <simona.vetter@ffwll.ch>
Reviewed-by: Dmitry Osipenko <dmitry.osipenko@collabora.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20250211163109.12200-5-christian.koenig@amd.com
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/dma-buf.h | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/include/linux/dma-buf.h b/include/linux/dma-buf.h index c54ff2dda8cb..544f8f8c3f44 100644 --- a/include/linux/dma-buf.h +++ b/include/linux/dma-buf.h @@ -35,15 +35,6 @@ struct dma_buf_attachment; */ struct dma_buf_ops { /** - * @cache_sgt_mapping: - * - * If true the framework will cache the first mapping made for each - * attachment. This avoids creating mappings for attachments multiple - * times. - */ - bool cache_sgt_mapping; - - /** * @attach: * * This is called from dma_buf_attach() to make sure that a given @@ -493,8 +484,6 @@ struct dma_buf_attach_ops { * @dmabuf: buffer for this attachment. * @dev: device attached to the buffer. * @node: list of dma_buf_attachment, protected by dma_resv lock of the dmabuf. - * @sgt: cached mapping. - * @dir: direction of cached mapping. * @peer2peer: true if the importer can handle peer resources without pages. * @priv: exporter specific attachment data. * @importer_ops: importer operations for this attachment, if provided @@ -514,8 +503,6 @@ struct dma_buf_attachment { struct dma_buf *dmabuf; struct device *dev; struct list_head node; - struct sg_table *sgt; - enum dma_data_direction dir; bool peer2peer; const struct dma_buf_attach_ops *importer_ops; void *importer_priv; |
