]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
drm/i915/dp: Fix BW check in is_bw_sufficient_for_dsc_config()
authorImre Deak <imre.deak@intel.com>
Mon, 15 Dec 2025 19:23:47 +0000 (21:23 +0200)
committerImre Deak <imre.deak@intel.com>
Fri, 19 Dec 2025 14:46:40 +0000 (16:46 +0200)
is_bw_sufficient_for_dsc_config() should return true if the required BW
equals the available BW, make it so.

Reviewed-by: Luca Coelho <luciano.coelho@intel.com>
Signed-off-by: Imre Deak <imre.deak@intel.com>
Link: https://patch.msgid.link/20251215192357.172201-8-imre.deak@intel.com
drivers/gpu/drm/i915/display/intel_dp.c

index a8d08e4f8137c7b5120e17a10844b8d99e61b3af..b1056b95d17a2612d010023944681d98d785b5fb 100644 (file)
@@ -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,