Skip to content

Commit 5c2d799

Browse files
committed
drm/i915/dp: Fail state computation for invalid max throughput BPP value
There is no reason to accept a minimum/maximum link BPP value above the maximum throughput BPP value, fail the state computation in this case. Reviewed-by: Vinod Govindapillai <vinod.govindapillai@intel.com> Reviewed-by: Luca Coelho <luciano.coelho@intel.com> Signed-off-by: Imre Deak <imre.deak@intel.com> Link: https://patch.msgid.link/20251215192357.172201-15-imre.deak@intel.com
1 parent 2018e29 commit 5c2d799

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

drivers/gpu/drm/i915/display/intel_dp.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2630,8 +2630,6 @@ intel_dp_compute_config_link_bpp_limits(struct intel_dp *intel_dp,
26302630
max_link_bpp_x16 = min(max_link_bpp_x16, fxp_q4_from_int(dsc_max_bpp));
26312631

26322632
throughput_max_bpp_x16 = dsc_throughput_quirk_max_bpp_x16(connector, crtc_state);
2633-
throughput_max_bpp_x16 = clamp(throughput_max_bpp_x16,
2634-
limits->link.min_bpp_x16, max_link_bpp_x16);
26352633
if (throughput_max_bpp_x16 < max_link_bpp_x16) {
26362634
max_link_bpp_x16 = throughput_max_bpp_x16;
26372635

0 commit comments

Comments
 (0)