]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite3374e119e4e7c11ffa3c914b19409df562b7200
treef625d41d912d2329e9bf8467f1c65c723a2e2c66
parentf484516789add736871ce77af3cd6b2fe8b8595c
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