]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Release the active tracker tree upon idling
authorChris Wilson <chris@chris-wilson.co.uk>
Tue, 5 Feb 2019 13:00:03 +0000 (13:00 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Tue, 5 Feb 2019 17:14:33 +0000 (17:14 +0000)
commit4b9889f9c1ab42da526a2c5d12869884c15f9d37
tree40b93cedda7a502aaac6e45e848311c0601ae278
parent8fdfb52b16c13a0acd9edbf033b7289b146cb441
drm/i915: Release the active tracker tree upon idling

As soon as we detect that the active tracker is idle and we prepare to
call the retire callback, release the storage for our tree of
per-timeline nodes. We expect these to be infrequently used and quick
to allocate, so there is little benefit in keeping the tree cached and
we would prefer to return the pages back to the system in a timely
fashion.

This also means that when we finalize the struct as a whole, we know as
the activity tracker must be idle, the tree has already been released.
Indeed we can reduce i915_active_fini() just to the assertions that there
is nothing to do.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190205130005.2807-3-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_active.c
drivers/gpu/drm/i915/i915_active.h