]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/xe: Convert xe_fb_pin to use a callback for insertion into GGTT
authorMaarten Lankhorst <dev@lankhorst.se>
Thu, 8 Jan 2026 10:10:17 +0000 (11:10 +0100)
committerMaarten Lankhorst <dev@lankhorst.se>
Mon, 12 Jan 2026 15:28:25 +0000 (16:28 +0100)
commit004311aa7d7ae1f591dff996232b15f2b480e93b
tree08f72a9d724988b4d3349a47d730941596c92bab
parent22437f30d2f0265095eb1e14bf44d30e6663e676
drm/xe: Convert xe_fb_pin to use a callback for insertion into GGTT

The rotation details belong in xe_fb_pin.c, while the operations involving
GGTT belong to xe_ggtt.c. As directly locking xe_ggtt etc results in
exposing all of xe_ggtt details anyway, create a special function that
allocates a ggtt_node, and allow display to populate it using a callback
as a compromise.

Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Reviewed-by: Matthew Brost <matthew.brost@intel.com>
Reviewed-by: Juha-Pekka Heikkila <juhapekka.heikkila@gmail.com>
Signed-off-by: Maarten Lankhorst <dev@lankhorst.se>
Link: https://patch.msgid.link/20260108101014.579906-11-dev@lankhorst.se
drivers/gpu/drm/xe/display/xe_fb_pin.c
drivers/gpu/drm/xe/xe_ggtt.c
drivers/gpu/drm/xe/xe_ggtt.h
drivers/gpu/drm/xe/xe_ggtt_types.h