drm/i915: Do not rely on wm preservation for ILK watermarks
authorMaarten Lankhorst <maarten.lankhorst@linux.intel.com>
Thu, 19 Oct 2017 15:13:40 +0000 (17:13 +0200)
committerRodrigo Vivi <rodrigo.vivi@intel.com>
Mon, 30 Oct 2017 17:16:32 +0000 (10:16 -0700)
commit8777b927b92cf5b6c29f9f9d3c737addea9ac8a7
tree3d964c5aca8253ace1575976fd4da8a80eeaf5c0
parent713946d16f45ad0509434970ae6ff71529faab4b
drm/i915: Do not rely on wm preservation for ILK watermarks

The original intent was to preserve watermarks as much as possible
in intel_pipe_wm.raw_wm, and put the validated ones in intel_pipe_wm.wm.

It seems this approach is insufficient and we don't always preserve
the raw watermarks, so just use the atomic iterator we're already using
to get a const pointer to all bound planes on the crtc.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=102373
Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Cc: stable@vger.kernel.org #v4.8+
Acked-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: Matt Roper <matthew.d.roper@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20171019151341.4579-1-maarten.lankhorst@linux.intel.com
(cherry picked from commit 28283f4f359cd7cfa9e65457bb98c507a2cd0cd0)
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
drivers/gpu/drm/i915/intel_drv.h
drivers/gpu/drm/i915/intel_pm.c