* [PATCH 4/8] drm/intel-display: introduce new kernel module for Intel display
2026-12-03 13:30 [PATCH 0/8] drm/intel: add intel-display.ko kernel module Jani Nikula
@ 2026-12-03 13:30 ` Jani Nikula
2026-12-05 9:55 ` kernel test robot
2026-12-05 9:55 ` kernel test robot
0 siblings, 2 replies; 5+ messages in thread
From: Jani Nikula @ 2026-12-03 13:30 UTC (permalink / raw)
To: intel-gfx, intel-xe; +Cc: jani.nikula
The i915 display code is currently built separately into the i915 and xe
drivers through some Makefile magic.
Convert the display support into a dedicated kernel module. The i915 and
xe drivers call into display in the INTEL_DISPLAY namespace.
The files still remain under i915/display, though this may be changed in
the future. To make that transition easier, include the new Kconfig and
Makefile directly from the drm level Kconfig and Makefile.
The new Kconfig options are DRM_INTEL_DISPLAY and
DRM_INTEL_DISPLAY_DP_TUNNEL.
The display specific module parameters will become intel-display.foo
instead of i915.foo or xe.foo.
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
---
drivers/gpu/drm/Kconfig | 1 +
drivers/gpu/drm/Makefile | 1 +
drivers/gpu/drm/i915/Kconfig | 1 +
drivers/gpu/drm/i915/Makefile | 162 +---------------
drivers/gpu/drm/i915/display/Kconfig | 24 +++
drivers/gpu/drm/i915/display/Makefile | 176 ++++++++++++++++++
.../gpu/drm/i915/display/i9xx_display_sr.c | 2 +
drivers/gpu/drm/i915/display/intel_crtc.c | 1 +
drivers/gpu/drm/i915/display/intel_display.c | 2 +
.../drm/i915/display/intel_display_device.c | 4 +
.../drm/i915/display/intel_display_driver.c | 29 +++
.../gpu/drm/i915/display/intel_display_irq.c | 8 +
.../drm/i915/display/intel_display_power.c | 3 +
.../drm/i915/display/intel_display_reset.c | 4 +
.../gpu/drm/i915/display/intel_display_rps.c | 2 +
.../drm/i915/display/intel_display_snapshot.c | 3 +
drivers/gpu/drm/i915/display/intel_dmc.c | 2 +
drivers/gpu/drm/i915/display/intel_dmc_wl.c | 1 +
.../gpu/drm/i915/display/intel_dp_tunnel.h | 5 +-
drivers/gpu/drm/i915/display/intel_dpt.c | 2 +
drivers/gpu/drm/i915/display/intel_fb.c | 8 +
drivers/gpu/drm/i915/display/intel_fbdev.c | 1 +
.../gpu/drm/i915/display/intel_frontbuffer.c | 6 +
drivers/gpu/drm/i915/display/intel_gmbus.c | 1 +
drivers/gpu/drm/i915/display/intel_hotplug.c | 3 +
drivers/gpu/drm/i915/display/intel_opregion.c | 3 +
drivers/gpu/drm/i915/display/intel_overlay.c | 4 +
.../gpu/drm/i915/display/intel_pch_refclk.c | 1 +
drivers/gpu/drm/i915/display/intel_pps.c | 1 +
drivers/gpu/drm/i915/display/intel_sbi.c | 2 +
.../gpu/drm/i915/display/intel_sprite_uapi.c | 1 +
drivers/gpu/drm/i915/display/vlv_clock.c | 2 +
drivers/gpu/drm/i915/i915_module.c | 2 +
drivers/gpu/drm/i915/intel_gvt.c | 2 +
drivers/gpu/drm/xe/Kconfig | 2 +-
drivers/gpu/drm/xe/Makefile | 135 --------------
drivers/gpu/drm/xe/display/xe_display.c | 2 +
37 files changed, 309 insertions(+), 300 deletions(-)
create mode 100644 drivers/gpu/drm/i915/display/Kconfig
create mode 100644 drivers/gpu/drm/i915/display/Makefile
diff --git a/drivers/gpu/drm/Kconfig b/drivers/gpu/drm/Kconfig
index 61111d50b1c6..e84dea057c1f 100644
--- a/drivers/gpu/drm/Kconfig
+++ b/drivers/gpu/drm/Kconfig
@@ -319,6 +319,7 @@ source "drivers/gpu/drm/gud/Kconfig"
source "drivers/gpu/drm/hisilicon/Kconfig"
source "drivers/gpu/drm/hyperv/Kconfig"
source "drivers/gpu/drm/i915/Kconfig"
+source "drivers/gpu/drm/i915/display/Kconfig"
source "drivers/gpu/drm/imagination/Kconfig"
source "drivers/gpu/drm/imx/Kconfig"
source "drivers/gpu/drm/ingenic/Kconfig"
diff --git a/drivers/gpu/drm/Makefile b/drivers/gpu/drm/Makefile
index 2c6bc093a923..9b09bf83bafc 100644
--- a/drivers/gpu/drm/Makefile
+++ b/drivers/gpu/drm/Makefile
@@ -177,6 +177,7 @@ obj-$(CONFIG_DRM_RADEON)+= radeon/
obj-$(CONFIG_DRM_AMDGPU)+= amd/amdgpu/
obj-$(CONFIG_DRM_AMDGPU)+= amd/amdxcp/
obj-$(CONFIG_DRM_I915) += i915/
+obj-$(CONFIG_DRM_INTEL_DISPLAY) += i915/display/
obj-$(CONFIG_DRM_XE) += xe/
obj-$(CONFIG_DRM_KMB_DISPLAY) += kmb/
obj-$(CONFIG_DRM_MGAG200) += mgag200/
diff --git a/drivers/gpu/drm/i915/Kconfig b/drivers/gpu/drm/i915/Kconfig
index 71426b9c91f0..2cffa78bcf41 100644
--- a/drivers/gpu/drm/i915/Kconfig
+++ b/drivers/gpu/drm/i915/Kconfig
@@ -4,6 +4,7 @@ config DRM_I915
depends on DRM
depends on X86 && PCI
depends on !PREEMPT_RT
+ depends on DRM_INTEL_DISPLAY
select INTEL_GTT if X86
select INTERVAL_TREE
# we need shmfs for the swappable backing store, and in particular
diff --git a/drivers/gpu/drm/i915/Makefile b/drivers/gpu/drm/i915/Makefile
index ba7eecfffdca..78d16a573215 100644
--- a/drivers/gpu/drm/i915/Makefile
+++ b/drivers/gpu/drm/i915/Makefile
@@ -11,6 +11,7 @@ subdir-ccflags-$(CONFIG_DRM_I915_WERROR) += -Werror
# Support compiling the display code separately for both i915 and xe
# drivers. Define I915 when building i915.
+# FIXME: Remove this. Still needed for header test.
subdir-ccflags-y += -DI915
# FIXME: Disable tracepoints on i915 for PREEMPT_RT, unfortunately
@@ -231,167 +232,6 @@ i915-y += \
i915-$(CONFIG_HWMON) += \
i915_hwmon.o
-# modesetting core code
-i915-y += \
- display/hsw_ips.o \
- display/i9xx_display_sr.o \
- display/i9xx_plane.o \
- display/i9xx_wm.o \
- display/intel_alpm.o \
- display/intel_atomic.o \
- display/intel_audio.o \
- display/intel_bios.o \
- display/intel_bo.o \
- display/intel_bw.o \
- display/intel_casf.o \
- display/intel_cdclk.o \
- display/intel_cmtg.o \
- display/intel_color.o \
- display/intel_colorop.o \
- display/intel_color_pipeline.o \
- display/intel_combo_phy.o \
- display/intel_connector.o \
- display/intel_crtc.o \
- display/intel_crtc_state_dump.o \
- display/intel_cursor.o \
- display/intel_dbuf_bw.o \
- display/intel_de.o \
- display/intel_display_clock_gating.o \
- display/intel_display.o \
- display/intel_display_conversion.o \
- display/intel_display_driver.o \
- display/intel_display_irq.o \
- display/intel_display_params.o \
- display/intel_display_power.o \
- display/intel_display_power_map.o \
- display/intel_display_power_well.o \
- display/intel_display_reset.o \
- display/intel_display_rpm.o \
- display/intel_display_rps.o \
- display/intel_display_snapshot.o \
- display/intel_display_utils.o \
- display/intel_display_wa.o \
- display/intel_dmc.o \
- display/intel_dmc_wl.o \
- display/intel_dpio_phy.o \
- display/intel_dpll.o \
- display/intel_dpll_mgr.o \
- display/intel_dpt.o \
- display/intel_dram.o \
- display/intel_drrs.o \
- display/intel_dsb.o \
- display/intel_fb.o \
- display/intel_fbc.o \
- display/intel_fdi.o \
- display/intel_fifo_underrun.o \
- display/intel_flipq.o \
- display/intel_frontbuffer.o \
- display/intel_global_state.o \
- display/intel_hdcp.o \
- display/intel_hdcp_gsc_message.o \
- display/intel_hotplug.o \
- display/intel_hotplug_irq.o \
- display/intel_hti.o \
- display/intel_initial_plane.o \
- display/intel_link_bw.o \
- display/intel_load_detect.o \
- display/intel_lpe_audio.o \
- display/intel_mchbar.o \
- display/intel_modeset_lock.o \
- display/intel_modeset_setup.o \
- display/intel_modeset_verify.o \
- display/intel_overlay.o \
- display/intel_parent.o \
- display/intel_pch.o \
- display/intel_pch_display.o \
- display/intel_pch_refclk.o \
- display/intel_plane.o \
- display/intel_pmdemand.o \
- display/intel_psr.o \
- display/intel_quirks.o \
- display/intel_rom.o \
- display/intel_sbi.o \
- display/intel_sprite.o \
- display/intel_sprite_uapi.o \
- display/intel_tc.o \
- display/intel_vblank.o \
- display/intel_vga.o \
- display/intel_wm.o \
- display/skl_prefill.o \
- display/skl_scaler.o \
- display/skl_universal_plane.o \
- display/skl_watermark.o \
- display/vlv_clock.o \
- display/vlv_sideband.o
-i915-$(CONFIG_ACPI) += \
- display/intel_acpi.o \
- display/intel_opregion.o
-i915-$(CONFIG_DRM_FBDEV_EMULATION) += \
- display/intel_fbdev.o
-i915-$(CONFIG_DEBUG_FS) += \
- display/intel_display_debugfs.o \
- display/intel_display_debugfs_params.o \
- display/intel_pipe_crc.o
-
-# modesetting output/encoder code
-i915-y += \
- display/dvo_ch7017.o \
- display/dvo_ch7xxx.o \
- display/dvo_ivch.o \
- display/dvo_ns2501.o \
- display/dvo_sil164.o \
- display/dvo_tfp410.o \
- display/g4x_dp.o \
- display/g4x_hdmi.o \
- display/icl_dsi.o \
- display/intel_backlight.o \
- display/intel_crt.o \
- display/intel_cx0_phy.o \
- display/intel_ddi.o \
- display/intel_ddi_buf_trans.o \
- display/intel_dip.o \
- display/intel_display_device.o \
- display/intel_display_trace.o \
- display/intel_dkl_phy.o \
- display/intel_dp.o \
- display/intel_dp_aux.o \
- display/intel_dp_aux_backlight.o \
- display/intel_dp_hdcp.o \
- display/intel_dp_link_caps.o \
- display/intel_dp_link_training.o \
- display/intel_dp_mst.o \
- display/intel_dp_test.o \
- display/intel_dsi.o \
- display/intel_dsi_dcs_backlight.o \
- display/intel_dsi_vbt.o \
- display/intel_dvo.o \
- display/intel_encoder.o \
- display/intel_gmbus.o \
- display/intel_hdmi.o \
- display/intel_lspcon.o \
- display/intel_lt_phy.o \
- display/intel_lvds.o \
- display/intel_panel.o \
- display/intel_pfit.o \
- display/intel_pps.o \
- display/intel_qp_tables.o \
- display/intel_sdvo.o \
- display/intel_snps_hdmi_pll.o \
- display/intel_snps_phy.o \
- display/intel_tv.o \
- display/intel_vdsc.o \
- display/intel_vrr.o \
- display/vlv_dsi.o \
- display/vlv_dsi_pll.o
-
-i915-$(CONFIG_DRM_I915_DP_TUNNEL) += \
- display/intel_dp_tunnel.o
-
-obj-$(CONFIG_DRM_I915_KUNIT_TEST) += display/tests/
-
-i915-$(CONFIG_DRM_I915_GVT) += \
- display/intel_gvt_api.o
-
i915-y += \
i915_perf.o
diff --git a/drivers/gpu/drm/i915/display/Kconfig b/drivers/gpu/drm/i915/display/Kconfig
new file mode 100644
index 000000000000..fa3646260f9c
--- /dev/null
+++ b/drivers/gpu/drm/i915/display/Kconfig
@@ -0,0 +1,24 @@
+# SPDX-License-Identifier: GPL-2.0-only
+# Copyright © 2026 Intel Corporation
+
+config DRM_INTEL_DISPLAY
+ tristate "Enable display support for i915 and xe drivers"
+ default m
+ help
+ Display support for i915 and xe drivers.
+
+ If in doubt, say "M".
+
+config DRM_INTEL_DISPLAY_DP_TUNNEL
+ bool "Enable DP tunnel support"
+ depends on DRM_INTEL_DISPLAY
+ depends on USB4
+ select DRM_DISPLAY_DP_TUNNEL
+ default y
+ help
+ Choose this option to detect DP tunnels and enable the Bandwidth
+ Allocation mode for such tunnels. This allows using the maximum
+ resolution allowed by the link BW on all displays sharing the
+ link BW, for instance on a Thunderbolt link.
+
+ If in doubt, say "Y".
diff --git a/drivers/gpu/drm/i915/display/Makefile b/drivers/gpu/drm/i915/display/Makefile
new file mode 100644
index 000000000000..8a3384583898
--- /dev/null
+++ b/drivers/gpu/drm/i915/display/Makefile
@@ -0,0 +1,176 @@
+# SPDX-License-Identifier: GPL-2.0
+# Copyright © 2026 Intel Corporation
+
+# FIXME: Remove this.
+subdir-ccflags-y += \
+ -I$(srctree)/drivers/gpu/drm/i915/
+
+# FIXME: Remove this.
+subdir-ccflags-y += -DI915
+
+# modesetting core code
+intel-display-y += \
+ hsw_ips.o \
+ i9xx_display_sr.o \
+ i9xx_plane.o \
+ i9xx_wm.o \
+ intel_alpm.o \
+ intel_atomic.o \
+ intel_audio.o \
+ intel_bios.o \
+ intel_bo.o \
+ intel_bw.o \
+ intel_casf.o \
+ intel_cdclk.o \
+ intel_cmtg.o \
+ intel_color.o \
+ intel_colorop.o \
+ intel_color_pipeline.o \
+ intel_combo_phy.o \
+ intel_connector.o \
+ intel_crtc.o \
+ intel_crtc_state_dump.o \
+ intel_cursor.o \
+ intel_dbuf_bw.o \
+ intel_de.o \
+ intel_display.o \
+ intel_display_clock_gating.o \
+ intel_display_conversion.o \
+ intel_display_driver.o \
+ intel_display_irq.o \
+ intel_display_params.o \
+ intel_display_power.o \
+ intel_display_power_map.o \
+ intel_display_power_well.o \
+ intel_display_reset.o \
+ intel_display_rpm.o \
+ intel_display_rps.o \
+ intel_display_snapshot.o \
+ intel_display_utils.o \
+ intel_display_wa.o \
+ intel_dmc.o \
+ intel_dmc_wl.o \
+ intel_dpio_phy.o \
+ intel_dpll.o \
+ intel_dpll_mgr.o \
+ intel_dpt.o \
+ intel_dram.o \
+ intel_drrs.o \
+ intel_dsb.o \
+ intel_fb.o \
+ intel_fbc.o \
+ intel_fdi.o \
+ intel_fifo_underrun.o \
+ intel_flipq.o \
+ intel_frontbuffer.o \
+ intel_global_state.o \
+ intel_hdcp.o \
+ intel_hdcp_gsc_message.o \
+ intel_hotplug.o \
+ intel_hotplug_irq.o \
+ intel_hti.o \
+ intel_initial_plane.o \
+ intel_link_bw.o \
+ intel_load_detect.o \
+ intel_lpe_audio.o \
+ intel_mchbar.o \
+ intel_modeset_lock.o \
+ intel_modeset_setup.o \
+ intel_modeset_verify.o \
+ intel_overlay.o \
+ intel_parent.o \
+ intel_pch.o \
+ intel_pch_display.o \
+ intel_pch_refclk.o \
+ intel_plane.o \
+ intel_pmdemand.o \
+ intel_psr.o \
+ intel_quirks.o \
+ intel_rom.o \
+ intel_sbi.o \
+ intel_sprite.o \
+ intel_sprite_uapi.o \
+ intel_tc.o \
+ intel_vblank.o \
+ intel_vga.o \
+ intel_wm.o \
+ skl_prefill.o \
+ skl_scaler.o \
+ skl_universal_plane.o \
+ skl_watermark.o \
+ vlv_clock.o \
+ vlv_sideband.o
+
+intel-display-$(CONFIG_ACPI) += \
+ intel_acpi.o \
+ intel_opregion.o
+
+intel-display-$(CONFIG_DRM_FBDEV_EMULATION) += \
+ intel_fbdev.o
+
+intel-display-$(CONFIG_DEBUG_FS) += \
+ intel_display_debugfs.o \
+ intel_display_debugfs_params.o \
+ intel_pipe_crc.o
+
+# modesetting output/encoder code
+intel-display-y += \
+ dvo_ch7017.o \
+ dvo_ch7xxx.o \
+ dvo_ivch.o \
+ dvo_ns2501.o \
+ dvo_sil164.o \
+ dvo_tfp410.o \
+ g4x_dp.o \
+ g4x_hdmi.o \
+ icl_dsi.o \
+ intel_backlight.o \
+ intel_crt.o \
+ intel_cx0_phy.o \
+ intel_ddi.o \
+ intel_ddi_buf_trans.o \
+ intel_dip.o \
+ intel_display_device.o \
+ intel_display_trace.o \
+ intel_dkl_phy.o \
+ intel_dp.o \
+ intel_dp_aux.o \
+ intel_dp_aux_backlight.o \
+ intel_dp_hdcp.o \
+ intel_dp_link_caps.o \
+ intel_dp_link_training.o \
+ intel_dp_mst.o \
+ intel_dp_test.o \
+ intel_dsi.o \
+ intel_dsi_dcs_backlight.o \
+ intel_dsi_vbt.o \
+ intel_dvo.o \
+ intel_encoder.o \
+ intel_gmbus.o \
+ intel_hdmi.o \
+ intel_lspcon.o \
+ intel_lt_phy.o \
+ intel_lvds.o \
+ intel_panel.o \
+ intel_pfit.o \
+ intel_pps.o \
+ intel_qp_tables.o \
+ intel_sdvo.o \
+ intel_snps_hdmi_pll.o \
+ intel_snps_phy.o \
+ intel_tv.o \
+ intel_vdsc.o \
+ intel_vrr.o \
+ vlv_dsi.o \
+ vlv_dsi_pll.o
+
+intel-display-$(CONFIG_DRM_INTEL_DISPLAY_DP_TUNNEL) += \
+ intel_dp_tunnel.o
+
+intel-display-$(CONFIG_DRM_I915_GVT) += \
+ intel_gvt_api.o
+
+obj-$(CONFIG_DRM_INTEL_DISPLAY) += intel-display.o
+
+# FIXME: Use a display Kconfig option for kunit tests
+obj-$(CONFIG_DRM_I915_KUNIT_TEST) += tests/
diff --git a/drivers/gpu/drm/i915/display/i9xx_display_sr.c b/drivers/gpu/drm/i915/display/i9xx_display_sr.c
index 1eb2f636cc65..fb4192dba3dc 100644
--- a/drivers/gpu/drm/i915/display/i9xx_display_sr.c
+++ b/drivers/gpu/drm/i915/display/i9xx_display_sr.c
@@ -78,6 +78,7 @@ void i9xx_display_sr_save(struct intel_display *display)
i9xx_display_save_swf(display);
}
+EXPORT_SYMBOL_NS(i9xx_display_sr_save, "INTEL_DISPLAY");
void i9xx_display_sr_restore(struct intel_display *display)
{
@@ -95,3 +96,4 @@ void i9xx_display_sr_restore(struct intel_display *display)
if (DISPLAY_VER(display) <= 4)
intel_de_write(display, DSPARB(display), display->restore.saveDSPARB);
}
+EXPORT_SYMBOL_NS(i9xx_display_sr_restore, "INTEL_DISPLAY");
diff --git a/drivers/gpu/drm/i915/display/intel_crtc.c b/drivers/gpu/drm/i915/display/intel_crtc.c
index 139c9dae536e..9e625556b5bf 100644
--- a/drivers/gpu/drm/i915/display/intel_crtc.c
+++ b/drivers/gpu/drm/i915/display/intel_crtc.c
@@ -486,6 +486,7 @@ int intel_crtc_get_pipe_from_crtc_id_ioctl(struct drm_device *dev, void *data,
return 0;
}
+EXPORT_SYMBOL_NS(intel_crtc_get_pipe_from_crtc_id_ioctl, "INTEL_DISPLAY");
static bool intel_crtc_needs_vblank_work(const struct intel_crtc_state *crtc_state)
{
diff --git a/drivers/gpu/drm/i915/display/intel_display.c b/drivers/gpu/drm/i915/display/intel_display.c
index 19caae633d29..bce70e11c1d9 100644
--- a/drivers/gpu/drm/i915/display/intel_display.c
+++ b/drivers/gpu/drm/i915/display/intel_display.c
@@ -748,6 +748,7 @@ bool intel_has_pending_fb_unpin(struct intel_display *display)
return false;
}
+EXPORT_SYMBOL_NS(intel_has_pending_fb_unpin, "INTEL_DISPLAY");
/* FIXME: remove this and just flush the cleanup wq where appropriate */
void intel_display_flush_cleanup_work(struct intel_display *display)
@@ -770,6 +771,7 @@ void intel_display_flush_cleanup_work(struct intel_display *display)
}
}
}
+EXPORT_SYMBOL_NS(intel_display_flush_cleanup_work, "INTEL_DISPLAY");
/*
* Finds the encoder associated with the given CRTC. This can only be
diff --git a/drivers/gpu/drm/i915/display/intel_display_device.c b/drivers/gpu/drm/i915/display/intel_display_device.c
index 055396f85e4a..9f44dc74d8b2 100644
--- a/drivers/gpu/drm/i915/display/intel_display_device.c
+++ b/drivers/gpu/drm/i915/display/intel_display_device.c
@@ -1775,6 +1775,7 @@ struct intel_display *intel_display_device_probe(struct pci_dev *pdev,
return display;
}
+EXPORT_SYMBOL_NS(intel_display_device_probe, "INTEL_DISPLAY");
void intel_display_device_remove(struct intel_display *display)
{
@@ -1784,6 +1785,7 @@ void intel_display_device_remove(struct intel_display *display)
intel_display_params_free(&display->params);
kfree(display);
}
+EXPORT_SYMBOL_NS(intel_display_device_remove, "INTEL_DISPLAY");
static void __intel_display_device_info_runtime_init(struct intel_display *display)
{
@@ -1982,6 +1984,7 @@ void intel_display_device_info_runtime_init(struct intel_display *display)
DISPLAY_VER(display) < 5 && !display->platform.g4x)
display->drm->driver_features &= ~DRIVER_ATOMIC;
}
+EXPORT_SYMBOL_NS(intel_display_device_info_runtime_init, "INTEL_DISPLAY");
void intel_display_device_info_print(const struct intel_display_device_info *info,
const struct intel_display_runtime_info *runtime,
@@ -2012,6 +2015,7 @@ bool intel_display_device_present(struct intel_display *display)
{
return display && HAS_DISPLAY(display);
}
+EXPORT_SYMBOL_NS(intel_display_device_present, "INTEL_DISPLAY");
/*
* Assuming the device has display hardware, should it be enabled?
diff --git a/drivers/gpu/drm/i915/display/intel_display_driver.c b/drivers/gpu/drm/i915/display/intel_display_driver.c
index c13471a5a10e..861b23e0446d 100644
--- a/drivers/gpu/drm/i915/display/intel_display_driver.c
+++ b/drivers/gpu/drm/i915/display/intel_display_driver.c
@@ -92,6 +92,7 @@ bool intel_display_driver_probe_defer(struct pci_dev *pdev)
return false;
}
+EXPORT_SYMBOL_NS(intel_display_driver_probe_defer, "INTEL_DISPLAY");
void intel_display_driver_init_hw(struct intel_display *display)
{
@@ -102,6 +103,7 @@ void intel_display_driver_init_hw(struct intel_display *display)
intel_display_wa_apply(display);
}
+EXPORT_SYMBOL_NS(intel_display_driver_init_hw, "INTEL_DISPLAY");
static const struct drm_mode_config_funcs intel_mode_funcs = {
.fb_create = intel_user_framebuffer_create,
@@ -201,6 +203,7 @@ void intel_display_driver_early_probe(struct intel_display *display)
intel_fdi_init_hook(display);
intel_dmc_wl_init(display);
}
+EXPORT_SYMBOL_NS(intel_display_driver_early_probe, "INTEL_DISPLAY");
/* part #1: call before irq install */
int intel_display_driver_probe_noirq(struct intel_display *display)
@@ -327,6 +330,7 @@ int intel_display_driver_probe_noirq(struct intel_display *display)
return ret;
}
+EXPORT_SYMBOL_NS(intel_display_driver_probe_noirq, "INTEL_DISPLAY");
ALLOW_ERROR_INJECTION(intel_display_driver_probe_noirq, ERRNO);
static void set_display_access(struct intel_display *display,
@@ -533,6 +537,7 @@ int intel_display_driver_probe_nogem(struct intel_display *display)
return ret;
}
+EXPORT_SYMBOL_NS(intel_display_driver_probe_nogem, "INTEL_DISPLAY");
/* part #3: call after gem init */
int intel_display_driver_probe(struct intel_display *display)
@@ -570,6 +575,7 @@ int intel_display_driver_probe(struct intel_display *display)
return 0;
}
+EXPORT_SYMBOL_NS(intel_display_driver_probe, "INTEL_DISPLAY");
void intel_display_driver_register(struct intel_display *display)
{
@@ -608,6 +614,7 @@ void intel_display_driver_register(struct intel_display *display)
intel_register_dsm_handler();
}
+EXPORT_SYMBOL_NS(intel_display_driver_register, "INTEL_DISPLAY");
/* part #1: call before irq uninstall */
void intel_display_driver_remove(struct intel_display *display)
@@ -627,6 +634,7 @@ void intel_display_driver_remove(struct intel_display *display)
*/
intel_dp_mst_suspend(display);
}
+EXPORT_SYMBOL_NS(intel_display_driver_remove, "INTEL_DISPLAY");
/* part #2: call after irq uninstall */
void intel_display_driver_remove_noirq(struct intel_display *display)
@@ -667,6 +675,7 @@ void intel_display_driver_remove_noirq(struct intel_display *display)
intel_fbc_cleanup(display);
}
+EXPORT_SYMBOL_NS(intel_display_driver_remove_noirq, "INTEL_DISPLAY");
/* part #3: call after gem init */
void intel_display_driver_remove_nogem(struct intel_display *display)
@@ -679,6 +688,7 @@ void intel_display_driver_remove_nogem(struct intel_display *display)
intel_opregion_cleanup(display);
}
+EXPORT_SYMBOL_NS(intel_display_driver_remove_nogem, "INTEL_DISPLAY");
void intel_display_driver_unregister(struct intel_display *display)
{
@@ -707,6 +717,7 @@ void intel_display_driver_unregister(struct intel_display *display)
intel_vga_unregister(display);
}
+EXPORT_SYMBOL_NS(intel_display_driver_unregister, "INTEL_DISPLAY");
void intel_display_driver_shutdown(struct intel_display *display)
{
@@ -717,6 +728,7 @@ void intel_display_driver_shutdown(struct intel_display *display)
intel_encoder_shutdown_all(display);
}
+EXPORT_SYMBOL_NS(intel_display_driver_shutdown, "INTEL_DISPLAY");
void intel_display_driver_shutdown_late(struct intel_display *display)
{
@@ -730,6 +742,7 @@ void intel_display_driver_shutdown_late(struct intel_display *display)
*/
intel_display_power_driver_remove(display);
}
+EXPORT_SYMBOL_NS(intel_display_driver_shutdown_late, "INTEL_DISPLAY");
/*
* turn all crtc's off, but do not adjust state
@@ -784,11 +797,13 @@ static int __intel_display_driver_pm_suspend(struct intel_display *display, bool
return ret;
}
+EXPORT_SYMBOL_NS(intel_display_driver_pm_suspend, "INTEL_DISPLAY");
int intel_display_driver_pm_suspend(struct intel_display *display)
{
return __intel_display_driver_pm_suspend(display, false);
}
+EXPORT_SYMBOL_NS(intel_display_driver_pm_suspend_late, "INTEL_DISPLAY");
void intel_display_driver_pm_suspend_late(struct intel_display *display, bool s2idle)
{
@@ -805,6 +820,7 @@ void intel_display_driver_pm_resume_early(struct intel_display *display)
intel_display_power_resume_early(display);
}
+EXPORT_SYMBOL_NS(intel_display_driver_pm_resume_early, "INTEL_DISPLAY");
int
__intel_display_driver_resume(struct intel_display *display,
@@ -903,21 +919,25 @@ void intel_display_driver_pm_resume(struct intel_display *display)
intel_display_power_enable(display);
}
+EXPORT_SYMBOL_NS(intel_display_driver_pm_resume, "INTEL_DISPLAY");
void intel_display_driver_runtime_pm_enable(struct intel_display *display)
{
intel_display_power_enable(display);
}
+EXPORT_SYMBOL_NS(intel_display_driver_runtime_pm_enable, "INTEL_DISPLAY");
void intel_display_driver_runtime_pm_disable(struct intel_display *display)
{
intel_display_power_disable(display);
}
+EXPORT_SYMBOL_NS(intel_display_driver_runtime_pm_disable, "INTEL_DISPLAY");
/* before irq suspend */
void intel_display_driver_pm_runtime_suspend(struct intel_display *display)
{
}
+EXPORT_SYMBOL_NS(intel_display_driver_pm_runtime_suspend, "INTEL_DISPLAY");
/* after irq suspend */
void intel_display_driver_pm_runtime_suspend_late(struct intel_display *display)
@@ -950,6 +970,7 @@ void intel_display_driver_pm_runtime_suspend_late(struct intel_display *display)
if (!display->platform.valleyview && !display->platform.cherryview)
intel_hpd_poll_enable(display);
}
+EXPORT_SYMBOL_NS(intel_display_driver_pm_runtime_suspend_late, "INTEL_DISPLAY");
/* before irq resume */
void intel_display_driver_pm_runtime_resume_early(struct intel_display *display)
@@ -958,6 +979,7 @@ void intel_display_driver_pm_runtime_resume_early(struct intel_display *display)
intel_display_power_runtime_resume(display);
}
+EXPORT_SYMBOL_NS(intel_display_driver_pm_runtime_resume_early, "INTEL_DISPLAY");
/* after irq resume */
void intel_display_driver_pm_runtime_resume(struct intel_display *display)
@@ -974,6 +996,7 @@ void intel_display_driver_pm_runtime_resume(struct intel_display *display)
skl_watermark_ipc_update(display);
}
+EXPORT_SYMBOL_NS(intel_display_driver_pm_runtime_resume, "INTEL_DISPLAY");
void intel_display_driver_mmio_resume_early(struct intel_display *display)
{
@@ -984,6 +1007,7 @@ void intel_display_driver_mmio_resume_early(struct intel_display *display)
drm_dbg_kms(display->drm,
"Unclaimed access during suspend, bios?\n");
}
+EXPORT_SYMBOL_NS(intel_display_driver_mmio_resume_early, "INTEL_DISPLAY");
void intel_display_driver_mmio_suspend_late(struct intel_display *display)
{
@@ -994,3 +1018,8 @@ void intel_display_driver_mmio_suspend_late(struct intel_display *display)
drm_err(display->drm,
"Unclaimed access detected prior to suspending\n");
}
+EXPORT_SYMBOL_NS(intel_display_driver_mmio_suspend_late, "INTEL_DISPLAY");
+
+MODULE_AUTHOR("Intel Corporation");
+MODULE_DESCRIPTION("Intel Display Driver");
+MODULE_LICENSE("GPL and additional rights");
diff --git a/drivers/gpu/drm/i915/display/intel_display_irq.c b/drivers/gpu/drm/i915/display/intel_display_irq.c
index 5430eb5245da..596785058fb7 100644
--- a/drivers/gpu/drm/i915/display/intel_display_irq.c
+++ b/drivers/gpu/drm/i915/display/intel_display_irq.c
@@ -1012,6 +1012,7 @@ void ilk_display_irq_master_disable(struct intel_display *display, u32 *de_ier,
*sde_ier = 0;
}
}
+EXPORT_SYMBOL_NS(ilk_display_irq_master_disable, "INTEL_DISPLAY");
void ilk_display_irq_master_enable(struct intel_display *display, u32 de_ier, u32 sde_ier)
{
@@ -1020,6 +1021,7 @@ void ilk_display_irq_master_enable(struct intel_display *display, u32 de_ier, u3
if (sde_ier)
intel_de_write_fw(display, SDEIER, sde_ier);
}
+EXPORT_SYMBOL_NS(ilk_display_irq_master_enable, "INTEL_DISPLAY");
static bool ilk_display_irq_handler(struct intel_display *display,
const struct intel_display_irq_state *state)
@@ -1591,6 +1593,7 @@ void intel_display_gse_irq_handler(struct intel_display *display)
{
intel_opregion_asle_intr(display);
}
+EXPORT_SYMBOL_NS(intel_display_gse_irq_handler, "INTEL_DISPLAY");
static bool gen11_display_irq_handler(struct intel_display *display,
const struct intel_display_irq_state *state)
@@ -1990,6 +1993,7 @@ u32 i9xx_display_irq_enable_mask(struct intel_display *display)
return enable_mask;
}
+EXPORT_SYMBOL_NS(i9xx_display_irq_enable_mask, "INTEL_DISPLAY");
static void i915_display_irq_postinstall(struct intel_display *display)
{
@@ -2579,6 +2583,7 @@ void intel_display_irq_reset(struct intel_display *display)
display->irq.funcs->reset(display);
}
+EXPORT_SYMBOL_NS(intel_display_irq_reset, "INTEL_DISPLAY");
void intel_display_irq_postinstall(struct intel_display *display)
{
@@ -2587,6 +2592,7 @@ void intel_display_irq_postinstall(struct intel_display *display)
display->irq.funcs->postinstall(display);
}
+EXPORT_SYMBOL_NS(intel_display_irq_postinstall, "INTEL_DISPLAY");
void intel_display_irq_ack(struct intel_display *display,
struct intel_display_irq_state *state)
@@ -2596,6 +2602,7 @@ void intel_display_irq_ack(struct intel_display *display,
display->irq.funcs->ack(display, state);
}
+EXPORT_SYMBOL_NS(intel_display_irq_ack, "INTEL_DISPLAY");
bool intel_display_irq_handler(struct intel_display *display,
const struct intel_display_irq_state *state)
@@ -2605,6 +2612,7 @@ bool intel_display_irq_handler(struct intel_display *display,
return display->irq.funcs->handler(display, state);
}
+EXPORT_SYMBOL_NS(intel_display_irq_handler, "INTEL_DISPLAY");
void intel_display_irq_init(struct intel_display *display)
{
diff --git a/drivers/gpu/drm/i915/display/intel_display_power.c b/drivers/gpu/drm/i915/display/intel_display_power.c
index 4d6ceba82e6d..b3f800c18434 100644
--- a/drivers/gpu/drm/i915/display/intel_display_power.c
+++ b/drivers/gpu/drm/i915/display/intel_display_power.c
@@ -738,6 +738,7 @@ struct ref_tracker *intel_display_power_get(struct intel_display *display,
return wakeref;
}
+EXPORT_SYMBOL_NS(intel_display_power_get, "INTEL_DISPLAY");
/**
* intel_display_power_get_if_enabled - grab a reference for an enabled display power domain
@@ -962,6 +963,7 @@ void __intel_display_power_put_async(struct intel_display *display,
intel_display_rpm_put(display, wakeref);
}
+EXPORT_SYMBOL_NS(__intel_display_power_put_async, "INTEL_DISPLAY");
/**
* intel_display_power_flush_work - flushes the async display power disabling work
@@ -1237,6 +1239,7 @@ void intel_display_power_cleanup(struct intel_display *display)
{
intel_display_power_map_cleanup(&display->power.domains);
}
+EXPORT_SYMBOL_NS(intel_display_power_cleanup, "INTEL_DISPLAY");
static void intel_power_domains_sync_hw(struct intel_display *display)
{
diff --git a/drivers/gpu/drm/i915/display/intel_display_reset.c b/drivers/gpu/drm/i915/display/intel_display_reset.c
index a39ab2cc638b..1e7a59ab55ae 100644
--- a/drivers/gpu/drm/i915/display/intel_display_reset.c
+++ b/drivers/gpu/drm/i915/display/intel_display_reset.c
@@ -22,12 +22,14 @@ bool intel_display_reset_supported(struct intel_display *display)
{
return display && HAS_DISPLAY(display);
}
+EXPORT_SYMBOL_NS(intel_display_reset_supported, "INTEL_DISPLAY");
bool intel_display_reset_test(struct intel_display *display)
{
return display && HAS_DISPLAY(display) &&
display->params.force_reset_modeset_test;
}
+EXPORT_SYMBOL_NS(intel_display_reset_test, "INTEL_DISPLAY");
void intel_display_reset_prepare(struct intel_display *display)
{
@@ -72,6 +74,7 @@ void intel_display_reset_prepare(struct intel_display *display)
display->restore.modeset_state = state;
state->acquire_ctx = ctx;
}
+EXPORT_SYMBOL_NS(intel_display_reset_prepare, "INTEL_DISPLAY");
void intel_display_reset_finish(struct intel_display *display, bool test_only)
{
@@ -117,6 +120,7 @@ void intel_display_reset_finish(struct intel_display *display, bool test_only)
drm_modeset_acquire_fini(ctx);
mutex_unlock(&display->drm->mode_config.mutex);
}
+EXPORT_SYMBOL_NS(intel_display_reset_finish, "INTEL_DISPLAY");
void intel_display_reset_debugfs_register(struct intel_display *display)
{
diff --git a/drivers/gpu/drm/i915/display/intel_display_rps.c b/drivers/gpu/drm/i915/display/intel_display_rps.c
index 2f8248458826..1a2171efe7b2 100644
--- a/drivers/gpu/drm/i915/display/intel_display_rps.c
+++ b/drivers/gpu/drm/i915/display/intel_display_rps.c
@@ -95,6 +95,7 @@ void ilk_display_rps_enable(struct intel_display *display)
ilk_enable_display_irq(display, DE_PCU_EVENT);
spin_unlock(&display->irq.lock);
}
+EXPORT_SYMBOL_NS(ilk_display_rps_enable, "INTEL_DISPLAY");
void ilk_display_rps_disable(struct intel_display *display)
{
@@ -102,6 +103,7 @@ void ilk_display_rps_disable(struct intel_display *display)
ilk_disable_display_irq(display, DE_PCU_EVENT);
spin_unlock(&display->irq.lock);
}
+EXPORT_SYMBOL_NS(ilk_display_rps_disable, "INTEL_DISPLAY");
void ilk_display_rps_irq_handler(struct intel_display *display)
{
diff --git a/drivers/gpu/drm/i915/display/intel_display_snapshot.c b/drivers/gpu/drm/i915/display/intel_display_snapshot.c
index 7f423182aa29..72ba1a03bc10 100644
--- a/drivers/gpu/drm/i915/display/intel_display_snapshot.c
+++ b/drivers/gpu/drm/i915/display/intel_display_snapshot.c
@@ -44,6 +44,7 @@ struct intel_display_snapshot *intel_display_snapshot_capture(struct intel_displ
return snapshot;
}
+EXPORT_SYMBOL_NS(intel_display_snapshot_capture, "INTEL_DISPLAY");
void intel_display_snapshot_print(const struct intel_display_snapshot *snapshot,
struct drm_printer *p)
@@ -61,6 +62,7 @@ void intel_display_snapshot_print(const struct intel_display_snapshot *snapshot,
intel_display_irq_snapshot_print(snapshot->irq, p);
intel_dmc_snapshot_print(snapshot->dmc, p);
}
+EXPORT_SYMBOL_NS(intel_display_snapshot_print, "INTEL_DISPLAY");
void intel_display_snapshot_free(struct intel_display_snapshot *snapshot)
{
@@ -73,3 +75,4 @@ void intel_display_snapshot_free(struct intel_display_snapshot *snapshot)
kfree(snapshot->dmc);
kfree(snapshot);
}
+EXPORT_SYMBOL_NS(intel_display_snapshot_free, "INTEL_DISPLAY");
diff --git a/drivers/gpu/drm/i915/display/intel_dmc.c b/drivers/gpu/drm/i915/display/intel_dmc.c
index 4f07201fc334..4f51ac792933 100644
--- a/drivers/gpu/drm/i915/display/intel_dmc.c
+++ b/drivers/gpu/drm/i915/display/intel_dmc.c
@@ -1549,6 +1549,7 @@ void intel_dmc_suspend(struct intel_display *display)
if (!intel_dmc_has_payload(display))
intel_dmc_runtime_pm_put(display);
}
+EXPORT_SYMBOL_NS(intel_dmc_suspend, "INTEL_DISPLAY");
void intel_dmc_wait_fw_load(struct intel_display *display)
{
@@ -1580,6 +1581,7 @@ void intel_dmc_resume(struct intel_display *display)
if (!intel_dmc_has_payload(display))
intel_dmc_runtime_pm_get(display);
}
+EXPORT_SYMBOL_NS(intel_dmc_resume, "INTEL_DISPLAY");
/**
* intel_dmc_fini() - unload the DMC firmware.
diff --git a/drivers/gpu/drm/i915/display/intel_dmc_wl.c b/drivers/gpu/drm/i915/display/intel_dmc_wl.c
index 829ffe3b7745..ca6b485c35ea 100644
--- a/drivers/gpu/drm/i915/display/intel_dmc_wl.c
+++ b/drivers/gpu/drm/i915/display/intel_dmc_wl.c
@@ -437,6 +437,7 @@ void intel_dmc_wl_flush_release_work(struct intel_display *display)
flush_delayed_work(&wl->work);
}
+EXPORT_SYMBOL_NS(intel_dmc_wl_flush_release_work, "INTEL_DISPLAY");
void intel_dmc_wl_get(struct intel_display *display, intel_reg_t reg)
{
diff --git a/drivers/gpu/drm/i915/display/intel_dp_tunnel.h b/drivers/gpu/drm/i915/display/intel_dp_tunnel.h
index 13fc8fbb6e30..7d1a9a68bc96 100644
--- a/drivers/gpu/drm/i915/display/intel_dp_tunnel.h
+++ b/drivers/gpu/drm/i915/display/intel_dp_tunnel.h
@@ -20,8 +20,7 @@ struct intel_dp;
struct intel_encoder;
struct intel_link_bw_limits;
-#if (IS_ENABLED(CONFIG_DRM_I915_DP_TUNNEL) && defined(I915)) || \
- (IS_ENABLED(CONFIG_DRM_XE_DP_TUNNEL) && !defined(I915))
+#if IS_ENABLED(CONFIG_DRM_INTEL_DISPLAY_DP_TUNNEL)
int intel_dp_tunnel_detect(struct intel_dp *intel_dp, struct drm_modeset_acquire_ctx *ctx);
void intel_dp_tunnel_disconnect(struct intel_dp *intel_dp);
@@ -154,6 +153,6 @@ intel_dp_tunnel_mgr_init(struct intel_display *display)
static inline void intel_dp_tunnel_mgr_cleanup(struct intel_display *display) {}
-#endif /* CONFIG_DRM_I915_DP_TUNNEL || CONFIG_DRM_XE_DP_TUNNEL */
+#endif /* CONFIG_DRM_INTEL_DISPLAY_DP_TUNNEL */
#endif /* __INTEL_DP_TUNNEL_H__ */
diff --git a/drivers/gpu/drm/i915/display/intel_dpt.c b/drivers/gpu/drm/i915/display/intel_dpt.c
index 145dc9511116..a53b727535e5 100644
--- a/drivers/gpu/drm/i915/display/intel_dpt.c
+++ b/drivers/gpu/drm/i915/display/intel_dpt.c
@@ -63,6 +63,7 @@ void intel_dpt_suspend(struct intel_display *display)
mutex_unlock(&display->drm->mode_config.fb_lock);
}
+EXPORT_SYMBOL_NS(intel_dpt_suspend, "INTEL_DISPLAY");
/**
* intel_dpt_resume - restore the memory mapping for all DPT FBs during system resume
@@ -92,3 +93,4 @@ void intel_dpt_resume(struct intel_display *display)
}
mutex_unlock(&display->drm->mode_config.fb_lock);
}
+EXPORT_SYMBOL_NS(intel_dpt_resume, "INTEL_DISPLAY");
diff --git a/drivers/gpu/drm/i915/display/intel_fb.c b/drivers/gpu/drm/i915/display/intel_fb.c
index 2c63aeefaea8..378ff36df121 100644
--- a/drivers/gpu/drm/i915/display/intel_fb.c
+++ b/drivers/gpu/drm/i915/display/intel_fb.c
@@ -420,6 +420,7 @@ unsigned int intel_fb_modifier_to_tiling(u64 fb_modifier)
return I915_TILING_NONE;
}
}
+EXPORT_SYMBOL_NS(intel_fb_modifier_to_tiling, "INTEL_DISPLAY");
/**
* intel_fb_get_format_info: Get a modifier specific format information
@@ -521,6 +522,7 @@ bool intel_fb_needs_64k_phys(u64 modifier)
return plane_caps_contain_any(md->plane_caps,
INTEL_PLANE_CAP_NEED64K_PHYS);
}
+EXPORT_SYMBOL_NS(intel_fb_needs_64k_phys, "INTEL_DISPLAY");
bool intel_fb_needs_cpu_access(const struct drm_framebuffer *fb)
{
@@ -1292,6 +1294,7 @@ bool intel_plane_uses_fence(const struct intel_plane_state *plane_state)
(plane->fbc && !plane_state->no_fbc_reason &&
intel_gtt_view_is_normal(&plane_state->view.gtt));
}
+EXPORT_SYMBOL_NS(intel_plane_uses_fence, "INTEL_DISPLAY");
static int intel_fb_pitch(const struct intel_framebuffer *fb, int color_plane, unsigned int rotation)
{
@@ -1365,6 +1368,7 @@ u32 intel_dumb_fb_max_stride(struct drm_device *drm,
drm_get_format_info(drm, pixel_format, modifier),
modifier);
}
+EXPORT_SYMBOL_NS(intel_dumb_fb_max_stride, "INTEL_DISPLAY");
static int convert_plane_offset_to_xy(const struct intel_framebuffer *fb, int color_plane,
int plane_width, int *x, int *y)
@@ -1941,6 +1945,7 @@ unsigned int intel_rotation_info_size(const struct intel_rotation_info *rot_info
return size;
}
+EXPORT_SYMBOL_NS(intel_rotation_info_size, "INTEL_DISPLAY");
unsigned int intel_remapped_info_size(const struct intel_remapped_info *rem_info)
{
@@ -1966,6 +1971,7 @@ unsigned int intel_remapped_info_size(const struct intel_remapped_info *rem_info
return size;
}
+EXPORT_SYMBOL_NS(intel_remapped_info_size, "INTEL_DISPLAY");
void intel_fb_fill_view(const struct intel_framebuffer *fb, unsigned int rotation,
struct intel_fb_view *view)
@@ -2381,6 +2387,7 @@ int intel_framebuffer_init(struct intel_framebuffer *intel_fb,
return ret;
}
+EXPORT_SYMBOL_NS(intel_framebuffer_init, "INTEL_DISPLAY");
struct drm_framebuffer *
intel_user_framebuffer_create(struct drm_device *dev,
@@ -2441,3 +2448,4 @@ struct drm_gem_object *intel_fb_bo(const struct drm_framebuffer *fb)
{
return fb ? fb->obj[0] : NULL;
}
+EXPORT_SYMBOL_NS(intel_fb_bo, "INTEL_DISPLAY");
diff --git a/drivers/gpu/drm/i915/display/intel_fbdev.c b/drivers/gpu/drm/i915/display/intel_fbdev.c
index d171519caddf..de651c3e1a45 100644
--- a/drivers/gpu/drm/i915/display/intel_fbdev.c
+++ b/drivers/gpu/drm/i915/display/intel_fbdev.c
@@ -439,6 +439,7 @@ int intel_fbdev_driver_fbdev_probe(struct drm_fb_helper *helper,
return ret;
}
+EXPORT_SYMBOL_NS(intel_fbdev_driver_fbdev_probe, "INTEL_DISPLAY");
/*
* Build an intel_fbdev struct using a BIOS allocated framebuffer, if possible.
diff --git a/drivers/gpu/drm/i915/display/intel_frontbuffer.c b/drivers/gpu/drm/i915/display/intel_frontbuffer.c
index 70aae6ffa3fe..d1125b685705 100644
--- a/drivers/gpu/drm/i915/display/intel_frontbuffer.c
+++ b/drivers/gpu/drm/i915/display/intel_frontbuffer.c
@@ -121,6 +121,7 @@ void intel_frontbuffer_flip(struct intel_display *display,
frontbuffer_flush(display, frontbuffer_bits, ORIGIN_FLIP);
}
+EXPORT_SYMBOL_NS(intel_frontbuffer_flip, "INTEL_DISPLAY");
void __intel_frontbuffer_invalidate(struct intel_frontbuffer *front,
enum fb_op_origin origin,
@@ -141,6 +142,7 @@ void __intel_frontbuffer_invalidate(struct intel_frontbuffer *front,
intel_drrs_invalidate(display, frontbuffer_bits);
intel_fbc_invalidate(display, frontbuffer_bits, origin);
}
+EXPORT_SYMBOL_NS(__intel_frontbuffer_invalidate, "INTEL_DISPLAY");
void __intel_frontbuffer_flush(struct intel_frontbuffer *front,
enum fb_op_origin origin,
@@ -162,6 +164,7 @@ void __intel_frontbuffer_flush(struct intel_frontbuffer *front,
if (frontbuffer_bits)
frontbuffer_flush(display, frontbuffer_bits, origin);
}
+EXPORT_SYMBOL_NS(__intel_frontbuffer_flush, "INTEL_DISPLAY");
static void intel_frontbuffer_flush_work(struct work_struct *work)
{
@@ -195,11 +198,13 @@ void intel_frontbuffer_init(struct intel_frontbuffer *front, struct drm_device *
atomic_set(&front->bits, 0);
INIT_WORK(&front->flush_work, intel_frontbuffer_flush_work);
}
+EXPORT_SYMBOL_NS(intel_frontbuffer_init, "INTEL_DISPLAY");
void intel_frontbuffer_fini(struct intel_frontbuffer *front)
{
drm_WARN_ON(front->display->drm, atomic_read(&front->bits));
}
+EXPORT_SYMBOL_NS(intel_frontbuffer_fini, "INTEL_DISPLAY");
/**
* intel_frontbuffer_track - update frontbuffer tracking
@@ -238,3 +243,4 @@ void intel_frontbuffer_track(struct intel_frontbuffer *old,
atomic_or(frontbuffer_bits, &new->bits);
}
}
+EXPORT_SYMBOL_NS(intel_frontbuffer_track, "INTEL_DISPLAY");
diff --git a/drivers/gpu/drm/i915/display/intel_gmbus.c b/drivers/gpu/drm/i915/display/intel_gmbus.c
index 990e5cd14863..bab40065862e 100644
--- a/drivers/gpu/drm/i915/display/intel_gmbus.c
+++ b/drivers/gpu/drm/i915/display/intel_gmbus.c
@@ -223,6 +223,7 @@ intel_gmbus_reset(struct intel_display *display)
intel_de_write_fw(display, GMBUS0(display), 0);
intel_de_write_fw(display, GMBUS4(display), 0);
}
+EXPORT_SYMBOL_NS(intel_gmbus_reset, "INTEL_DISPLAY");
static void pnv_gmbus_clock_gating(struct intel_display *display,
bool enable)
diff --git a/drivers/gpu/drm/i915/display/intel_hotplug.c b/drivers/gpu/drm/i915/display/intel_hotplug.c
index 09f34c9a8643..e6c357a490c9 100644
--- a/drivers/gpu/drm/i915/display/intel_hotplug.c
+++ b/drivers/gpu/drm/i915/display/intel_hotplug.c
@@ -735,6 +735,7 @@ void intel_hpd_init(struct intel_display *display)
intel_hpd_irq_setup(display);
spin_unlock_irq(&display->irq.lock);
}
+EXPORT_SYMBOL_NS(intel_hpd_init, "INTEL_DISPLAY");
static void i915_hpd_poll_detect_connectors(struct intel_display *display)
{
@@ -885,6 +886,7 @@ void intel_hpd_poll_enable(struct intel_display *display)
&display->hotplug.poll_init_work);
spin_unlock_irq(&display->irq.lock);
}
+EXPORT_SYMBOL_NS(intel_hpd_poll_enable, "INTEL_DISPLAY");
/**
* intel_hpd_poll_disable - disable polling for connectors with hpd
@@ -922,6 +924,7 @@ void intel_hpd_poll_disable(struct intel_display *display)
&display->hotplug.poll_init_work);
spin_unlock_irq(&display->irq.lock);
}
+EXPORT_SYMBOL_NS(intel_hpd_poll_disable, "INTEL_DISPLAY");
void intel_hpd_poll_fini(struct intel_display *display)
{
diff --git a/drivers/gpu/drm/i915/display/intel_opregion.c b/drivers/gpu/drm/i915/display/intel_opregion.c
index 9f88b7cac9f7..21306baa908a 100644
--- a/drivers/gpu/drm/i915/display/intel_opregion.c
+++ b/drivers/gpu/drm/i915/display/intel_opregion.c
@@ -1041,6 +1041,7 @@ int intel_opregion_setup(struct intel_display *display)
return err;
}
+EXPORT_SYMBOL_NS(intel_opregion_setup, "INTEL_DISPLAY");
static int intel_use_opregion_panel_type_callback(const struct dmi_system_id *id)
{
@@ -1230,6 +1231,7 @@ void intel_opregion_resume(struct intel_display *display)
intel_opregion_notify_adapter(display, PCI_D0);
}
+EXPORT_SYMBOL_NS(intel_opregion_resume, "INTEL_DISPLAY");
static void intel_opregion_suspend_display(struct intel_display *display)
{
@@ -1256,6 +1258,7 @@ void intel_opregion_suspend(struct intel_display *display, pci_power_t state)
if (HAS_DISPLAY(display))
intel_opregion_suspend_display(display);
}
+EXPORT_SYMBOL_NS(intel_opregion_suspend, "INTEL_DISPLAY");
void intel_opregion_unregister(struct intel_display *display)
{
diff --git a/drivers/gpu/drm/i915/display/intel_overlay.c b/drivers/gpu/drm/i915/display/intel_overlay.c
index 822eef96ea37..037a80fceea7 100644
--- a/drivers/gpu/drm/i915/display/intel_overlay.c
+++ b/drivers/gpu/drm/i915/display/intel_overlay.c
@@ -201,6 +201,7 @@ void intel_overlay_reset(struct intel_display *display)
intel_parent_overlay_reset(display);
}
+EXPORT_SYMBOL_NS(intel_overlay_reset, "INTEL_DISPLAY");
static int packed_depth_bytes(u32 format)
{
@@ -868,6 +869,7 @@ int intel_overlay_put_image_ioctl(struct drm_device *dev, void *data,
return ret;
}
+EXPORT_SYMBOL_NS(intel_overlay_put_image_ioctl, "INTEL_DISPLAY");
static void update_reg_attrs(struct intel_overlay *overlay,
struct overlay_registers __iomem *regs)
@@ -996,6 +998,7 @@ int intel_overlay_attrs_ioctl(struct drm_device *dev, void *data,
return ret;
}
+EXPORT_SYMBOL_NS(intel_overlay_attrs_ioctl, "INTEL_DISPLAY");
void intel_overlay_setup(struct intel_display *display)
{
@@ -1038,6 +1041,7 @@ bool intel_overlay_available(struct intel_display *display)
{
return display->overlay;
}
+EXPORT_SYMBOL_NS(intel_overlay_available, "INTEL_DISPLAY");
void intel_overlay_cleanup(struct intel_display *display)
{
diff --git a/drivers/gpu/drm/i915/display/intel_pch_refclk.c b/drivers/gpu/drm/i915/display/intel_pch_refclk.c
index fe9dbc2b21ee..6014a3affa82 100644
--- a/drivers/gpu/drm/i915/display/intel_pch_refclk.c
+++ b/drivers/gpu/drm/i915/display/intel_pch_refclk.c
@@ -607,3 +607,4 @@ void intel_init_pch_refclk(struct intel_display *display)
else if (HAS_PCH_LPT(display))
lpt_init_pch_refclk(display);
}
+EXPORT_SYMBOL_NS(intel_init_pch_refclk, "INTEL_DISPLAY");
diff --git a/drivers/gpu/drm/i915/display/intel_pps.c b/drivers/gpu/drm/i915/display/intel_pps.c
index cb240b7d4acf..0f87d160ac71 100644
--- a/drivers/gpu/drm/i915/display/intel_pps.c
+++ b/drivers/gpu/drm/i915/display/intel_pps.c
@@ -1813,6 +1813,7 @@ void intel_pps_unlock_regs_wa(struct intel_display *display)
intel_de_rmw(display, PP_CONTROL(display, pps_idx),
PANEL_UNLOCK_MASK, PANEL_UNLOCK_REGS);
}
+EXPORT_SYMBOL_NS(intel_pps_unlock_regs_wa, "INTEL_DISPLAY");
void intel_pps_setup(struct intel_display *display)
{
diff --git a/drivers/gpu/drm/i915/display/intel_sbi.c b/drivers/gpu/drm/i915/display/intel_sbi.c
index e671a8b5f3be..7bb5b26171ef 100644
--- a/drivers/gpu/drm/i915/display/intel_sbi.c
+++ b/drivers/gpu/drm/i915/display/intel_sbi.c
@@ -97,8 +97,10 @@ void intel_sbi_init(struct intel_display *display)
{
mutex_init(&display->sbi.lock);
}
+EXPORT_SYMBOL_NS(intel_sbi_init, "INTEL_DISPLAY");
void intel_sbi_fini(struct intel_display *display)
{
mutex_destroy(&display->sbi.lock);
}
+EXPORT_SYMBOL_NS(intel_sbi_fini, "INTEL_DISPLAY");
diff --git a/drivers/gpu/drm/i915/display/intel_sprite_uapi.c b/drivers/gpu/drm/i915/display/intel_sprite_uapi.c
index a62146133f99..f1ebf9aa5dcc 100644
--- a/drivers/gpu/drm/i915/display/intel_sprite_uapi.c
+++ b/drivers/gpu/drm/i915/display/intel_sprite_uapi.c
@@ -126,3 +126,4 @@ int intel_sprite_set_colorkey_ioctl(struct drm_device *dev, void *data,
drm_modeset_acquire_fini(&ctx);
return ret;
}
+EXPORT_SYMBOL_NS(intel_sprite_set_colorkey_ioctl, "INTEL_DISPLAY");
diff --git a/drivers/gpu/drm/i915/display/vlv_clock.c b/drivers/gpu/drm/i915/display/vlv_clock.c
index a589cdb74903..5c5d8b8849d4 100644
--- a/drivers/gpu/drm/i915/display/vlv_clock.c
+++ b/drivers/gpu/drm/i915/display/vlv_clock.c
@@ -75,6 +75,7 @@ int vlv_clock_get_czclk(struct drm_device *drm)
return display->vlv_clock.czclk_freq;
}
+EXPORT_SYMBOL_NS(vlv_clock_get_czclk, "INTEL_DISPLAY");
int vlv_clock_get_cdclk(struct drm_device *drm)
{
@@ -87,3 +88,4 @@ int vlv_clock_get_gpll(struct drm_device *drm)
return vlv_clock_get_cck(drm, "GPLL ref", CCK_GPLL_CLOCK_CONTROL,
vlv_clock_get_czclk(drm));
}
+EXPORT_SYMBOL_NS(vlv_clock_get_gpll, "INTEL_DISPLAY");
diff --git a/drivers/gpu/drm/i915/i915_module.c b/drivers/gpu/drm/i915/i915_module.c
index 5d9c35b5a182..0aea3d15933e 100644
--- a/drivers/gpu/drm/i915/i915_module.c
+++ b/drivers/gpu/drm/i915/i915_module.c
@@ -127,3 +127,5 @@ MODULE_AUTHOR("Intel Corporation");
MODULE_DESCRIPTION(DRIVER_DESC);
MODULE_LICENSE("GPL and additional rights");
+
+MODULE_IMPORT_NS("INTEL_DISPLAY");
diff --git a/drivers/gpu/drm/i915/intel_gvt.c b/drivers/gpu/drm/i915/intel_gvt.c
index 6b43713899b8..b3b184510305 100644
--- a/drivers/gpu/drm/i915/intel_gvt.c
+++ b/drivers/gpu/drm/i915/intel_gvt.c
@@ -323,3 +323,5 @@ EXPORT_SYMBOL_NS_GPL(shmem_pin_map, "I915_GVT");
EXPORT_SYMBOL_NS_GPL(shmem_unpin_map, "I915_GVT");
EXPORT_SYMBOL_NS_GPL(__px_dma, "I915_GVT");
EXPORT_SYMBOL_NS_GPL(i915_fence_ops, "I915_GVT");
+
+MODULE_IMPORT_NS("I915_GVT");
diff --git a/drivers/gpu/drm/xe/Kconfig b/drivers/gpu/drm/xe/Kconfig
index ceb9d2d9e840..1e73ed9e4cd4 100644
--- a/drivers/gpu/drm/xe/Kconfig
+++ b/drivers/gpu/drm/xe/Kconfig
@@ -54,7 +54,7 @@ config DRM_XE
config DRM_XE_DISPLAY
bool "Enable display support"
- depends on DRM_XE && DRM_XE=m && HAS_IOPORT
+ depends on DRM_XE && DRM_INTEL_DISPLAY && HAS_IOPORT
select FB_IOMEM_HELPERS if DRM_FBDEV_EMULATION
select I2C
select I2C_ALGOBIT
diff --git a/drivers/gpu/drm/xe/Makefile b/drivers/gpu/drm/xe/Makefile
index 481f037df053..3c06c3a5bc99 100644
--- a/drivers/gpu/drm/xe/Makefile
+++ b/drivers/gpu/drm/xe/Makefile
@@ -219,11 +219,6 @@ subdir-ccflags-$(CONFIG_DRM_XE_DISPLAY) += \
-I$(src)/compat-i915-headers \
-I$(srctree)/drivers/gpu/drm/i915/display/
-# Rule to build display code shared with i915
-$(obj)/i915-display/%.o: $(srctree)/drivers/gpu/drm/i915/display/%.c FORCE
- $(call cmd,force_checksrc)
- $(call if_changed_rule,cc_o_c)
-
# Display code specific to xe
xe-$(CONFIG_DRM_XE_DISPLAY) += \
display/xe_display.o \
@@ -239,128 +234,6 @@ xe-$(CONFIG_DRM_XE_DISPLAY) += \
display/xe_panic.o \
display/xe_stolen.o
-# Display code shared with i915
-xe-$(CONFIG_DRM_XE_DISPLAY) += \
- i915-display/icl_dsi.o \
- i915-display/intel_alpm.o \
- i915-display/intel_atomic.o \
- i915-display/intel_audio.o \
- i915-display/intel_backlight.o \
- i915-display/intel_bios.o \
- i915-display/intel_bo.o \
- i915-display/intel_bw.o \
- i915-display/intel_casf.o \
- i915-display/intel_cdclk.o \
- i915-display/intel_cmtg.o \
- i915-display/intel_color.o \
- i915-display/intel_colorop.o \
- i915-display/intel_color_pipeline.o \
- i915-display/intel_combo_phy.o \
- i915-display/intel_connector.o \
- i915-display/intel_crtc.o \
- i915-display/intel_crtc_state_dump.o \
- i915-display/intel_cursor.o \
- i915-display/intel_cx0_phy.o \
- i915-display/intel_dbuf_bw.o \
- i915-display/intel_ddi.o \
- i915-display/intel_ddi_buf_trans.o \
- i915-display/intel_de.o \
- i915-display/intel_dip.o \
- i915-display/intel_display.o \
- i915-display/intel_display_clock_gating.o \
- i915-display/intel_display_conversion.o \
- i915-display/intel_display_device.o \
- i915-display/intel_display_driver.o \
- i915-display/intel_display_irq.o \
- i915-display/intel_display_params.o \
- i915-display/intel_display_power.o \
- i915-display/intel_display_power_map.o \
- i915-display/intel_display_power_well.o \
- i915-display/intel_display_reset.o \
- i915-display/intel_display_rpm.o \
- i915-display/intel_display_rps.o \
- i915-display/intel_display_trace.o \
- i915-display/intel_display_utils.o \
- i915-display/intel_display_wa.o \
- i915-display/intel_dkl_phy.o \
- i915-display/intel_dmc.o \
- i915-display/intel_dmc_wl.o \
- i915-display/intel_dp.o \
- i915-display/intel_dp_aux.o \
- i915-display/intel_dp_aux_backlight.o \
- i915-display/intel_dp_hdcp.o \
- i915-display/intel_dp_link_caps.o \
- i915-display/intel_dp_link_training.o \
- i915-display/intel_dp_mst.o \
- i915-display/intel_dp_test.o \
- i915-display/intel_dpll.o \
- i915-display/intel_dpll_mgr.o \
- i915-display/intel_dpt.o \
- i915-display/intel_dram.o \
- i915-display/intel_drrs.o \
- i915-display/intel_dsb.o \
- i915-display/intel_dsi.o \
- i915-display/intel_dsi_dcs_backlight.o \
- i915-display/intel_dsi_vbt.o \
- i915-display/intel_encoder.o \
- i915-display/intel_fb.o \
- i915-display/intel_fbc.o \
- i915-display/intel_fdi.o \
- i915-display/intel_fifo_underrun.o \
- i915-display/intel_flipq.o \
- i915-display/intel_frontbuffer.o \
- i915-display/intel_global_state.o \
- i915-display/intel_gmbus.o \
- i915-display/intel_hdcp.o \
- i915-display/intel_hdcp_gsc_message.o \
- i915-display/intel_hdmi.o \
- i915-display/intel_hotplug.o \
- i915-display/intel_hotplug_irq.o \
- i915-display/intel_hti.o \
- i915-display/intel_initial_plane.o \
- i915-display/intel_link_bw.o \
- i915-display/intel_lspcon.o \
- i915-display/intel_lt_phy.o \
- i915-display/intel_mchbar.o \
- i915-display/intel_modeset_lock.o \
- i915-display/intel_modeset_setup.o \
- i915-display/intel_modeset_verify.o \
- i915-display/intel_overlay.o \
- i915-display/intel_panel.o \
- i915-display/intel_parent.o \
- i915-display/intel_pch.o \
- i915-display/intel_pfit.o \
- i915-display/intel_plane.o \
- i915-display/intel_pmdemand.o \
- i915-display/intel_pps.o \
- i915-display/intel_psr.o \
- i915-display/intel_qp_tables.o \
- i915-display/intel_quirks.o \
- i915-display/intel_rom.o \
- i915-display/intel_snps_hdmi_pll.o \
- i915-display/intel_snps_phy.o \
- i915-display/intel_tc.o \
- i915-display/intel_vblank.o \
- i915-display/intel_vdsc.o \
- i915-display/intel_vga.o \
- i915-display/intel_vrr.o \
- i915-display/intel_wm.o \
- i915-display/skl_prefill.o \
- i915-display/skl_scaler.o \
- i915-display/skl_universal_plane.o \
- i915-display/skl_watermark.o \
- i915-display/vlv_sideband.o
-
-ifeq ($(CONFIG_ACPI),y)
- xe-$(CONFIG_DRM_XE_DISPLAY) += \
- i915-display/intel_acpi.o \
- i915-display/intel_opregion.o
-endif
-
-ifeq ($(CONFIG_DRM_FBDEV_EMULATION),y)
- xe-$(CONFIG_DRM_XE_DISPLAY) += i915-display/intel_fbdev.o
-endif
-
ifeq ($(CONFIG_DEBUG_FS),y)
xe-y += xe_debugfs.o \
xe_gt_debugfs.o \
@@ -372,16 +245,8 @@ ifeq ($(CONFIG_DEBUG_FS),y)
xe_uc_debugfs.o
xe-$(CONFIG_PCI_IOV) += xe_gt_sriov_pf_debugfs.o
-
- xe-$(CONFIG_DRM_XE_DISPLAY) += \
- i915-display/intel_display_debugfs.o \
- i915-display/intel_display_debugfs_params.o \
- i915-display/intel_pipe_crc.o
endif
-xe-$(CONFIG_DRM_XE_DP_TUNNEL) += \
- i915-display/intel_dp_tunnel.o
-
obj-$(CONFIG_DRM_XE) += xe.o
obj-$(CONFIG_DRM_XE_KUNIT_TEST) += tests/
diff --git a/drivers/gpu/drm/xe/display/xe_display.c b/drivers/gpu/drm/xe/display/xe_display.c
index 6a179d0683e5..fe7d00f07639 100644
--- a/drivers/gpu/drm/xe/display/xe_display.c
+++ b/drivers/gpu/drm/xe/display/xe_display.c
@@ -37,6 +37,8 @@
#include "xe_panic.h"
#include "xe_stolen.h"
+MODULE_IMPORT_NS("INTEL_DISPLAY");
+
/* Ensure drm and display members are placed properly. */
INTEL_DISPLAY_MEMBER_STATIC_ASSERT(struct xe_device, drm, display);
--
2.47.3
^ permalink raw reply related [flat|nested] 5+ messages in thread