-
- Downloads
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
Showing
- drivers/gpu/drm/i915/Makefile 0 additions, 1 deletiondrivers/gpu/drm/i915/Makefile
- drivers/gpu/drm/i915/gem/i915_gem_execbuffer.c 3 additions, 12 deletionsdrivers/gpu/drm/i915/gem/i915_gem_execbuffer.c
- drivers/gpu/drm/i915/gt/intel_engine_cs.c 3 additions, 6 deletionsdrivers/gpu/drm/i915/gt/intel_engine_cs.c
- drivers/gpu/drm/i915/i915_gpu_error.c 40 additions, 47 deletionsdrivers/gpu/drm/i915/i915_gpu_error.c
- drivers/gpu/drm/i915/i915_request.c 7 additions, 5 deletionsdrivers/gpu/drm/i915/i915_request.c
- drivers/gpu/drm/i915/i915_request.h 3 additions, 3 deletionsdrivers/gpu/drm/i915/i915_request.h
- drivers/gpu/drm/i915/i915_vma.c 4 additions, 12 deletionsdrivers/gpu/drm/i915/i915_vma.c
- drivers/gpu/drm/i915/i915_vma_resource.c 4 additions, 0 deletionsdrivers/gpu/drm/i915/i915_vma_resource.c
- drivers/gpu/drm/i915/i915_vma_resource.h 26 additions, 2 deletionsdrivers/gpu/drm/i915/i915_vma_resource.h
- drivers/gpu/drm/i915/i915_vma_snapshot.c 0 additions, 125 deletionsdrivers/gpu/drm/i915/i915_vma_snapshot.c
- drivers/gpu/drm/i915/i915_vma_snapshot.h 0 additions, 101 deletionsdrivers/gpu/drm/i915/i915_vma_snapshot.h
Loading
Please register or sign in to comment