DRM Vblank timestamping patches. 1st Try.

2010-10-24 Thread Mario Kleiner
Hi all, after obsessing over these for another month after xds 2010, this is the first version of my vblank timestamping patches that i'm not totally ashamed off. 1st patch modifies the drm vblank handling to maintain precise timestamps of when vblanks happen. It timestamps the end of each vblank

[PATCH 1/3] drm/vblank: Add support for precise vblank timestamping.

2010-10-24 Thread Mario Kleiner
rent 5 seconds and should allow longer vblank off periods for better power savings. Followup patches will use these new functions to implement precise timestamping for the intel and radeon kms drivers. Signed-off-by: Mario Kleiner --- drivers/gpu/drm/drm_crtc_helper.c | 13 +- drivers/gpu/drm/drm_i

[PATCH 2/3] kms/radeon: Add support for precise vblank timestamping.

2010-10-24 Thread Mario Kleiner
oked up to .get_scanout_position(). This code has been tested on AVIVO hardware, a RV530 (ATI Mobility Radeon X1600) in a Intel Core-2 Duo MacBookPro and some R600 variant (FireGL V7600) in a single cpu AMD Athlon 64 PC. Signed-off-by: Mario Kleiner --- drivers/gpu/drm/radeon/radeon_displa

[PATCH 3/3] kms/i915: Add support for precise vblank timestamping.

2010-10-24 Thread Mario Kleiner
's has not been tested so far due to lack of hardware. Signed-off-by: Mario Kleiner --- drivers/gpu/drm/i915/i915_drv.c |2 + drivers/gpu/drm/i915/i915_drv.h |7 +++ drivers/gpu/drm/i915/i915_irq.c | 92 ++ drivers/gpu/drm/i915/intel_d

Re: DRM Vblank timestamping patches. 1st Try.

2010-10-24 Thread Mario Kleiner
Oh btw., the patches are against the current drm-radeon-testing tree, applied after commit... 21c74a8ea8b47eb6c3c621e36578f6e27f65c5c7 "drm, kdb, kms: Change mode_set_base_atomic() enter argument to be an enum" ... and should apply cleanly. thanks, -mario --

Re: [RFC] DRI2 synchronization and swap bits

2009-11-07 Thread Mario Kleiner
the wrong moment, but kernel code inside the irq handler should be more robust. Also it would allow a more precise implementation of the UST timestamp according to the OML_sync_control spec, as that spec asks for UST being the time of start of scanout of the first scanline of a new video frame, instead of star

Re: [RFC] DRI2 synchronization and swap bits

2009-11-01 Thread Mario Kleiner
Hello everybody My name is Mario Kleiner and i'm new to this list, so i apologize beforehand should i violate some rules of netiquette, state the totally obvious, or if this post is somehow considered off-topic or way too long. Please tell me if so, and how to do better next time.