AMD-GFX Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/3] drm/amdgpu: use moving fence instead of exclusive for VM updates
@ 2019-09-02 10:52 Christian König
       [not found] ` <20190902105219.2813-1-christian.koenig-5C7GfCeVMHo@public.gmane.org>
  0 siblings, 1 reply; 12+ messages in thread
From: Christian König @ 2019-09-02 10:52 UTC (permalink / raw)
  To: amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW

Make VM updates depend on the moving fence instead of the exclusive one.

Makes it less likely to actually have a dependency.

Signed-off-by: Christian König <christian.koenig@amd.com>
---
 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
index 189ad5699946..501e13420786 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
@@ -1706,7 +1706,7 @@ int amdgpu_vm_bo_update(struct amdgpu_device *adev,
 			ttm = container_of(bo->tbo.ttm, struct ttm_dma_tt, ttm);
 			pages_addr = ttm->dma_address;
 		}
-		exclusive = reservation_object_get_excl(bo->tbo.resv);
+		exclusive = bo->tbo.moving;
 	}
 
 	if (bo) {
-- 
2.17.1

_______________________________________________
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

^ permalink raw reply related	[flat|nested] 12+ messages in thread
* [PATCH 1/3] drm/amdgpu: use moving fence instead of exclusive for VM updates
@ 2019-09-03  9:09 Christian König
       [not found] ` <20190903090904.30747-1-christian.koenig-5C7GfCeVMHo@public.gmane.org>
  0 siblings, 1 reply; 12+ messages in thread
From: Christian König @ 2019-09-03  9:09 UTC (permalink / raw)
  To: amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW

Make VM updates depend on the moving fence instead of the exclusive one.

Makes it less likely to actually have a dependency.

Signed-off-by: Christian König <christian.koenig@amd.com>
---
 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
index 189ad5699946..501e13420786 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
@@ -1706,7 +1706,7 @@ int amdgpu_vm_bo_update(struct amdgpu_device *adev,
 			ttm = container_of(bo->tbo.ttm, struct ttm_dma_tt, ttm);
 			pages_addr = ttm->dma_address;
 		}
-		exclusive = reservation_object_get_excl(bo->tbo.resv);
+		exclusive = bo->tbo.moving;
 	}
 
 	if (bo) {
-- 
2.17.1

_______________________________________________
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

^ permalink raw reply related	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2019-09-03 20:37 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-09-02 10:52 [PATCH 1/3] drm/amdgpu: use moving fence instead of exclusive for VM updates Christian König
     [not found] ` <20190902105219.2813-1-christian.koenig-5C7GfCeVMHo@public.gmane.org>
2019-09-02 10:52   ` [PATCH 2/3] drm/amdgpu: reserve at least 4MB of VRAM for page tables Christian König
     [not found]     ` <20190902105219.2813-2-christian.koenig-5C7GfCeVMHo@public.gmane.org>
2019-09-03  6:52       ` Zhou, David(ChunMing)
     [not found]         ` <MN2PR12MB29104DDA4EBB320F67988981B4B90-rweVpJHSKTr1t3MqfsnKMAdYzm3356FpvxpqHgZTriW3zl9H0oFU5g@public.gmane.org>
2019-09-03  8:47           ` Christian König
2019-09-02 10:52   ` [PATCH 3/3] drm/amdgpu: remove amdgpu_cs_try_evict Christian König
     [not found]     ` <20190902105219.2813-3-christian.koenig-5C7GfCeVMHo@public.gmane.org>
2019-09-02 14:07       ` Kenny Ho
     [not found]         ` <CAOWid-dhHxhuPRmz26POaFKnAo3LfvayGnEqA-wLCRn3kNsKsw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2019-09-02 14:30           ` Christian König
     [not found]             ` <4e8e46ea-4492-480e-bcd3-58cc563e4520-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2019-09-02 14:47               ` Kenny Ho
     [not found]                 ` <CAOWid-cCsb3OifZhuKA3-uPxj=S9TS96HBYb5b-xM-7+yzNRXA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2019-09-02 14:56                   ` Christian König
2019-09-03 20:37   ` [PATCH 1/3] drm/amdgpu: use moving fence instead of exclusive for VM updates Kuehling, Felix
  -- strict thread matches above, loose matches on Subject: below --
2019-09-03  9:09 Christian König
     [not found] ` <20190903090904.30747-1-christian.koenig-5C7GfCeVMHo@public.gmane.org>
2019-09-03  9:09   ` [PATCH 3/3] drm/amdgpu: remove amdgpu_cs_try_evict Christian König
     [not found]     ` <20190903090904.30747-3-christian.koenig-5C7GfCeVMHo@public.gmane.org>
2019-09-03 12:29       ` Chunming Zhou

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox