mirror of
https://github.com/torvalds/linux.git
synced 2026-05-26 08:02:27 +02:00
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 <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
This commit is contained in:
parent
78cfaaa111
commit
3999f6d7f5
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user