drm/i915: support low power watermarks on Ironlake
authorJesse Barnes <jbarnes@virtuousgeek.org>
Tue, 21 Dec 2010 21:10:23 +0000 (13:10 -0800)
committerChris Wilson <chris@chris-wilson.co.uk>
Tue, 11 Jan 2011 20:36:14 +0000 (20:36 +0000)
commitb79d4990226defc3789f9ba492b27e9e56790857
tree8d1dd1b5b417057868aa89e9fa63325deeace5f4
parentc97689d8860f086125e7ff9cd730027a0057ca4f
drm/i915: support low power watermarks on Ironlake

This patch actually makes the watermark code even uglier (if that's
possible), but has the advantage of sharing code between SNB and ILK at
least.  Longer term we should refactor the watermark stuff into its own
file and clean it up now that we know how it's supposed to work.

Supporting WM2 on my Vaio reduced power consumption by around 0.5W, so
this patch is definitely worthwhile (though it also needs lots of test
coverage).

Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
[ickle: pass the watermark structs arounds]
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
drivers/gpu/drm/i915/i915_reg.h
drivers/gpu/drm/i915/intel_display.c