]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/xe: Rewrite GGTT VF initialization
authorMaarten Lankhorst <dev@lankhorst.se>
Fri, 6 Feb 2026 11:21:11 +0000 (12:21 +0100)
committerMaarten Lankhorst <dev@lankhorst.se>
Mon, 16 Feb 2026 13:20:24 +0000 (14:20 +0100)
commite904c56ba6e0d4eff5f48a70356fd5d764c2a966
treedd18f5fb8474eb3543e534eed04455ea54f96a09
parent7feebdb041a99ff4bfac72f1a18de44de2ed5d63
drm/xe: Rewrite GGTT VF initialization

The previous code was using a complicated system with 2 balloons to
set GGTT size and adjust GGTT offset. While it works, it's overly
complicated.

A better approach is to set the offset and size when initializing GGTT,
this removes the need for adding balloons. The resize function only
needs readjust ggtt->start to have GGTT at the new offset.

This removes the need to manipulate the internals of xe_ggtt outside
of xe_ggtt, and cleans up a lot of now unneeded code.

Co-developed-by: Matthew Brost <matthew.brost@intel.com>
Reviewed-by: Michal Wajdeczko <michal.wajdeczko@intel.com>
Link: https://patch.msgid.link/20260206112108.1453809-9-dev@lankhorst.se
Signed-off-by: Maarten Lankhorst <dev@lankhorst.se>
drivers/gpu/drm/xe/xe_ggtt.c
drivers/gpu/drm/xe/xe_ggtt.h
drivers/gpu/drm/xe/xe_gt_sriov_vf.c
drivers/gpu/drm/xe/xe_tile_sriov_vf.c
drivers/gpu/drm/xe/xe_tile_sriov_vf.h