drm/radeon: clarify why we evict vram twice on suspend
authorAlex Deucher <alexander.deucher@amd.com>
Mon, 10 Oct 2016 16:42:33 +0000 (12:42 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 25 Oct 2016 18:38:33 +0000 (14:38 -0400)
Update the comment to explain why we do this.

Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/radeon/radeon_device.c

index eb92aef46e3cfcf99a07d26272fac7725d0cfaa8..79c9b6f3f013b285cadd3ccc1570ddb126e98f67 100644 (file)
@@ -1651,7 +1651,10 @@ int radeon_suspend_kms(struct drm_device *dev, bool suspend,
 
        radeon_suspend(rdev);
        radeon_hpd_fini(rdev);
-       /* evict remaining vram memory */
+       /* evict remaining vram memory
+        * This second call to evict vram is to evict the gart page table
+        * using the CPU.
+        */
        radeon_bo_evict_vram(rdev);
 
        radeon_agp_suspend(rdev);