drm/i915: Record which client owns a VM
authorTvrtko Ursulin <tvrtko.ursulin@intel.com>
Tue, 7 Nov 2023 10:18:02 +0000 (10:18 +0000)
committerTvrtko Ursulin <tvrtko.ursulin@intel.com>
Fri, 10 Nov 2023 11:48:54 +0000 (11:48 +0000)
commitca02a0119f814b792484cba0c148fba292327ed6
tree25800107c004054e53e0a246229be31428e30ab6
parente4ae85e364fc652ea15d85b0f3a6da304c9b5ce7
drm/i915: Record which client owns a VM

To enable accounting of indirect client memory usage (such as page tables)
in the following patch, lets start recording the creator of each PPGTT.

Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Reviewed-by: Aravind Iddamsetty <aravind.iddamsetty@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20231107101806.608990-2-tvrtko.ursulin@linux.intel.com
drivers/gpu/drm/i915/gem/i915_gem_context.c
drivers/gpu/drm/i915/gem/i915_gem_context_types.h
drivers/gpu/drm/i915/gem/selftests/mock_context.c
drivers/gpu/drm/i915/gt/intel_gtt.h