From: Daniel Vetter <daniel@ffwll.ch>
To: ville.syrjala@linux.intel.com
Cc: intel-gfx@lists.freedesktop.org,
Mario Kleiner <mario.kleiner@tuebingen.mpg.de>
Subject: Re: [PATCH] drm/i915: Fix pre-CTG vblank counter
Date: Wed, 25 Sep 2013 22:55:36 +0200 [thread overview]
Message-ID: <20130925205536.GQ12663@phenom.ffwll.local> (raw)
In-Reply-To: <1380128126-4457-1-git-send-email-ville.syrjala@linux.intel.com>
On Wed, Sep 25, 2013 at 07:55:26PM +0300, ville.syrjala@linux.intel.com wrote:
> From: Ville Syrjälä <ville.syrjala@linux.intel.com>
>
> The old style frame counter increments at the start of active video.
> However for i915_get_vblank_counter() we want a counter that increments
> at the start of vblank.
>
> Fortunately the low frame counter register also contains the pixel
> counter for the current frame. We can can compare that against the
> vblank start pixel count to determine if we need to increment the
> frame counter by 1 to get the correct answer.
>
> Also reorganize the function pointer assignments in intel_irq_init() a
> bit to avoid confusing people.
>
> Cc: Mario Kleiner <mario.kleiner@tuebingen.mpg.de>
> Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
> ---
>
> Just another small vblank related gem I forgot to polish up and send
> out until Imre started asking me questions about the vblank counter
> functions.
Hm, I've thought the magic fixup code does take care of that for us? But I
agree that we should do this explicitly ...
This could explain some of the strange vblank timestamp off failures QA
has reported (if there's too much delay and the fixup doesn't fire any
more), care to attach this patch to the relevant bug reports? Searching
for ts jitter + pre-gen5 should be good enough.
-Daniel
--
Daniel Vetter
Software Engineer, Intel Corporation
+41 (0) 79 365 57 48 - http://blog.ffwll.ch
next prev parent reply other threads:[~2013-09-25 20:55 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-09-25 16:55 [PATCH] drm/i915: Fix pre-CTG vblank counter ville.syrjala
2013-09-25 20:55 ` Daniel Vetter [this message]
2013-09-26 17:32 ` Mario Kleiner
2013-10-11 21:42 ` Daniel Vetter
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20130925205536.GQ12663@phenom.ffwll.local \
--to=daniel@ffwll.ch \
--cc=intel-gfx@lists.freedesktop.org \
--cc=mario.kleiner@tuebingen.mpg.de \
--cc=ville.syrjala@linux.intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox