diff options
author | Alex Deucher <alexander.deucher@amd.com> | 2016-10-10 12:41:36 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2016-10-25 14:38:33 -0400 |
commit | a0a71e49f533fe67c71abd5f3a0adf2fd10769f2 (patch) | |
tree | 7ad28271346b65df3a9fb085eba9f80f260f5dea /drivers | |
parent | db9635cc14f316346c5b3954153d7e8c7016105d (diff) | |
download | talos-obmc-linux-a0a71e49f533fe67c71abd5f3a0adf2fd10769f2.tar.gz talos-obmc-linux-a0a71e49f533fe67c71abd5f3a0adf2fd10769f2.zip |
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')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 5 |
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); |