dri-devel.lists.freedesktop.org archive mirror
 help / color / mirror / Atom feed
* Vblank timestamping improvements/fixes for Linux drm.
@ 2013-10-26  8:27 Mario Kleiner
  2013-10-26  8:27 ` [PATCH 1/4] drm: Remove preempt_disable() from vblank timestamping code Mario Kleiner
                   ` (5 more replies)
  0 siblings, 6 replies; 8+ messages in thread
From: Mario Kleiner @ 2013-10-26  8:27 UTC (permalink / raw)
  To: dri-devel, airlied; +Cc: intel-gfx

Hi all,

this patch set for the kernel pushes the latency sensitive bits of
vblank scanoutpos timestamping from the drm core into the kms drivers.

A change in the locking of the intel-kms driver for Linux 3.11 made
the old approach too inaccurate and also incompatible with the
PREEMPT_RT realtime kernel patch set. These patches fix that problem
and restore the old level of precision and reliability.

The patch set changes the prototype of driver->get_scanout_position()
to require/allow kms drivers to perform the ktime_get() system time
queries which go along with actual scanout position readout in a way
that provides maximum precision and to return those timestamps to
the drm. It also converts the only two kms drivers which use this api
so far (intel-kms and radeon-kms) to the new api and improves precision
and reliability of the intel-kms a lot.

Patches have been tested on Intel and AMD Radeon hardware and the Intel
bits have received some review and feedback by Ville Syrjälä.

Please review and apply if possible.

Thanks,
-mario

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 8+ messages in thread
* Vblank timestamping improvements/fixes for Linux drm. [v2]
@ 2013-10-30  4:13 Mario Kleiner
  2013-10-30  4:13 ` [PATCH 4/4] drm/intel: Push get_scanout_position() timestamping into kms driver Mario Kleiner
  0 siblings, 1 reply; 8+ messages in thread
From: Mario Kleiner @ 2013-10-30  4:13 UTC (permalink / raw)
  To: airlied; +Cc: intel-gfx, mario.kleiner, dri-devel

Hi Dave,

this is v2 of the patch set for improving/restoring accuracy and
robustness of vblank timestamping and for fixing incompatibilities
with the PREEMPT_RT patches.

Could you please merge this for the next kernel? Would be good to have
the old accuracy restored as soon as possible. Thanks.

v2: Added the reviewed-by's of Ville and Alex, thanks for the review!
    Fixed multi-line code formatting as suggested by Ville.

Successfully tested on Intel and AMD Radeon hardware.

thanks,
-mario

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2013-10-30  4:13 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-10-26  8:27 Vblank timestamping improvements/fixes for Linux drm Mario Kleiner
2013-10-26  8:27 ` [PATCH 1/4] drm: Remove preempt_disable() from vblank timestamping code Mario Kleiner
2013-10-26  8:27 ` [PATCH 2/4] drm: Push latency sensitive bits of vblank scanoutpos timestamping into kms drivers Mario Kleiner
2013-10-26  8:27 ` [PATCH 3/4] drm/radeon: Push get_scanout_position() timestamping into kms driver Mario Kleiner
2013-10-26  8:27 ` [PATCH 4/4] drm/intel: " Mario Kleiner
2013-10-28 11:08 ` Vblank timestamping improvements/fixes for Linux drm Ville Syrjälä
2013-10-28 15:54 ` Alex Deucher
  -- strict thread matches above, loose matches on Subject: below --
2013-10-30  4:13 Vblank timestamping improvements/fixes for Linux drm. [v2] Mario Kleiner
2013-10-30  4:13 ` [PATCH 4/4] drm/intel: Push get_scanout_position() timestamping into kms driver Mario Kleiner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).