drm/i915: Allow preservation of watermarks, v2.
authorMaarten Lankhorst <maarten.lankhorst@linux.intel.com>
Wed, 2 Mar 2016 11:38:06 +0000 (12:38 +0100)
committerMaarten Lankhorst <maarten.lankhorst@linux.intel.com>
Thu, 3 Mar 2016 08:18:33 +0000 (09:18 +0100)
commitd81f04c5ef5d6086e70656a32ff7c1b2bf998724
tree55247cf1664fe4d18dd35125fc871fe178c9ffd4
parent1a426d6116467e09954289ee8c273e1bcc003adc
drm/i915: Allow preservation of watermarks, v2.

As Paulo has noted we can help bisectability by separating computing
watermarks on a noop in 2 separate commits.

This patch no longer clears the crtc watermark state, but recalculates
it completely. Regardless whether a level is used the full values for
each level are calculated. If a level is invalid wm[level].enable is
unset.

Changes since v1:
- Only call ilk_validate_wm_level when level <= usable_level. (Ville)

Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/56D6D09E.5040007@linux.intel.com
Reviewed-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
drivers/gpu/drm/i915/intel_pm.c