From 705103d77e6b80d796a4535cade96cb6e9ebece3 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Mon, 27 Aug 2012 20:07:19 +0100 Subject: [PATCH] sna: Add a modicum of DBG to kgem_is_idle() Print out the handle of the bo we just checked. Signed-off-by: Chris Wilson --- src/sna/kgem.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/sna/kgem.c b/src/sna/kgem.c index 92ab02f7..c9ab2c27 100644 --- a/src/sna/kgem.c +++ b/src/sna/kgem.c @@ -353,6 +353,7 @@ kgem_busy(struct kgem *kgem, int handle) busy.handle = handle; busy.busy = !kgem->wedged; (void)drmIoctl(kgem->fd, DRM_IOCTL_I915_GEM_BUSY, &busy); + DBG(("%s: handle=%d, busy=%d, wedged=%d\n", busy.busy, kgem->wedged)); return busy.busy; } @@ -1769,7 +1770,7 @@ bool __kgem_is_idle(struct kgem *kgem) return false; } - DBG(("%s: gpu idle\n", __FUNCTION__)); + DBG(("%s: gpu idle (handle=%d)\n", __FUNCTION__, rq->bo->handle)); kgem_retire__requests(kgem); assert(list_is_empty(&kgem->requests)); return true;