]> git.ipfire.org Git - thirdparty/linux.git/commit
drm/i915/overlay: Move i915 specific code into i915_overlay.c
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Thu, 26 Feb 2026 13:38:55 +0000 (15:38 +0200)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Fri, 27 Feb 2026 08:41:35 +0000 (10:41 +0200)
commit059f8782bfd6becaa382089fba95f7447469cbc1
tree84ba0fcae8b9b7397f8e73ca2f9f92ce8d8d2b27
parent5b3fe7c78cbefb646b01a1a94e0c1cce674d4c56
drm/i915/overlay: Move i915 specific code into i915_overlay.c

Relocate the i915 driver specific parts of the overlay code
into i915_overlay.c. This leaves intel_overlay.c with just
the display specific code.

The one annoyance here is the DSPCLK_GATE_D register access
being done from i830_overlay_clock_gating(). The register
definition lives on the display side as we do need to access
it on other platforms there. Since it's just one register
and bit, I decided to just duplicate that part in i915_reg.h.

v2: Use kzalloc_obj()

Reviewed-by: Jani Nikula <jani.nikula@intel.com>
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patch.msgid.link/20260226133855.17690-1-ville.syrjala@linux.intel.com
drivers/gpu/drm/i915/Makefile
drivers/gpu/drm/i915/display/intel_display_regs.h
drivers/gpu/drm/i915/display/intel_overlay.c
drivers/gpu/drm/i915/i915_overlay.c [new file with mode: 0644]
drivers/gpu/drm/i915/i915_overlay.h [new file with mode: 0644]
drivers/gpu/drm/i915/i915_reg.h