OSDN Git Service

drm/i915: Initial introduction of vma resources
authorThomas Hellström <thomas.hellstrom@linux.intel.com>
Mon, 10 Jan 2022 17:22:14 +0000 (18:22 +0100)
committerThomas Hellström <thomas.hellstrom@linux.intel.com>
Tue, 11 Jan 2022 08:01:37 +0000 (09:01 +0100)
commite1a4bbb6e837d4f4605dffa9eccce722fc59b9cc
treef2b105c0d92c7ab095bd25d3fe5aa1ff688036f1
parentab4911b7d411ab2ef3b38322178b9138e156c393
drm/i915: Initial introduction of vma resources

Introduce vma resources, sort of similar to TTM resources,  needed for
asynchronous bind management. Initially we will use them to hold
completion of unbinding when we capture data from a vma, but they will
be used extensively in upcoming patches for asynchronous vma unbinding.

v6:
- Some documentation updates

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-2-thomas.hellstrom@linux.intel.com
drivers/gpu/drm/i915/Makefile
drivers/gpu/drm/i915/gem/i915_gem_execbuffer.c
drivers/gpu/drm/i915/i915_vma.c
drivers/gpu/drm/i915/i915_vma.h
drivers/gpu/drm/i915/i915_vma_resource.c [new file with mode: 0644]
drivers/gpu/drm/i915/i915_vma_resource.h [new file with mode: 0644]
drivers/gpu/drm/i915/i915_vma_snapshot.c
drivers/gpu/drm/i915/i915_vma_snapshot.h
drivers/gpu/drm/i915/i915_vma_types.h
drivers/gpu/drm/i915/selftests/i915_gem_gtt.c