]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/i915/dp: Export helper to determine if FEC on non-UHBR links is required
authorImre Deak <imre.deak@intel.com>
Wed, 15 Oct 2025 16:19:30 +0000 (19:19 +0300)
committerImre Deak <imre.deak@intel.com>
Fri, 17 Oct 2025 18:48:34 +0000 (21:48 +0300)
commitcb6c8f1f6f46ac2cbfb42ce8eb8b18257aeaa91a
tree5e6cdaa813cfe6f894a05e3bc3c37b15dcee64d3
parent69df31263bcabc527a5b526fb8972cb080a179b3
drm/i915/dp: Export helper to determine if FEC on non-UHBR links is required

Export the helper function to determine if FEC is required on a non-UHBR
(8b10b) SST or MST link. A follow up change will take this into use for
MST as well.

While at it determine the output type from the CRTC state, which allows
dropping the intel_dp argument. Also make the function return the
required FEC state, instead of setting this in the CRTC state, which
allows only querying this requirement, without changing the state.

Also rename the function to intel_dp_needs_8b10b_fec(), to clarify that
the function determines if FEC is required on an 8b10b link (on 128b132b
links FEC is always enabled by the HW implicitly, so the function will
return false for that case).

Signed-off-by: Imre Deak <imre.deak@intel.com>
Reviewed-by: Jouni Högander <jouni.hogander@intel.com>
Link: https://lore.kernel.org/r/20251015161934.262108-4-imre.deak@intel.com
drivers/gpu/drm/i915/display/intel_dp.c
drivers/gpu/drm/i915/display/intel_dp.h
drivers/gpu/drm/i915/display/intel_dp_mst.c