drm/i915: correct suspend/resume ordering
authorJesse Barnes <jbarnes@virtuousgeek.org>
Tue, 23 Jun 2009 01:05:12 +0000 (18:05 -0700)
committerEric Anholt <eric@anholt.net>
Tue, 23 Jun 2009 01:54:04 +0000 (18:54 -0700)
commit9e06dd39f2b6d7e35981e0d7aded618686b32ccb
treee2586062b1497c73ff542b3cf7f7a06408dc223f
parentbe9f1c4f738a715abbd8ea742f3ec60a1ce73f4b
drm/i915: correct suspend/resume ordering

We need to save register state *after* idling GEM, clearing the ring,
and uninstalling the IRQ handler, or we might end up saving bogus
fence regs, for one.  Our restore ordering should already be correct,
since we do GEM, ring and IRQ init after restoring the last register
state, which prevents us from clobbering things.

I put this together to potentially address a bug, but I haven't heard
back if it fixes it yet.  However I think it stands on its own, so I'm
sending it in.

Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Signed-off-by: Eric Anholt <eric@anholt.net>
drivers/gpu/drm/i915/i915_drv.c