All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jesse Barnes <jbarnes@virtuousgeek.org>
To: Eric Anholt <eric@anholt.net>
Cc: intel-gfx@lists.freedesktop.org
Subject: Re: [PATCH 2/2] drm/i915: load a ring frequency scaling table
Date: Tue, 28 Jun 2011 10:40:49 -0700	[thread overview]
Message-ID: <20110628104049.1a71d315@jbarnes-desktop> (raw)
In-Reply-To: <87iprruplj.fsf@eliezer.anholt.net>

On Mon, 27 Jun 2011 10:54:48 -0700
Eric Anholt <eric@anholt.net> wrote:

> > +	for (gpu_freq = dev_priv->max_delay; gpu_freq >= dev_priv->min_delay;
> > +	     gpu_freq--) {
> > +		int diff = dev_priv->max_delay - gpu_freq;
> > +
> > +		/*
> > +		 * For GPU frequencies less than 750MHz, just use the lowest
> > +		 * ring freq.
> > +		 */
> > +		if (gpu_freq < min_freq)
> > +			ia_freq = 800;
> > +		else
> > +			ia_freq = max_ia_freq - ((diff * scaling_factor) / 2);
> > +		ia_freq = DIV_ROUND_CLOSEST(ia_freq, 100);  
> 
> If the GPU has a wide enough clock range (diff large) and the CPU is low
> enough clocked (max_ia_freq low now), could we end up with the ia_freq <
> 800, and would that be a bad thing?  In other words, should
> scaling_factor be non-constant?

scaling_factor probably should be non-constant, but I don't know what
function it should follow.

ia_freq < 800 shouldn't break anything, but would probably result in
sub-optimal GPU performance.  OTOH it would save power...

-- 
Jesse Barnes, Intel Open Source Technology Center

  reply	other threads:[~2011-06-28 17:40 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-06-24 18:13 [PATCH 1/2] cpufreq: expose a cpufreq_quick_get_max routine Jesse Barnes
2011-06-24 18:13 ` [PATCH 2/2] drm/i915: load a ring frequency scaling table Jesse Barnes
2011-06-27 17:54   ` Eric Anholt
2011-06-28 17:40     ` Jesse Barnes [this message]
2011-06-27 19:40   ` Chris Wilson
2011-06-28 17:41     ` Jesse Barnes
2011-06-27 19:03 ` [PATCH 1/2] cpufreq: expose a cpufreq_quick_get_max routine Chris Wilson

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=20110628104049.1a71d315@jbarnes-desktop \
    --to=jbarnes@virtuousgeek.org \
    --cc=eric@anholt.net \
    --cc=intel-gfx@lists.freedesktop.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.