From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ben Widawsky Subject: Re: [PATCH] drm/i915: set persistent mode for fbc Date: Sun, 3 Jul 2011 08:32:51 -0700 Message-ID: <20110703153251.GA13463@snipes.kumite> References: <1309549723-13144-1-git-send-email-ben@bwidawsk.net> <013811$m5eno@fmsmga002.fm.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from cloud01.chad-versace.us (184-106-247-128.static.cloud-ips.com [184.106.247.128]) by gabe.freedesktop.org (Postfix) with ESMTP id E336B9E799 for ; Sun, 3 Jul 2011 08:33:14 -0700 (PDT) Content-Disposition: inline In-Reply-To: <013811$m5eno@fmsmga002.fm.intel.com> 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: Chris Wilson Cc: intel-gfx@lists.freedesktop.org List-Id: intel-gfx@lists.freedesktop.org On Sun, Jul 03, 2011 at 12:01:47PM +0100, Chris Wilson wrote: > I think we can make the patch and resulting code a bit more > comprehensible... > > On Fri, 1 Jul 2011 12:48:43 -0700, Ben Widawsky wrote: > > This seems to fix my bugs with sna enabled. > > > > We should collect some power numbers, and validate it works on ILK > > before upstreaming. (And read more about what it actually does). > > > > Signed-off-by: Ben Widawsky > > --- > > drivers/gpu/drm/i915/intel_display.c | 2 ++ > > 1 files changed, 2 insertions(+), 0 deletions(-) > > > > diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c > > index 804ac4d..4b94d71 100644 > > --- a/drivers/gpu/drm/i915/intel_display.c > > +++ b/drivers/gpu/drm/i915/intel_display.c > > @@ -1607,6 +1607,8 @@ static void ironlake_enable_fbc(struct drm_crtc *crtc, unsigned long interval) > > I915_WRITE(SNB_DPFC_CTL_SA, > > SNB_CPU_FENCE_ENABLE | dev_priv->cfb_fence); > > I915_WRITE(DPFC_CPU_FENCE_OFFSET, crtc->y); > > + /* Set persistent mode */ > > + I915_WRITE(ILK_DPFC_CONTROL, 1 << 25); > /* Set persistent mode for front-buffer rendering and to detect direct > * writes through the CPU */ > I915_WRITE(ILK_DPFC_CONTROL, > I915_READ(ILK_DPFC_CONTROL) | DPFC_CTL_PERSISTENT_MODE); > -Chris Looks good to me. I'd like to get some power numbers from Jesse though before going for -fixes. Would you care to resend your patch with your description from the earlier mail as the commit message? Ben