[PATCH] drm: Factor-out drm_emit_vblank_event code. (v3)

2011-05-01 Thread christopher . halse . rogers
From: Christopher James Halse Rogers v2: Also pull out the drm_vblank_put call. v3: Always set the reply.sequence value properly. Signed-off-by: Christopher James Halse Rogers --- drivers/gpu/drm/drm_irq.c | 43 ++- 1 files changed, 18 insertions(+),

[PATCH] drm: Factor-out drm_emit_vblank_event code. (v2)

2011-04-28 Thread christopher . halse . rogers
From: Christopher James Halse Rogers v2: Also pull out the drm_vblank_put call. Signed-off-by: Christopher James Halse Rogers --- drivers/gpu/drm/drm_irq.c | 44 ++-- 1 files changed, 18 insertions(+), 26 deletions(-) diff --git a/drivers/gpu/drm/drm_

[PATCH 3/3] drm: Factor-out drm_emit_vblank_event code.

2011-04-26 Thread christopher . halse . rogers
From: Christopher James Halse Rogers Signed-off-by: Christopher James Halse Rogers --- drivers/gpu/drm/drm_irq.c | 39 --- 1 files changed, 16 insertions(+), 23 deletions(-) diff --git a/drivers/gpu/drm/drm_irq.c b/drivers/gpu/drm/drm_irq.c index 72407fa.

[PATCH 2/3] drm: Warn if vblank state has become inconsistent.

2011-04-26 Thread christopher . halse . rogers
From: Christopher James Halse Rogers After emitting all the waiting vblank events no-one should hold a vblank reference. Emit a warning if this is not the case. Signed-off-by: Christopher James Halse Rogers --- drivers/gpu/drm/drm_irq.c |1 + 1 files changed, 1 insertions(+), 0 deletions

[PATCH 1/3] drm: Send pending vblank events before disabling vblank.

2011-04-26 Thread christopher . halse . rogers
From: Christopher James Halse Rogers This is the least-bad behaviour. It means that we signal the vblank event before it actually happens, but since we're disabling vblanks there's no guarantee that it will *ever* happen otherwise. This prevents GL applications which use WaitMSC from hanging in