From: Ville Syrjälä Date: Fri, 22 May 2026 20:03:44 +0000 (+0300) Subject: drm/i915/bw: Round the PM demand bandwidth down X-Git-Tag: v7.2-rc1~141^2~9^2~16 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=7817373f0f3a29d62c17b4af24c684d84918ae8c;p=thirdparty%2Fkernel%2Flinux.git drm/i915/bw: Round the PM demand bandwidth down 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ä Link: https://patch.msgid.link/20260522200346.17377-9-ville.syrjala@linux.intel.com Reviewed-by: Vinod Govindapillai --- diff --git a/drivers/gpu/drm/i915/display/intel_bw.c b/drivers/gpu/drm/i915/display/intel_bw.c index f1af6f2f7d4c2..b1a2f08680d61 100644 --- a/drivers/gpu/drm/i915/display/intel_bw.c +++ b/drivers/gpu/drm/i915/display/intel_bw.c @@ -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; }