drm/i915/mst: Reject FEC+MST on ICL
authorjsg <jsg@openbsd.org>
Mon, 29 Apr 2024 06:12:46 +0000 (06:12 +0000)
committerjsg <jsg@openbsd.org>
Mon, 29 Apr 2024 06:12:46 +0000 (06:12 +0000)
From Ville Syrjala
6711b0817a384bbeb8c951521334d5ef78c855aa in linux-6.6.y/6.6.29
99f855082f228cdcecd6ab768d3b8b505e0eb028 in mainline linux

sys/dev/pci/drm/i915/display/intel_dp.c

index 0fc447a..7064200 100644 (file)
@@ -1316,7 +1316,8 @@ static bool intel_dp_source_supports_fec(struct intel_dp *intel_dp,
        if (DISPLAY_VER(dev_priv) >= 12)
                return true;
 
-       if (DISPLAY_VER(dev_priv) == 11 && encoder->port != PORT_A)
+       if (DISPLAY_VER(dev_priv) == 11 && encoder->port != PORT_A &&
+           !intel_crtc_has_type(pipe_config, INTEL_OUTPUT_DP_MST))
                return true;
 
        return false;