]> www.infradead.org Git - users/dwmw2/linux.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)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 10 Apr 2024 02:14:03 +0000 (22:14 -0400)
commitdfb15c4ab58658aaa6161b546e7eb852ae7cc132
tree0e022949559657a6062573e9c496fa0a9f4d68b7
parent24c30a7b12b148cb9002d5b73c4c229138e39eb2
amd/amdkfd: sync all devices to wait all processes being evicted

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>
drivers/gpu/drm/amd/amdkfd/kfd_device.c