]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Remove the vma refcount
authorThomas Hellström <thomas.hellstrom@linux.intel.com>
Fri, 4 Mar 2022 08:26:40 +0000 (09:26 +0100)
committerThomas Hellström <thomas.hellstrom@linux.intel.com>
Mon, 7 Mar 2022 07:50:52 +0000 (08:50 +0100)
commitaf617fbf573f4b049eeb6ae41711ef7b31f02927
treee9568dfa89c8d79e19c5d6e50de960471f8c4996
parent1252e04bad5939645c1c1da7a087734fffbfa10a
drm/i915: Remove the vma refcount

Now that i915_vma_parked() is taking the object lock on vma destruction,
and the only user of the vma refcount, i915_gem_object_unbind()
also takes the object lock, remove the vma refcount.

v3: Documentation update.

Signed-off-by: Thomas Hellström <thomas.hellstrom@linux.intel.com>
Reviewed-by: Niranjana Vishwanathapura <niranjana.vishwanathapura@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220304082641.308069-3-thomas.hellstrom@linux.intel.com
drivers/gpu/drm/i915/i915_gem.c
drivers/gpu/drm/i915/i915_vma.c
drivers/gpu/drm/i915/i915_vma.h
drivers/gpu/drm/i915/i915_vma_types.h