]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Fix type1 DVI DP dual mode adapter heuristic for modern platforms
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Mon, 25 Oct 2021 14:21:47 +0000 (17:21 +0300)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Thu, 28 Oct 2021 18:17:30 +0000 (21:17 +0300)
commite157a19e6c95c446beae04beac4e4c5bfe70e1b1
tree42a0965476bb77f29b8a939ee58edd33f348724c
parent3a7c6eeb68e45f751b997ef20af153d5740ed840
drm/i915: Fix type1 DVI DP dual mode adapter heuristic for modern platforms

Looks like we never updated intel_bios_is_port_dp_dual_mode() when
the VBT port mapping became erratic on modern platforms. This
is causing us to look up the wrong child device and thus throwing
the heuristic off (ie. we might end looking at a child device for
a genuine DP++ port when we were supposed to look at one for a
native HDMI port).

Fix it up by not using the outdated port_mapping[] in
intel_bios_is_port_dp_dual_mode() and rely on
intel_bios_encoder_data_lookup() instead.

Cc: stable@vger.kernel.org
Tested-by: Randy Dunlap <rdunlap@infradead.org>
Closes: https://gitlab.freedesktop.org/drm/intel/-/issues/4138
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20211025142147.23897-1-ville.syrjala@linux.intel.com
Reviewed-by: Jani Nikula <jani.nikula@intel.com>
drivers/gpu/drm/i915/display/intel_bios.c