]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/xe: Add xe_ggtt_node_addr() to avoid dereferencing xe_ggtt_node
authorMaarten Lankhorst <dev@lankhorst.se>
Thu, 8 Jan 2026 10:10:18 +0000 (11:10 +0100)
committerMaarten Lankhorst <dev@lankhorst.se>
Mon, 12 Jan 2026 15:28:34 +0000 (16:28 +0100)
commitc818b2651573b2ab3e5dc71dcbfe89b5e0fe9c13
tree97c109af7a0a2d216e1f7bda2b90a042f95c0dbb
parent004311aa7d7ae1f591dff996232b15f2b480e93b
drm/xe: Add xe_ggtt_node_addr() to avoid dereferencing xe_ggtt_node

This function makes it possible to add an offset that is applied to
all xe_ggtt_node's, and hides the internals from all its users.

Signed-off-by: Maarten Lankhorst <dev@lankhorst.se>
Reviewed-by: Matthew Brost <matthew.brost@intel.com>
Link: https://patch.msgid.link/20260108101014.579906-12-dev@lankhorst.se
drivers/gpu/drm/xe/xe_bo.h
drivers/gpu/drm/xe/xe_ggtt.c
drivers/gpu/drm/xe/xe_ggtt.h