diff options
author | Tejas Upadhyay <tejas.upadhyay@intel.com> | 2023-08-10 09:03:24 +0300 |
---|---|---|
committer | Rodrigo Vivi <rodrigo.vivi@intel.com> | 2023-12-21 19:41:15 +0300 |
commit | 9e4e9761e64ea1086629852d30c08307538154ec (patch) | |
tree | 5ff01fb75162a1912a3e07254aaebff94cdb4a41 /drivers/gpu/drm/xe/xe_vm.c | |
parent | b27970f3e11c616c7a5121537502f6e21a460881 (diff) | |
download | linux-9e4e9761e64ea1086629852d30c08307538154ec.tar.xz |
drm/xe: Record each drm client with its VM
Enable accounting of indirect client memory usage.
Reviewed-by: Himal Prasad Ghimiray <himal.prasad.ghimiray@intel.com>
Signed-off-by: Tejas Upadhyay <tejas.upadhyay@intel.com>
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Diffstat (limited to 'drivers/gpu/drm/xe/xe_vm.c')
-rw-r--r-- | drivers/gpu/drm/xe/xe_vm.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/xe/xe_vm.c b/drivers/gpu/drm/xe/xe_vm.c index 53add99d4186..92d682ee6030 100644 --- a/drivers/gpu/drm/xe/xe_vm.c +++ b/drivers/gpu/drm/xe/xe_vm.c @@ -2058,6 +2058,7 @@ int xe_vm_create_ioctl(struct drm_device *dev, void *data, } args->vm_id = id; + vm->xef = xef; #if IS_ENABLED(CONFIG_DRM_XE_DEBUG_MEM) /* Warning: Security issue - never enable by default */ |