nouveau: no suspend support for nv50+
authorStuart Bennett <sb476@cam.ac.uk>
Sat, 25 Oct 2008 19:59:38 +0000 (20:59 +0100)
committerStuart Bennett <sb476@cam.ac.uk>
Thu, 29 Jan 2009 23:53:01 +0000 (23:53 +0000)
shared-core/nouveau_state.c

index afddca0..e041942 100644 (file)
@@ -709,6 +709,11 @@ static int nouveau_suspend(struct drm_device *dev)
        struct nouveau_engine *engine = &dev_priv->Engine;
        int i;
 
+       if (dev_priv->card_type >= NV_50) {
+               DRM_DEBUG("Suspend not supported for NV50+\n");
+               return -ENODEV;
+       }
+
        drm_free(susres->ramin_copy, susres->ramin_size, DRM_MEM_DRIVER);
        susres->ramin_size = 0;
        list_for_each(p, dev_priv->ramin_heap)