diff options
| -rw-r--r-- | drivers/gpu/drm/radeon/radeon_device.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/gpu/drm/radeon/radeon_device.c b/drivers/gpu/drm/radeon/radeon_device.c index db338522191f..f10faed21567 100644 --- a/drivers/gpu/drm/radeon/radeon_device.c +++ b/drivers/gpu/drm/radeon/radeon_device.c | |||
| @@ -713,6 +713,7 @@ int radeon_suspend_kms(struct drm_device *dev, pm_message_t state) | |||
| 713 | { | 713 | { |
| 714 | struct radeon_device *rdev; | 714 | struct radeon_device *rdev; |
| 715 | struct drm_crtc *crtc; | 715 | struct drm_crtc *crtc; |
| 716 | struct drm_connector *connector; | ||
| 716 | int r; | 717 | int r; |
| 717 | 718 | ||
| 718 | if (dev == NULL || dev->dev_private == NULL) { | 719 | if (dev == NULL || dev->dev_private == NULL) { |
| @@ -725,6 +726,12 @@ int radeon_suspend_kms(struct drm_device *dev, pm_message_t state) | |||
| 725 | 726 | ||
| 726 | if (rdev->powered_down) | 727 | if (rdev->powered_down) |
| 727 | return 0; | 728 | return 0; |
| 729 | |||
| 730 | /* turn off display hw */ | ||
| 731 | list_for_each_entry(connector, &dev->mode_config.connector_list, head) { | ||
| 732 | drm_helper_connector_dpms(connector, DRM_MODE_DPMS_OFF); | ||
| 733 | } | ||
| 734 | |||
| 728 | /* unpin the front buffers */ | 735 | /* unpin the front buffers */ |
| 729 | list_for_each_entry(crtc, &dev->mode_config.crtc_list, head) { | 736 | list_for_each_entry(crtc, &dev->mode_config.crtc_list, head) { |
| 730 | struct radeon_framebuffer *rfb = to_radeon_framebuffer(crtc->fb); | 737 | struct radeon_framebuffer *rfb = to_radeon_framebuffer(crtc->fb); |
