drm/amdgpu: add support for exporting VRAM using DMA-buf v3
authorChristian König <christian.koenig@amd.com>
Fri, 23 Mar 2018 15:56:37 +0000 (16:56 +0100)
committerChristian König <christian.koenig@amd.com>
Wed, 1 Apr 2020 07:02:45 +0000 (09:02 +0200)
commitf44ffd677fb3562ac0a1ff9c8ae52672be741f00
treef030e386ccf371e1e2ad9f315fcab3d74103c4be
parent48262cd9499c9cd0faf687ef9427cc0b0a3b0189
drm/amdgpu: add support for exporting VRAM using DMA-buf v3

We should be able to do this now after checking all the prerequisites.

v2: fix entrie count in the sgt
v3: manually construct the sg

Signed-off-by: Christian König <christian.koenig@amd.com>
Acked-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Acked-by: Sumit Semwal <sumit.semwal@linaro.org>
Link: https://patchwork.freedesktop.org/patch/359295
drivers/gpu/drm/amd/amdgpu/amdgpu_dma_buf.c
drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.h
drivers/gpu/drm/amd/amdgpu/amdgpu_vram_mgr.c