]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/i915/dp_mst: Use the correct connector while computing the link BPP limit on MST
authorImre Deak <imre.deak@intel.com>
Fri, 9 May 2025 18:03:28 +0000 (21:03 +0300)
committerJoonas Lahtinen <joonas.lahtinen@linux.intel.com>
Tue, 13 May 2025 13:38:41 +0000 (16:38 +0300)
commita92e390e0d438e021de0e52065121484b6cca675
treefddcbe99429da7e70f8948bd31808ed19c9ae146
parent1faeeb315fdbd005bbc1bc74214e39087971dda9
drm/i915/dp_mst: Use the correct connector while computing the link BPP limit on MST

Atm, on an MST link in DSC mode
intel_dp_compute_config_link_bpp_limits() calculates the maximum link
bpp limit using the MST root connector's DSC capabilities. That's not
correct in general: the decompression could be performed by a branch
device downstream of the root branch device or the sink itself.

Fix the above by passing to intel_dp_compute_config_link_bpp_limits()
the actual connector being modeset, containing the correct DSC
capabilities.

Cc: Ankit Nautiyal <ankit.k.nautiyal@intel.com>
Fixes: 1c5b72daff46 ("drm/i915/dp: Set the DSC link limits in intel_dp_compute_config_link_bpp_limits")
Reviewed-by: Ankit Nautiyal <ankit.k.nautiyal@intel.com>
Reviewed-by: Luca Coelho <luciano.coelho@intel.com>
Signed-off-by: Imre Deak <imre.deak@intel.com>
Link: https://lore.kernel.org/r/20250509180340.554867-2-imre.deak@intel.com
(cherry picked from commit 266e2fcfe2ea0d062ea392cd22f6250ae0d11c04)
Signed-off-by: Joonas Lahtinen <joonas.lahtinen@linux.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