other versions
- jessie 3.16.56-1+deb8u1
DRM_VBLANK_PRE_MODES(9) | DRM Core | DRM_VBLANK_PRE_MODES(9) |
NAME¶
drm_vblank_pre_modeset - account for vblanks across mode setsSYNOPSIS¶
void
drm_vblank_pre_modeset(struct drm_device * dev,
int crtc);
ARGUMENTS¶
devDRM device
crtc
CRTC in question
DESCRIPTION¶
Account for vblank events across mode setting events, which will likely reset the hardware frame counter. This is done by grabbing a temporary vblank reference to ensure that the vblank interrupt keeps running across the modeset sequence. With this the software-side vblank frame counting will ensure that there are no jumps or discontinuities. Unfortunately this approach is racy and also doesn't work when the vblank interrupt stops running, e.g. across system suspend resume. It is therefore highly recommended that drivers use the newer drm_vblank_off and drm_vblank_on instead. drm_vblank_pre_modeset only works correctly when using “cooked” software vblank frame counters and not relying on any hardware counters. Drivers must call drm_vblank_post_modeset when re-enabling the same crtc again.AUTHORS¶
Jesse Barnes <jesse.barnes@intel.com>Initial version
Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Driver internals
Daniel Vetter <daniel.vetter@ffwll.ch>
Contributions all over the place
COPYRIGHT¶
May 2018 | Kernel Hackers Manual 3.16 |