summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
diff options
context:
space:
mode:
authorPhilip Yang <Philip.Yang@amd.com>2022-07-26 22:13:30 +0300
committerAlex Deucher <alexander.deucher@amd.com>2022-09-13 19:54:23 +0300
commitc969c5fd21fd700b126aa139ec57875697946474 (patch)
tree91985e7bd6a9a223fa924488837281c5204187d8 /drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
parente1f84eef313f4820cca068a238c645d0a38c6a9b (diff)
downloadlinux-c969c5fd21fd700b126aa139ec57875697946474.tar.xz
drm/amdkfd: Remove prefault before migrating to VRAM
Prefaulting potentially allocates system memory pages before a migration. This adds unnecessary overhead. Instead we can skip unallocated pages in the migration and just point migrate->dst to a 0-initialized VRAM page directly. Then the VRAM page will be inserted to the PTE. A subsequent CPU page fault will migrate the page back to system memory. 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>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_device.c')
0 files changed, 0 insertions, 0 deletions