From: Daniel Vetter Subject: Re: [PATCH 2/3] drm/i915: Fix scanoutpos calculations Date: Sat, 12 Oct 2013 01:19:04 +0200 Message-ID: <20131011231904.GO8303@phenom.ffwll.local> References: <1379930527-19714-1-git-send-email-ville.syrjala@linux.intel.com> <1379930527-19714-3-git-send-email-ville.syrjala@linux.intel.com> <52580BCA.6080409@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail-ea0-f169.google.com (mail-ea0-f169.google.com [209.85.215.169]) by gabe.freedesktop.org (Postfix) with ESMTP id 6AB14E6570 for ; Fri, 11 Oct 2013 16:18:44 -0700 (PDT) Received: by mail-ea0-f169.google.com with SMTP id k11so2214826eaj.28 for ; Fri, 11 Oct 2013 16:18:43 -0700 (PDT) Content-Disposition: inline In-Reply-To: <52580BCA.6080409@gmail.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: Mario Kleiner Cc: Daniel Vetter , intel-gfx@lists.freedesktop.org, Mario Kleiner List-Id: intel-gfx@lists.freedesktop.org On Fri, Oct 11, 2013 at 04:31:38PM +0200, Mario Kleiner wrote: > Daniel, Ville, > > i tested Ville's patch series for the scanoutpos improvements on a > GMA-950, on top of airlied's current drm-next branch. > > There's one issue: The variable "position" in > i915_get_crtc_scanoutpos() must be turned from a u32 into a int, > otherwise funny sign errors happen and we end up with *vpos being > off by multiple million scanlines and timestamps being off by over > 60 seconds. > > Other than that looks good. Execution time is now better: > > Before uncore.lock addition: 3-4 usecs execution time for the > scanoutpos query on my machine. After uncore.lock addition > (3.12.0-rc3) 9-20 usecs, sometimes repetition of the timing loop > triggered. After Ville's patches down to typically 3-8 usecs, > occassionally spiking to almost 20 usecs. > > I'll make my patches for the realtime kernel + increased accuracy on > top of drm-next + Ville's patches. So official reviewed-by/tested-by from you on Ville's latest patches in this thread? -Daniel -- Daniel Vetter Software Engineer, Intel Corporation +41 (0) 79 365 57 48 - http://blog.ffwll.ch