public inbox for intel-gfx@lists.freedesktop.org
 help / color / mirror / Atom feed
From: Deepak S <deepak.s@linux.intel.com>
To: Daniel Vetter <daniel@ffwll.ch>
Cc: intel-gfx <intel-gfx@lists.freedesktop.org>
Subject: Re: [PATCH v3] drm/i915: Add boot paramter to control rps boost at boot time.
Date: Wed, 30 Apr 2014 21:19:32 +0530	[thread overview]
Message-ID: <53611B8C.3010509@linux.intel.com> (raw)
In-Reply-To: <CAKMK7uEbiXPsnK2WNPLiwPRWTNR+28kvLaoJJV4ABEFqh9_49g@mail.gmail.com>


On Monday 28 April 2014 08:42 PM, Daniel Vetter wrote:
> On Mon, Apr 28, 2014 at 4:47 PM,  <deepak.s@linux.intel.com> wrote:
>> From: Deepak S <deepak.s@linux.intel.com>
>>
>> We are adding a module paramter to control rps boost. By default, we
>> enable the boost for better performace. Based on the need (perf/power)
>> we can either enable/disable.
>>
>> v2: Addressed rps default comment (Jani)
>>
>> v3: Use bool to represent the boot parameter (Ville).
>>
>> Signed-off-by: Deepak S <deepak.s@linux.intel.com>
>> Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
> I'm still unhappy about this since it feels like cheating in
> benchmarks and it gives me the impression that you guys frob this at
> runtime on Android ;-)
>
> A few more ideas:
> 1. "light-boost": We add some hysteris (either time or whether we're
> still above rpe or something like that) and don't boost if this is the
> case. I expect that we won't be able to have the full boost benefits
> without the downside.
>
> 2. "eco-boost". We try to boost just enough to not miss the next
> frame. For that the app needs to tell us (with two new execbuf flag)
> whether it hit or missed the last deadline. Once an app used those
> flags for the first time we decrease the boost target freq once per
> HIT_DEADLINE and until we get the first MISS_DEADLINE. The we only try
> to sporadically test the limit again. TCP flow control theory might be
> interesting for copying ideas.
>
> 3. "runtime-boost-control". The workloads with very predictable
> regular loads seem to be known. We can just add a new execbuf NO_BOOST
> flag which libva uses on all execbufs but the first one (since we
> don't want to drop the first frame really).
>
> Approach 3 should be the simplest to implement and also the simplest
> to demonstrate in the open-source libva (since that's always a merge
> criteria).
>
> Aside: If you really use this at runtime then you essentially create a
> new ABI with this patch. Which means we need open-source userspace for
> it anyway.
> -Daniel

Thanks for the review.
Agreed. option 3 is better. I will work on this.

_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/intel-gfx

  reply	other threads:[~2014-04-30 15:50 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-04-28 14:47 [PATCH v3] drm/i915: Add boot paramter to control rps boost at boot time deepak.s
2014-04-28 14:55 ` Chris Wilson
2014-04-28 15:12 ` Daniel Vetter
2014-04-30 15:49   ` Deepak S [this message]
2014-04-30 17:27     ` Daniel Vetter

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=53611B8C.3010509@linux.intel.com \
    --to=deepak.s@linux.intel.com \
    --cc=daniel@ffwll.ch \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox