drm/nouveau: fix fbcon not being accelerated after suspend
authorBen Skeggs <bskeggs@redhat.com>
Mon, 3 Mar 2014 06:18:56 +0000 (16:18 +1000)
committerBen Skeggs <bskeggs@redhat.com>
Wed, 26 Mar 2014 04:08:13 +0000 (14:08 +1000)
This does *not* (and is not intended to) fix the issue reported by
Christoph Rudorff on the nouveau mailinglist.

The patch proposed (which is similar to this one, but also reorders
whether we disable accel or call fb_set_suspend first), papers over
another problem entirely by avoiding touching the framebuffer.

Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/nouveau_fbcon.c

index 7903e0ed3c75c74fa2d2b46a71ee01a50289de68..64a42cfd371735fe6958147d9f07f6e235a5e417 100644 (file)
@@ -528,10 +528,10 @@ nouveau_fbcon_set_suspend(struct drm_device *dev, int state)
        struct nouveau_drm *drm = nouveau_drm(dev);
        if (drm->fbcon) {
                console_lock();
-               if (state == 0)
+               if (state == 1)
                        nouveau_fbcon_save_disable_accel(dev);
                fb_set_suspend(drm->fbcon->helper.fbdev, state);
-               if (state == 1)
+               if (state == 0)
                        nouveau_fbcon_restore_accel(dev);
                console_unlock();
        }