Skip to content

Commit 961df30

Browse files
amd-yangpalexdeucher
authored andcommitted
drm/amdkfd: Correct partial migration virtual addr
Partial migration to system memory should use migrate.addr, not prange->start as virtual address to allocate system memory page. Fixes: a546a27 ("drm/amdkfd: Use partial migrations/mapping for GPU/CPU page faults in SVM") Signed-off-by: Philip Yang <Philip.Yang@amd.com> Reviewed-by: Xiaogang Chen <Xiaogang.Chen@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
1 parent db2aad0 commit 961df30

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/gpu/drm/amd/amdkfd/kfd_migrate.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -574,7 +574,7 @@ svm_migrate_copy_to_ram(struct amdgpu_device *adev, struct svm_range *prange,
574574
pr_debug("svms 0x%p [0x%lx 0x%lx]\n", prange->svms, prange->start,
575575
prange->last);
576576

577-
addr = prange->start << PAGE_SHIFT;
577+
addr = migrate->start;
578578

579579
src = (uint64_t *)(scratch + npages);
580580
dst = scratch;

0 commit comments

Comments
 (0)