]> 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)
commit9803abb5069291ac700231f5e5c486a4b94dcdfa
treee9568dfa89c8d79e19c5d6e50de960471f8c4996
parent9112ac6ebbc12ddbbb7dacd09e37f7f76410c82e
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