OSDN Git Service

drm/amdkfd: clarify the origin of cpages returned by migration functions
authorPhilip Yang <Philip.Yang@amd.com>
Fri, 15 Oct 2021 19:57:52 +0000 (15:57 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 22 Oct 2021 03:38:29 +0000 (23:38 -0400)
commit75fa98d6e458d0fb723c9c968c872cd4aa153049
treef625d41d912d2329e9bf8467f1c65c723a2e2c66
parente77f0f5c6a66298b034c8e2021c5a0ece07235ac
drm/amdkfd: clarify the origin of cpages returned by migration functions

cpages is only updated by migrate_vma_setup. So capture its value at
that point to clarify the significance of the number. The next patch
will add counting of actually migrated pages after migrate_vma_pages for
debug purposes.

Signed-off-by: Philip Yang <Philip.Yang@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