drm/i915/skl: Rework when the transition WMs are computed
authorDamien Lespiau <damien.lespiau@intel.com>
Tue, 4 Nov 2014 17:06:58 +0000 (17:06 +0000)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 7 Nov 2014 17:42:12 +0000 (18:42 +0100)
commit9414f563f3857018d87e480b7cd13636b0c00ce6
tree283c00f4c5cb607d75290885403c82b7a908dae4
parent407b50f31ba19317cdc30530d30220182e42fa3d
drm/i915/skl: Rework when the transition WMs are computed

The transition WMs code was doing a shortcut and the values were copied
from the WM0 ones at compute_wm_results() time. Going forward, we want
to compute them like the other WMs and resolve their final register
values in the same way as well.

This patch does just that and isolate the transtion WM compute code in
skl_compute_transition_wm() while skl_compute_wm_results() takes care of
the register values.

We also take the opportunity to disable the transition WMs for now.
We've noticed underruns and they seem to be the culprit.

Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_pm.c