sna: Add a little more DBG information to kgem_retire()

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
Chris Wilson 2015-08-07 13:24:13 +01:00
parent d78685787a
commit a00fdce1fd
1 changed files with 5 additions and 3 deletions

View File

@ -3012,7 +3012,7 @@ static bool kgem_retire__flushing(struct kgem *kgem)
int count = 0;
list_for_each_entry(bo, &kgem->flushing, request)
count++;
DBG(("%s: %d bo on flushing list\n", __FUNCTION__, count));
DBG(("%s: %d bo on flushing list, retired? %d\n", __FUNCTION__, count, retired));
}
#endif
@ -3111,6 +3111,8 @@ static bool kgem_retire__requests_ring(struct kgem *kgem, int ring)
while (!list_is_empty(&kgem->requests[ring])) {
struct kgem_request *rq;
DBG(("%s: retiring ring %d\n", __FUNCTION__, ring));
rq = list_first_entry(&kgem->requests[ring],
struct kgem_request,
list);
@ -3135,8 +3137,8 @@ static bool kgem_retire__requests_ring(struct kgem *kgem, int ring)
struct kgem_request,
list)->bo;
DBG(("%s: ring=%d, %d outstanding requests, oldest=%d\n",
__FUNCTION__, ring, count, bo ? bo->handle : 0));
DBG(("%s: ring=%d, %d outstanding requests, oldest=%d, retired? %d\n",
__FUNCTION__, ring, count, bo ? bo->handle : 0, retired));
}
#endif