drm/amdkfd: debug message to count successfully migrated pages
authorPhilip Yang <Philip.Yang@amd.com>
Wed, 20 Oct 2021 21:26:49 +0000 (17:26 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 22 Oct 2021 03:38:35 +0000 (23:38 -0400)
commit33c6bd989d5e483b6197f5b6a53c81f8a8f6a215
treefa3e7b658ed353717cfc930c7439ec799a6e37df
parent75fa98d6e458d0fb723c9c968c872cd4aa153049
drm/amdkfd: debug message to count successfully migrated pages

Not all migrate.cpages returned from migrate_vma_setup can be migrated,
for example non anonymous page, or out of device memory. So after
migrate_vma_pages returns, add debug message to count pages are
successfully migrated which has MIGRATE_PFN_VALID and
MIGRATE_PFN_MIGRATE flag set.

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