]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
drm/amdgpu: use moving fence instead of exclusive for VM updates
authorChristian König <christian.koenig@amd.com>
Fri, 13 Sep 2019 22:38:07 +0000 (17:38 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 13 Sep 2019 22:38:38 +0000 (17:38 -0500)
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>
Reviewed-by: Chunming Zhou <david1.zhou@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c

index 4fd245438c77e0eba9c9805f112c44079a93c094..d34f14440eeed11d2f5ae64c42b6f65fc6a805ab 100644 (file)
@@ -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) {