From patchwork Wed Sep 25 23:35:32 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ben Widawsky X-Patchwork-Id: 2945981 Return-Path: X-Original-To: patchwork-intel-gfx@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 5895B9F288 for ; Wed, 25 Sep 2013 23:36:09 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id DAE66202F9 for ; Wed, 25 Sep 2013 23:36:06 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id 359A520258 for ; Wed, 25 Sep 2013 23:36:03 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 11A76E68CD for ; Wed, 25 Sep 2013 16:36:03 -0700 (PDT) X-Original-To: intel-gfx@lists.freedesktop.org Delivered-To: intel-gfx@lists.freedesktop.org Received: from mail.bwidawsk.net (bwidawsk.net [166.78.191.112]) by gabe.freedesktop.org (Postfix) with ESMTP id 4383EE691E for ; Wed, 25 Sep 2013 16:35:45 -0700 (PDT) Received: by mail.bwidawsk.net (Postfix, from userid 5001) id CC6114A6C6; Wed, 25 Sep 2013 16:35:43 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Spam-Level: X-Spam-Status: No, score=-6.2 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 Received: from lundgren.pdx.edu (host-246-194.pubnet.pdx.edu [131.252.246.194]) by mail.bwidawsk.net (Postfix) with ESMTPSA id 96B1A58209; Wed, 25 Sep 2013 16:35:42 -0700 (PDT) From: Ben Widawsky To: Intel GFX Date: Wed, 25 Sep 2013 16:35:32 -0700 Message-Id: <1380152133-1024-1-git-send-email-benjamin.widawsky@intel.com> X-Mailer: git-send-email 1.8.4 Cc: Ben Widawsky , Ben Widawsky Subject: [Intel-gfx] [PATCH 1/2] drm/i915: Print ring min freq scaling X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: intel-gfx-bounces+patchwork-intel-gfx=patchwork.kernel.org@lists.freedesktop.org Errors-To: intel-gfx-bounces+patchwork-intel-gfx=patchwork.kernel.org@lists.freedesktop.org X-Virus-Scanned: ClamAV using ClamSMTP This allows us to keep track of the values being set if we want to tweak this code. Signed-off-by: Ben Widawsky --- drivers/gpu/drm/i915/intel_pm.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/drivers/gpu/drm/i915/intel_pm.c b/drivers/gpu/drm/i915/intel_pm.c index d27eda6..31cf188 100644 --- a/drivers/gpu/drm/i915/intel_pm.c +++ b/drivers/gpu/drm/i915/intel_pm.c @@ -3671,6 +3671,9 @@ void gen6_update_ring_freq(struct drm_device *dev) ring_freq = (gpu_freq * 5 + 3) / 4; ring_freq = max(min_ring_freq, ring_freq); /* leave ia_freq as the default, chosen by cpufreq */ + + DRM_DEBUG_DRIVER("Setup min ring frequency %dMHz for GT freq %dMHz\n", + ring_freq * 100, gpu_freq * 50); } else { /* On older processors, there is no separate ring * clock domain, so in order to boost the bandwidth @@ -3684,6 +3687,9 @@ void gen6_update_ring_freq(struct drm_device *dev) else ia_freq = max_ia_freq - ((diff * scaling_factor) / 2); ia_freq = DIV_ROUND_CLOSEST(ia_freq, 100); + + DRM_DEBUG_DRIVER("Setup min ring frequency %dMHz for GT freq %dMHz\n", + ia_freq * 100, gpu_freq * 50); } sandybridge_pcode_write(dev_priv,