[v2 00/19] Make Display free from i915_reg.h

Uma Shankar
2026-01-21T23:08:30Z

Move the common register definition to a header to free up
display files from including i915_reg.h. This will help
avoid dupicate definitions and includes and can serve as
a common file for xe, i915 and display module.

v2:
- Moved display definitions needed for gvt and clock gating
to display header (Jani)
- Fixed redundant includes

Uma Shankar (19):
drm/{i915, xe}: Extract display registers from i915_reg.h to display
drm/{i915, xe}: Extract South chicken registers from i915_reg.h to
display
drm/{i915, xe}: Extract display interrupt definitions
drm/{i915, xe}: Extract DSPCLK_GATE_D from i915_reg to display
drm/{i915, xe}: Extract pcode definitions to common header
drm/{i915, xe}: Remove i915_reg.h from intel_display_device.c
drm/{i915, xe}: Remove i915_reg.h from intel_dram.c
drm/{i915, xe}: Removed i915_reg.h from intel_display.c
drm/{i915, xe}: Remove i915_reg.h from intel_overlay.c
drm/{i915, xe}: Remove i915_reg.h from g4x_dp.c
drm/{i915, xe}: Remove i915_reg.h from i9xx_wm.c
drm/{i915, xe}: Remove i915_reg.h from g4x_hdmi.c
drm/{i915, xe}: Remove i915_reg.h from intel_rom.c
drm/{i915, xe}: Remove i915_reg.h from intel_psr.c
drm/{i915, xe}: Remove i915_reg.h from intel_fifo_underrun.c
drm/{i915, xe}: Remove i915_reg.h from intel_display_irq.c
drm/{i915, xe}: Remove i915_reg.h from intel_display_power_well.c
drm/{i915, xe}: Remove i915_reg.h from intel_modeset_setup.c
drm/{i915, xe}: Remove i915_reg.h from display

drivers/gpu/drm/i915/display/g4x_dp.c | 2 +-
drivers/gpu/drm/i915/display/g4x_hdmi.c | 1 -
drivers/gpu/drm/i915/display/hsw_ips.c | 2 +-
drivers/gpu/drm/i915/display/i9xx_plane.c | 1 -
drivers/gpu/drm/i915/display/i9xx_wm.c | 2 +-
drivers/gpu/drm/i915/display/icl_dsi.c | 1 -
.../gpu/drm/i915/display/intel_backlight.c | 1 -
drivers/gpu/drm/i915/display/intel_bw.c | 2 +-
drivers/gpu/drm/i915/display/intel_casf.c | 1 -
drivers/gpu/drm/i915/display/intel_cdclk.c | 2 +-
drivers/gpu/drm/i915/display/intel_ddi.c | 2 +-
drivers/gpu/drm/i915/display/intel_display.c | 1 -
.../drm/i915/display/intel_display_debugfs.c | 2 +-
.../drm/i915/display/intel_display_device.c | 2 +-
.../gpu/drm/i915/display/intel_display_irq.c | 2 +-
.../drm/i915/display/intel_display_power.c | 2 +-
.../i915/display/intel_display_power_well.c | 2 +-
.../gpu/drm/i915/display/intel_display_regs.h | 257 +++++++++-
.../gpu/drm/i915/display/intel_display_rps.c | 2 +-
.../gpu/drm/i915/display/intel_display_wa.c | 1 -
drivers/gpu/drm/i915/display/intel_dmc.c | 1 -
drivers/gpu/drm/i915/display/intel_dram.c | 3 +-
drivers/gpu/drm/i915/display/intel_fdi.c | 1 -
.../drm/i915/display/intel_fifo_underrun.c | 2 +-
drivers/gpu/drm/i915/display/intel_gmbus.c | 1 -
drivers/gpu/drm/i915/display/intel_hdcp.c | 2 +-
.../gpu/drm/i915/display/intel_hotplug_irq.c | 1 -
drivers/gpu/drm/i915/display/intel_lt_phy.c | 1 -
.../drm/i915/display/intel_modeset_setup.c | 1 -
drivers/gpu/drm/i915/display/intel_overlay.c | 2 +-
.../gpu/drm/i915/display/intel_pch_display.c | 1 -
.../gpu/drm/i915/display/intel_pch_refclk.c | 1 -
drivers/gpu/drm/i915/display/intel_pps.c | 1 -
drivers/gpu/drm/i915/display/intel_psr.c | 1 -
drivers/gpu/drm/i915/display/intel_rom.c | 3 +-
drivers/gpu/drm/i915/display/intel_tc.c | 2 +-
drivers/gpu/drm/i915/display/skl_watermark.c | 2 +-
drivers/gpu/drm/i915/display/vlv_dsi.c | 1 -
drivers/gpu/drm/i915/i915_reg.h | 465 +-----------------
drivers/gpu/drm/i915/intel_clock_gating.c | 2 +-
include/drm/intel/intel_gmd_common_regs.h | 249 ++++++++++
41 files changed, 514 insertions(+), 517 deletions(-)
create mode 100644 include/drm/intel/intel_gmd_common_regs.h

--
2.50.1