1. Jan 27, 2022
  2. Jan 26, 2022
  3. Jan 25, 2022
  4. Jan 24, 2022
  5. Jan 21, 2022
  6. Jan 20, 2022
    • Ville Syrjälä's avatar
      drm/i915/hdmi: Ignore DP++ TMDS clock limit for native HDMI ports · c2696280
      Ville Syrjälä authored
      
      
      Lots of machines these days seem to have a crappy type1 DP dual
      mode adaptor chip slapped onto the motherboard. Based on the
      DP dual mode spec we currently limit those to 165MHz max TMDS
      clock.
      
      Windows OTOH ignores DP dual mode adaptors when the VBT
      indicates that the port is not actually DP++, so we can
      perhaps assume that the vendors did intend that the 165MHz
      clock limit doesn't apply here. Though it would be much
      nicer if they actually declared an explicit limit through
      VBT, but that doesn't seem to be happening either.
      
      So in order to match Windows behaviour let's ignore the
      DP dual mode adaptor's TMDS clock limit for ports that
      don't look like DP++ in VBT.
      
      Unfortunately many older VBTs misdelcare their DP++ ports
      as just HDMI (eg. ILK Dell Latitude E5410) or DP (eg. SNB
      Lenovo ThinkPad X220). So we can't really do this universally
      without risking black screens. I suppose a sensible cutoff
      is HSW+ since that's when 4k became a thing and one might
      assume that the machines have been tested to work with higher
      TMDS clock rates.
      
      v2: s/IS_BROADWELL/IS_HASWELL/
      
      Acked-by: default avatarJani Nikula <jani.nikula@intel.com>
      Signed-off-by: default avatarVille Syrjälä <ville.syrjala@linux.intel.com>
      Link: https://patchwork.freedesktop.org/patch/msgid/20211222161738.12478-1-ville.syrjala@linux.intel.com
      c2696280
    • Ville Syrjälä's avatar
      drm/i915/bios: Nuke DEVICE_TYPE_DP_DUAL_MODE_BITS · 044cbc7a
      Ville Syrjälä authored
      
      
      Replace the DEVICE_TYPE_DP_DUAL_MODE_BITS stuff with just
      a DP+HDMI check. The rest of the bits shouldn't really
      matter anyway.
      
      The slight change in behaviour here is that now we do look at
      the DEVICE_TYPE_NOT_HDMI_OUTPUT bit (via
      intel_bios_encoder_supports_hdmi()) when we previously ignored it.
      The one platform we know that has problems with that bit is VLV.
      But IIRC the problem was always that buggy VBTs basically never
      set that bit. So that should be OK since all it would do is make
      all DVI ports look like HDMI ports instead. Also can't imagine
      there are many VLV machines with actual DVI ports in existence.
      
      We still keep the rest of the dvo_port/aux_ch checks as we
      can't trust that DP+HDMI device type equals DP++ due to
      buggy VBTs.
      
      Signed-off-by: default avatarVille Syrjälä <ville.syrjala@linux.intel.com>
      Link: https://patchwork.freedesktop.org/patch/msgid/20211217155403.31477-6-ville.syrjala@linux.intel.com
      
      
      Reviewed-by: default avatarJani Nikula <jani.nikula@intel.com>
      044cbc7a