This patch series adds experimental P2P buffer sharing. It's disabled by default and can be enabled with amdgpu.p2p_sharing=1. TODO: * Add a whitelist of chipsets that support P2P access * Refine UVD/VCE handling on newer IP versions with GPUVM support * Handle foreign BOs in DC path * Test for regressions in existing multi-GPU buffer sharing use cases Amber Lin (1): drm/amdgpu: handle foreign BOs in the VM mapping Christian König (4): drm/amdgpu: disallow foreign BOs for UVD/VCE drm/amdgpu: disallow foreign BOs in the display path drm/amdgpu: separate BO from GEM object drm/amdgpu: enable foreign DMA-buf objects v2 Felix Kuehling (1): drm: Add helper to check exporting driver of a DMA-buf drivers/gpu/drm/amd/amdgpu/amdgpu.h | 16 +++++- drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c | 3 +- drivers/gpu/drm/amd/amdgpu/amdgpu_display.c | 6 +++ drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c | 6 ++- drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c | 41 +++++++++++---- drivers/gpu/drm/amd/amdgpu/amdgpu_object.c | 7 +-- drivers/gpu/drm/amd/amdgpu/amdgpu_prime.c | 80 ++++++++++++++++++++++++++++- drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c | 17 +++++- drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c | 17 ++++-- drivers/gpu/drm/drm_prime.c | 24 +++++++++ include/drm/drmP.h | 2 + 11 files changed, 193 insertions(+), 26 deletions(-) -- 1.9.1