On Fri, 2026-05-22 at 23:03 +0300, Ville Syrjala wrote:
> From: Ville Syrjälä <[email protected]>
> 
> Fix up the total mess when calculating the DCLK
> frequency. Some codepaths are trying to do both DIV_ROUND_UP()
> and an open coded "round to nearest" at the same time. The
> MTL+ codepath was the only one that was correct (using
> DIV_ROUND_CLOSEST()).
> 
> Let's unify all of them, and borrow the actual '100/6'
> approach from adl_calc_psf_bw() so that we get even less
> rounding errors.
> 
> Signed-off-by: Ville Syrjälä <[email protected]>
> ---
>  drivers/gpu/drm/i915/display/intel_bw.c | 26 +++++++++++++----------
> --
>  1 file changed, 14 insertions(+), 12 deletions(-)
> 

Reviewed-by: Vinod Govindapillai <[email protected]>

Reply via email to