• Paulo Zanoni's avatar
    drm/i915: properly set HSW WM_PIPE registers · 801bcfff
    Paulo Zanoni authored
    We were previously calling sandybridge_update_wm on HSW, but the SNB
    function didn't really match the HSW specification, so we were just
    writing the wrong values.
    
    With this patch, the haswell_update_wm function will set the correct
    values for the WM_PIPE registers, but it will still keep all the LP
    watermarks disabled.
    
    The patch may look a little bit over-complicated for now, but it's
    because much of the infrastructure for setting the LP watermarks is
    already in place, so we won't have too much code churn on the patch
    that sets the LP watermarks.
    
    v2: - Fix pixel_rate on panel fitter case (Ville)
        - Try to not overflow (Ville)
        - Remove useless variable (Ville)
        - Fix p->pri_horiz_pixels (Paulo)
    v3: - Fix rounding errors on hsw_wm_method2 (Ville)
    v4: - Fix memcmp bug (Paulo)
    Signed-off-by: default avatarPaulo Zanoni <paulo.r.zanoni@intel.com>
    Reviewed-by: default avatarVille Syrjälä <ville.syrjala@linux.intel.com>
    Signed-off-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
    801bcfff
i915_reg.h 186 KB