From: Christian König Date: Fri, 13 Sep 2019 22:38:07 +0000 (-0500) Subject: drm/amdgpu: use moving fence instead of exclusive for VM updates X-Git-Tag: v5.5-rc1~128^2~26^2~326 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=629be2039532b61907829f89446445dded1daa0a;p=users%2Fjedix%2Flinux-maple.git drm/amdgpu: use moving fence instead of exclusive for VM updates 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 Reviewed-by: Chunming Zhou Signed-off-by: Alex Deucher --- diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c index 4fd245438c77e..d34f14440eeed 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 = dma_resv_get_excl(bo->tbo.base.resv); + exclusive = bo->tbo.moving; } if (bo) {