drm/amdgpu: Allow P2P access through XGMI
authorFelix Kuehling <felix.kuehling@amd.com>
Wed, 16 Apr 2025 04:19:13 +0000 (00:19 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 21 Apr 2025 15:28:36 +0000 (11:28 -0400)
commit372c8d72c3680fdea3fbb2d6b089f76b4a6d596a
tree4efdb418a58b89f89a9c743aebaff2c4e7f35a41
parente15d09f510d0303b53e556a73fa4236744c19695
drm/amdgpu: Allow P2P access through XGMI

If peer memory is accessible through XGMI, allow leaving it in VRAM
rather than forcing its migration to GTT on DMABuf attachment.

Signed-off-by: Felix Kuehling <felix.kuehling@amd.com>
Tested-by: Hao (Claire) Zhou <hao.zhou@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_dma_buf.c