]> git.ipfire.org Git - thirdparty/linux.git/commit
drm/xe: Make xe_ggtt_node offset relative to starting offset
authorMaarten Lankhorst <dev@lankhorst.se>
Fri, 6 Feb 2026 11:21:10 +0000 (12:21 +0100)
committerMaarten Lankhorst <dev@lankhorst.se>
Mon, 16 Feb 2026 13:20:09 +0000 (14:20 +0100)
commit7feebdb041a99ff4bfac72f1a18de44de2ed5d63
tree4831e919a187f63cc94dba2dbcf84a5de2604da8
parent4a175759e30cde8182ae9c65fad5cf35864546a0
drm/xe: Make xe_ggtt_node offset relative to starting offset

Fix all functions that use node->start to use xe_ggtt_node_addr,
and add ggtt->start to node->start.

This will make node shifting for SR-IOV VF a one-liner, instead of
manually changing each GGTT node's base address.

Also convert some uses of mutex_lock/unlock to mutex guards.

Reviewed-by: Michal Wajdeczko <michal.wajdeczko@intel.com>
Link: https://patch.msgid.link/20260206112108.1453809-8-dev@lankhorst.se
Signed-off-by: Maarten Lankhorst <dev@lankhorst.se>
drivers/gpu/drm/xe/xe_ggtt.c