]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitbd7f2a7870457262813680070f3a2b31f88cc3ff
tree6fbe0ec0bfa13ea76f515ad6d62f83f6c14d0b6c
parent1fab59fb04cf7907e7b3ed3b4835a018acc519bd
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