On Thu, 2025-11-27 at 19:49 +0200, Imre Deak wrote:
> is_bw_sufficient_for_dsc_config() should return true if the required BW
> equals the available BW, make it so.
> 
> Signed-off-by: Imre Deak <[email protected]>
> ---
>  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 4722ee26b1181..4556a57db7c02 100644
> --- a/drivers/gpu/drm/i915/display/intel_dp.c
> +++ b/drivers/gpu/drm/i915/display/intel_dp.c
> @@ -2029,7 +2029,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,

Reviewed-by: Luca Coelho <[email protected]>

--
Cheers,
Luca.

Reply via email to