diff options
| author | Ville Syrjälä <ville.syrjala@linux.intel.com> | 2026-05-22 23:03:38 +0300 |
|---|---|---|
| committer | Ville Syrjälä <ville.syrjala@linux.intel.com> | 2026-05-28 06:45:36 +0300 |
| commit | 1f0d572b27ad43982bbba9854513311f1cfa55eb (patch) | |
| tree | ffa07daf23d1dd9330b7fe5b2cbba2f7e0c08983 /include/linux | |
| parent | 85bfe1cec2d1fb67db2bd8603df391466f4ae29f (diff) | |
| download | linux-1f0d572b27ad43982bbba9854513311f1cfa55eb.tar.xz | |
drm/i915/bw: Fix DCLK rounding mess
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ä <ville.syrjala@linux.intel.com>
Link: https://patch.msgid.link/20260522200346.17377-3-ville.syrjala@linux.intel.com
Reviewed-by: Vinod Govindapillai <vinod.govindapillai@intel.com>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions
