drm/amdgpu: add independent DMA-buf export v8
authorChristian König <christian.koenig@amd.com>
Wed, 30 May 2018 12:42:24 +0000 (14:42 +0200)
committerChristian König <christian.koenig@amd.com>
Mon, 28 Oct 2019 15:59:35 +0000 (16:59 +0100)
commit6e6db2722c287122bfc4d51e685872fb5031cf18
tree2aa94c9dfa5ebd47d136b980032edb1d89f7ca7b
parent955a72cea507051e366a4b70de86d974565bfe93
drm/amdgpu: add independent DMA-buf export v8

Add an DMA-buf export implementation independent of the DRM helpers.

This not only avoids the caching of DMA-buf mappings, but also
allows us to use the new dynamic locking approach.

This is also a prerequisite of unpinned DMA-buf handling.

v2: fix unintended recursion, remove debugging leftovers
v3: split out from unpinned DMA-buf work
v4: rebase on top of new no_sgt_cache flag
v5: fix some warnings by including amdgpu_dma_buf.h
v6: fix locking for non amdgpu exports
v7: rebased on new DMA-buf locking patch
v8: drop extra include

Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Link: https://patchwork.freedesktop.org/patch/337949/
drivers/gpu/drm/amd/amdgpu/amdgpu_dma_buf.c
drivers/gpu/drm/amd/amdgpu/amdgpu_dma_buf.h
drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c