OSDN Git Service

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, 14 Mar 2023 14:27:37 +0000 (10:27 -0400)
commitb4ee9606378bb9520c94d8b96f0305c3696f5c29
treeaee66baab71af97fb7102983b75ec3e88d95fc7a
parenteeac8ede17557680855031c6f305ece2378af326
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