diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2022-07-26 16:48:44 +0200 |
---|---|---|
committer | Matthew Auld <matthew.auld@intel.com> | 2022-08-03 10:27:24 +0100 |
commit | 7dd5c56531eb03696acdb17774721de5ef481c0b (patch) | |
tree | cb1537d818fd60a280bafc971a372c8fc906c843 /drivers/gpu/drm/i915/i915_vma.h | |
parent | ae5a3d2c75a82c65564d32c42152ef7623ccf673 (diff) | |
download | lwn-7dd5c56531eb03696acdb17774721de5ef481c0b.tar.gz lwn-7dd5c56531eb03696acdb17774721de5ef481c0b.zip |
drm/i915/gem: Remove shared locking on freeing objects
The obj->base.resv may be shared across many objects, some of which may
still be live and locked, preventing objects from being freed
indefintely. We could individualise the lock during the free, or rely on
a freed object having no contention and being able to immediately free
the pages it owns.
References: https://gitlab.freedesktop.org/drm/intel/-/issues/6469
Fixes: be7612fd6665 ("drm/i915: Require object lock when freeing pages during destruction")
Fixes: 6cb12fbda1c2 ("drm/i915: Use trylock instead of blocking lock for __i915_gem_free_objects.")
Cc: <stable@vger.kernel.org> # v5.17+
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Tested-by: Nirmoy Das <nirmoy.das@intel.com>
Acked-by: Nirmoy Das <nirmoy.das@intel.com>
Signed-off-by: Nirmoy Das <nirmoy.das@intel.com>
Reviewed-by: Matthew Auld <matthew.auld@intel.com>
Signed-off-by: Matthew Auld <matthew.auld@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220726144844.18429-1-nirmoy.das@intel.com
Diffstat (limited to 'drivers/gpu/drm/i915/i915_vma.h')
0 files changed, 0 insertions, 0 deletions