From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jesse Barnes Subject: Re: [PATCH 2/2] drm/i915: add Ivy Bridge page flip support Date: Thu, 16 Jun 2011 12:17:12 -0700 Message-ID: <20110616121712.5eb3264c@jbarnes-desktop> References: <1308241154-6830-1-git-send-email-jbarnes@virtuousgeek.org> <1308241154-6830-3-git-send-email-jbarnes@virtuousgeek.org> <20110616185450.GB5051@bwgnt.jf.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from oproxy5-pub.bluehost.com (oproxy5-pub.bluehost.com [67.222.38.55]) by gabe.freedesktop.org (Postfix) with SMTP id 7D67C9E7C3 for ; Thu, 16 Jun 2011 12:17:18 -0700 (PDT) In-Reply-To: <20110616185450.GB5051@bwgnt.jf.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: Ben Widawsky Cc: intel-gfx@lists.freedesktop.org List-Id: intel-gfx@lists.freedesktop.org On Thu, 16 Jun 2011 11:54:50 -0700 Ben Widawsky wrote: > On Thu, Jun 16, 2011 at 09:19:14AM -0700, Jesse Barnes wrote: > > Use the blit ring for submitting flips since the render ring doesn't > > generate flip complete interrupts. > > > > Signed-off-by: Jesse Barnes > > --- > > drivers/gpu/drm/i915/intel_display.c | 30 ++++++++++++++++++++++++++++++ > > 1 files changed, 30 insertions(+), 0 deletions(-) > > > > diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c > > index 37e74e9..e842ed9 100644 > > --- a/drivers/gpu/drm/i915/intel_display.c > > +++ b/drivers/gpu/drm/i915/intel_display.c > > @@ -6412,6 +6412,33 @@ out: > > return ret; > > } > > > > +static int intel_gen7_queue_flip(struct drm_device *dev, > > + struct drm_crtc *crtc, > > + struct drm_framebuffer *fb, > > + struct drm_i915_gem_object *obj) > > +{ > > + struct drm_i915_private *dev_priv = dev->dev_private; > > + struct intel_crtc *intel_crtc = to_intel_crtc(crtc); > Could you put the bit about why you chose the blitter ring here. > > + struct intel_ring_buffer *ring = &dev_priv->ring[BCS]; Oh yeah, good call. Will update with comments. -- Jesse Barnes, Intel Open Source Technology Center