drm/amdkfd: Fix BO offset for multi-VMA page migration
authorXiaogang Chen <Xiaogang.Chen@amd.com>
Wed, 1 Mar 2023 16:21:06 +0000 (10:21 -0600)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 7 Mar 2023 19:21:43 +0000 (14:21 -0500)
commit9473b6b25b836573d481c5ee6be0f1bd0fca14ff
treebb8b1bec2c42ddbe2502bcf35a14539df7f0d8c6
parent7a1bb27b6ba8a05b51c1589dd9d53eb43a9e9843
drm/amdkfd: Fix BO offset for multi-VMA page migration

svm_migrate_ram_to_vram migrates a prange from sys ram to vram. The prange may
cross multiple vma. Need remember current dst vram offset in the TTM resource for
each migration.

v2: squash in warning fix (Alex)

Signed-off-by: Xiaogang Chen <Xiaogang.Chen@amd.com>
Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdkfd/kfd_migrate.c