aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorChristian König <christian.koenig@amd.com>2020-10-08 12:57:32 +0200
committerChristian König <christian.koenig@amd.com>2020-11-30 15:00:45 +0100
commitc67e62790f5c156705fb162da840c6d89d0af6e0 (patch)
tree019349d0d65f0d149288c29f23c89502667c0e86 /include
parentdrm/ttm: nuke ttm_dma_tt_init (diff)
downloadlinux-dev-c67e62790f5c156705fb162da840c6d89d0af6e0.tar.xz
linux-dev-c67e62790f5c156705fb162da840c6d89d0af6e0.zip
drm/prime: split array import functions v4
Mapping the imported pages of a DMA-buf into an userspace process doesn't work as expected. But we have reoccurring requests on this approach, so split the functions for this and document that dma_buf_mmap() needs to be used instead. v2: split it into two functions v3: rebased on latest changes v4: update commit message a bit Signed-off-by: Christian König <christian.koenig@amd.com> Acked-by: Daniel Vetter <daniel.vetter@ffwll.ch> Link: https://patchwork.freedesktop.org/patch/403838/
Diffstat (limited to 'include')
-rw-r--r--include/drm/drm_prime.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/include/drm/drm_prime.h b/include/drm/drm_prime.h
index 0991a47a1567..54f2c58305d2 100644
--- a/include/drm/drm_prime.h
+++ b/include/drm/drm_prime.h
@@ -105,8 +105,9 @@ struct drm_gem_object *drm_gem_prime_import(struct drm_device *dev,
void drm_prime_gem_destroy(struct drm_gem_object *obj, struct sg_table *sg);
-int drm_prime_sg_to_page_addr_arrays(struct sg_table *sgt, struct page **pages,
- dma_addr_t *addrs, int max_pages);
-
+int drm_prime_sg_to_page_array(struct sg_table *sgt, struct page **pages,
+ int max_pages);
+int drm_prime_sg_to_dma_addr_array(struct sg_table *sgt, dma_addr_t *addrs,
+ int max_pages);
#endif /* __DRM_PRIME_H__ */