]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Use struct vma_resource instead of struct vma_snapshot
authorThomas Hellström <thomas.hellstrom@linux.intel.com>
Mon, 10 Jan 2022 17:22:19 +0000 (18:22 +0100)
committerThomas Hellström <thomas.hellstrom@linux.intel.com>
Tue, 11 Jan 2022 09:54:11 +0000 (10:54 +0100)
commit1cac1673652a3b997da079b839a80a3778ff9e5f
tree89e5048947c6ae86c12eae7f45685724cf457fcc
parent8c921a94fb942dd7b73624d635c77a79b3ff1413
drm/i915: Use struct vma_resource instead of struct vma_snapshot

There is always a struct vma_resource guaranteed to be alive when we
access a corresponding struct vma_snapshot.

So ditch the latter and instead of allocating vma_snapshots, reference
the already existning vma_resource.

This requires a couple of extra members in struct vma_resource but that's
a small price to pay for the simplification.

v2:
- Fix a missing include and declaration (kernel test robot <lkp@intel.com>)

Signed-off-by: Thomas Hellström <thomas.hellstrom@linux.intel.com>
Reviewed-by: Matthew Auld <matthew.auld@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220110172219.107131-7-thomas.hellstrom@linux.intel.com
drivers/gpu/drm/i915/Makefile
drivers/gpu/drm/i915/gem/i915_gem_execbuffer.c
drivers/gpu/drm/i915/gt/intel_engine_cs.c
drivers/gpu/drm/i915/i915_gpu_error.c
drivers/gpu/drm/i915/i915_request.c
drivers/gpu/drm/i915/i915_request.h
drivers/gpu/drm/i915/i915_vma.c
drivers/gpu/drm/i915/i915_vma_resource.c
drivers/gpu/drm/i915/i915_vma_resource.h
drivers/gpu/drm/i915/i915_vma_snapshot.c [deleted file]
drivers/gpu/drm/i915/i915_vma_snapshot.h [deleted file]