]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdkfd: handle CPU fault on COW mapping
authorPhilip Yang <Philip.Yang@amd.com>
Wed, 7 Sep 2022 16:30:12 +0000 (12:30 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 13 Sep 2022 16:54:23 +0000 (12:54 -0400)
commit21a199c4a30b844d636e5dfb3461f81bf232ae91
treef1e730ba445350b3c4b70b1770294cb572f36b35
parente1ccd6fa6a7c4bd0b93a19d823614a587f805a2a
drm/amdkfd: handle CPU fault on COW mapping

If CPU page fault in a page with zone_device_data svm_bo from another
process, that means it is COW mapping in the child process and the
range is migrated to VRAM by parent process. Migrate the parent
process range back to system memory to recover the CPU page fault.

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