From: Daniel Vetter Subject: Re: [PATCH 2/3] drm/i915: Fix scanoutpos calculations Date: Mon, 14 Oct 2013 17:13:10 +0200 Message-ID: <20131014151310.GR8303@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> <20131011231904.GO8303@phenom.ffwll.local> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail-ee0-f41.google.com (mail-ee0-f41.google.com [74.125.83.41]) by gabe.freedesktop.org (Postfix) with ESMTP id 8BA06E704A for ; Mon, 14 Oct 2013 08:12:51 -0700 (PDT) Received: by mail-ee0-f41.google.com with SMTP id d17so3501068eek.28 for ; Mon, 14 Oct 2013 08:12:49 -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: Mario Kleiner Cc: intel-gfx@lists.freedesktop.org, Mario Kleiner , Daniel Vetter List-Id: intel-gfx@lists.freedesktop.org On Sat, Oct 12, 2013 at 01:22:40AM +0200, Mario Kleiner wrote: > Yes. > On Oct 12, 2013 1:18 AM, "Daniel Vetter" wrote: > > > > 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? > > Yes. Ok, slurped in the entire series, thanks for the review and testing. -Daniel -- Daniel Vetter Software Engineer, Intel Corporation +41 (0) 79 365 57 48 - http://blog.ffwll.ch