drm/i915: Ignore minimum lines for level 0 in skl_compute_plane_wm, v2.
authorMaarten Lankhorst <maarten.lankhorst@linux.intel.com>
Mon, 5 Feb 2018 10:58:41 +0000 (11:58 +0100)
committerMaarten Lankhorst <maarten.lankhorst@linux.intel.com>
Wed, 7 Feb 2018 11:43:29 +0000 (12:43 +0100)
commit31dade7df4605b4b40f2c026f15aa188916ea420
tree4924cb8187689b23c3710355f13c30fa478872ce
parentfd10e2ce9905030d922e179a8047a4d50daffd8e
drm/i915: Ignore minimum lines for level 0 in skl_compute_plane_wm, v2.

According to bspec, result_lines > 31 is only a maximum for latency
level 1 through 7.

For level 0 the number of lines is ignored, so always write 0 there
to prevent overflowing the 5 bits value.

This is required to make NV12 work.

Changes since v1:
- Rebase on top of GEN11 wm changes. It seems to use res_lines for
  level 0 limit calculations, but still doesn't appear to program it.

Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com> #v1
Link: https://patchwork.freedesktop.org/patch/msgid/20180205105841.31634-1-maarten.lankhorst@linux.intel.com
drivers/gpu/drm/i915/intel_pm.c