drm/i915: Show WT caching in debugfs
authorChris Wilson <chris@chris-wilson.co.uk>
Wed, 25 Sep 2013 09:23:19 +0000 (10:23 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 1 Oct 2013 05:45:23 +0000 (07:45 +0200)
Add the missing cache-level to the describe_obj() function for debug and
error reporting.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_drv.h
drivers/gpu/drm/i915/i915_gpu_error.c

index 7ccb0cd35474365be7424093f910c895283fff1a..08e96a8c01aa86d94a11116305c7efe646a19ea2 100644 (file)
@@ -324,7 +324,7 @@ struct drm_i915_error_state {
                u32 dirty:1;
                u32 purgeable:1;
                s32 ring:4;
-               u32 cache_level:2;
+               u32 cache_level:3;
        } **active_bo, **pinned_bo;
        u32 *active_bo_count, *pinned_bo_count;
        struct intel_overlay_error_state *overlay;
index c3ff6bd220dca12e3ac21eeb7cab4497b819b86b..0a49b651e51014de4db0f00af07f6dc15136c2a5 100644 (file)
@@ -1012,6 +1012,7 @@ const char *i915_cache_level_str(int type)
        case I915_CACHE_NONE: return " uncached";
        case I915_CACHE_LLC: return " snooped or LLC";
        case I915_CACHE_L3_LLC: return " L3+LLC";
+       case I915_CACHE_WT: return " WT";
        default: return "";
        }
 }