drm/amdgpu: Cancel the delay work when suspend
Subsystems (2)
PATCH 1/1 drm/amdgpu: Cancel the delay work when suspend
Cancel the delay work to avoid the corner case that ib test was not running when suspend
Signed-off-by Rex Zhu <[email protected]>
--- drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 2 ++ 1 file changed, 2 insertions(+)
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +2 -0
@@ -2675,6 +2675,8 @@ int amdgpu_device_suspend(struct drm_device *dev, bool suspend, bool fbcon)if (fbcon)amdgpu_fbdev_set_suspend (adev,1 ); +cancel_delayed_work_sync (&adev->late_init_work); +if (!amdgpu_device_has_dc_support (adev)) {/* turn off display hw */ drm_modeset_lock_all (dev);
Signature · 6 lines
1.9.1 _______________________________________________ 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): 1534239382-4129-1-git-send-email-Rex.Zhu-5C7GfCeVMHo@public.gmane.org
Christian König
Reviewed-byAm 14.08.2018 um 11:36 schrieb Rex Zhu:
Quoted 4 lines
Cancel the delay work to avoid the corner case that ib test was not running when suspend
Signed-off-by Rex Zhu <[email protected]>
Reviewed-by Christian König <[email protected]>
Quoted 9 lines
--- drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 2 ++ 1 file changed, 2 insertions(+)drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +0
-0
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c int amdgpu_device_suspend(struct drm_device *dev, bool suspend, bool fbcon) · line 2682
Quoted 8 lines
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +2
-0@@ -2675,6 +2675,8 @@ int amdgpu_device_suspend(struct drm_device *dev, bool suspend, bool fbcon)if (fbcon)amdgpu_fbdev_set_suspend (adev,1 ); +cancel_delayed_work_sync (&adev->late_init_work); +if (!amdgpu_device_has_dc_support (adev)) {/* turn off display hw */ drm_modeset_lock_all (dev);
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx