aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorMaarten Maathuis <madman2003@gmail.com>2010-02-21 07:28:35 -0500
committerBen Skeggs <bskeggs@redhat.com>2010-03-10 01:07:27 -0500
commit81441570c9cbf453891d90f5725adbbfe5a9cc69 (patch)
tree82c7556a4df8c3044831a576d6119d74170b00b5 /drivers
parente5ec882cfc18007c6076236ac33a713bcc1d35aa (diff)
drm/nouveau: print a message very early during suspend
- In case of suspend lockups it's nice to know it happened in nouveau. Signed-off-by: Maarten Maathuis <madman2003@gmail.com> Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/gpu/drm/nouveau/nouveau_drv.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/nouveau/nouveau_drv.c b/drivers/gpu/drm/nouveau/nouveau_drv.c
index f7f28f2f8641..0f7e2d069302 100644
--- a/drivers/gpu/drm/nouveau/nouveau_drv.c
+++ b/drivers/gpu/drm/nouveau/nouveau_drv.c
@@ -158,9 +158,11 @@ nouveau_pci_suspend(struct pci_dev *pdev, pm_message_t pm_state)
158 if (pm_state.event == PM_EVENT_PRETHAW) 158 if (pm_state.event == PM_EVENT_PRETHAW)
159 return 0; 159 return 0;
160 160
161 NV_INFO(dev, "Disabling fbcon acceleration...\n");
161 fbdev_flags = dev_priv->fbdev_info->flags; 162 fbdev_flags = dev_priv->fbdev_info->flags;
162 dev_priv->fbdev_info->flags |= FBINFO_HWACCEL_DISABLED; 163 dev_priv->fbdev_info->flags |= FBINFO_HWACCEL_DISABLED;
163 164
165 NV_INFO(dev, "Unpinning framebuffer(s)...\n");
164 list_for_each_entry(crtc, &dev->mode_config.crtc_list, head) { 166 list_for_each_entry(crtc, &dev->mode_config.crtc_list, head) {
165 struct nouveau_framebuffer *nouveau_fb; 167 struct nouveau_framebuffer *nouveau_fb;
166 168