Intel-GFX Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Jesse Barnes <jbarnes@virtuousgeek.org>
To: Joe Bloggsian <joebloggsian@gmail.com>
Cc: intel-gfx@lists.freedesktop.org
Subject: Re: IVB GPU turbo
Date: Fri, 18 May 2012 14:25:46 -0700	[thread overview]
Message-ID: <20120518142546.7dd33735@jbarnes-desktop> (raw)
In-Reply-To: <4FB55B81.3000506@gmail.com>

On Thu, 17 May 2012 21:11:45 +0100
Joe Bloggsian <joebloggsian@gmail.com> wrote:

> Hi,
> 
> We are looking at accelerating video operations using 
> vaapi/intel-driver. When using Ivy bridge we believe that the GPU is 
> (almost always) not turboing even when 100% busy doing vaapi video 
> things (e.g. image scaling on EUs or bitstream decode). To determined 
> this we use cat /sys/kernel/debug/dri/0/i915_cur_delayinfo and GPU top 
> (todays IVB fixed vesion). We have tried a variety of IVB parts from 
> 3610QE up to 3770 - all do the same. We've mainly been using kernel 
> 3.2.0-24-generic and libdrm 2.4.32. The same machines turbo correctly 
> when doing equivent things in windows using intel media SDK.
> 
> I get the impression from mailing lists that turbo is known to have 
> driver/sw issues. Can anyone suggest if there is a later kernel/drm 
> version that might improve things? If so where do we find it? This is 
> for evaluation so we're happy to try unstable latest software.

You could try the drm-intel-next branch from Daniel's git tree at
git://people.freedesktop.org/~danvet/drm-intel.

I've definitely seen turbo kick in for gfx workloads, but parts of the
media engine use a different turbo mechanism, so if the current kernel
bits don't work, you could try this:

--- a/drivers/gpu/drm/i915/intel_pm.c
+++ b/drivers/gpu/drm/i915/intel_pm.c
@@ -2439,7 +2439,7 @@ void gen6_enable_rps(struct drm_i915_private *dev_priv)
        I915_WRITE(GEN6_RP_IDLE_HYSTERSIS, 10);
        I915_WRITE(GEN6_RP_CONTROL,
                   GEN6_RP_MEDIA_TURBO |
-                  GEN6_RP_MEDIA_HW_MODE |
+                  GEN6_RP_MEDIA_HW_NORMAL_MODE |
                   GEN6_RP_MEDIA_IS_GFX |
                   GEN6_RP_ENABLE |
                   GEN6_RP_UP_BUSY_AVG |

If that doesn't work, let me know and I'll see what we're missing.

Thanks,
-- 
Jesse Barnes, Intel Open Source Technology Center

  reply	other threads:[~2012-05-18 21:25 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-05-17 20:11 IVB GPU turbo Joe Bloggsian
2012-05-18 21:25 ` Jesse Barnes [this message]
2012-05-22 16:14   ` Joe Bloggsian
2012-05-22 16:23     ` Jesse Barnes

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20120518142546.7dd33735@jbarnes-desktop \
    --to=jbarnes@virtuousgeek.org \
    --cc=intel-gfx@lists.freedesktop.org \
    --cc=joebloggsian@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox