drm/i915: Report the deferred free list in debugfs
authorChris Wilson <chris@chris-wilson.co.uk>
Sun, 26 Sep 2010 10:19:33 +0000 (11:19 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Thu, 30 Sep 2010 08:30:12 +0000 (09:30 +0100)
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
drivers/gpu/drm/i915/i915_debugfs.c

index eb5dd52847a90b363dc2c5b0d3128ca761519938..e4893988f401b8fc22b3b4c35e9851b1b364b408 100644 (file)
@@ -45,7 +45,8 @@ enum {
        BSD_LIST,
        FLUSHING_LIST,
        INACTIVE_LIST,
-       PINNED_LIST
+       PINNED_LIST,
+       DEFERRED_FREE_LIST,
 };
 
 static const char *yesno(int v)
@@ -161,6 +162,10 @@ static int i915_gem_object_list_info(struct seq_file *m, void *data)
                seq_printf(m, "Flushing:\n");
                head = &dev_priv->mm.flushing_list;
                break;
+       case DEFERRED_FREE_LIST:
+               seq_printf(m, "Deferred free:\n");
+               head = &dev_priv->mm.deferred_free_list;
+               break;
        default:
                mutex_unlock(&dev->struct_mutex);
                return -EINVAL;
@@ -991,6 +996,7 @@ static struct drm_info_list i915_debugfs_list[] = {
        {"i915_gem_flushing", i915_gem_object_list_info, 0, (void *) FLUSHING_LIST},
        {"i915_gem_inactive", i915_gem_object_list_info, 0, (void *) INACTIVE_LIST},
        {"i915_gem_pinned", i915_gem_object_list_info, 0, (void *) PINNED_LIST},
+       {"i915_gem_deferred_free", i915_gem_object_list_info, 0, (void *) DEFERRED_FREE_LIST},
        {"i915_gem_pageflip", i915_gem_pageflip_info, 0},
        {"i915_gem_request", i915_gem_request_info, 0},
        {"i915_gem_seqno", i915_gem_seqno_info, 0},