From: Daniel Vetter Subject: Re: [PATCH 5/7] drm/i915: drop redundant vblank waits Date: Thu, 11 Apr 2013 20:10:01 +0200 Message-ID: <20130411181001.GP27612@phenom.ffwll.local> References: <1365690550-5716-1-git-send-email-daniel.vetter@ffwll.ch> <1365690550-5716-5-git-send-email-daniel.vetter@ffwll.ch> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail-ea0-f173.google.com (mail-ea0-f173.google.com [209.85.215.173]) by gabe.freedesktop.org (Postfix) with ESMTP id 1F816E6532 for ; Thu, 11 Apr 2013 11:07:01 -0700 (PDT) Received: by mail-ea0-f173.google.com with SMTP id k11so903447eaj.32 for ; Thu, 11 Apr 2013 11:07:01 -0700 (PDT) Content-Disposition: inline In-Reply-To: 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: Paulo Zanoni Cc: Daniel Vetter , Intel Graphics Development List-Id: intel-gfx@lists.freedesktop.org On Thu, Apr 11, 2013 at 02:47:05PM -0300, Paulo Zanoni wrote: > Hi > > 2013/4/11 Daniel Vetter : > > Just blows through 50ms for naught, since the pipe is off. > > > > Signed-off-by: Daniel Vetter > > Looks correct, but can you also please add some WARNs in case the pipe > is actually on? Check haswell_crtc_mode_set for examples: > > - WARN_ON(I915_READ(PIPECONF(intel_crtc->cpu_transcoder)) & > (PIPECONF_ENABLE | I965_PIPECONF_ACTIVE)); > - WARN_ON(I915_READ(DSPCNTR(plane)) & DISPLAY_PLANE_ENABLE); We have _tons_ of assert_pipe_disabled in the enable/disable sequence for i9xx now. So I think we're covered. On that topic: Can't we use the same macros for the Haswell code? Would make things a bit more readable imo ... -Daniel -- Daniel Vetter Software Engineer, Intel Corporation +41 (0) 79 365 57 48 - http://blog.ffwll.ch