drm/prime: split array import functions v4
authorChristian König <christian.koenig@amd.com>
Thu, 8 Oct 2020 10:57:32 +0000 (12:57 +0200)
committerChristian König <christian.koenig@amd.com>
Mon, 30 Nov 2020 14:00:45 +0000 (15:00 +0100)
commitc67e62790f5c156705fb162da840c6d89d0af6e0
tree019349d0d65f0d149288c29f23c89502667c0e86
parent18f7608a67fca8b8305b3557e2c00bca54785acd
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/
drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c
drivers/gpu/drm/drm_prime.c
drivers/gpu/drm/etnaviv/etnaviv_gem_prime.c
drivers/gpu/drm/mediatek/mtk_drm_gem.c
drivers/gpu/drm/msm/msm_gem.c
drivers/gpu/drm/nouveau/nouveau_bo.c
drivers/gpu/drm/omapdrm/omap_gem.c
drivers/gpu/drm/radeon/radeon_ttm.c
drivers/gpu/drm/vgem/vgem_drv.c
drivers/gpu/drm/xen/xen_drm_front_gem.c
include/drm/drm_prime.h