diff options
| author | Arunpravin <[email protected]> | 2020-08-06 09:04:33 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2020-08-11 15:47:35 +0000 |
| commit | 0cf0ee983b14af5e2160fa677b2eeb4c5dbb03ad (patch) | |
| tree | 73d4641e7a16e0292f7ea953e5a508f361ad1573 /drivers/gpu/drm/amd/amdgpu/amdgpu_dma_buf.h | |
| parent | drm/amd/display: convert to use le16_add_cpu() (diff) | |
| download | kernel-0cf0ee983b14af5e2160fa677b2eeb4c5dbb03ad.tar.gz kernel-0cf0ee983b14af5e2160fa677b2eeb4c5dbb03ad.zip | |
drm/amdgpu: Enable P2P dmabuf over XGMI
Access the exported P2P dmabuf over XGMI, if available.
Otherwise, fall back to the existing PCIe method.
Reviewed-by: Christian König <[email protected]>
Signed-off-by: Arunpravin <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_dma_buf.h')
| -rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_dma_buf.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_dma_buf.h b/drivers/gpu/drm/amd/amdgpu/amdgpu_dma_buf.h index ec447a7b6b28..2c5c84a06bb9 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_dma_buf.h +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_dma_buf.h @@ -29,6 +29,8 @@ struct dma_buf *amdgpu_gem_prime_export(struct drm_gem_object *gobj, int flags); struct drm_gem_object *amdgpu_gem_prime_import(struct drm_device *dev, struct dma_buf *dma_buf); +bool amdgpu_dmabuf_is_xgmi_accessible(struct amdgpu_device *adev, + struct amdgpu_bo *bo); void *amdgpu_gem_prime_vmap(struct drm_gem_object *obj); void amdgpu_gem_prime_vunmap(struct drm_gem_object *obj, void *vaddr); int amdgpu_gem_prime_mmap(struct drm_gem_object *obj, |
