drm/i915: Make sure computed watermarks never overflow the registers
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Mon, 28 Apr 2014 12:44:56 +0000 (15:44 +0300)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 6 May 2014 08:18:03 +0000 (10:18 +0200)
commita3cb40483acdd9caeb1974e301c3e5d5926a1221
tree7e3dc0a0f9d6f6bc40806dd34b026f2601ac93d4
parent25ef284a2a7de5393b2ef608046e0d48db0e6e2a
drm/i915: Make sure computed watermarks never overflow the registers

When we calculate the watermarks for a pipe make sure we leave any
level fully zeroed out if it would exceed any of the maximum values
that fit in the registers.

This will be important later when we start to use also disabled
watermark levels during LP1+ merging.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_pm.c