drm/amdgpu: clarify why we evict vram twice on suspend
Subsystems (2)
PATCH 1/2 drm/amdgpu: clarify why we evict vram twice on suspend
Update the comment to explain why we do this.
Signed-off-by Alex Deucher <[email protected]>
--- drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +4 -1
@@ -1958,7 +1958,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);
Signature · 6 lines
2.5.5 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
A message that is not in the archive (sent off-list or not yet received): 1476118180-24496-1-git-send-email-alexander.deucher-5C7GfCeVMHo@public.gmane.org
PATCH 2/2 drm/radeon: clarify why we evict vram twice on suspend
Update the comment to explain why we do this.
Signed-off-by Alex Deucher <[email protected]>
--- drivers/gpu/drm/radeon/radeon_device.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)
drivers/gpu/drm/radeon/radeon_device.c +4 -1
@@ -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);
Signature · 6 lines
2.5.5 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
Christian König
Reviewed-byAm 10.10.2016 um 18:49 schrieb Alex Deucher:
Quoted 3 lines
Update the comment to explain why we do this.
Signed-off-by Alex Deucher <[email protected]>
Reviewed-by Christian König <[email protected]> for both.
Quoted 10 lines
--- drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +0
-0@@ -1958,7 +1958,10 @@ int amdgpu_device_suspend(struct drm_device *dev, bool suspend, bool fbcon)
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c int amdgpu_device_suspend(struct drm_device *dev, bool suspend, bool fbcon) · line 1967
Quoted 10 lines
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +4
-1r =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);
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx