]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
drm/amdgpu: Reserve fences for VM update
authorFelix Kuehling <Felix.Kuehling@amd.com>
Mon, 17 Jul 2023 19:28:52 +0000 (15:28 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 8 Nov 2023 13:11:01 +0000 (14:11 +0100)
commitff86d69b2e5004ec256a9301990acdaa282a777c
tree6b6b05031adc5a816b05211dba530fca4cb10a34
parent8e4a77ba25ec7dc24c008d78c25ef6e766d0bab4
drm/amdgpu: Reserve fences for VM update

[ Upstream commit 316baf09d355aec1179981b6dfe28eba50c5ee5b ]

In amdgpu_dma_buf_move_notify reserve fences for the page table updates
in amdgpu_vm_clear_freed and amdgpu_vm_handle_moved. This fixes a BUG_ON
in dma_resv_add_fence when using SDMA for page table updates.

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/amd/amdgpu/amdgpu_dma_buf.c