]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
drm/i915/dp: Fix determining SST/MST mode during MTP TU state computation
authorImre Deak <imre.deak@intel.com>
Wed, 7 May 2025 15:19:53 +0000 (18:19 +0300)
committerImre Deak <imre.deak@intel.com>
Thu, 8 May 2025 15:55:12 +0000 (18:55 +0300)
commit0f45696ddb2b901fbf15cb8d2e89767be481d59f
tree267d9390bbb085d6a8ab216adbaf95037f884fb1
parentecd9352cd92784717670e22a5ebd890ca0ae980e
drm/i915/dp: Fix determining SST/MST mode during MTP TU state computation

Determining the SST/MST mode during state computation must be done based
on the output type stored in the CRTC state, which in turn is set once
based on the modeset connector's SST vs. MST type and will not change as
long as the connector is using the CRTC. OTOH the MST mode indicated by
the given connector's intel_dp::is_mst flag can change independently of
the above output type, based on what sink is at any moment plugged to
the connector.

Fix the state computation accordingly.

Cc: Jani Nikula <jani.nikula@intel.com>
Fixes: f6971d7427c2 ("drm/i915/mst: adapt intel_dp_mtp_tu_compute_config() for 128b/132b SST")
Closes: https://gitlab.freedesktop.org/drm/xe/kernel/-/issues/4607
Reviewed-by: Jani Nikula <jani.nikula@intel.com>
Signed-off-by: Imre Deak <imre.deak@intel.com>
Link: https://lore.kernel.org/r/20250507151953.251846-1-imre.deak@intel.com
drivers/gpu/drm/i915/display/intel_dp_mst.c