drm/amdkfd: skip migration for pages already in VRAM
authorAlex Sierra <alex.sierra@amd.com>
Wed, 30 Jun 2021 19:09:10 +0000 (15:09 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 1 Jul 2021 04:05:41 +0000 (00:05 -0400)
commit6ffecc946fada1c39455e89488dba57941e81659
tree6fbe0ec0bfa13ea76f515ad6d62f83f6c14d0b6c
parent1ade5f84cc25ddd02161859b59345dca9aabc2e8
drm/amdkfd: skip migration for pages already in VRAM

Migration skipped for pages that are already in VRAM
domain. These could be the result of previous partial
migrations to SYS RAM, and prefetch back to VRAM.
Ex. Coherent pages in VRAM that were not written/invalidated after
a copy-on-write.

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