]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
drm/i915/bw: Round the PM demand bandwidth down
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Fri, 22 May 2026 20:03:44 +0000 (23:03 +0300)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Thu, 28 May 2026 03:51:56 +0000 (06:51 +0300)
Bspec asks us to round down instead of closest doing the /100 for
the PM demand bandwidth. Make it so.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patch.msgid.link/20260522200346.17377-9-ville.syrjala@linux.intel.com
Reviewed-by: Vinod Govindapillai <vinod.govindapillai@intel.com>
drivers/gpu/drm/i915/display/intel_bw.c

index f1af6f2f7d4c26ab98baf961b11b99913222f9c2..b1a2f08680d6109bc1fe8e327485793427906ac7 100644 (file)
@@ -1150,7 +1150,7 @@ static int mtl_find_qgv_points(struct intel_display *display,
        }
 
        /* MTL PM DEMAND expects QGV BW parameter in multiples of 100 mbps */
-       new_bw_state->qgv_point_peakbw = DIV_ROUND_CLOSEST(qgv_peak_bw, 100);
+       new_bw_state->qgv_point_peakbw = qgv_peak_bw / 100;
 
        return 0;
 }