diff options
author | Daniel Vetter <daniel.vetter@ffwll.ch> | 2012-12-11 10:21:38 -0500 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2013-01-20 16:17:10 -0500 |
commit | 623f9783027ef0a948205f17792c9e1fcedb61c6 (patch) | |
tree | 55d4d56a41e354e94f0330e0a320dacfffde5399 | |
parent | b0d1232589df5575c5971224ac4cb30e7e525884 (diff) |
drm/i915: dump refcount into framebuffer debugfs file
Useful for checking whether the new refcounting works as advertised.
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
-rw-r--r-- | drivers/gpu/drm/i915/i915_debugfs.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/drivers/gpu/drm/i915/i915_debugfs.c b/drivers/gpu/drm/i915/i915_debugfs.c index a40c674a57be..8a11085e0043 100644 --- a/drivers/gpu/drm/i915/i915_debugfs.c +++ b/drivers/gpu/drm/i915/i915_debugfs.c | |||
@@ -1367,11 +1367,12 @@ static int i915_gem_framebuffer_info(struct seq_file *m, void *data) | |||
1367 | ifbdev = dev_priv->fbdev; | 1367 | ifbdev = dev_priv->fbdev; |
1368 | fb = to_intel_framebuffer(ifbdev->helper.fb); | 1368 | fb = to_intel_framebuffer(ifbdev->helper.fb); |
1369 | 1369 | ||
1370 | seq_printf(m, "fbcon size: %d x %d, depth %d, %d bpp, obj ", | 1370 | seq_printf(m, "fbcon size: %d x %d, depth %d, %d bpp, refcount %d, obj ", |
1371 | fb->base.width, | 1371 | fb->base.width, |
1372 | fb->base.height, | 1372 | fb->base.height, |
1373 | fb->base.depth, | 1373 | fb->base.depth, |
1374 | fb->base.bits_per_pixel); | 1374 | fb->base.bits_per_pixel, |
1375 | atomic_read(&fb->base.refcount.refcount)); | ||
1375 | describe_obj(m, fb->obj); | 1376 | describe_obj(m, fb->obj); |
1376 | seq_printf(m, "\n"); | 1377 | seq_printf(m, "\n"); |
1377 | mutex_unlock(&dev->mode_config.mutex); | 1378 | mutex_unlock(&dev->mode_config.mutex); |
@@ -1381,11 +1382,12 @@ static int i915_gem_framebuffer_info(struct seq_file *m, void *data) | |||
1381 | if (&fb->base == ifbdev->helper.fb) | 1382 | if (&fb->base == ifbdev->helper.fb) |
1382 | continue; | 1383 | continue; |
1383 | 1384 | ||
1384 | seq_printf(m, "user size: %d x %d, depth %d, %d bpp, obj ", | 1385 | seq_printf(m, "user size: %d x %d, depth %d, %d bpp, refcount %d, obj ", |
1385 | fb->base.width, | 1386 | fb->base.width, |
1386 | fb->base.height, | 1387 | fb->base.height, |
1387 | fb->base.depth, | 1388 | fb->base.depth, |
1388 | fb->base.bits_per_pixel); | 1389 | fb->base.bits_per_pixel, |
1390 | atomic_read(&fb->base.refcount.refcount)); | ||
1389 | describe_obj(m, fb->obj); | 1391 | describe_obj(m, fb->obj); |
1390 | seq_printf(m, "\n"); | 1392 | seq_printf(m, "\n"); |
1391 | } | 1393 | } |