From: Daniel Vetter Subject: Re: [PATCH] drm/i915: optimize vblank waits in set_base_atomic Date: Mon, 3 Jun 2013 14:17:06 +0200 Message-ID: <20130603121706.GP15743@phenom.ffwll.local> References: <1370186581-1177-1-git-send-email-daniel.vetter@ffwll.ch> <20130603074912.GA17485@cantiga.alporthouse.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail-ee0-f52.google.com (mail-ee0-f52.google.com [74.125.83.52]) by gabe.freedesktop.org (Postfix) with ESMTP id AD6F5E6123 for ; Mon, 3 Jun 2013 05:17:10 -0700 (PDT) Received: by mail-ee0-f52.google.com with SMTP id c50so898005eek.25 for ; Mon, 03 Jun 2013 05:17:10 -0700 (PDT) Content-Disposition: inline In-Reply-To: <20130603074912.GA17485@cantiga.alporthouse.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 , Daniel Vetter , Intel Graphics Development List-Id: intel-gfx@lists.freedesktop.org On Mon, Jun 03, 2013 at 08:49:13AM +0100, Chris Wilson wrote: > On Sun, Jun 02, 2013 at 05:23:01PM +0200, Daniel Vetter wrote: > > We only need to do them if the pipe is actually running and if the > > framebuffers have changed. Removes two "wait for vblank timed out" > > messages when doing a suspend/resume cycle on my i855gm. > > > > Signed-off-by: Daniel Vetter > > Reviewed-by: Chris Wilson > > Comments inline. > > --- > > drivers/gpu/drm/i915/intel_display.c | 3 ++- > > 1 file changed, 2 insertions(+), 1 deletion(-) > > > > diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c > > index 0b27c57..0669729 100644 > > --- a/drivers/gpu/drm/i915/intel_display.c > > +++ b/drivers/gpu/drm/i915/intel_display.c > > @@ -2203,7 +2203,8 @@ intel_pipe_set_base(struct drm_crtc *crtc, int x, int y, > > crtc->y = y; > > > > if (old_fb) { > > - intel_wait_for_vblank(dev, intel_crtc->pipe); > > + if (to_intel_crtc(crtc)->active && old_fb != fb) > if (intel_crtc->active && old_fb != fb) Oops, missed that one. Queued for -next, thanks for the review. -Daniel -- Daniel Vetter Software Engineer, Intel Corporation +41 (0) 79 365 57 48 - http://blog.ffwll.ch