]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitaf948bcd4255e371e9de4d518a2905ed2641816e
treefa3e7b658ed353717cfc930c7439ec799a6e37df
parente3374e119e4e7c11ffa3c914b19409df562b7200
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