]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/xe: Eliminate intel_fb_uses_dpt() call from __xe_pin_fb_vma()
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Thu, 16 Apr 2026 17:44:46 +0000 (20:44 +0300)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Tue, 21 Apr 2026 10:12:48 +0000 (13:12 +0300)
commitce2e18a382f3371975adbc9911bb113ec7f544ec
treea99b467f1321d0f758f36e395f83f4df730873c8
parentdfde353a91201f4d6e6dd92f6ff8ab6c3451c002
drm/xe: Eliminate intel_fb_uses_dpt() call from __xe_pin_fb_vma()

Move the intel_fb_uses_dpt() out from __xe_pin_fb_vma() into
intel_plane_pin_fb() so that we don't do have display stuff
that deep in the pinning code.

And intel_fb_pin_to_ggtt() can just say "this does not need DPT"
always since it's specifically about pinning the fb into GGTT.
The previous logic here was kinda insane with the high level code
assuming GGTT, and low level code potentially deciding otherwise.
In practice it should have been fine because intel_fb_pin_to_ggtt()
only gets used from the initial_plane code, and there we are
not supposed to be have a framebuffer that needs DPT.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patch.msgid.link/20260416174448.28264-11-ville.syrjala@linux.intel.com
Reviewed-by: Jani Nikula <jani.nikula@intel.com>
drivers/gpu/drm/xe/display/xe_fb_pin.c