OSDN Git Service

drm/i915: Allocate active tracking nodes from a slabcache
authorChris Wilson <chris@chris-wilson.co.uk>
Tue, 5 Feb 2019 13:00:04 +0000 (13:00 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Tue, 5 Feb 2019 17:17:34 +0000 (17:17 +0000)
commit5f5c139d6900b3338963bddcd8a567dcad33cf92
tree5251e6fe8868ad6828904b9b2767b5acfb78f416
parenta42375af0a305e9c299cffd739a39e415930614c
drm/i915: Allocate active tracking nodes from a slabcache

Wrap the active tracking for a GPU references in a slabcache for faster
allocations, and hopefully better fragmentation reduction.

v3: Nothing device specific left, it's just a slabcache that we can
make global.
v4: Include i915_active.h and don't put the initfunc under DEBUG_GEM

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