summaryrefslogtreecommitdiff
path: root/shared-core
diff options
context:
space:
mode:
authorStuart Bennett <sb476@cam.ac.uk>2008-10-25 20:59:38 +0100
committerStuart Bennett <sb476@cam.ac.uk>2009-01-29 23:53:01 +0000
commit408fc85a21689ee9859b64cb90902242bbc7e314 (patch)
treef79952e13aeddc765a65a168679489fce335f5ae /shared-core
parente37bd24d3c99319b372517c2ddb77bfb4829f1df (diff)
nouveau: no suspend support for nv50+
Diffstat (limited to 'shared-core')
-rw-r--r--shared-core/nouveau_state.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/shared-core/nouveau_state.c b/shared-core/nouveau_state.c
index afddca0a..e0419423 100644
--- a/shared-core/nouveau_state.c
+++ b/shared-core/nouveau_state.c
@@ -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)