OSDN Git Service

drm/amdkfd: set owner ref to svm range prefault
authorAlex Sierra <alex.sierra@amd.com>
Thu, 6 May 2021 18:06:54 +0000 (13:06 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 1 Jul 2021 04:05:41 +0000 (00:05 -0400)
commita010d98a78c05652f9f2860f537efdcd65507c6d
tree993b87c385138aa6635357c1cc31af3091d0b347
parent8c21fc49a8e637bee5c868dafbd7e3c885a926bd
drm/amdkfd: set owner ref to svm range prefault

svm_range_prefault is called right before migrations to VRAM,
to make sure pages are resident in system memory before the migration.
With partial migrations, this reference is used by hmm range get pages
to avoid migrating pages that are already in the same VRAM domain.

Signed-off-by: Alex Sierra <alex.sierra@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
drivers/gpu/drm/amd/amdkfd/kfd_svm.c
drivers/gpu/drm/amd/amdkfd/kfd_svm.h