From mboxrd@z Thu Jan 1 00:00:00 1970 From: Chris Wilson Subject: Re: [PATCH] drm/i915: boost GPU and CPU freq when leaving idle Date: Fri, 28 Jun 2013 19:37:01 +0100 Message-ID: <20130628183701.GF32183@cantiga.alporthouse.com> References: <1372438472-3233-1-git-send-email-jbarnes@virtuousgeek.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from fireflyinternet.com (s16502780.onlinehome-server.info [87.106.93.118]) by gabe.freedesktop.org (Postfix) with ESMTP id 9CF4FE5CCC for ; Fri, 28 Jun 2013 11:37:39 -0700 (PDT) Content-Disposition: inline In-Reply-To: <1372438472-3233-1-git-send-email-jbarnes@virtuousgeek.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: intel-gfx-bounces+gcfxdi-intel-gfx=m.gmane.org@lists.freedesktop.org Errors-To: intel-gfx-bounces+gcfxdi-intel-gfx=m.gmane.org@lists.freedesktop.org To: Jesse Barnes Cc: otaylor@gtk.org, intel-gfx@lists.freedesktop.org, arjan@linux.intel.com List-Id: intel-gfx@lists.freedesktop.org On Fri, Jun 28, 2013 at 09:54:32AM -0700, Jesse Barnes wrote: > Coming out of idle is usually due to some sort of user input (swiping a > screen, clicking a button) and often results in some sort of graphical > animation. To prevent stutter for a CPU or GPU intensive animation, > boost the GPU and CPU freq to the maximum to get the first frame out as > quickly as possible. The normal CPU and GPU frequency management code > will take over from there and (hopefully) clock down to save power as > needed if the max frequencies aren't required. > > This could probably be done more cleanly, and possibly without another > uncached read in the execbuf path if we tracked idleness elsewhere. I'm > also unsure about the cpufreq calls; I don't really know if this will do > what I want... Would seem like a good idea to make intel_mark_busy() dtrt and use them. -Chris -- Chris Wilson, Intel Open Source Technology Centre