drm/amdkfd: skip invalid pages during migrations
authorAlex Sierra <alex.sierra@amd.com>
Wed, 12 May 2021 15:54:58 +0000 (10:54 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 1 Jul 2021 04:05:41 +0000 (00:05 -0400)
commit1ade5f84cc25ddd02161859b59345dca9aabc2e8
treefb6a4bb613c7b7fcd258f6da43de24045a9b87a6
parent1d5dbfe6c06a5269b535f8e6b13569f32c42ea60
drm/amdkfd: skip invalid pages during migrations

Invalid pages can be the result of pages that have been migrated
already due to copy-on-write procedure or pages that were never
migrated to VRAM in first place. This is not an issue anymore,
as pranges now support mixed memory domains (CPU/GPU).

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