drm/amdgpu: improve PRT syncing
Subsystems (2)
PATCH 1/1 drm/amdgpu: improve PRT syncing
From: Christian König <[email protected]>
Just clean that up a bit more.
--- drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c | 5 ----- drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c | 2 +- 2 files changed, 1 insertion(+), 6 deletions(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c +0 -5
@@ -760,11 +760,6 @@ static int amdgpu_bo_vm_update_pte(struct amdgpu_cs_parser *p)if (r)return r; - r =amdgpu_sync_fence (adev, &p->job->sync, - fpriv->prt_va->last_pt_update); -if (r) -return r; -if (amdgpu_sriov_vf (adev)) {struct dma_fence *f;
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c +1 -1
@@ -1768,7 +1768,7 @@ int amdgpu_vm_bo_update(struct amdgpu_device *adev,else flags =0x0 ; -if (clear || (bo && bo->tbo.resv == vm->root.base.bo->tbo.resv)) +if (clear || !bo || bo->tbo.resv == vm->root.base.bo->tbo.resv) last_update = &vm->last_update;else last_update = &bo_va->last_pt_update;
Signature · 6 lines
2.7.4 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
A message that is not in the archive (sent off-list or not yet received): 1505218001-5908-1-git-send-email-deathsimple-ANTagKRnAhcb1SvskN2V4Q@public.gmane.org
Could you stop the clean for syncing? and wait we turn back performance first?
Since you merge too kinds of fence to vm->last_update, we will be difficult to optimize which fence can remove.
Regards,
David Zhou
Quoted 31 lines · Christian König
From: Christian König <[email protected]>
Just clean that up a bit more.
Signed-off-by Christian König <[email protected]>--- drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c | 5 ----- drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c | 2 +- 2 files changed, 1 insertion(+), 6 deletions(-)drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c +0
-5@@ -760,11 +760,6 @@ static int amdgpu_bo_vm_update_pte(struct amdgpu_cs_parser *p)if (r)return r; - r =amdgpu_sync_fence (adev, &p->job->sync, - fpriv->prt_va->last_pt_update); -if (r) -return r; -if (amdgpu_sriov_vf (adev)) {struct dma_fence *f;drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c +0
-0
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c int amdgpu_vm_bo_update(struct amdgpu_device *adev, · line 1774
Quoted 8 lines
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c +1
-1@@ -1768,7 +1768,7 @@ int amdgpu_vm_bo_update(struct amdgpu_device *adev,else flags =0x0 ; -if (clear || (bo && bo->tbo.resv == vm->root.base.bo->tbo.resv)) +if (clear || !bo || bo->tbo.resv == vm->root.base.bo->tbo.resv) last_update = &vm->last_update;else last_update = &bo_va->last_pt_update;
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
A message that is not in the archive (sent off-list or not yet received): 34d092e0-1072-8ff0-2c1e-ed5cfba7d2c0-5C7GfCeVMHo@public.gmane.org
Quoted 1 line
Could you stop the clean for syncing? and wait we turn back performance first?
Performance is not that important here, what we need is correct handling and to simplify the code first.
If the closed source UMD is concerned about the performance hit with per VM BOs it should simply revert to not using them.
Regards,
Christian.
Am 13.09.2017 um 04:20 schrieb zhoucm1:
Quoted 41 lines
Could you stop the clean for syncing? and wait we turn back performance first?
Since you merge too kinds of fence to
vm->last_update, we will be difficult to optimize which fence can remove.Regards,
David Zhou
Quoted 31 lines · Christian König
From: Christian König <[email protected]>
Just clean that up a bit more.
Signed-off-by Christian König <[email protected]>--- drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c | 5 ----- drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c | 2 +- 2 files changed, 1 insertion(+), 6 deletions(-)drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c +0
-4@@ -760,11 +760,6 @@ static int amdgpu_bo_vm_update_pte(struct amdgpu_cs_parser *p)if (r)return r; - r = amdgpu_sync_fence(adev, &p->job->sync, - fpriv->prt_va->last_pt_update); -if (r) -return r; - if (amdgpu_sriov_vf(adev)) { struct dma_fence *f; diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
b/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
index 6b95ba6..2f577da 100644drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c +0
-0@@ -1768,7 +1768,7 @@ int amdgpu_vm_bo_update(struct amdgpu_device
Quoted 9 lines
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c int amdgpu_vm_bo_update(struct amdgpu_device *adev, · line 1774
Quoted 8 lines
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c +1
-0*adev, else flags =0x0 ; - if (clear || (bo && bo->tbo.resv == vm->root.base.bo->tbo.resv)) +if (clear || !bo || bo->tbo.resv == vm->root.base.bo->tbo.resv) last_update = &vm->last_update;else last_update = &bo_va->last_pt_update;
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx