Skip to content

Commit

Permalink
drm/nouveau: fix suspend/resume on GPUs that don't have PM support
Browse files Browse the repository at this point in the history
This has been broken since 2.6.37, and fixes resume on a couple of fermi
boards I have access to.

Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
  • Loading branch information
Ben Skeggs committed Feb 17, 2011
1 parent b8884da commit 317495b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/gpu/drm/nouveau/nouveau_pm.c
Original file line number Diff line number Diff line change
Expand Up @@ -543,7 +543,7 @@ nouveau_pm_resume(struct drm_device *dev)
struct nouveau_pm_engine *pm = &dev_priv->engine.pm;
struct nouveau_pm_level *perflvl;

if (pm->cur == &pm->boot)
if (!pm->cur || pm->cur == &pm->boot)
return;

perflvl = pm->cur;
Expand Down

0 comments on commit 317495b

Please sign in to comment.