]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
Revert "drm/amdkfd: return migration pages from copy function"
authorJames Zhu <James.Zhu@amd.com>
Fri, 22 Aug 2025 19:38:00 +0000 (15:38 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 15 Sep 2025 21:02:50 +0000 (17:02 -0400)
commit7ccaaf13197fddb525571d6646bc174405efb37c
tree8c32eac28c786d4e03a246d5f8324be275549d6c
parent85442bac84666640354c6728fd5d5d241190d960
Revert "drm/amdkfd: return migration pages from copy function"

This reverts commit bd6093e2f1601c0c83906f5115a2efb6b93050b1.

migrate_vma_pages can fail if a CPU thread faults on the same page.
However, the page table is locked and only one of the new pages will
be inserted. The device driver will see that the MIGRATE_PFN_MIGRATE
bit is cleared if it loses the race.

Signed-off-by: James Zhu <James.Zhu@amd.com>
Reviewed-by: Philip Yang <Philip.Yang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdkfd/kfd_migrate.c