]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
drm/amdgpu: Allow P2P access through XGMI
authorFelix Kuehling <felix.kuehling@amd.com>
Wed, 16 Apr 2025 04:19:13 +0000 (00:19 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 29 May 2025 09:12:21 +0000 (11:12 +0200)
commited311215fa768eb8e59dc919c90c7f465a021185
tree4f6c57c07c3ab91582f52caf64a506a442b10071
parent40a4242314ad45c6f0e681c12566edc9dbc66bde
drm/amdgpu: Allow P2P access through XGMI

[ Upstream commit a92741e72f91b904c1d8c3d409ed8dbe9c1f2b26 ]

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>
(cherry picked from commit 372c8d72c3680fdea3fbb2d6b089f76b4a6d596a)
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/amd/amdgpu/amdgpu_dma_buf.c