From 408fc85a21689ee9859b64cb90902242bbc7e314 Mon Sep 17 00:00:00 2001 From: Stuart Bennett Date: Sat, 25 Oct 2008 20:59:38 +0100 Subject: nouveau: no suspend support for nv50+ --- shared-core/nouveau_state.c | 5 +++++ 1 file changed, 5 insertions(+) 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) -- cgit v1.2.3