Skip to contentSkip to conversation

drm/irq: Even more debug output for drm_wait_one_vblank

PATCH New Daniel Vetter 1 participant 1 message Oct 1, 2014

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm/irq: Even more debug output for drm_wait_one_vblank

We have a bit of fun with vblank waits not working correctly right away after enabling a crtc, so let's add more debug output to figure what's going on.

References: https://bugs.freedesktop.org/show_bug.cgi?id=84162

---
 drivers/gpu/drm/drm_irq.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
drivers/gpu/drm/drm_irq.c +3 -1
index 5ef03c216a27..5b5c32a08a45 100644
@@ -1086,7 +1086,9 @@ void drm_wait_one_vblank(struct drm_device *dev, int crtc)
 				 last != drm_vblank_count(dev, crtc),
 				 msecs_to_jiffies(100));
 
-	WARN(ret == 0, "vblank wait timed out on crtc %i\n", crtc);
+	WARN(ret == 0,
+	     "vblank wait timed out on crtc %i, last: %u, current %u\n",
+	     crtc, last, drm_vblank_count(dev, crtc));
 
 	drm_vblank_put(dev, crtc);
 }
Signature · 1 line
1.9.3