• Ville Syrjälä's avatar
    drm/i915: Add intel_pipe_wm and prepare for watermark pre-compute · 0b2ae6d7
    Ville Syrjälä authored
    Introduce a new struct intel_pipe_wm which contains all the
    watermarks for a single pipe. Use it to unify the LP0 and LP1+
    watermark computations so that we can just iterate through the
    watermark levels neatly and call ilk_compute_wm_level() for each.
    
    Also add another tool ilk_wm_merge() that merges the LP1+ watermarks
    from all pipes. For that, embed one intel_pipe_wm inside intel_crtc that
    contains the currently valid watermarks for each pipe.
    
    This is mainly preparatory work for pre-computing the watermarks for
    each pipe and merging them at a later time. For now the merging still
    happens immediately.
    
    v2: Add some comments about level 0 DDB split and intel_wm_config
        Add WARN_ON for level 0 being disabled
        s/lp_wm/merged
    Signed-off-by: default avatarVille Syrjälä <ville.syrjala@linux.intel.com>
    Reviewed-by: default avatarPaulo Zanoni <paulo.r.zanoni@intel.com>
    Signed-off-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
    0b2ae6d7
intel_pm.c 163 KB