From: Jesse Barnes Date: Tue, 10 Nov 2009 08:21:25 +0000 (+0000) Subject: drm: when queuing an event with NEXTONMISS, return queued sequence to userspace X-Git-Tag: v2.6.33-rc1~323^2~6^2~32 X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=4a9216453c8537a7f43a3b1708509b9dd271dc9f;p=~shefty%2Frdma-dev.git drm: when queuing an event with NEXTONMISS, return queued sequence to userspace If we queue a vblank event but miss it, we should return the actual sequence number we queued to userspace, so its event handling function will know which event to look for. Acked-by: Kristian Høgsberg Signed-off-by: Jesse Barnes Signed-off-by: Dave Airlie --- diff --git a/drivers/gpu/drm/drm_irq.c b/drivers/gpu/drm/drm_irq.c index 72754aca7ab..6b3ce6d3884 100644 --- a/drivers/gpu/drm/drm_irq.c +++ b/drivers/gpu/drm/drm_irq.c @@ -585,6 +585,7 @@ static int drm_queue_vblank_event(struct drm_device *dev, int pipe, if ((vblwait->request.type & _DRM_VBLANK_NEXTONMISS) && (seq - vblwait->request.sequence) <= (1 << 23)) { vblwait->request.sequence = seq + 1; + vblwait->reply.sequence = vblwait->request.sequence; } DRM_DEBUG("event on vblank count %d, current %d, crtc %d\n",