drm/i915: Fix watermark calculation in self-refresh mode
authorZhao Yakui <yakui.zhao@intel.com>
Sat, 12 Jun 2010 06:32:23 +0000 (14:32 +0800)
committerEric Anholt <eric@anholt.net>
Mon, 2 Aug 2010 02:03:43 +0000 (19:03 -0700)
commitfa143215b11056b878875f87edac78a1cfb9d1c0
treeb8711846ac593583fca7df8c3e95c72ef02e0624
parent36e83a187ca7517e9bdce7148b1c2c27661ef38f
drm/i915: Fix watermark calculation in self-refresh mode

For self-refresh mode WM calculation's "line time" should use
mode's htotal instead of hdisplay. "surface width" is the hdisplay
for display plane and 64 for cursor plane.

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