drm/i915: Kill level 0 wm hack for VLV/CHV
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Thu, 2 Mar 2017 17:15:04 +0000 (19:15 +0200)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Fri, 3 Mar 2017 14:50:10 +0000 (16:50 +0200)
We now compute the watermarks correctly, so just return an error if we
can't support the configuration.

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

index 6e2acfd687a1ec5a41b978edacc646b77b149209..9e4c7a0b0407993683ee3d2f4095f016f89f7587 100644 (file)
@@ -1186,10 +1186,6 @@ static bool vlv_plane_wm_compute(struct intel_crtc_state *crtc_state,
                int wm = vlv_compute_wm_level(crtc_state, plane_state, level);
                int max_wm = plane_id == PLANE_CURSOR ? 63 : 511;
 
-               /* FIXME just bail */
-               if (WARN_ON(level == 0 && wm > max_wm))
-                       wm = max_wm;
-
                if (wm > max_wm)
                        break;