Skip to content
Commit b1f85227 authored by Philip Yang's avatar Philip Yang Committed by Greg Kroah-Hartman
Browse files

drm/amdkfd: handle CPU fault on COW mapping

[ Upstream commit e1f84eef

 ]

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: default avatarPhilip Yang <Philip.Yang@amd.com>
Reviewed-by: default avatarFelix Kuehling <Felix.Kuehling@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
Stable-dep-of: 5b994354

 ("drm/amdkfd: Fix NULL pointer dereference in svm_migrate_to_ram()")
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 36770c04
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment