Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 9D51BCD5BAC for ; Fri, 22 May 2026 20:04:29 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 0718A89151; Fri, 22 May 2026 20:04:29 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.b="CCgNmeXG"; dkim-atps=neutral Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.17]) by gabe.freedesktop.org (Postfix) with ESMTPS id 2A17610E50E; Fri, 22 May 2026 20:04:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1779480268; x=1811016268; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=RcXRVlIADDxTdhyhh/JN5lQwH2a5m2ps3QpaNG+vNSA=; b=CCgNmeXGGDoZoJlcqBkQdP0Q7FiFUSwWbA9fOa7IF0c7WWuW+0+uGm/y 0bh8tBVL/IbopzZXpOw4TKfUj+TCR6tju9E21WKxLga7kJ1abedI4lJQG mjWdpa/5w6e5oRfF2Dre0fLELdVjrsp0TLAWbLHB/vw+mZX+/1UOLBNjQ k6IWnlTc10ZGjyK3fy3Lv6kGPzr2FWTTxzW60SGsQ5JDhrDKEfcnt8dDj RacSEEQyJvAgznGGE50in81Zj2or175dq3IH+LFPKnDTKiB4otLtMIHRr MVm8xaMCnxwLWBOFB+2KOpNLMx6rr5AOmLA9LqTC5VDK4hym3WWuh5lbf A==; X-CSE-ConnectionGUID: REqmYHsZSuWd2W8NE5c+SA== X-CSE-MsgGUID: 8dWnhJJkTe+PqAArODZhbQ== X-IronPort-AV: E=McAfee;i="6800,10657,11794"; a="80396809" X-IronPort-AV: E=Sophos;i="6.24,163,1774335600"; d="scan'208";a="80396809" Received: from fmviesa009.fm.intel.com ([10.60.135.149]) by orvoesa109.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 May 2026 13:04:28 -0700 X-CSE-ConnectionGUID: 8JFkRZHCTAaSGtIe7fQTEw== X-CSE-MsgGUID: s9DDluAUR42eN9YIllKGdg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.24,163,1774335600"; d="scan'208";a="234649140" Received: from pgcooper-mobl3.ger.corp.intel.com (HELO localhost) ([10.245.245.71]) by fmviesa009-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 May 2026 13:04:26 -0700 From: Ville Syrjala To: intel-gfx@lists.freedesktop.org Cc: intel-xe@lists.freedesktop.org Subject: [PATCH 08/10] drm/i915/bw: Round the PM demand bandwidth down Date: Fri, 22 May 2026 23:03:44 +0300 Message-ID: <20260522200346.17377-9-ville.syrjala@linux.intel.com> X-Mailer: git-send-email 2.52.0 In-Reply-To: <20260522200346.17377-1-ville.syrjala@linux.intel.com> References: <20260522200346.17377-1-ville.syrjala@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Organization: Intel Finland Oy - BIC 0357606-4 - c/o Alberga Business Park, 6 krs Bertel Jungin Aukio 5, 02600 Espoo, Finland Content-Transfer-Encoding: 8bit X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" From: Ville Syrjälä 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ä --- drivers/gpu/drm/i915/display/intel_bw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/i915/display/intel_bw.c b/drivers/gpu/drm/i915/display/intel_bw.c index 5bb3aa70d570..39191f8579df 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; } -- 2.52.0