mirror of
https://github.com/torvalds/linux.git
synced 2026-07-28 10:09:10 +02:00
drm/i915/bw: Fix bw rounding direction
The DRAM bandwidth value should be rounded down, not up. Bspec: 64631 Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Link: https://patch.msgid.link/20260522200346.17377-4-ville.syrjala@linux.intel.com Reviewed-by: Michał Grzelak <michal.grzelak@intel.com> Reviewed-by: Vinod Govindapillai <vinod.govindapillai@intel.com>
This commit is contained in:
parent
1f0d572b27
commit
615b23a7d2
|
|
@ -555,7 +555,7 @@ static int icl_get_bw_info(struct intel_display *display,
|
|||
*/
|
||||
ct = max_t(int, sp->t_rc, sp->t_rp + sp->t_rcd +
|
||||
(clpchgroup - 1) * qi.t_bl + sp->t_rdpre);
|
||||
bw = DIV_ROUND_UP(sp->dclk * clpchgroup * 32 * num_channels, ct);
|
||||
bw = sp->dclk * clpchgroup * 32 * num_channels / ct;
|
||||
|
||||
bi->deratedbw[j] = min(maxdebw,
|
||||
bw * (100 - soc_bw_params->derating) / 100);
|
||||
|
|
@ -658,7 +658,7 @@ static int tgl_get_bw_info(struct intel_display *display,
|
|||
*/
|
||||
ct = max_t(int, sp->t_rc, sp->t_rp + sp->t_rcd +
|
||||
(clpchgroup - 1) * qi.t_bl + sp->t_rdpre);
|
||||
bw = DIV_ROUND_UP(sp->dclk * clpchgroup * 32 * num_channels, ct);
|
||||
bw = sp->dclk * clpchgroup * 32 * num_channels / ct;
|
||||
|
||||
bi->deratedbw[j] = min(maxdebw,
|
||||
bw * (100 - soc_bw_params->derating) / 100);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user