drm/i915: implement new pm ops for i915
authorZhenyu Wang <zhenyuw@linux.intel.com>
Wed, 16 Dec 2009 05:36:10 +0000 (13:36 +0800)
committerEric Anholt <eric@anholt.net>
Wed, 16 Dec 2009 17:41:32 +0000 (09:41 -0800)
commitcbda12d77ea590082edb6d30bd342a67ebc459e0
tree17d07c462b4baa270ac1e3ed43f7bd755a40c595
parent11ba159288f1bfc1a475c994e598f5fe423fde9d
drm/i915: implement new pm ops for i915

One problem in i915 hibernate with current legacy pci pm ops is
that after we do freeze, we'll be forced to do resume once again,
which re-init some resources and do modesetting again, that is
unnecessary for hibernate. This patch trys to bypass that.

We can't resolve this within legacy pm framework, but can do it
easily with new pm ops. Suspend (S3) process has also been kept
without change.

Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
Signed-off-by: Eric Anholt <eric@anholt.net>
drivers/gpu/drm/i915/i915_drv.c