]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/debugfs: Show context objects in i915_gem_objects
authorChris Wilson <chris@chris-wilson.co.uk>
Tue, 24 May 2016 13:53:43 +0000 (14:53 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Tue, 24 May 2016 14:32:22 +0000 (15:32 +0100)
commit65d9f3cac32bec17659c7101c26e040649163ebf
tree8c934016fcc982d83b01ba8ab99e37333737501f
parent58a2e71a67d9a90d372b3846d3e32d0a1de77181
drm/i915/debugfs: Show context objects in i915_gem_objects

One of the uses for i915_gem_objects is pin-pointing leaks. For this, we
can compare the number of allocated objects and who owns them, a
discrepancy here often indicates a kernel bug. One allocator of unreported
objects is for backing context objects, so include those in the listing.

v2: Take filelist_mutex which requires a little dance with struct_mutex
to avoid nesting filelist_mutex inside struct_mutex.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Cc: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1464098023-3294-10-git-send-email-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_debugfs.c