drm/amdgpu: Let KFD sync with VM fences
authorFelix Kuehling <Felix.Kuehling@amd.com>
Mon, 18 Dec 2023 21:17:23 +0000 (16:17 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 3 Jan 2024 15:46:13 +0000 (10:46 -0500)
commitec9ba4821fa52b5efdbc4cdf0a77497990655231
tree68d63c021bd229c63cc8acdc8d7cfdecdb2279b5
parentefae5a9eb47b76d5f84c0a0ca2ec95c9ce8a393c
drm/amdgpu: Let KFD sync with VM fences

Change the rules for amdgpu_sync_resv to let KFD synchronize with VM
fences on page table reservations. This fixes intermittent memory
corruption after evictions when using amdgpu_vm_handle_moved to update
page tables for VM mappings managed through render nodes.

Signed-off-by: Felix Kuehling <Felix.Kuehling@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_sync.c