]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Track i915_active using debugobjects
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 21 Jun 2019 18:37:58 +0000 (19:37 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 21 Jun 2019 18:47:50 +0000 (19:47 +0100)
commite546b89704ac2d1ea6eed5b90cf587f20ed734e9
tree186f8af37e77878a74d612e3c5ec68243e8b5e1c
parentb46904a65be5c1aa72261a182fe04a558e484af5
drm/i915: Track i915_active using debugobjects

Provide runtime asserts and tracking of i915_active via debugobjects.
For example, this should allow us to check that the i915_active is only
active when we expect it to be and is never freed too early.

One consequence is that, for simplicity, we no longer allow i915_active
to be on-stack which only affected the selftests.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Matthew Auld <matthew.auld@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190621183801.23252-2-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_active.c
drivers/gpu/drm/i915/selftests/i915_active.c