]> Git Repo - linux.git/commitdiff
drm/amdgpu: don't flush the TLB before initializing GART
authorChristian König <[email protected]>
Mon, 16 Oct 2017 15:37:06 +0000 (17:37 +0200)
committerAlex Deucher <[email protected]>
Thu, 26 Oct 2017 03:09:40 +0000 (23:09 -0400)
No point in doing this.

Signed-off-by: Christian König <[email protected]>
Reviewed-by: Michel Dänzer <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
drivers/gpu/drm/amd/amdgpu/amdgpu_gart.c

index f4370081f6e60bafc3003e100e2eb41911d59951..fe818501c520ba4dc332314ef848b7e48a4a2e32 100644 (file)
@@ -332,12 +332,13 @@ int amdgpu_gart_bind(struct amdgpu_device *adev, uint64_t offset,
                adev->gart.pages[p] = pagelist[i];
 #endif
 
-       if (adev->gart.ptr) {
-               r = amdgpu_gart_map(adev, offset, pages, dma_addr, flags,
-                           adev->gart.ptr);
-               if (r)
-                       return r;
-       }
+       if (!adev->gart.ptr)
+               return 0;
+
+       r = amdgpu_gart_map(adev, offset, pages, dma_addr, flags,
+                   adev->gart.ptr);
+       if (r)
+               return r;
 
        mb();
        amdgpu_gart_flush_gpu_tlb(adev, 0);
This page took 0.057816 seconds and 4 git commands to generate.