]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/amdkfd: Evict BO itself for contiguous allocation
authorPhilip Yang <Philip.Yang@amd.com>
Fri, 5 Apr 2024 20:02:50 +0000 (16:02 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 30 Apr 2024 13:59:51 +0000 (09:59 -0400)
commitd53ce02352058639cacccc88cdbdbf48f1ee3b5a
tree9a2c5c209e39e9e0efc15ccd11741c7b40766d9e
parent01d6606beca0b7e84ce9d7a8d5cd4a9a850a00d0
drm/amdkfd: Evict BO itself for contiguous allocation

If the BO pages pinned for RDMA is not contiguous on VRAM, evict it to
system memory first to free the VRAM space, then allocate contiguous
VRAM space, and then move it from system memory back to VRAM.

v6: user context should use interruptible call (Felix)

Signed-off-by: Philip Yang <Philip.Yang@amd.com>
Reviewed-by: Felix Kuehling <felix.kuehling@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c