]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
amd/amdkfd: sync all devices to wait all processes being evicted
authorZhigang Luo <Zhigang.Luo@amd.com>
Mon, 18 Mar 2024 18:13:10 +0000 (14:13 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 17 May 2024 10:02:16 +0000 (12:02 +0200)
commitb6f6626528fe724b512c34f3fb5946c36a135f58
tree5e010fe11b61ff44f22c364d7845fc1143e16f6c
parenta624829bba2752a2b726f227574d6ca1d2e39671
amd/amdkfd: sync all devices to wait all processes being evicted

[ Upstream commit d06af584be5a769d124b7302b32a033e9559761d ]

If there are more than one device doing reset in parallel, the first
device will call kfd_suspend_all_processes() to evict all processes
on all devices, this call takes time to finish. other device will
start reset and recover without waiting. if the process has not been
evicted before doing recover, it will be restored, then caused page
fault.

Signed-off-by: Zhigang Luo <Zhigang.Luo@amd.com>
Reviewed-by: Felix Kuehling <felix.kuehling@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/amd/amdkfd/kfd_device.c