]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/xe: Make xe_ggtt_node_insert return a node
authorMaarten Lankhorst <dev@lankhorst.se>
Fri, 6 Feb 2026 11:21:13 +0000 (12:21 +0100)
committerMaarten Lankhorst <dev@lankhorst.se>
Mon, 16 Feb 2026 13:20:24 +0000 (14:20 +0100)
commita4eac88e313529e6c0bc67e28061a481b08a6477
tree29b54cd7b0fb118b894bf10e51168c38632de5d6
parent95f5f9a96dcfb2982af28d0915598bad3abb8b86
drm/xe: Make xe_ggtt_node_insert return a node

This extra step is easier to handle inside xe_ggtt.c and makes
xe_ggtt_node_allocated a simple null check instead, as the intermediate
state 'allocated but not inserted' is no longer used.

Privatize xe_ggtt_node_fini() and init() as they're no longer used
outside of xe_ggtt.c

Reviewed-by: Matthew Brost <matthew.brost@intel.com> #v1
Reviewed-by: Michal Wajdeczko <michal.wajdeczko@intel.com>
Link: https://patch.msgid.link/20260206112108.1453809-11-dev@lankhorst.se
Signed-off-by: Maarten Lankhorst <dev@lankhorst.se>
drivers/gpu/drm/xe/display/xe_fb_pin.c
drivers/gpu/drm/xe/tests/xe_guc_buf_kunit.c
drivers/gpu/drm/xe/xe_ggtt.c
drivers/gpu/drm/xe/xe_ggtt.h
drivers/gpu/drm/xe/xe_gt_sriov_pf_config.c