]> git.karo-electronics.de Git - karo-tx-linux.git/commit
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>
Wed, 30 Apr 2014 08:06:22 +0000 (10:06 +0200)
commit66327149c38cd134667bef9837bc761a0a2d9fe6
tree556cbece995e9266c62ca9033fe95da1223d1228
parentea084156d10328b55f41af22add1b2078f95932f
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