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.koe...@amd.com>
Cc: Alex Deucher <alexander.deuc...@amd.com>
Cc: Felix Kuehling <felix.kuehl...@amd.com>
Suggested-by: Christian König <christian.koe...@amd.com>
Signed-off-by: xinhui pan <xinhui....@amd.com>
---
 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@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

Reply via email to