]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/xe: Pass a drm_pagemap pointer around with the memory advise attributes
authorThomas Hellström <thomas.hellstrom@linux.intel.com>
Fri, 19 Dec 2025 11:33:08 +0000 (12:33 +0100)
committerThomas Hellström <thomas.hellstrom@linux.intel.com>
Tue, 23 Dec 2025 09:00:47 +0000 (10:00 +0100)
commiteb9db59d96ce1ce8a207064f4a098c55ddd23fc3
tree9392f9742553cc081fc04b4bb13176853d62345a
parent14b60874c90a61ffb9c32787bc5f3fcde93b9cd4
drm/xe: Pass a drm_pagemap pointer around with the memory advise attributes

As a consequence, struct xe_vma_mem_attr() can't simply be assigned
or freed without taking the reference count of individual members
into account. Also add helpers to do that.

v2:
- Move some calls to xe_vma_mem_attr_fini() to xe_vma_free(). (Matt Brost)
v3:
- Rebase.

Signed-off-by: Thomas Hellström <thomas.hellstrom@linux.intel.com>
Reviewed-by: Matthew Brost <matthew.brost@intel.com> #v2
Link: https://patch.msgid.link/20251219113320.183860-13-thomas.hellstrom@linux.intel.com
drivers/gpu/drm/xe/xe_svm.c
drivers/gpu/drm/xe/xe_vm.c
drivers/gpu/drm/xe/xe_vm.h
drivers/gpu/drm/xe/xe_vm_madvise.c
drivers/gpu/drm/xe/xe_vm_types.h