From 3999f6d7f588819cd03aa6baa95cac9be7834e45 Mon Sep 17 00:00:00 2001 From: Imre Deak Date: Mon, 15 Dec 2025 21:23:47 +0200 Subject: [PATCH] drm/i915/dp: Fix BW check in is_bw_sufficient_for_dsc_config() is_bw_sufficient_for_dsc_config() should return true if the required BW equals the available BW, make it so. Reviewed-by: Luca Coelho Signed-off-by: Imre Deak Link: https://patch.msgid.link/20251215192357.172201-8-imre.deak@intel.com --- drivers/gpu/drm/i915/display/intel_dp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/i915/display/intel_dp.c b/drivers/gpu/drm/i915/display/intel_dp.c index a8d08e4f8137..b1056b95d17a 100644 --- a/drivers/gpu/drm/i915/display/intel_dp.c +++ b/drivers/gpu/drm/i915/display/intel_dp.c @@ -2030,7 +2030,7 @@ static bool is_bw_sufficient_for_dsc_config(int dsc_bpp_x16, u32 link_clock, available_bw = (link_clock * lane_count * timeslots * 16) / 8; required_bw = dsc_bpp_x16 * (intel_dp_mode_to_fec_clock(mode_clock)); - return available_bw > required_bw; + return available_bw >= required_bw; } static int dsc_compute_link_config(struct intel_dp *intel_dp, -- 2.47.3