]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Remove dma_resv_prune
authorMaarten Lankhorst <maarten.lankhorst@linux.intel.com>
Thu, 21 Oct 2021 10:35:40 +0000 (12:35 +0200)
committerMaarten Lankhorst <maarten.lankhorst@linux.intel.com>
Thu, 25 Nov 2021 13:33:26 +0000 (14:33 +0100)
commita04986b62196913dc67b4871d1498049fb78bcc6
tree8b80cb957daeee996d867d7914fe2a2baf9c4f40
parent7d262212bcde7f20d74f0c81f29af98a208d3d34
drm/i915: Remove dma_resv_prune

The signaled bit is already used for quick testing if a fence is signaled.
On top of that, it's a terrible abuse of dma-fence api, and in the common
case where the object is already locked by the caller, the trylock will fail.

If it were useful, the core dma-api would have exposed the same functionality.

The fact that i915 has a dma_resv_utils.c file should be a warning that the
functionality either belongs in core, or is not very useful at all.
In this case the latter.

Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
[mlankhorst: Improve commit message]
Acked-by: Christian König <christian.koenig@amd.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20211021103605.735002-3-maarten.lankhorst@linux.intel.com
Reviewed-by: Matthew Auld <matthew.auld@intel.com> #irc
drivers/gpu/drm/i915/Makefile
drivers/gpu/drm/i915/dma_resv_utils.c [deleted file]
drivers/gpu/drm/i915/dma_resv_utils.h [deleted file]
drivers/gpu/drm/i915/gem/i915_gem_shrinker.c
drivers/gpu/drm/i915/gem/i915_gem_wait.c