drm/i915/gen9: fix watermarks when using the pipe scaler
authorPaulo Zanoni <paulo.r.zanoni@intel.com>
Fri, 7 Oct 2016 20:28:57 +0000 (17:28 -0300)
committerJani Nikula <jani.nikula@intel.com>
Fri, 28 Oct 2016 12:20:15 +0000 (15:20 +0300)
commit5e33791e1f27c3207e7b44071e7c94a487d1eb39
treed4d18758b6b9d51fb3a0dc78bbf3df8a71572375
parentfd58753ead86ee289ea89fe26e1842f36e54b36c
drm/i915/gen9: fix watermarks when using the pipe scaler

Luckily, the necessary adjustments for when we're using the scaler are
exactly the same as the ones needed on ILK+, so just reuse the
function we already have.

v2: Invert the patch order so stable backports get easier.

Cc: stable@vger.kernel.org
Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
Reviewed-by: Matt Roper <matthew.d.roper@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1475872138-16194-1-git-send-email-paulo.r.zanoni@intel.com
(cherry picked from commit cfd7e3a20251b9ac95651d64556f87f86128a966)
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
drivers/gpu/drm/i915/intel_pm.c