Job fence on page table should be a shared one, so add it to the root page talbe bo resv. Cc: Christian König <christian.koenig@xxxxxxx> Cc: Alex Deucher <alexander.deucher@xxxxxxx> Cc: Felix Kuehling <Felix.Kuehling@xxxxxxx> Suggested-by: Christian König <christian.koenig@xxxxxxx> Signed-off-by: xinhui pan <xinhui.pan@xxxxxxx> --- drivers/gpu/drm/amd/amdgpu/amdgpu_vm_sdma.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_vm_sdma.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_vm_sdma.c index 4cc7881f438c..c094654b233c 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_vm_sdma.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_vm_sdma.c @@ -107,8 +107,10 @@ static int amdgpu_vm_sdma_commit(struct amdgpu_vm_update_params *p, tmp = dma_fence_get(f); if (p->direct) swap(p->vm->last_direct, tmp); - else + else { + dma_resv_add_shared_fence(p->vm->root.base.bo->tbo.base.resv, tmp); swap(p->vm->last_delayed, tmp); + } dma_fence_put(tmp); if (fence && !p->direct) -- 2.17.1 _______________________________________________ amd-gfx mailing list amd-gfx@xxxxxxxxxxxxxxxxxxxxx https://lists.freedesktop.org/mailman/listinfo/amd-gfx