OSDN Git Service

drm/i915: Replace struct_mutex for batch pool serialisation
authorChris Wilson <chris@chris-wilson.co.uk>
Sun, 4 Aug 2019 12:48:26 +0000 (13:48 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Sun, 4 Aug 2019 13:31:18 +0000 (14:31 +0100)
commitb40d73784ffc33f3c6431e7ceec3b20fffcd95c3
tree2159f319af4c715e07b341a6ef617e9330a459f0
parenta4e57f9031ccd543c549a34524af16c0c246e628
drm/i915: Replace struct_mutex for batch pool serialisation

Switch to tracking activity via i915_active on individual nodes, only
keeping a list of retired objects in the cache, and reaping the cache
when the engine itself idles.

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/20190804124826.30272-2-chris@chris-wilson.co.uk
16 files changed:
drivers/gpu/drm/i915/Makefile
drivers/gpu/drm/i915/gem/i915_gem_execbuffer.c
drivers/gpu/drm/i915/gem/i915_gem_object.c
drivers/gpu/drm/i915/gem/i915_gem_object_types.h
drivers/gpu/drm/i915/gem/i915_gem_pm.c
drivers/gpu/drm/i915/gt/intel_engine.h
drivers/gpu/drm/i915/gt/intel_engine_cs.c
drivers/gpu/drm/i915/gt/intel_engine_pm.c
drivers/gpu/drm/i915/gt/intel_engine_pool.c [new file with mode: 0644]
drivers/gpu/drm/i915/gt/intel_engine_pool.h [new file with mode: 0644]
drivers/gpu/drm/i915/gt/intel_engine_pool_types.h [new file with mode: 0644]
drivers/gpu/drm/i915/gt/intel_engine_types.h
drivers/gpu/drm/i915/gt/mock_engine.c
drivers/gpu/drm/i915/i915_debugfs.c
drivers/gpu/drm/i915/i915_gem_batch_pool.c [deleted file]
drivers/gpu/drm/i915/i915_gem_batch_pool.h [deleted file]