drm/amdgpu: move the amdgpu_fbdev_set_suspend() further up
Subsystems (2)
PATCH 1/1 drm/amdgpu: move the amdgpu_fbdev_set_suspend() further up
This patch moves amdgpu_fbdev_set_suspend() to the beginning of suspend sequence.
This is to ensure fbcon does not to write to the VRAM after GPU is powerd down.
--- drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +3 -3
@@ -2702,6 +2702,9 @@ int amdgpu_device_suspend(struct drm_device *dev, bool suspend, bool fbcon)drm_kms_helper_poll_disable (dev); +if (fbcon) +amdgpu_fbdev_set_suspend (adev,1 ); +if (!amdgpu_device_has_dc_support (adev)) {/* turn off display hw */ drm_modeset_lock_all (dev);
@@ -2767,9 +2770,6 @@ int amdgpu_device_suspend(struct drm_device *dev, bool suspend, bool fbcon)DRM_ERROR ("amdgpu asic reset failed\n" ); } -if (fbcon) -amdgpu_fbdev_set_suspend (adev,1 ); -return 0 ; }
Signature · 6 lines
2.7.4 _______________________________________________ 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): 1532404960-2179-1-git-send-email-shirish.s-5C7GfCeVMHo@public.gmane.org
Alex Deucher
Reviewed-byQuoted 8 lines · Shirish S
This patch moves
amdgpu_fbdev_set_suspend()to the beginning of suspend sequence.This is to ensure fbcon does not to write to the VRAM after GPU is powerd down.
Signed-off-by Shirish S <[email protected]>Reviewed-by Michel Dänzer <[email protected]>
Quoted 31 lines
--- drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +3
-4@@ -2702,6 +2702,9 @@ int amdgpu_device_suspend(struct drm_device *dev, bool suspend, bool fbcon)drm_kms_helper_poll_disable (dev); +if (fbcon) +amdgpu_fbdev_set_suspend (adev,1 ); +if (!amdgpu_device_has_dc_support (adev)) {/* turn off display hw */ drm_modeset_lock_all (dev);@@ -2767,9 +2770,6 @@ int amdgpu_device_suspend(struct drm_device *dev, bool suspend, bool fbcon)DRM_ERROR ("amdgpu asic reset failed\n" ); } -if (fbcon) -amdgpu_fbdev_set_suspend (adev,1 ); -return 0 ; } --2.7.4
Quoted 4 lines
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
Huang Rui
Reviewed-byQuoted 8 lines · Shirish S
This patch moves
amdgpu_fbdev_set_suspend()to the beginning of suspend sequence.This is to ensure fbcon does not to write to the VRAM after GPU is powerd down.
Signed-off-by Shirish S <[email protected]>Reviewed-by Michel Dänzer <[email protected]>
Quoted 35 lines
--- drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +3
-3@@ -2702,6 +2702,9 @@ int amdgpu_device_suspend(struct drm_device *dev, bool suspend, bool fbcon)drm_kms_helper_poll_disable (dev); +if (fbcon) +amdgpu_fbdev_set_suspend (adev,1 ); +if (!amdgpu_device_has_dc_support (adev)) {/* turn off display hw */ drm_modeset_lock_all (dev);@@ -2767,9 +2770,6 @@ int amdgpu_device_suspend(struct drm_device *dev, bool suspend, bool fbcon)DRM_ERROR ("amdgpu asic reset failed\n" ); } -if (fbcon) -amdgpu_fbdev_set_suspend (adev,1 ); -return 0 ; }Signature · 6 lines
2.7.4 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx