diff options
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c index c2459abb408d..1aa0364d7961 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | |||
@@ -1839,7 +1839,8 @@ int amdgpu_device_suspend(struct drm_device *dev, bool suspend, bool fbcon) | |||
1839 | 1839 | ||
1840 | adev = dev->dev_private; | 1840 | adev = dev->dev_private; |
1841 | 1841 | ||
1842 | if (dev->switch_power_state == DRM_SWITCH_POWER_OFF) | 1842 | if (dev->switch_power_state == DRM_SWITCH_POWER_OFF || |
1843 | dev->switch_power_state == DRM_SWITCH_POWER_DYNAMIC_OFF) | ||
1843 | return 0; | 1844 | return 0; |
1844 | 1845 | ||
1845 | drm_kms_helper_poll_disable(dev); | 1846 | drm_kms_helper_poll_disable(dev); |
@@ -1920,7 +1921,8 @@ int amdgpu_device_resume(struct drm_device *dev, bool resume, bool fbcon) | |||
1920 | struct drm_crtc *crtc; | 1921 | struct drm_crtc *crtc; |
1921 | int r; | 1922 | int r; |
1922 | 1923 | ||
1923 | if (dev->switch_power_state == DRM_SWITCH_POWER_OFF) | 1924 | if (dev->switch_power_state == DRM_SWITCH_POWER_OFF || |
1925 | dev->switch_power_state == DRM_SWITCH_POWER_DYNAMIC_OFF) | ||
1924 | return 0; | 1926 | return 0; |
1925 | 1927 | ||
1926 | if (fbcon) { | 1928 | if (fbcon) { |