summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm
diff options
context:
space:
mode:
authorAlex Deucher <alexander.deucher@amd.com>2016-10-10 12:41:36 -0400
committerAlex Deucher <alexander.deucher@amd.com>2016-10-25 14:38:33 -0400
commita0a71e49f533fe67c71abd5f3a0adf2fd10769f2 (patch)
tree7ad28271346b65df3a9fb085eba9f80f260f5dea /drivers/gpu/drm
parentdb9635cc14f316346c5b3954153d7e8c7016105d (diff)
downloadlinux-a0a71e49f533fe67c71abd5f3a0adf2fd10769f2.tar.bz2
drm/amdgpu: 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')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu_device.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
index 9df66d1e843d..afeb7ab16d09 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
@@ -1982,7 +1982,10 @@ int amdgpu_device_suspend(struct drm_device *dev, bool suspend, bool fbcon)
r = amdgpu_suspend(adev);
- /* evict remaining vram memory */
+ /* evict remaining vram memory
+ * This second call to evict vram is to evict the gart page table
+ * using the CPU.
+ */
amdgpu_bo_evict_vram(adev);
pci_save_state(dev->pdev);