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)
committerMaarten Lankhorst <maarten.lankhorst@linux.intel.com>
Fri, 27 Oct 2017 07:06:05 +0000 (09:06 +0200)
commit28283f4f359cd7cfa9e65457bb98c507a2cd0cd0
treea54bc333073477747c94ee31ede2951a6ef6a2a8
parent886c6b8692ba5f71b578097524b3b082e2e02119
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
drivers/gpu/drm/i915/intel_drv.h
drivers/gpu/drm/i915/intel_pm.c