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
The DRI2 swap & sync implementation needs precise vblank counts and precise timestamps corresponding to those vblank counts. For conformance to the OpenML OML_sync_control extension specification the DRM timestamp associated with a vblank count should correspond to the start of video scanout of the

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

2010-10-24 Thread Mario Kleiner
This patch adds new functions for use by the drm core: .get_vblank_timestamp() provides a precise timestamp for the end of the most recent (or current) vblank interval of a given crtc, as needed for the DRI2 implementation of the OML_sync_control extension. It is a thin wrapper around the drm fun

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

2010-10-24 Thread Mario Kleiner
This patch adds new functions for use by the drm core: .get_vblank_timestamp() provides a precise timestamp for the end of the most recent (or current) vblank interval of a given crtc, as needed for the DRI2 implementation of the OML_sync_control extension. It is a thin wrapper around the drm func

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 --