• Ville Syrjälä's avatar
    drm/i915: Account for CHV/BXT DPLL clock limitations · e64e739e
    Ville Syrjälä authored
    CHV/BXT DPLL can't generate frequencies in the 216-240 MHz range.
    Account for that when checking whether the HDMI port clock is valid.
    This is particularly important for BXT since it can otherwise do
    12bpc, and standard 1920x1080p60 CEA modes land right in the middle
    of that range when the clock gets multiplied to account for 12bpc.
    
    With the extra checks we will now filter out any mode where both
    8bpc and 12bpc clock are within the gap. During modeset we then
    pick whichever mode works, favoring 12bpc if both are possible.
    
    12bpc isn't supported on CHV so we simply end up filtering out any
    mode where the 8bpc port clock is in the gap.
    
    v2: Fix crtc_clock vs. port_clock fumble in compute_config() (Imre)
    Signed-off-by: default avatarVille Syrjälä <ville.syrjala@linux.intel.com>
    Reviewed-and-tested-by: default avatarImre Deak <imre.deak@intel.com>
    Signed-off-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
    e64e739e
intel_hdmi.c 62.5 KB