* [PATCH 0/8] drm/intel: add intel-display.ko kernel module
@ 2026-12-03 13:30 Jani Nikula
2026-12-03 13:30 ` [PATCH 1/8] drm/xe: Enable unclaimed register detection on xe for pre-LNL Jani Nikula
` (9 more replies)
0 siblings, 10 replies; 11+ messages in thread
From: Jani Nikula @ 2026-12-03 13:30 UTC (permalink / raw)
To: intel-gfx, intel-xe; +Cc: jani.nikula
Convert drm/i915 and drm/xe shared display code into a dedicated
intel-display.ko kernel module.
This is still a bit of a draft for testing the IGT changes.
Test-with: 20261124044559.897167-1-jeevan.b@intel.com
Jani Nikula (6):
drm/xe/display: remove xe display kunit tests
drm/intel-display: introduce new kernel module for Intel display
drm/intel-display: use intel_display for TRACE_SYSTEM
drm/i915/display: remove ifdef I915
drm/i915/display: highlight the places that still include from i915
drm/xe: remove compat i915 headers
Ville Syrjälä (2):
drm/xe: Enable unclaimed register detection on xe for pre-LNL
drm/i915/de: Nuke driver_is_i915()
drivers/gpu/drm/Kconfig | 1 +
drivers/gpu/drm/Makefile | 1 +
drivers/gpu/drm/i915/Kconfig | 1 +
drivers/gpu/drm/i915/Makefile | 165 -----------------
drivers/gpu/drm/i915/display/Kconfig | 24 +++
drivers/gpu/drm/i915/display/Makefile | 169 ++++++++++++++++++
drivers/gpu/drm/i915/display/g4x_dp.h | 18 --
drivers/gpu/drm/i915/display/g4x_hdmi.h | 13 --
drivers/gpu/drm/i915/display/hsw_ips.h | 35 ----
.../gpu/drm/i915/display/i9xx_display_sr.c | 2 +
drivers/gpu/drm/i915/display/i9xx_plane.h | 27 ---
drivers/gpu/drm/i915/display/i9xx_wm.h | 17 --
drivers/gpu/drm/i915/display/intel_crt.h | 14 --
drivers/gpu/drm/i915/display/intel_crtc.c | 1 +
drivers/gpu/drm/i915/display/intel_de.c | 49 ++---
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_reg_defs.h | 2 +-
.../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 +
.../drm/i915/display/intel_display_trace.h | 6 +-
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_link_caps.c | 10 --
.../gpu/drm/i915/display/intel_dp_link_caps.h | 4 -
.../drm/i915/display/intel_dp_link_training.c | 10 --
.../drm/i915/display/intel_dp_link_training.h | 4 -
.../gpu/drm/i915/display/intel_dp_tunnel.h | 5 +-
drivers/gpu/drm/i915/display/intel_dpio_phy.h | 104 -----------
drivers/gpu/drm/i915/display/intel_dpt.c | 2 +
drivers/gpu/drm/i915/display/intel_dvo.h | 6 -
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 +
.../gpu/drm/i915/display/intel_lpe_audio.h | 18 --
drivers/gpu/drm/i915/display/intel_lvds.h | 19 --
drivers/gpu/drm/i915/display/intel_opregion.c | 3 +
drivers/gpu/drm/i915/display/intel_overlay.c | 4 +
.../gpu/drm/i915/display/intel_pch_display.h | 53 ------
.../gpu/drm/i915/display/intel_pch_refclk.c | 1 +
.../gpu/drm/i915/display/intel_pch_refclk.h | 23 ---
drivers/gpu/drm/i915/display/intel_pps.c | 1 +
drivers/gpu/drm/i915/display/intel_sbi.c | 2 +
drivers/gpu/drm/i915/display/intel_sdvo.h | 13 --
drivers/gpu/drm/i915/display/intel_sprite.h | 8 -
.../gpu/drm/i915/display/intel_sprite_uapi.c | 1 +
drivers/gpu/drm/i915/display/intel_tv.h | 6 -
drivers/gpu/drm/i915/display/intel_vblank.c | 10 --
.../i915/display/tests/intel_dp_link_test.c | 5 -
drivers/gpu/drm/i915/display/vlv_clock.c | 2 +
drivers/gpu/drm/i915/display/vlv_clock.h | 23 ---
drivers/gpu/drm/i915/display/vlv_dsi.h | 13 --
drivers/gpu/drm/i915/display/vlv_dsi_pll.h | 14 --
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 | 141 +--------------
.../xe/compat-i915-headers/i915_reg_defs.h | 6 -
drivers/gpu/drm/xe/display/tests/Makefile | 13 --
drivers/gpu/drm/xe/display/xe_display.c | 2 +
66 files changed, 319 insertions(+), 835 deletions(-)
create mode 100644 drivers/gpu/drm/i915/display/Kconfig
create mode 100644 drivers/gpu/drm/i915/display/Makefile
delete mode 100644 drivers/gpu/drm/xe/compat-i915-headers/i915_reg_defs.h
delete mode 100644 drivers/gpu/drm/xe/display/tests/Makefile
base-commit: 510efc2b4932f99250fd283990d633498e301ce2
--
2.47.3
^ permalink raw reply [flat|nested] 11+ messages in thread
* [PATCH 1/8] drm/xe: Enable unclaimed register detection on xe for pre-LNL
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-03 13:30 ` [PATCH 2/8] drm/i915/de: Nuke driver_is_i915() Jani Nikula
` (8 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: Jani Nikula @ 2026-12-03 13:30 UTC (permalink / raw)
To: intel-gfx, intel-xe; +Cc: jani.nikula, Ville Syrjälä
From: Ville Syrjälä <ville.syrjala@linux.intel.com>
Now that the unclaimed register detection code no longer relies
on the lock we can enable it on xe, without bringing the lock
along for the ride.
xe only supports TGL+ class hardware, so that's all we have
to care about here.
The first attempt to enable this for all xe supported platforms
ended in fire, so let's try to limit this to pre-LNL at first
since those platforms already have unclaimed mmio detection
on i915.
One weird thing here is that the default value for the modparam
still comes from i915's CONFIG_DRM_I915_DEBUG_MMIO. So xe will
only get the modparam turned on by default if i915 is also
included in the build.
Reviewed-by: Jani Nikula <jani.nikula@intel.com>
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
---
drivers/gpu/drm/i915/display/intel_de.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/i915/display/intel_de.c b/drivers/gpu/drm/i915/display/intel_de.c
index ed91e70fdabb..9fec9229c9ae 100644
--- a/drivers/gpu/drm/i915/display/intel_de.c
+++ b/drivers/gpu/drm/i915/display/intel_de.c
@@ -632,7 +632,7 @@ void intel_de_init(struct intel_display *display)
else if (DISPLAY_VER(display) >= 20)
display->mmio.funcs = &lnl_mmio_funcs;
else
- display->mmio.funcs = &i9xx_mmio_funcs;
+ display->mmio.funcs = &tgl_mmio_funcs;
}
if (display->mmio.funcs->check_for_unclaimed_mmio)
--
2.47.3
^ permalink raw reply related [flat|nested] 11+ messages in thread
* [PATCH 2/8] drm/i915/de: Nuke driver_is_i915()
2026-12-03 13:30 [PATCH 0/8] drm/intel: add intel-display.ko kernel module Jani Nikula
2026-12-03 13:30 ` [PATCH 1/8] drm/xe: Enable unclaimed register detection on xe for pre-LNL Jani Nikula
@ 2026-12-03 13:30 ` Jani Nikula
2026-12-03 13:30 ` [PATCH 3/8] drm/xe/display: remove xe display kunit tests Jani Nikula
` (7 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: Jani Nikula @ 2026-12-03 13:30 UTC (permalink / raw)
To: intel-gfx, intel-xe; +Cc: jani.nikula, Ville Syrjälä
From: Ville Syrjälä <ville.syrjala@linux.intel.com>
Now that both i915 and xe use the same mmio funcs for
TGL+ we can unify the intel_de_init() if-ladders for
the two drivers and get rid of driver_is_i915().
Reviewed-by: Jani Nikula <jani.nikula@intel.com>
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
---
drivers/gpu/drm/i915/display/intel_de.c | 49 ++++++++-----------------
1 file changed, 15 insertions(+), 34 deletions(-)
diff --git a/drivers/gpu/drm/i915/display/intel_de.c b/drivers/gpu/drm/i915/display/intel_de.c
index 9fec9229c9ae..b05535178690 100644
--- a/drivers/gpu/drm/i915/display/intel_de.c
+++ b/drivers/gpu/drm/i915/display/intel_de.c
@@ -594,46 +594,27 @@ static const struct intel_mmio_funcs ptl_mmio_funcs = {
.write = ptl_mmio_write,
};
-static bool driver_is_i915(void)
-{
-#ifdef I915
- return true;
-#else
- return false;
-#endif
-}
-
void intel_de_init(struct intel_display *display)
{
display->mmio.regs = intel_parent_mmio_regs(display);
spin_lock_init(&display->mmio.lock);
- /*
- * TODO: enable unclaimed register detection
- * (ideally without the lock) for xe and get
- * rid of driver_is_i915().
- */
- if (driver_is_i915()) {
- if (DISPLAY_VER(display) >= 12)
- display->mmio.funcs = &tgl_mmio_funcs;
- else if (DISPLAY_VER(display) >= 9 ||
- display->platform.broadwell || display->platform.haswell)
- display->mmio.funcs = &hsw_mmio_funcs;
- else if (display->platform.valleyview || display->platform.cherryview)
- display->mmio.funcs = &vlv_mmio_funcs;
- else if (DISPLAY_VER(display) >= 6)
- display->mmio.funcs = &snb_mmio_funcs;
- else
- display->mmio.funcs = &i9xx_mmio_funcs;
- } else {
- if (DISPLAY_VER(display) >= 30)
- display->mmio.funcs = &ptl_mmio_funcs;
- else if (DISPLAY_VER(display) >= 20)
- display->mmio.funcs = &lnl_mmio_funcs;
- else
- display->mmio.funcs = &tgl_mmio_funcs;
- }
+ if (DISPLAY_VER(display) >= 30)
+ display->mmio.funcs = &ptl_mmio_funcs;
+ else if (DISPLAY_VER(display) >= 20)
+ display->mmio.funcs = &lnl_mmio_funcs;
+ else if (DISPLAY_VER(display) >= 12)
+ display->mmio.funcs = &tgl_mmio_funcs;
+ else if (DISPLAY_VER(display) >= 9 ||
+ display->platform.broadwell || display->platform.haswell)
+ display->mmio.funcs = &hsw_mmio_funcs;
+ else if (display->platform.valleyview || display->platform.cherryview)
+ display->mmio.funcs = &vlv_mmio_funcs;
+ else if (DISPLAY_VER(display) >= 6)
+ display->mmio.funcs = &snb_mmio_funcs;
+ else
+ display->mmio.funcs = &i9xx_mmio_funcs;
if (display->mmio.funcs->check_for_unclaimed_mmio)
WRITE_ONCE(display->mmio.unclaimed_mmio_check, true);
--
2.47.3
^ permalink raw reply related [flat|nested] 11+ messages in thread
* [PATCH 3/8] drm/xe/display: remove xe display kunit tests
2026-12-03 13:30 [PATCH 0/8] drm/intel: add intel-display.ko kernel module Jani Nikula
2026-12-03 13:30 ` [PATCH 1/8] drm/xe: Enable unclaimed register detection on xe for pre-LNL Jani Nikula
2026-12-03 13:30 ` [PATCH 2/8] drm/i915/de: Nuke driver_is_i915() Jani Nikula
@ 2026-12-03 13:30 ` Jani Nikula
2026-12-03 13:30 ` [PATCH 4/8] drm/intel-display: introduce new kernel module for Intel display Jani Nikula
` (6 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: Jani Nikula @ 2026-12-03 13:30 UTC (permalink / raw)
To: intel-gfx, intel-xe; +Cc: jani.nikula
In preparation for creating a dedicated display module, remove the
display kunit tests from xe. They were duplicated between i915 and xe,
and still remain in i915 after this, and will be migrated from i915 to
the dedicated module in subsequent changes.
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
---
drivers/gpu/drm/i915/display/intel_dp_link_caps.c | 7 -------
.../gpu/drm/i915/display/intel_dp_link_training.c | 7 -------
drivers/gpu/drm/xe/Makefile | 3 ---
drivers/gpu/drm/xe/display/tests/Makefile | 13 -------------
4 files changed, 30 deletions(-)
delete mode 100644 drivers/gpu/drm/xe/display/tests/Makefile
diff --git a/drivers/gpu/drm/i915/display/intel_dp_link_caps.c b/drivers/gpu/drm/i915/display/intel_dp_link_caps.c
index abec3e2519ca..f8b7a23987b7 100644
--- a/drivers/gpu/drm/i915/display/intel_dp_link_caps.c
+++ b/drivers/gpu/drm/i915/display/intel_dp_link_caps.c
@@ -1306,13 +1306,6 @@ const struct intel_dp_link_caps_test_ops i915_display_dp_link_caps_test_ops = {
};
EXPORT_SYMBOL_IF_KUNIT(i915_display_dp_link_caps_test_ops);
-#else
-
-const struct intel_dp_link_caps_test_ops intel_display_dp_link_caps_test_ops = {
- INTEL_DP_LINK_CAPS_TEST_OPS_INIT
-};
-EXPORT_SYMBOL_IF_KUNIT(intel_display_dp_link_caps_test_ops);
-
#endif /* I915 */
#undef INTEL_DP_LINK_CAPS_TEST_OPS_INIT
diff --git a/drivers/gpu/drm/i915/display/intel_dp_link_training.c b/drivers/gpu/drm/i915/display/intel_dp_link_training.c
index 1efc78b329a6..5b84694f7f82 100644
--- a/drivers/gpu/drm/i915/display/intel_dp_link_training.c
+++ b/drivers/gpu/drm/i915/display/intel_dp_link_training.c
@@ -2841,13 +2841,6 @@ const struct intel_dp_link_training_test_ops i915_display_dp_link_training_test_
};
EXPORT_SYMBOL_IF_KUNIT(i915_display_dp_link_training_test_ops);
-#else
-
-const struct intel_dp_link_training_test_ops intel_display_dp_link_training_test_ops = {
- INTEL_DP_LINK_TRAINING_TEST_OPS_INIT
-};
-EXPORT_SYMBOL_IF_KUNIT(intel_display_dp_link_training_test_ops);
-
#endif /* I915 */
#undef INTEL_DP_LINK_TRAINING_TEST_OPS_INIT
diff --git a/drivers/gpu/drm/xe/Makefile b/drivers/gpu/drm/xe/Makefile
index acd32476356c..481f037df053 100644
--- a/drivers/gpu/drm/xe/Makefile
+++ b/drivers/gpu/drm/xe/Makefile
@@ -384,9 +384,6 @@ xe-$(CONFIG_DRM_XE_DP_TUNNEL) += \
obj-$(CONFIG_DRM_XE) += xe.o
obj-$(CONFIG_DRM_XE_KUNIT_TEST) += tests/
-ifeq ($(CONFIG_DRM_XE_DISPLAY),y)
- obj-$(CONFIG_DRM_XE_KUNIT_TEST) += display/tests/
-endif
# header test
hdrtest_find_args := -not -path xe_rtp_helpers.h
diff --git a/drivers/gpu/drm/xe/display/tests/Makefile b/drivers/gpu/drm/xe/display/tests/Makefile
deleted file mode 100644
index c71686458072..000000000000
--- a/drivers/gpu/drm/xe/display/tests/Makefile
+++ /dev/null
@@ -1,13 +0,0 @@
-# SPDX-License-Identifier: GPL-2.0
-
-subdir-ccflags-$(CONFIG_DRM_XE_DISPLAY) += \
- -I$(srctree)/drivers/gpu/drm/i915/display/
-
-# Rule to build display code shared with i915
-$(obj)/i915-display/tests/%.o: $(srctree)/drivers/gpu/drm/i915/display/tests/%.c FORCE
- $(call cmd,force_checksrc)
- $(call if_changed_rule,cc_o_c)
-
-obj-$(CONFIG_DRM_XE_KUNIT_TEST) += xe_display_test.o
-xe_display_test-y = \
- i915-display/tests/intel_dp_link_test.o
--
2.47.3
^ permalink raw reply related [flat|nested] 11+ messages in thread
* [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
` (2 preceding siblings ...)
2026-12-03 13:30 ` [PATCH 3/8] drm/xe/display: remove xe display kunit tests Jani Nikula
@ 2026-12-03 13:30 ` Jani Nikula
2026-12-03 13:30 ` [PATCH 5/8] drm/intel-display: use intel_display for TRACE_SYSTEM Jani Nikula
` (5 subsequent siblings)
9 siblings, 0 replies; 11+ 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] 11+ messages in thread
* [PATCH 5/8] drm/intel-display: use intel_display for TRACE_SYSTEM
2026-12-03 13:30 [PATCH 0/8] drm/intel: add intel-display.ko kernel module Jani Nikula
` (3 preceding siblings ...)
2026-12-03 13:30 ` [PATCH 4/8] drm/intel-display: introduce new kernel module for Intel display Jani Nikula
@ 2026-12-03 13:30 ` Jani Nikula
2026-12-03 13:30 ` [PATCH 6/8] drm/i915/display: remove ifdef I915 Jani Nikula
` (4 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: Jani Nikula @ 2026-12-03 13:30 UTC (permalink / raw)
To: intel-gfx, intel-xe; +Cc: jani.nikula
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
---
drivers/gpu/drm/i915/display/intel_display_trace.h | 6 +-----
1 file changed, 1 insertion(+), 5 deletions(-)
diff --git a/drivers/gpu/drm/i915/display/intel_display_trace.h b/drivers/gpu/drm/i915/display/intel_display_trace.h
index 0cd1eed0bccf..8c9bbbd25ab3 100644
--- a/drivers/gpu/drm/i915/display/intel_display_trace.h
+++ b/drivers/gpu/drm/i915/display/intel_display_trace.h
@@ -4,11 +4,7 @@
*/
#undef TRACE_SYSTEM
-#ifdef I915
-#define TRACE_SYSTEM i915
-#else
-#define TRACE_SYSTEM xe
-#endif
+#define TRACE_SYSTEM intel_display
#if !defined(__INTEL_DISPLAY_TRACE_H__) || defined(TRACE_HEADER_MULTI_READ)
#define __INTEL_DISPLAY_TRACE_H__
--
2.47.3
^ permalink raw reply related [flat|nested] 11+ messages in thread
* [PATCH 6/8] drm/i915/display: remove ifdef I915
2026-12-03 13:30 [PATCH 0/8] drm/intel: add intel-display.ko kernel module Jani Nikula
` (4 preceding siblings ...)
2026-12-03 13:30 ` [PATCH 5/8] drm/intel-display: use intel_display for TRACE_SYSTEM Jani Nikula
@ 2026-12-03 13:30 ` Jani Nikula
2026-12-03 13:30 ` [PATCH 7/8] drm/i915/display: highlight the places that still include from i915 Jani Nikula
` (3 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: Jani Nikula @ 2026-12-03 13:30 UTC (permalink / raw)
To: intel-gfx, intel-xe; +Cc: jani.nikula
$ unifdef -m -D I915 $(git ls-files -- drivers/gpu/drm/i915/display/)
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
---
drivers/gpu/drm/i915/Makefile | 5 -
drivers/gpu/drm/i915/display/Makefile | 3 -
drivers/gpu/drm/i915/display/g4x_dp.h | 18 ---
drivers/gpu/drm/i915/display/g4x_hdmi.h | 13 ---
drivers/gpu/drm/i915/display/hsw_ips.h | 35 ------
drivers/gpu/drm/i915/display/i9xx_plane.h | 27 -----
drivers/gpu/drm/i915/display/i9xx_wm.h | 17 ---
drivers/gpu/drm/i915/display/intel_crt.h | 14 ---
.../gpu/drm/i915/display/intel_dp_link_caps.c | 3 -
.../gpu/drm/i915/display/intel_dp_link_caps.h | 4 -
.../drm/i915/display/intel_dp_link_training.c | 3 -
.../drm/i915/display/intel_dp_link_training.h | 4 -
drivers/gpu/drm/i915/display/intel_dpio_phy.h | 104 ------------------
drivers/gpu/drm/i915/display/intel_dvo.h | 6 -
.../gpu/drm/i915/display/intel_lpe_audio.h | 18 ---
drivers/gpu/drm/i915/display/intel_lvds.h | 19 ----
.../gpu/drm/i915/display/intel_pch_display.h | 53 ---------
.../gpu/drm/i915/display/intel_pch_refclk.h | 23 ----
drivers/gpu/drm/i915/display/intel_sdvo.h | 13 ---
drivers/gpu/drm/i915/display/intel_sprite.h | 8 --
drivers/gpu/drm/i915/display/intel_tv.h | 6 -
drivers/gpu/drm/i915/display/intel_vblank.c | 10 --
.../i915/display/tests/intel_dp_link_test.c | 5 -
drivers/gpu/drm/i915/display/vlv_clock.h | 23 ----
drivers/gpu/drm/i915/display/vlv_dsi.h | 13 ---
drivers/gpu/drm/i915/display/vlv_dsi_pll.h | 14 ---
26 files changed, 461 deletions(-)
diff --git a/drivers/gpu/drm/i915/Makefile b/drivers/gpu/drm/i915/Makefile
index 78d16a573215..e61570fc1ca9 100644
--- a/drivers/gpu/drm/i915/Makefile
+++ b/drivers/gpu/drm/i915/Makefile
@@ -9,11 +9,6 @@ subdir-ccflags-y += $(call cc-option, -Wformat-truncation)
# Enable -Werror in CI and development
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
# it's an all or nothing flag. You cannot selectively disable
# only some tracepoints.
diff --git a/drivers/gpu/drm/i915/display/Makefile b/drivers/gpu/drm/i915/display/Makefile
index 8a3384583898..ef5a1492cae5 100644
--- a/drivers/gpu/drm/i915/display/Makefile
+++ b/drivers/gpu/drm/i915/display/Makefile
@@ -5,9 +5,6 @@
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 \
diff --git a/drivers/gpu/drm/i915/display/g4x_dp.h b/drivers/gpu/drm/i915/display/g4x_dp.h
index 99de690ebe7f..be8d0d126e66 100644
--- a/drivers/gpu/drm/i915/display/g4x_dp.h
+++ b/drivers/gpu/drm/i915/display/g4x_dp.h
@@ -17,29 +17,11 @@ struct intel_display;
struct intel_dp;
struct intel_encoder;
-#ifdef I915
const struct dpll *vlv_get_dpll(struct intel_display *display);
bool g4x_dp_port_enabled(struct intel_display *display,
intel_reg_t dp_reg, enum port port,
enum pipe *pipe);
bool g4x_dp_init(struct intel_display *display,
intel_reg_t output_reg, enum port port);
-#else
-static inline const struct dpll *vlv_get_dpll(struct intel_display *display)
-{
- return NULL;
-}
-static inline bool g4x_dp_port_enabled(struct intel_display *display,
- intel_reg_t dp_reg, int port,
- enum pipe *pipe)
-{
- return false;
-}
-static inline bool g4x_dp_init(struct intel_display *display,
- intel_reg_t output_reg, int port)
-{
- return false;
-}
-#endif
#endif
diff --git a/drivers/gpu/drm/i915/display/g4x_hdmi.h b/drivers/gpu/drm/i915/display/g4x_hdmi.h
index 7586b1a6e0de..fe23a3792fe5 100644
--- a/drivers/gpu/drm/i915/display/g4x_hdmi.h
+++ b/drivers/gpu/drm/i915/display/g4x_hdmi.h
@@ -15,22 +15,9 @@ struct drm_atomic_commit;
struct drm_connector;
struct intel_display;
-#ifdef I915
bool g4x_hdmi_init(struct intel_display *display,
intel_reg_t hdmi_reg, enum port port);
int g4x_hdmi_connector_atomic_check(struct drm_connector *connector,
struct drm_atomic_commit *state);
-#else
-static inline bool g4x_hdmi_init(struct intel_display *display,
- intel_reg_t hdmi_reg, int port)
-{
- return false;
-}
-static inline int g4x_hdmi_connector_atomic_check(struct drm_connector *connector,
- struct drm_atomic_commit *state)
-{
- return 0;
-}
-#endif
#endif
diff --git a/drivers/gpu/drm/i915/display/hsw_ips.h b/drivers/gpu/drm/i915/display/hsw_ips.h
index 7af12f88a8ce..376eff769876 100644
--- a/drivers/gpu/drm/i915/display/hsw_ips.h
+++ b/drivers/gpu/drm/i915/display/hsw_ips.h
@@ -12,7 +12,6 @@ struct intel_atomic_state;
struct intel_crtc;
struct intel_crtc_state;
-#ifdef I915
bool hsw_ips_disable(const struct intel_crtc_state *crtc_state);
bool hsw_ips_pre_update(struct intel_atomic_state *state,
struct intel_crtc *crtc);
@@ -24,39 +23,5 @@ int hsw_ips_compute_config(struct intel_atomic_state *state,
struct intel_crtc *crtc);
void hsw_ips_get_config(struct intel_crtc_state *crtc_state);
void hsw_ips_crtc_debugfs_add(struct intel_crtc *crtc);
-#else
-static inline bool hsw_ips_disable(const struct intel_crtc_state *crtc_state)
-{
- return false;
-}
-static inline bool hsw_ips_pre_update(struct intel_atomic_state *state,
- struct intel_crtc *crtc)
-{
- return false;
-}
-static inline void hsw_ips_post_update(struct intel_atomic_state *state,
- struct intel_crtc *crtc)
-{
-}
-static inline bool hsw_crtc_supports_ips(struct intel_crtc *crtc)
-{
- return false;
-}
-static inline int hsw_ips_min_cdclk(const struct intel_crtc_state *crtc_state)
-{
- return 0;
-}
-static inline int hsw_ips_compute_config(struct intel_atomic_state *state,
- struct intel_crtc *crtc)
-{
- return 0;
-}
-static inline void hsw_ips_get_config(struct intel_crtc_state *crtc_state)
-{
-}
-static inline void hsw_ips_crtc_debugfs_add(struct intel_crtc *crtc)
-{
-}
-#endif
#endif /* __HSW_IPS_H__ */
diff --git a/drivers/gpu/drm/i915/display/i9xx_plane.h b/drivers/gpu/drm/i915/display/i9xx_plane.h
index ec78bf4dd35e..301e5be14ad7 100644
--- a/drivers/gpu/drm/i915/display/i9xx_plane.h
+++ b/drivers/gpu/drm/i915/display/i9xx_plane.h
@@ -17,7 +17,6 @@ struct intel_initial_plane_config;
struct intel_plane;
struct intel_plane_state;
-#ifdef I915
unsigned int i965_plane_max_stride(struct intel_plane *plane,
const struct drm_format_info *info,
u64 modifier, unsigned int rotation);
@@ -34,31 +33,5 @@ void i9xx_get_initial_plane_config(struct intel_crtc *crtc,
struct intel_initial_plane_config *plane_config);
bool i9xx_fixup_initial_plane_config(struct intel_crtc *crtc,
const struct intel_initial_plane_config *plane_config);
-#else
-static inline unsigned int i965_plane_max_stride(struct intel_plane *plane,
- u32 pixel_format, u64 modifier,
- unsigned int rotation)
-{
- return 0;
-}
-static inline int i9xx_check_plane_surface(struct intel_plane_state *plane_state)
-{
- return 0;
-}
-static inline struct intel_plane *
-intel_primary_plane_create(struct intel_display *display, int pipe)
-{
- return NULL;
-}
-static inline void i9xx_get_initial_plane_config(struct intel_crtc *crtc,
- struct intel_initial_plane_config *plane_config)
-{
-}
-static inline bool i9xx_fixup_initial_plane_config(struct intel_crtc *crtc,
- const struct intel_initial_plane_config *plane_config)
-{
- return false;
-}
-#endif
#endif
diff --git a/drivers/gpu/drm/i915/display/i9xx_wm.h b/drivers/gpu/drm/i915/display/i9xx_wm.h
index 7bb363b2a756..61d58909184c 100644
--- a/drivers/gpu/drm/i915/display/i9xx_wm.h
+++ b/drivers/gpu/drm/i915/display/i9xx_wm.h
@@ -12,26 +12,9 @@ struct intel_crtc_state;
struct intel_display;
struct intel_plane_state;
-#ifdef I915
bool ilk_disable_cxsr(struct intel_display *display);
void ilk_wm_sanitize(struct intel_display *display);
bool intel_set_memory_cxsr(struct intel_display *display, bool enable);
void i9xx_wm_init(struct intel_display *display);
-#else
-static inline bool ilk_disable_cxsr(struct intel_display *display)
-{
- return false;
-}
-static inline void ilk_wm_sanitize(struct intel_display *display)
-{
-}
-static inline bool intel_set_memory_cxsr(struct intel_display *display, bool enable)
-{
- return false;
-}
-static inline void i9xx_wm_init(struct intel_display *display)
-{
-}
-#endif
#endif /* __I9XX_WM_H__ */
diff --git a/drivers/gpu/drm/i915/display/intel_crt.h b/drivers/gpu/drm/i915/display/intel_crt.h
index 7d0ae8d8c28d..704ca25198ce 100644
--- a/drivers/gpu/drm/i915/display/intel_crt.h
+++ b/drivers/gpu/drm/i915/display/intel_crt.h
@@ -12,23 +12,9 @@ enum pipe;
struct drm_encoder;
struct intel_display;
-#ifdef I915
bool intel_crt_port_enabled(struct intel_display *display,
intel_reg_t adpa_reg, enum pipe *pipe);
void intel_crt_init(struct intel_display *display);
void intel_crt_reset(struct drm_encoder *encoder);
-#else
-static inline bool intel_crt_port_enabled(struct intel_display *display,
- intel_reg_t adpa_reg, enum pipe *pipe)
-{
- return false;
-}
-static inline void intel_crt_init(struct intel_display *display)
-{
-}
-static inline void intel_crt_reset(struct drm_encoder *encoder)
-{
-}
-#endif
#endif /* __INTEL_CRT_H__ */
diff --git a/drivers/gpu/drm/i915/display/intel_dp_link_caps.c b/drivers/gpu/drm/i915/display/intel_dp_link_caps.c
index f8b7a23987b7..ef6388aa6d4c 100644
--- a/drivers/gpu/drm/i915/display/intel_dp_link_caps.c
+++ b/drivers/gpu/drm/i915/display/intel_dp_link_caps.c
@@ -1299,15 +1299,12 @@ void intel_dp_link_caps_cleanup(struct intel_dp_link_caps *link_caps)
#define INTEL_DP_LINK_CAPS_TEST_OPS_INIT \
INTEL_DP_LINK_CAPS_TEST_OPS_MEMBERS(__INIT_MEMBER)
-#ifdef I915
const struct intel_dp_link_caps_test_ops i915_display_dp_link_caps_test_ops = {
INTEL_DP_LINK_CAPS_TEST_OPS_INIT
};
EXPORT_SYMBOL_IF_KUNIT(i915_display_dp_link_caps_test_ops);
-#endif /* I915 */
-
#undef INTEL_DP_LINK_CAPS_TEST_OPS_INIT
#undef __INIT_MEMBER
diff --git a/drivers/gpu/drm/i915/display/intel_dp_link_caps.h b/drivers/gpu/drm/i915/display/intel_dp_link_caps.h
index a0a88efb9546..4b199a1eb7a4 100644
--- a/drivers/gpu/drm/i915/display/intel_dp_link_caps.h
+++ b/drivers/gpu/drm/i915/display/intel_dp_link_caps.h
@@ -184,11 +184,7 @@ struct intel_dp_link_caps_test_ops {
#undef INTEL_DP_LINK_CAPS_TEST_OPS_DECLARE
#undef __DECLARE_MEMBER
-#ifdef I915
extern const struct intel_dp_link_caps_test_ops i915_display_dp_link_caps_test_ops;
-#else
-extern const struct intel_dp_link_caps_test_ops intel_display_dp_link_caps_test_ops;
-#endif /* I915 */
#endif /* CONFIG_KUNIT */
diff --git a/drivers/gpu/drm/i915/display/intel_dp_link_training.c b/drivers/gpu/drm/i915/display/intel_dp_link_training.c
index 5b84694f7f82..1636dbd59c0e 100644
--- a/drivers/gpu/drm/i915/display/intel_dp_link_training.c
+++ b/drivers/gpu/drm/i915/display/intel_dp_link_training.c
@@ -2834,15 +2834,12 @@ void intel_dp_link_training_cleanup(struct intel_dp_link_training *link_training
#define INTEL_DP_LINK_TRAINING_TEST_OPS_INIT \
INTEL_DP_LINK_TRAINING_TEST_OPS_MEMBERS(__INIT_MEMBER)
-#ifdef I915
const struct intel_dp_link_training_test_ops i915_display_dp_link_training_test_ops = {
INTEL_DP_LINK_TRAINING_TEST_OPS_INIT
};
EXPORT_SYMBOL_IF_KUNIT(i915_display_dp_link_training_test_ops);
-#endif /* I915 */
-
#undef INTEL_DP_LINK_TRAINING_TEST_OPS_INIT
#undef __INIT_MEMBER
diff --git a/drivers/gpu/drm/i915/display/intel_dp_link_training.h b/drivers/gpu/drm/i915/display/intel_dp_link_training.h
index 581f2361fdfd..a2fd0c1ca789 100644
--- a/drivers/gpu/drm/i915/display/intel_dp_link_training.h
+++ b/drivers/gpu/drm/i915/display/intel_dp_link_training.h
@@ -94,11 +94,7 @@ struct intel_dp_link_training_test_ops {
#undef INTEL_DP_LINK_TRAINING_TEST_OPS_DECLARE
#undef __DECLARE_MEMBER
-#ifdef I915
extern const struct intel_dp_link_training_test_ops i915_display_dp_link_training_test_ops;
-#else
-extern const struct intel_dp_link_training_test_ops intel_display_dp_link_training_test_ops;
-#endif /* I915 */
#endif /* CONFIG_KUNIT */
diff --git a/drivers/gpu/drm/i915/display/intel_dpio_phy.h b/drivers/gpu/drm/i915/display/intel_dpio_phy.h
index 35baede3d6ad..b7a2b00ecb84 100644
--- a/drivers/gpu/drm/i915/display/intel_dpio_phy.h
+++ b/drivers/gpu/drm/i915/display/intel_dpio_phy.h
@@ -26,7 +26,6 @@ enum dpio_phy {
DPIO_PHY2,
};
-#ifdef I915
void bxt_port_to_phy_channel(struct intel_display *display, enum port port,
enum dpio_phy *phy, enum dpio_channel *ch);
void bxt_dpio_phy_set_signal_levels(struct intel_encoder *encoder,
@@ -74,108 +73,5 @@ void vlv_phy_reset_lanes(struct intel_encoder *encoder,
const struct intel_crtc_state *old_crtc_state);
void vlv_wait_port_ready(struct intel_encoder *encoder,
unsigned int expected_mask);
-#else
-static inline void bxt_port_to_phy_channel(struct intel_display *display, enum port port,
- enum dpio_phy *phy, enum dpio_channel *ch)
-{
-}
-static inline void bxt_dpio_phy_set_signal_levels(struct intel_encoder *encoder,
- const struct intel_crtc_state *crtc_state)
-{
-}
-static inline void bxt_dpio_phy_init(struct intel_display *display, enum dpio_phy phy)
-{
-}
-static inline void bxt_dpio_phy_uninit(struct intel_display *display, enum dpio_phy phy)
-{
-}
-static inline bool bxt_dpio_phy_is_enabled(struct intel_display *display,
- enum dpio_phy phy)
-{
- return false;
-}
-static inline bool bxt_dpio_phy_verify_state(struct intel_display *display,
- enum dpio_phy phy)
-{
- return true;
-}
-static inline u8 bxt_dpio_phy_calc_lane_lat_optim_mask(u8 lane_count)
-{
- return 0;
-}
-static inline void bxt_dpio_phy_set_lane_optim_mask(struct intel_encoder *encoder,
- u8 lane_lat_optim_mask)
-{
-}
-static inline u8 bxt_dpio_phy_get_lane_lat_optim_mask(struct intel_encoder *encoder)
-{
- return 0;
-}
-static inline enum dpio_channel vlv_dig_port_to_channel(struct intel_digital_port *dig_port)
-{
- return DPIO_CH0;
-}
-static inline enum dpio_phy vlv_dig_port_to_phy(struct intel_digital_port *dig_port)
-{
- return DPIO_PHY0;
-}
-static inline enum dpio_phy vlv_pipe_to_phy(enum pipe pipe)
-{
- return DPIO_PHY0;
-}
-static inline enum dpio_channel vlv_pipe_to_channel(enum pipe pipe)
-{
- return DPIO_CH0;
-}
-static inline void chv_set_phy_signal_level(struct intel_encoder *encoder,
- const struct intel_crtc_state *crtc_state,
- u32 deemph_reg_value, u32 margin_reg_value,
- bool uniq_trans_scale)
-{
-}
-static inline void chv_data_lane_soft_reset(struct intel_encoder *encoder,
- const struct intel_crtc_state *crtc_state,
- bool reset)
-{
-}
-static inline void chv_phy_pre_pll_enable(struct intel_encoder *encoder,
- const struct intel_crtc_state *crtc_state)
-{
-}
-static inline void chv_phy_pre_encoder_enable(struct intel_encoder *encoder,
- const struct intel_crtc_state *crtc_state)
-{
-}
-static inline void chv_phy_release_cl2_override(struct intel_encoder *encoder)
-{
-}
-static inline void chv_phy_post_pll_disable(struct intel_encoder *encoder,
- const struct intel_crtc_state *old_crtc_state)
-{
-}
-
-static inline void vlv_set_phy_signal_level(struct intel_encoder *encoder,
- const struct intel_crtc_state *crtc_state,
- u32 demph_reg_value, u32 preemph_reg_value,
- u32 uniqtranscale_reg_value, u32 tx3_demph)
-{
-}
-static inline void vlv_phy_pre_pll_enable(struct intel_encoder *encoder,
- const struct intel_crtc_state *crtc_state)
-{
-}
-static inline void vlv_phy_pre_encoder_enable(struct intel_encoder *encoder,
- const struct intel_crtc_state *crtc_state)
-{
-}
-static inline void vlv_phy_reset_lanes(struct intel_encoder *encoder,
- const struct intel_crtc_state *old_crtc_state)
-{
-}
-static inline void vlv_wait_port_ready(struct intel_encoder *encoder,
- unsigned int expected_mask)
-{
-}
-#endif
#endif /* __INTEL_DPIO_PHY_H__ */
diff --git a/drivers/gpu/drm/i915/display/intel_dvo.h b/drivers/gpu/drm/i915/display/intel_dvo.h
index 83776552fc87..e1241a26ecc1 100644
--- a/drivers/gpu/drm/i915/display/intel_dvo.h
+++ b/drivers/gpu/drm/i915/display/intel_dvo.h
@@ -8,12 +8,6 @@
struct intel_display;
-#ifdef I915
void intel_dvo_init(struct intel_display *display);
-#else
-static inline void intel_dvo_init(struct intel_display *display)
-{
-}
-#endif
#endif /* __INTEL_DVO_H__ */
diff --git a/drivers/gpu/drm/i915/display/intel_lpe_audio.h b/drivers/gpu/drm/i915/display/intel_lpe_audio.h
index 5234e11fd662..451769a68e43 100644
--- a/drivers/gpu/drm/i915/display/intel_lpe_audio.h
+++ b/drivers/gpu/drm/i915/display/intel_lpe_audio.h
@@ -12,29 +12,11 @@ enum port;
enum transcoder;
struct intel_display;
-#ifdef I915
int intel_lpe_audio_init(struct intel_display *display);
void intel_lpe_audio_teardown(struct intel_display *display);
void intel_lpe_audio_irq_handler(struct intel_display *display);
void intel_lpe_audio_notify(struct intel_display *display,
enum transcoder cpu_transcoder, enum port port,
const void *eld, int ls_clock, bool dp_output);
-#else
-static inline int intel_lpe_audio_init(struct intel_display *display)
-{
- return -ENODEV;
-}
-static inline void intel_lpe_audio_teardown(struct intel_display *display)
-{
-}
-static inline void intel_lpe_audio_irq_handler(struct intel_display *display)
-{
-}
-static inline void intel_lpe_audio_notify(struct intel_display *display,
- enum transcoder cpu_transcoder, enum port port,
- const void *eld, int ls_clock, bool dp_output)
-{
-}
-#endif
#endif /* __INTEL_LPE_AUDIO_H__ */
diff --git a/drivers/gpu/drm/i915/display/intel_lvds.h b/drivers/gpu/drm/i915/display/intel_lvds.h
index 6ac70d5e8ce6..9b4c70693b4b 100644
--- a/drivers/gpu/drm/i915/display/intel_lvds.h
+++ b/drivers/gpu/drm/i915/display/intel_lvds.h
@@ -13,29 +13,10 @@
enum pipe;
struct intel_display;
-#ifdef I915
bool intel_lvds_port_enabled(struct intel_display *display,
intel_reg_t lvds_reg, enum pipe *pipe);
void intel_lvds_init(struct intel_display *display);
struct intel_encoder *intel_get_lvds_encoder(struct intel_display *display);
bool intel_is_dual_link_lvds(struct intel_display *display);
-#else
-static inline bool intel_lvds_port_enabled(struct intel_display *display,
- intel_reg_t lvds_reg, enum pipe *pipe)
-{
- return false;
-}
-static inline void intel_lvds_init(struct intel_display *display)
-{
-}
-static inline struct intel_encoder *intel_get_lvds_encoder(struct intel_display *display)
-{
- return NULL;
-}
-static inline bool intel_is_dual_link_lvds(struct intel_display *display)
-{
- return false;
-}
-#endif
#endif /* __INTEL_LVDS_H__ */
diff --git a/drivers/gpu/drm/i915/display/intel_pch_display.h b/drivers/gpu/drm/i915/display/intel_pch_display.h
index cd6b3ed05887..3d409d0f5655 100644
--- a/drivers/gpu/drm/i915/display/intel_pch_display.h
+++ b/drivers/gpu/drm/i915/display/intel_pch_display.h
@@ -15,7 +15,6 @@ struct intel_crtc_state;
struct intel_display;
struct intel_link_m_n;
-#ifdef I915
bool intel_has_pch_trancoder(struct intel_display *display,
enum pipe pch_transcoder);
enum pipe intel_crtc_pch_transcoder(struct intel_crtc *crtc);
@@ -42,57 +41,5 @@ void intel_pch_transcoder_get_m2_n2(struct intel_crtc *crtc,
struct intel_link_m_n *m_n);
void intel_pch_sanitize(struct intel_display *display);
-#else
-static inline bool intel_has_pch_trancoder(struct intel_display *display,
- enum pipe pch_transcoder)
-{
- return false;
-}
-static inline int intel_crtc_pch_transcoder(struct intel_crtc *crtc)
-{
- return 0;
-}
-static inline void ilk_pch_pre_enable(struct intel_atomic_state *state,
- struct intel_crtc *crtc)
-{
-}
-static inline void ilk_pch_enable(struct intel_atomic_state *state,
- struct intel_crtc *crtc)
-{
-}
-static inline void ilk_pch_disable(struct intel_atomic_state *state,
- struct intel_crtc *crtc)
-{
-}
-static inline void ilk_pch_post_disable(struct intel_atomic_state *state,
- struct intel_crtc *crtc)
-{
-}
-static inline void ilk_pch_get_config(struct intel_crtc_state *crtc_state)
-{
-}
-static inline void lpt_pch_enable(struct intel_atomic_state *state,
- struct intel_crtc *crtc)
-{
-}
-static inline void lpt_pch_disable(struct intel_atomic_state *state,
- struct intel_crtc *crtc)
-{
-}
-static inline void lpt_pch_get_config(struct intel_crtc_state *crtc_state)
-{
-}
-static inline void intel_pch_transcoder_get_m1_n1(struct intel_crtc *crtc,
- struct intel_link_m_n *m_n)
-{
-}
-static inline void intel_pch_transcoder_get_m2_n2(struct intel_crtc *crtc,
- struct intel_link_m_n *m_n)
-{
-}
-static inline void intel_pch_sanitize(struct intel_display *display)
-{
-}
-#endif
#endif
diff --git a/drivers/gpu/drm/i915/display/intel_pch_refclk.h b/drivers/gpu/drm/i915/display/intel_pch_refclk.h
index 25cc53c568bc..756923539806 100644
--- a/drivers/gpu/drm/i915/display/intel_pch_refclk.h
+++ b/drivers/gpu/drm/i915/display/intel_pch_refclk.h
@@ -11,7 +11,6 @@
struct intel_crtc_state;
struct intel_display;
-#ifdef I915
void lpt_program_iclkip(const struct intel_crtc_state *crtc_state);
void lpt_disable_iclkip(struct intel_display *display);
int lpt_get_iclkip(struct intel_display *display);
@@ -19,27 +18,5 @@ int lpt_iclkip(const struct intel_crtc_state *crtc_state);
void intel_init_pch_refclk(struct intel_display *display);
void lpt_disable_clkout_dp(struct intel_display *display);
-#else
-static inline void lpt_program_iclkip(const struct intel_crtc_state *crtc_state)
-{
-}
-static inline void lpt_disable_iclkip(struct intel_display *display)
-{
-}
-static inline int lpt_get_iclkip(struct intel_display *display)
-{
- return 0;
-}
-static inline int lpt_iclkip(const struct intel_crtc_state *crtc_state)
-{
- return 0;
-}
-static inline void intel_init_pch_refclk(struct intel_display *display)
-{
-}
-static inline void lpt_disable_clkout_dp(struct intel_display *display)
-{
-}
-#endif
#endif
diff --git a/drivers/gpu/drm/i915/display/intel_sdvo.h b/drivers/gpu/drm/i915/display/intel_sdvo.h
index d1e1083de037..61edaab85fe8 100644
--- a/drivers/gpu/drm/i915/display/intel_sdvo.h
+++ b/drivers/gpu/drm/i915/display/intel_sdvo.h
@@ -14,22 +14,9 @@ enum pipe;
enum port;
struct intel_display;
-#ifdef I915
bool intel_sdvo_port_enabled(struct intel_display *display,
intel_reg_t sdvo_reg, enum pipe *pipe);
bool intel_sdvo_init(struct intel_display *display,
intel_reg_t reg, enum port port);
-#else
-static inline bool intel_sdvo_port_enabled(struct intel_display *display,
- intel_reg_t sdvo_reg, enum pipe *pipe)
-{
- return false;
-}
-static inline bool intel_sdvo_init(struct intel_display *display,
- intel_reg_t reg, enum port port)
-{
- return false;
-}
-#endif
#endif /* __INTEL_SDVO_H__ */
diff --git a/drivers/gpu/drm/i915/display/intel_sprite.h b/drivers/gpu/drm/i915/display/intel_sprite.h
index c33a2808da8c..98caae19f4bf 100644
--- a/drivers/gpu/drm/i915/display/intel_sprite.h
+++ b/drivers/gpu/drm/i915/display/intel_sprite.h
@@ -13,7 +13,6 @@ struct intel_display;
struct intel_plane_state;
enum pipe;
-#ifdef I915
struct intel_plane *intel_sprite_plane_create(struct intel_display *display,
enum pipe pipe, int plane);
int intel_plane_check_src_coordinates(struct intel_plane_state *plane_state);
@@ -25,12 +24,5 @@ int hsw_plane_min_cdclk(const struct intel_crtc_state *crtc_state,
const struct intel_plane_state *plane_state);
int vlv_plane_min_cdclk(const struct intel_crtc_state *crtc_state,
const struct intel_plane_state *plane_state);
-#else
-static inline struct intel_plane *intel_sprite_plane_create(struct intel_display *display,
- int pipe, int plane)
-{
- return NULL;
-}
-#endif
#endif /* __INTEL_SPRITE_H__ */
diff --git a/drivers/gpu/drm/i915/display/intel_tv.h b/drivers/gpu/drm/i915/display/intel_tv.h
index 0f280f69e73c..a92b63c0a237 100644
--- a/drivers/gpu/drm/i915/display/intel_tv.h
+++ b/drivers/gpu/drm/i915/display/intel_tv.h
@@ -8,12 +8,6 @@
struct intel_display;
-#ifdef I915
void intel_tv_init(struct intel_display *display);
-#else
-static inline void intel_tv_init(struct intel_display *display)
-{
-}
-#endif
#endif /* __INTEL_TV_H__ */
diff --git a/drivers/gpu/drm/i915/display/intel_vblank.c b/drivers/gpu/drm/i915/display/intel_vblank.c
index 114ff43381b5..4a994396de4c 100644
--- a/drivers/gpu/drm/i915/display/intel_vblank.c
+++ b/drivers/gpu/drm/i915/display/intel_vblank.c
@@ -286,7 +286,6 @@ static int __intel_get_crtc_scanline(struct intel_crtc *crtc)
* all register accesses to the same cacheline to be serialized,
* otherwise they may hang.
*/
-#ifdef I915
static void intel_vblank_section_enter(struct intel_display *display)
__acquires(display->mmio.lock)
{
@@ -298,15 +297,6 @@ static void intel_vblank_section_exit(struct intel_display *display)
{
spin_unlock(&display->mmio.lock);
}
-#else
-static void intel_vblank_section_enter(struct intel_display *display)
-{
-}
-
-static void intel_vblank_section_exit(struct intel_display *display)
-{
-}
-#endif
static bool i915_get_crtc_scanoutpos(struct drm_crtc *_crtc,
bool in_vblank_irq,
diff --git a/drivers/gpu/drm/i915/display/tests/intel_dp_link_test.c b/drivers/gpu/drm/i915/display/tests/intel_dp_link_test.c
index 67c6fe9f1812..66beb2b11a0e 100644
--- a/drivers/gpu/drm/i915/display/tests/intel_dp_link_test.c
+++ b/drivers/gpu/drm/i915/display/tests/intel_dp_link_test.c
@@ -1379,13 +1379,8 @@ static void intel_dp_link_test_exit(struct kunit *test)
static int intel_dp_link_test_suite_init(struct kunit_suite *test_suite)
{
-#ifdef I915
test_ctx.link_caps_ops = &i915_display_dp_link_caps_test_ops;
test_ctx.link_training_ops = &i915_display_dp_link_training_test_ops;
-#else
- test_ctx.link_caps_ops = &intel_display_dp_link_caps_test_ops;
- test_ctx.link_training_ops = &intel_display_dp_link_training_test_ops;
-#endif
prandom_seed_state(&test_ctx.rnd, 0);
return 0;
diff --git a/drivers/gpu/drm/i915/display/vlv_clock.h b/drivers/gpu/drm/i915/display/vlv_clock.h
index 5742ed3c628d..cf6686da985b 100644
--- a/drivers/gpu/drm/i915/display/vlv_clock.h
+++ b/drivers/gpu/drm/i915/display/vlv_clock.h
@@ -6,33 +6,10 @@
struct drm_device;
-#ifdef I915
int vlv_clock_get_hpll_vco(struct drm_device *drm);
int vlv_clock_get_hrawclk(struct drm_device *drm);
int vlv_clock_get_czclk(struct drm_device *drm);
int vlv_clock_get_cdclk(struct drm_device *drm);
int vlv_clock_get_gpll(struct drm_device *drm);
-#else
-static inline int vlv_clock_get_hpll_vco(struct drm_device *drm)
-{
- return 0;
-}
-static inline int vlv_clock_get_hrawclk(struct drm_device *drm)
-{
- return 0;
-}
-static inline int vlv_clock_get_czclk(struct drm_device *drm)
-{
- return 0;
-}
-static inline int vlv_clock_get_cdclk(struct drm_device *drm)
-{
- return 0;
-}
-static inline int vlv_clock_get_gpll(struct drm_device *drm)
-{
- return 0;
-}
-#endif
#endif /* __VLV_CLOCK_H__ */
diff --git a/drivers/gpu/drm/i915/display/vlv_dsi.h b/drivers/gpu/drm/i915/display/vlv_dsi.h
index ff349b5876c2..edf6b9ce2ece 100644
--- a/drivers/gpu/drm/i915/display/vlv_dsi.h
+++ b/drivers/gpu/drm/i915/display/vlv_dsi.h
@@ -11,21 +11,8 @@ struct intel_crtc_state;
struct intel_display;
struct intel_dsi;
-#ifdef I915
void vlv_dsi_wait_for_fifo_empty(struct intel_dsi *intel_dsi, enum port port);
int vlv_dsi_min_cdclk(const struct intel_crtc_state *crtc_state);
void vlv_dsi_init(struct intel_display *display);
-#else
-static inline void vlv_dsi_wait_for_fifo_empty(struct intel_dsi *intel_dsi, enum port port)
-{
-}
-static inline int vlv_dsi_min_cdclk(const struct intel_crtc_state *crtc_state)
-{
- return 0;
-}
-static inline void vlv_dsi_init(struct intel_display *display)
-{
-}
-#endif
#endif /* __VLV_DSI_H__ */
diff --git a/drivers/gpu/drm/i915/display/vlv_dsi_pll.h b/drivers/gpu/drm/i915/display/vlv_dsi_pll.h
index f26e31a7dd69..71e4ef4d36ce 100644
--- a/drivers/gpu/drm/i915/display/vlv_dsi_pll.h
+++ b/drivers/gpu/drm/i915/display/vlv_dsi_pll.h
@@ -31,22 +31,8 @@ u32 bxt_dsi_get_pclk(struct intel_encoder *encoder,
struct intel_crtc_state *config);
void bxt_dsi_reset_clocks(struct intel_encoder *encoder, enum port port);
-#ifdef I915
bool bxt_dsi_pll_is_enabled(struct intel_display *display);
void assert_dsi_pll_enabled(struct intel_display *display);
void assert_dsi_pll_disabled(struct intel_display *display);
-#else
-static inline bool bxt_dsi_pll_is_enabled(struct intel_display *display)
-{
- return false;
-}
-static inline void assert_dsi_pll_enabled(struct intel_display *display)
-{
-}
-
-static inline void assert_dsi_pll_disabled(struct intel_display *display)
-{
-}
-#endif
#endif /* __VLV_DSI_PLL_H__ */
--
2.47.3
^ permalink raw reply related [flat|nested] 11+ messages in thread
* [PATCH 7/8] drm/i915/display: highlight the places that still include from i915
2026-12-03 13:30 [PATCH 0/8] drm/intel: add intel-display.ko kernel module Jani Nikula
` (5 preceding siblings ...)
2026-12-03 13:30 ` [PATCH 6/8] drm/i915/display: remove ifdef I915 Jani Nikula
@ 2026-12-03 13:30 ` Jani Nikula
2026-12-03 13:31 ` [PATCH 8/8] drm/xe: remove compat i915 headers Jani Nikula
` (2 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: Jani Nikula @ 2026-12-03 13:30 UTC (permalink / raw)
To: intel-gfx, intel-xe; +Cc: jani.nikula
Not to be merged.
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
---
drivers/gpu/drm/i915/display/Makefile | 4 ----
drivers/gpu/drm/i915/display/intel_display_reg_defs.h | 2 +-
2 files changed, 1 insertion(+), 5 deletions(-)
diff --git a/drivers/gpu/drm/i915/display/Makefile b/drivers/gpu/drm/i915/display/Makefile
index ef5a1492cae5..4038b259d0c8 100644
--- a/drivers/gpu/drm/i915/display/Makefile
+++ b/drivers/gpu/drm/i915/display/Makefile
@@ -1,10 +1,6 @@
# SPDX-License-Identifier: GPL-2.0
# Copyright © 2026 Intel Corporation
-# FIXME: Remove this.
-subdir-ccflags-y += \
- -I$(srctree)/drivers/gpu/drm/i915/
-
# modesetting core code
intel-display-y += \
hsw_ips.o \
diff --git a/drivers/gpu/drm/i915/display/intel_display_reg_defs.h b/drivers/gpu/drm/i915/display/intel_display_reg_defs.h
index d50bcebd58e5..88d67795b6bd 100644
--- a/drivers/gpu/drm/i915/display/intel_display_reg_defs.h
+++ b/drivers/gpu/drm/i915/display/intel_display_reg_defs.h
@@ -6,7 +6,7 @@
#ifndef __INTEL_DISPLAY_REG_DEFS_H__
#define __INTEL_DISPLAY_REG_DEFS_H__
-#include "i915_reg_defs.h"
+#include "../i915_reg_defs.h" /* FIXME */
typedef i915_reg_t intel_reg_t;
--
2.47.3
^ permalink raw reply related [flat|nested] 11+ messages in thread
* [PATCH 8/8] drm/xe: remove compat i915 headers
2026-12-03 13:30 [PATCH 0/8] drm/intel: add intel-display.ko kernel module Jani Nikula
` (6 preceding siblings ...)
2026-12-03 13:30 ` [PATCH 7/8] drm/i915/display: highlight the places that still include from i915 Jani Nikula
@ 2026-12-03 13:31 ` Jani Nikula
2026-12-03 14:58 ` ✗ CI.checkpatch: warning for drm/intel: add intel-display.ko kernel module Patchwork
2026-12-03 14:59 ` ✗ CI.KUnit: failure " Patchwork
9 siblings, 0 replies; 11+ messages in thread
From: Jani Nikula @ 2026-12-03 13:31 UTC (permalink / raw)
To: intel-gfx, intel-xe; +Cc: jani.nikula
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
---
drivers/gpu/drm/xe/Makefile | 3 +--
| 6 ------
2 files changed, 1 insertion(+), 8 deletions(-)
delete mode 100644 drivers/gpu/drm/xe/compat-i915-headers/i915_reg_defs.h
diff --git a/drivers/gpu/drm/xe/Makefile b/drivers/gpu/drm/xe/Makefile
index 3c06c3a5bc99..f766e5965172 100644
--- a/drivers/gpu/drm/xe/Makefile
+++ b/drivers/gpu/drm/xe/Makefile
@@ -216,7 +216,6 @@ endif
# i915 Display compat #defines and #includes
subdir-ccflags-$(CONFIG_DRM_XE_DISPLAY) += \
- -I$(src)/compat-i915-headers \
-I$(srctree)/drivers/gpu/drm/i915/display/
# Display code specific to xe
@@ -253,7 +252,7 @@ obj-$(CONFIG_DRM_XE_KUNIT_TEST) += tests/
# header test
hdrtest_find_args := -not -path xe_rtp_helpers.h
ifneq ($(CONFIG_DRM_XE_DISPLAY),y)
- hdrtest_find_args += -not -path display/\* -not -path compat-i915-headers/\* -not -path xe_display.h
+ hdrtest_find_args += -not -path display/\* -not -path xe_display.h
endif
always-$(CONFIG_DRM_XE_WERROR) += \
diff --git a/drivers/gpu/drm/xe/compat-i915-headers/i915_reg_defs.h b/drivers/gpu/drm/xe/compat-i915-headers/i915_reg_defs.h
deleted file mode 100644
index 723279c975b1..000000000000
--- a/drivers/gpu/drm/xe/compat-i915-headers/i915_reg_defs.h
+++ /dev/null
@@ -1,6 +0,0 @@
-/* SPDX-License-Identifier: MIT */
-/*
- * Copyright © 2023 Intel Corporation
- */
-
-#include "../../i915/i915_reg_defs.h"
--
2.47.3
^ permalink raw reply related [flat|nested] 11+ messages in thread
* ✗ CI.checkpatch: warning for drm/intel: add intel-display.ko kernel module
2026-12-03 13:30 [PATCH 0/8] drm/intel: add intel-display.ko kernel module Jani Nikula
` (7 preceding siblings ...)
2026-12-03 13:31 ` [PATCH 8/8] drm/xe: remove compat i915 headers Jani Nikula
@ 2026-12-03 14:58 ` Patchwork
2026-12-03 14:59 ` ✗ CI.KUnit: failure " Patchwork
9 siblings, 0 replies; 11+ messages in thread
From: Patchwork @ 2026-12-03 14:58 UTC (permalink / raw)
To: Jani Nikula; +Cc: intel-xe
== Series Details ==
Series: drm/intel: add intel-display.ko kernel module
URL : https://patchwork.freedesktop.org/series/180420/
State : warning
== Summary ==
+ KERNEL=/kernel
+ git clone https://gitlab.freedesktop.org/drm/maintainer-tools mt
Cloning into 'mt'...
warning: redirecting to https://gitlab.freedesktop.org/drm/maintainer-tools.git/
+ git -C mt rev-list -n1 origin/master
3009867cd31863246e4afc138520a7a8bd37bb11
+ cd /kernel
+ git config --global --add safe.directory /kernel
+ git log -n1
commit c5719cbef538adb212b686984b698e582150ab24
Author: Jani Nikula <jani.nikula@intel.com>
Date: Thu Dec 3 15:31:00 2026 +0200
drm/xe: remove compat i915 headers
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
+ /mt/dim checkpatch 946545d2d49339d96ce157b5036c3c246dfb5f61 drm-intel
a5c4c1475aba drm/xe: Enable unclaimed register detection on xe for pre-LNL
15950dc5889d drm/i915/de: Nuke driver_is_i915()
5ea3d6ef0021 drm/xe/display: remove xe display kunit tests
-:64: WARNING:FILE_PATH_CHANGES: added, moved or deleted file(s), does MAINTAINERS need updating?
#64:
deleted file mode 100644
total: 0 errors, 1 warnings, 0 checks, 35 lines checked
bd0487b7b4b0 drm/intel-display: introduce new kernel module for Intel display
-:242: WARNING:FILE_PATH_CHANGES: added, moved or deleted file(s), does MAINTAINERS need updating?
#242:
new file mode 100644
-:250: WARNING:CONFIG_DESCRIPTION: please write a help paragraph that fully describes the config symbol with at least 4 lines
#250: FILE: drivers/gpu/drm/i915/display/Kconfig:4:
+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".
+
total: 0 errors, 2 warnings, 0 checks, 1204 lines checked
df08f9a63b89 drm/intel-display: use intel_display for TRACE_SYSTEM
-:7: WARNING:COMMIT_MESSAGE: Missing commit description - Add an appropriate one
total: 0 errors, 1 warnings, 0 checks, 12 lines checked
6f31ada0face drm/i915/display: remove ifdef I915
66b8dd187992 drm/i915/display: highlight the places that still include from i915
c5719cbef538 drm/xe: remove compat i915 headers
-:7: WARNING:COMMIT_MESSAGE: Missing commit description - Add an appropriate one
-:30: WARNING:FILE_PATH_CHANGES: added, moved or deleted file(s), does MAINTAINERS need updating?
#30:
deleted file mode 100644
total: 0 errors, 2 warnings, 0 checks, 15 lines checked
^ permalink raw reply [flat|nested] 11+ messages in thread
* ✗ CI.KUnit: failure for drm/intel: add intel-display.ko kernel module
2026-12-03 13:30 [PATCH 0/8] drm/intel: add intel-display.ko kernel module Jani Nikula
` (8 preceding siblings ...)
2026-12-03 14:58 ` ✗ CI.checkpatch: warning for drm/intel: add intel-display.ko kernel module Patchwork
@ 2026-12-03 14:59 ` Patchwork
9 siblings, 0 replies; 11+ messages in thread
From: Patchwork @ 2026-12-03 14:59 UTC (permalink / raw)
To: Jani Nikula; +Cc: intel-xe
== Series Details ==
Series: drm/intel: add intel-display.ko kernel module
URL : https://patchwork.freedesktop.org/series/180420/
State : failure
== Summary ==
+ trap cleanup EXIT
+ kunitconfigs=('/kernel/drivers/gpu/tests/.kunitconfig' '/kernel/drivers/gpu/drm/xe/.kunitconfig' '/kernel/drivers/gpu/drm/tests/.kunitconfig' '/kernel/drivers/gpu/drm/ttm/tests/.kunitconfig' '/kernel/drivers/dma-buf/.kunitconfig')
+ for kcfg in "${kunitconfigs[@]}"
+ [[ ! -f /kernel/drivers/gpu/tests/.kunitconfig ]]
+ /kernel/tools/testing/kunit/kunit.py run --kunitconfig /kernel/drivers/gpu/tests/.kunitconfig
[14:58:24] Configuring KUnit Kernel ...
Generating .config ...
Populating config with:
$ make ARCH=um O=.kunit olddefconfig
[14:58:29] Building KUnit Kernel ...
Populating config with:
$ make ARCH=um O=.kunit olddefconfig
Building with:
$ make all compile_commands.json scripts_gdb ARCH=um O=.kunit --jobs=48
[14:58:50] Starting KUnit Kernel (1/1)...
[14:58:50] ============================================================
Running tests with:
$ .kunit/linux kunit.enable=1 mem=1G console=tty kunit_shutdown=halt
[14:58:50] ================= gpu_buddy (15 subtests) ==================
[14:58:50] [PASSED] gpu_test_buddy_alloc_limit
[14:58:50] [PASSED] gpu_test_buddy_alloc_optimistic
[14:58:50] [PASSED] gpu_test_buddy_alloc_pessimistic
[14:58:50] [PASSED] gpu_test_buddy_alloc_pathological
[14:58:50] [PASSED] gpu_test_buddy_alloc_contiguous
[14:58:50] [PASSED] gpu_test_buddy_alloc_clear
[14:58:50] [PASSED] gpu_test_buddy_alloc_range
[14:58:50] [PASSED] gpu_test_buddy_alloc_range_bias
[14:58:50] [PASSED] gpu_test_buddy_alloc_range_clear_guard
[14:58:51] [PASSED] gpu_test_buddy_fragmentation_performance
[14:58:52] [PASSED] gpu_test_buddy_dirty_tracker_performance
[14:58:52] [PASSED] gpu_test_buddy_alloc_exceeds_max_order
[14:58:52] [PASSED] gpu_test_buddy_offset_aligned_allocation
[14:58:52] [PASSED] gpu_test_buddy_subtree_offset_alignment_stress
[14:58:52] [PASSED] gpu_test_buddy_addr_to_block
[14:58:52] ==================== [PASSED] gpu_buddy ====================
[14:58:52] ============================================================
[14:58:52] Testing complete. Ran 15 tests: passed: 15
[14:58:52] Elapsed time: 27.764s total, 5.119s configuring, 20.576s building, 2.025s running
+ for kcfg in "${kunitconfigs[@]}"
+ [[ ! -f /kernel/drivers/gpu/drm/xe/.kunitconfig ]]
+ /kernel/tools/testing/kunit/kunit.py run --kunitconfig /kernel/drivers/gpu/drm/xe/.kunitconfig
ERROR:root:In file included from ../arch/um/include/asm/io.h:24,
from ../include/linux/io.h:12,
from ../include/linux/irq.h:20,
from ../arch/um/include/asm/hardirq.h:24,
from ../include/linux/hardirq.h:11,
from ../include/linux/interrupt.h:11,
from ../include/linux/pci.h:39,
from ../drivers/gpu/drm/i915/display/intel_vga.c:7:
../drivers/gpu/drm/i915/display/intel_vga.c: In function ‘intel_vga_read’:
../include/asm-generic/io.h:576:14: error: call to ‘_inb’ declared with attribute error: inb()) requires CONFIG_HAS_IOPORT
576 | #define _inb _inb
../include/asm-generic/io.h:677:13: note: in expansion of macro ‘_inb’
677 | #define inb _inb
| ^~~~
../drivers/gpu/drm/i915/display/intel_vga.c:167:24: note: in expansion of macro ‘inb’
167 | return inb(reg);
| ^~~
In function ‘intel_vga_write’,
inlined from ‘intel_vga_disable’ at ../drivers/gpu/drm/i915/display/intel_vga.c:242:2:
../include/asm-generic/io.h:630:15: error: call to ‘_outb’ declared with attribute error: outb() requires CONFIG_HAS_IOPORT
630 | #define _outb _outb
../include/asm-generic/io.h:689:14: note: in expansion of macro ‘_outb’
689 | #define outb _outb
| ^~~~~
../drivers/gpu/drm/i915/display/intel_vga.c:175:17: note: in expansion of macro ‘outb’
175 | outb(val, reg);
| ^~~~
In function ‘intel_vga_read’,
inlined from ‘intel_vga_disable’ at ../drivers/gpu/drm/i915/display/intel_vga.c:243:8:
../include/asm-generic/io.h:576:14: error: call to ‘_inb’ declared with attribute error: inb()) requires CONFIG_HAS_IOPORT
576 | #define _inb _inb
../include/asm-generic/io.h:677:13: note: in expansion of macro ‘_inb’
677 | #define inb _inb
| ^~~~
../drivers/gpu/drm/i915/display/intel_vga.c:167:24: note: in expansion of macro ‘inb’
167 | return inb(reg);
| ^~~
In function ‘intel_vga_write’,
inlined from ‘intel_vga_disable’ at ../drivers/gpu/drm/i915/display/intel_vga.c:245:2:
../include/asm-generic/io.h:630:15: error: call to ‘_outb’ declared with attribute error: outb() requires CONFIG_HAS_IOPORT
630 | #define _outb _outb
../include/asm-generic/io.h:689:14: note: in expansion of macro ‘_outb’
689 | #define outb _outb
| ^~~~~
../drivers/gpu/drm/i915/display/intel_vga.c:175:17: note: in expansion of macro ‘outb’
175 | outb(val, reg);
| ^~~~
In function ‘intel_vga_read’,
inlined from ‘intel_vga_disable’ at ../drivers/gpu/drm/i915/display/intel_vga.c:247:8:
../include/asm-generic/io.h:576:14: error: call to ‘_inb’ declared with attribute error: inb()) requires CONFIG_HAS_IOPORT
576 | #define _inb _inb
../include/asm-generic/io.h:677:13: note: in expansion of macro ‘_inb’
677 | #define inb _inb
| ^~~~
../drivers/gpu/drm/i915/display/intel_vga.c:167:24: note: in expansion of macro ‘inb’
167 | return inb(reg);
| ^~~
In function ‘intel_vga_write’,
inlined from ‘intel_vga_disable’ at ../drivers/gpu/drm/i915/display/intel_vga.c:267:2:
../include/asm-generic/io.h:630:15: error: call to ‘_outb’ declared with attribute error: outb() requires CONFIG_HAS_IOPORT
630 | #define _outb _outb
../include/asm-generic/io.h:689:14: note: in expansion of macro ‘_outb’
689 | #define outb _outb
| ^~~~~
../drivers/gpu/drm/i915/display/intel_vga.c:175:17: note: in expansion of macro ‘outb’
175 | outb(val, reg);
| ^~~~
make[7]: *** [../scripts/Makefile.build:290: drivers/gpu/drm/i915/display/intel_vga.o] Error 1
make[7]: *** Waiting for unfinished jobs....
make[6]: *** [../scripts/Makefile.build:572: drivers/gpu/drm/i915/display] Error 2
make[6]: *** Waiting for unfinished jobs....
make[5]: *** [../scripts/Makefile.build:572: drivers/gpu/drm] Error 2
make[4]: *** [../scripts/Makefile.build:572: drivers/gpu] Error 2
make[3]: *** [../scripts/Makefile.build:572: drivers] Error 2
make[3]: *** Waiting for unfinished jobs....
make[2]: *** [/kernel/Makefile:2244: .] Error 2
make[1]: *** [/kernel/Makefile:248: __sub-make] Error 2
make: *** [Makefile:248: __sub-make] Error 2
[14:58:52] Configuring KUnit Kernel ...
Regenerating .config ...
Populating config with:
$ make ARCH=um O=.kunit olddefconfig
[14:58:55] Building KUnit Kernel ...
Populating config with:
$ make ARCH=um O=.kunit olddefconfig
Building with:
$ make all compile_commands.json scripts_gdb ARCH=um O=.kunit --jobs=48
+ cleanup
++ stat -c %u:%g /kernel
+ chown -R 1003:1003 /kernel
^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2026-12-03 14:59 UTC | newest]
Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-12-03 13:30 [PATCH 0/8] drm/intel: add intel-display.ko kernel module Jani Nikula
2026-12-03 13:30 ` [PATCH 1/8] drm/xe: Enable unclaimed register detection on xe for pre-LNL Jani Nikula
2026-12-03 13:30 ` [PATCH 2/8] drm/i915/de: Nuke driver_is_i915() Jani Nikula
2026-12-03 13:30 ` [PATCH 3/8] drm/xe/display: remove xe display kunit tests Jani Nikula
2026-12-03 13:30 ` [PATCH 4/8] drm/intel-display: introduce new kernel module for Intel display Jani Nikula
2026-12-03 13:30 ` [PATCH 5/8] drm/intel-display: use intel_display for TRACE_SYSTEM Jani Nikula
2026-12-03 13:30 ` [PATCH 6/8] drm/i915/display: remove ifdef I915 Jani Nikula
2026-12-03 13:30 ` [PATCH 7/8] drm/i915/display: highlight the places that still include from i915 Jani Nikula
2026-12-03 13:31 ` [PATCH 8/8] drm/xe: remove compat i915 headers Jani Nikula
2026-12-03 14:58 ` ✗ CI.checkpatch: warning for drm/intel: add intel-display.ko kernel module Patchwork
2026-12-03 14:59 ` ✗ CI.KUnit: failure " Patchwork
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox