]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/i915: Consolidate the intel_plane_(un)pin_fb() implementations
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Fri, 8 May 2026 14:34:26 +0000 (17:34 +0300)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Mon, 11 May 2026 14:43:25 +0000 (17:43 +0300)
commit24c100b8ede4b94106ce376bc9c0ed52bbe6bbf6
treec3c847f76d900d1efdebc44a9193c5dc8fe28e61
parent37744ae79b6702b9ffe589977fdb42090bf668d3
drm/i915: Consolidate the intel_plane_(un)pin_fb() implementations

Currently i915 and xe each implement their own versions of
intel_plane_(un)pin(). Now that we have the fb_pin parent
interface we can consolidate this to a single implementation.

The result is a mixture of the i915 and xe implementations.
The reuse_vma() hack comes from xe (and i915 doesn't implement
that part of the parent interface, and the pin_params are
taken from i915 since the platforms supported by i915 need
more things.

Reviewed-by: Jani Nikula <jani.nikula@intel.com>
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patch.msgid.link/20260508143426.26504-17-ville.syrjala@linux.intel.com
drivers/gpu/drm/i915/display/intel_cursor.c
drivers/gpu/drm/i915/display/intel_fb_pin.h [deleted file]
drivers/gpu/drm/i915/display/intel_plane.c
drivers/gpu/drm/i915/display/intel_plane.h
drivers/gpu/drm/i915/i915_fb_pin.c
drivers/gpu/drm/xe/display/xe_fb_pin.c