]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
drm/i915/gem: Drop free_work for GEM contexts
authorChris Wilson <chris@chris-wilson.co.uk>
Tue, 15 Dec 2020 15:21:38 +0000 (15:21 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Wed, 16 Dec 2020 15:14:09 +0000 (15:14 +0000)
commitf8246cf4d9a9025d26c609bb2195e7c0a9ce5c40
treee5fa58f126c7a50c406b3da40072c946597a0d2c
parent5f22cc0b134ab702d7f64b714e26018f7288ffee
drm/i915/gem: Drop free_work for GEM contexts

The free_list and worker was introduced in commit 5f09a9c8ab6b ("drm/i915:
Allow contexts to be unreferenced locklessly"), but subsequently made
redundant by the removal of the last sleeping lock in commit 2935ed5339c4
("drm/i915: Remove logical HW ID"). As we can now free the GEM context
immediately from any context, remove the deferral of the free_list

v2: Lift removing the context from the global list into close().

Suggested-by: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Cc: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Reviewed-by: Matthew Brost <matthew.brost@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20201215152138.8158-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/gem/i915_gem_context.c
drivers/gpu/drm/i915/gem/i915_gem_context.h
drivers/gpu/drm/i915/gem/i915_gem_context_types.h
drivers/gpu/drm/i915/i915_drv.h
drivers/gpu/drm/i915/i915_gem.c
drivers/gpu/drm/i915/selftests/mock_gem_device.c