[PATCH] drm/amdgpu: Cancel the delay work when suspend
Christian König
ckoenig.leichtzumerken at gmail.com
Tue Aug 14 09:58:36 UTC 2018
Am 14.08.2018 um 11:36 schrieb Rex Zhu:
> Cancel the delay work to avoid the corner case that
> ib test was not running when suspend
>
> Signed-off-by: Rex Zhu <Rex.Zhu at amd.com>
Reviewed-by: Christian König <christian.koenig at amd.com>
> ---
> drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
> index 413ef9a..7ecf040 100644
> --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
> +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
> @@ -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);
More information about the amd-gfx
mailing list