From: Alex Deucher Date: Mon, 10 Oct 2016 16:42:33 +0000 (-0400) Subject: drm/radeon: clarify why we evict vram twice on suspend X-Git-Tag: v4.10-rc1~154^2~43^2~53 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=ec9aaaff66668217c0c5634d062b350429d8cfd2;p=karo-tx-linux.git drm/radeon: clarify why we evict vram twice on suspend Update the comment to explain why we do this. Reviewed-by: Christian König Signed-off-by: Alex Deucher --- diff --git a/drivers/gpu/drm/radeon/radeon_device.c b/drivers/gpu/drm/radeon/radeon_device.c index eb92aef46e3c..79c9b6f3f013 100644 --- a/drivers/gpu/drm/radeon/radeon_device.c +++ b/drivers/gpu/drm/radeon/radeon_device.c @@ -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);