summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/radeon
diff options
context:
space:
mode:
authorAlex Deucher <alexander.deucher@amd.com>2016-10-10 12:42:33 -0400
committerAlex Deucher <alexander.deucher@amd.com>2016-10-25 14:38:33 -0400
commitec9aaaff66668217c0c5634d062b350429d8cfd2 (patch)
treef904aff8809fb2a7c3f4c80cb3ad9986f30b4cd3 /drivers/gpu/drm/radeon
parenta0a71e49f533fe67c71abd5f3a0adf2fd10769f2 (diff)
downloadop-kernel-dev-ec9aaaff66668217c0c5634d062b350429d8cfd2.zip
op-kernel-dev-ec9aaaff66668217c0c5634d062b350429d8cfd2.tar.gz
drm/radeon: clarify why we evict vram twice on suspend
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>
Diffstat (limited to 'drivers/gpu/drm/radeon')
-rw-r--r--drivers/gpu/drm/radeon/radeon_device.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/gpu/drm/radeon/radeon_device.c b/drivers/gpu/drm/radeon/radeon_device.c
index eb92aef..79c9b6f 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);
OpenPOWER on IntegriCloud