]> www.infradead.org Git - users/dwmw2/linux.git/commit
drm/amdkfd: Correct partial migration virtual addr
authorPhilip Yang <Philip.Yang@amd.com>
Mon, 15 Jan 2024 18:37:47 +0000 (13:37 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 29 Jan 2024 20:36:47 +0000 (15:36 -0500)
commit34e98e5b07fcd2bd06e6abbea2ccc9cef6ef5349
treee7e22f7d7de4111d252b3d4cd8477066e9dd8215
parentc0125b848abecfbc944bebe2cab076f09455b230
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: a546a2768440 ("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>
drivers/gpu/drm/amd/amdkfd/kfd_migrate.c