]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
drm/i915: stop including display/intel_display_{core, limits}.h from i915_drv.h
authorJani Nikula <jani.nikula@intel.com>
Thu, 22 May 2025 09:48:43 +0000 (12:48 +0300)
committerJani Nikula <jani.nikula@intel.com>
Tue, 27 May 2025 08:25:53 +0000 (11:25 +0300)
Make i915->display pointer opaque to most of core i915 driver. Lots of
places now need explicit include of intel_display_core.h, or a more
specific header.

With this dependency broken, changes in display should cause radically
less recompilation of i915.

Reviewed-by: Chaitanya Kumar Borah <chaitanya.kumar.borah@intel.com>
Link: https://lore.kernel.org/r/b381b59acb7e4f600e0282935a68aedf77768109.1747907216.git.jani.nikula@intel.com
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
32 files changed:
drivers/gpu/drm/i915/display/intel_bios.c
drivers/gpu/drm/i915/display/intel_display_conversion.c
drivers/gpu/drm/i915/display/intel_display_driver.c
drivers/gpu/drm/i915/display/intel_display_reset.c
drivers/gpu/drm/i915/display/intel_display_rpm.c
drivers/gpu/drm/i915/display/intel_display_rps.c
drivers/gpu/drm/i915/display/intel_dpt.c
drivers/gpu/drm/i915/display/intel_encoder.c
drivers/gpu/drm/i915/display/intel_fb.c
drivers/gpu/drm/i915/display/intel_fb_bo.c
drivers/gpu/drm/i915/display/intel_fb_pin.c
drivers/gpu/drm/i915/display/intel_fbdev_fb.c
drivers/gpu/drm/i915/display/intel_hotplug.c
drivers/gpu/drm/i915/display/intel_opregion.c
drivers/gpu/drm/i915/display/intel_plane_initial.c
drivers/gpu/drm/i915/gem/selftests/i915_gem_client_blt.c
drivers/gpu/drm/i915/gt/intel_gt_pm.c
drivers/gpu/drm/i915/gvt/cmd_parser.c
drivers/gpu/drm/i915/gvt/display.c
drivers/gpu/drm/i915/gvt/edid.c
drivers/gpu/drm/i915/gvt/fb_decoder.c
drivers/gpu/drm/i915/gvt/handlers.c
drivers/gpu/drm/i915/i915_driver.c
drivers/gpu/drm/i915/i915_drv.h
drivers/gpu/drm/i915/i915_irq.c
drivers/gpu/drm/i915/i915_switcheroo.c
drivers/gpu/drm/i915/intel_clock_gating.c
drivers/gpu/drm/i915/intel_gvt_mmio_table.c
drivers/gpu/drm/i915/intel_uncore.c
drivers/gpu/drm/i915/selftests/mock_gem_device.c
drivers/gpu/drm/i915/soc/intel_dram.c
drivers/gpu/drm/i915/soc/intel_gmch.c

index ba7b8938b17c31eda2be3a73eb199b4f1fb68960..9ce41e689d501301d55be5965984a55d5ff263f3 100644 (file)
@@ -37,6 +37,7 @@
 
 #include "i915_drv.h"
 #include "intel_display.h"
+#include "intel_display_core.h"
 #include "intel_display_rpm.h"
 #include "intel_display_types.h"
 #include "intel_gmbus.h"
index 151d83fdbe379d7419fee39c437b90c5b1284edd..4d565935e2cc7ed481b422c1b9f1796dcb57dff6 100644 (file)
@@ -2,6 +2,7 @@
 /* Copyright © 2024 Intel Corporation */
 
 #include "i915_drv.h"
+#include "intel_display_conversion.h"
 
 struct intel_display *__i915_to_display(struct drm_i915_private *i915)
 {
index 2bdafab9b6d00c1d4317b06f18e83fc3e09c13a4..ec799a1773e47d71307b3a57d52caf2d690eb1e1 100644 (file)
@@ -27,6 +27,7 @@
 #include "intel_cdclk.h"
 #include "intel_color.h"
 #include "intel_crtc.h"
+#include "intel_display_core.h"
 #include "intel_display_debugfs.h"
 #include "intel_display_driver.h"
 #include "intel_display_irq.h"
index 1dbd3e841df3378f69b4014403c26b655d5e3f19..f5f38dca14d7f5cb56d665e72e845dfa06d988b3 100644 (file)
@@ -8,6 +8,7 @@
 #include "i915_drv.h"
 #include "intel_clock_gating.h"
 #include "intel_cx0_phy.h"
+#include "intel_display_core.h"
 #include "intel_display_driver.h"
 #include "intel_display_reset.h"
 #include "intel_display_types.h"
index 48da67dd0136188dbd38489eb101ae979c40e69a..56c4024201c16e8b3d9bab75ab0eafa15cbe98a4 100644 (file)
@@ -2,6 +2,7 @@
 /* Copyright © 2025 Intel Corporation */
 
 #include "i915_drv.h"
+#include "intel_display_core.h"
 #include "intel_display_rpm.h"
 #include "intel_runtime_pm.h"
 
index 0f1c95d70843b43d1c99b0677540e5fa0c6da75f..82ea1ec482e417ac6e8ae4c451559f4c2fa470b4 100644 (file)
@@ -9,6 +9,7 @@
 #include "gt/intel_rps.h"
 #include "i915_drv.h"
 #include "i915_reg.h"
+#include "intel_display_core.h"
 #include "intel_display_irq.h"
 #include "intel_display_rps.h"
 #include "intel_display_types.h"
index 8684cf8e4b7f0612f7e3ca5edfb73d1dda10b593..aea249e2699f3fde2fb779569335672c47802167 100644 (file)
@@ -9,6 +9,7 @@
 #include "gt/gen8_ppgtt.h"
 
 #include "i915_drv.h"
+#include "intel_display_core.h"
 #include "intel_display_rpm.h"
 #include "intel_display_types.h"
 #include "intel_dpt.h"
index 21d6385354972e3bf06cfd4f08a875c7a9a6875f..bad452ad979a85f3374c3ac4957643638ec8bd95 100644 (file)
@@ -6,7 +6,7 @@
 #include <linux/workqueue.h>
 
 #include "i915_drv.h"
-
+#include "intel_display_core.h"
 #include "intel_display_types.h"
 #include "intel_encoder.h"
 
index 05393bd60c989bb54064f9f62510d0f189cabae3..a5906cb4900c0be78c8f14468b4edc3f4c663902 100644 (file)
@@ -14,6 +14,7 @@
 #include "intel_atomic_plane.h"
 #include "intel_bo.h"
 #include "intel_display.h"
+#include "intel_display_core.h"
 #include "intel_display_types.h"
 #include "intel_dpt.h"
 #include "intel_fb.h"
index 3d338a72835465e4e33038ce4b8236c3845541aa..b0e8b89f7ce8ff6a952592da9c189ee96ee3d56b 100644 (file)
@@ -8,6 +8,7 @@
 #include "gem/i915_gem_object.h"
 
 #include "i915_drv.h"
+#include "intel_display_core.h"
 #include "intel_display_types.h"
 #include "intel_fb.h"
 #include "intel_fb_bo.h"
index c648ab8a93d767ffd3b12a3ef5add3dc2fbf9a22..98a61a7b0b9325cf23559a1b43d6a04bf8fb0987 100644 (file)
@@ -12,6 +12,7 @@
 
 #include "i915_drv.h"
 #include "intel_atomic_plane.h"
+#include "intel_display_core.h"
 #include "intel_display_rpm.h"
 #include "intel_display_types.h"
 #include "intel_dpt.h"
index 5f4cb3328265f21ea0ec901b89b7ba33003f8b5b..8db3af36b2f2d06e923f0ac6e4ab2ce36f972e5c 100644 (file)
@@ -8,6 +8,7 @@
 #include "gem/i915_gem_lmem.h"
 
 #include "i915_drv.h"
+#include "intel_display_core.h"
 #include "intel_display_types.h"
 #include "intel_fb.h"
 #include "intel_fbdev_fb.h"
index fc5d8928c37efce3fb40adc696e3acb7eb469c73..74fe398663d63096d767bfd3aef8105f46901146 100644 (file)
@@ -30,6 +30,7 @@
 #include "i915_irq.h"
 #include "intel_connector.h"
 #include "intel_display_power.h"
+#include "intel_display_core.h"
 #include "intel_display_rpm.h"
 #include "intel_display_types.h"
 #include "intel_hdcp.h"
index 0eaa6cd6fe809a22295ed4f7eddc8a978a652407..5535cb7994317bcde112419eb5edf147f9927373 100644 (file)
@@ -35,6 +35,7 @@
 #include "i915_drv.h"
 #include "intel_acpi.h"
 #include "intel_backlight.h"
+#include "intel_display_core.h"
 #include "intel_display_types.h"
 #include "intel_opregion.h"
 #include "intel_pci_config.h"
index c00d9184c5866d777042bafb151738e91f0af399..8800a657cd21f67228d7333f88e8dfe07b5323ae 100644 (file)
@@ -9,6 +9,7 @@
 #include "intel_atomic_plane.h"
 #include "intel_crtc.h"
 #include "intel_display.h"
+#include "intel_display_core.h"
 #include "intel_display_types.h"
 #include "intel_fb.h"
 #include "intel_frontbuffer.h"
index bac15196b4d24ee10354bdbb4bcfb6f90535c86c..86d9d2fcb6a6b02a69de05216271dd8d9c67e6d0 100644 (file)
@@ -5,6 +5,7 @@
 
 #include "i915_selftest.h"
 
+#include "display/intel_display_core.h"
 #include "gt/intel_context.h"
 #include "gt/intel_engine_regs.h"
 #include "gt/intel_engine_user.h"
index 3b77b4bb88e339d1c6bcebc75342ac81a2894db5..c7f59d60fac6405391314dbf0ff6bd173b286227 100644 (file)
@@ -6,6 +6,8 @@
 #include <linux/string_helpers.h>
 #include <linux/suspend.h>
 
+#include "display/intel_display_power.h"
+
 #include "i915_drv.h"
 #include "i915_irq.h"
 #include "i915_params.h"
index 2b5094e8de5e364d3a89777b20c16c6592623e47..62d744363598f6fac76f0d0a1a599e682ae1c1d0 100644 (file)
@@ -50,6 +50,7 @@
 #include "trace.h"
 
 #include "display/i9xx_plane_regs.h"
+#include "display/intel_display_core.h"
 #include "display/intel_sprite_regs.h"
 #include "gem/i915_gem_context.h"
 #include "gem/i915_gem_pm.h"
index b77e8f3ff75c8fe5a1282d3dbf57d7f4e7c67695..6fed71f8198fabf1540608f616fcb460df685844 100644 (file)
@@ -43,6 +43,7 @@
 #include "display/intel_crt_regs.h"
 #include "display/intel_cursor_regs.h"
 #include "display/intel_display.h"
+#include "display/intel_display_core.h"
 #include "display/intel_dpio_phy.h"
 #include "display/intel_sprite_regs.h"
 
index 89147d33168c015f924bc5bb3300f02ef55213ca..2031b97de2b760ad53e43db7b66d32a096c7086c 100644 (file)
@@ -35,6 +35,7 @@
 #include <drm/display/drm_dp.h>
 
 #include "display/intel_dp_aux_regs.h"
+#include "display/intel_gmbus.h"
 #include "display/intel_gmbus_regs.h"
 #include "gvt.h"
 #include "i915_drv.h"
index 4cfe8d7f368d273a295d3322c5ebc9b1805ea846..112f6723c42770ad27db8fb1a08c16f743623239 100644 (file)
@@ -42,6 +42,7 @@
 
 #include "display/i9xx_plane_regs.h"
 #include "display/intel_cursor_regs.h"
+#include "display/intel_display_core.h"
 #include "display/intel_sprite_regs.h"
 #include "display/skl_universal_plane_regs.h"
 
index 11cb8bf1fa4aa589b018a6df93853ce9d632d50f..9b001776a9608f49e43a52b81f85ad3cba0771b2 100644 (file)
@@ -47,6 +47,7 @@
 #include "display/i9xx_plane_regs.h"
 #include "display/intel_crt_regs.h"
 #include "display/intel_cursor_regs.h"
+#include "display/intel_display_core.h"
 #include "display/intel_display_types.h"
 #include "display/intel_dmc_regs.h"
 #include "display/intel_dp_aux_regs.h"
index d33b0eb83a4f38b9bf5211f47b2cbcd985608fea..3b0bda74697d762fcee06cac20c7bc0f73100993 100644 (file)
@@ -51,6 +51,7 @@
 #include "display/intel_bw.h"
 #include "display/intel_cdclk.h"
 #include "display/intel_crtc.h"
+#include "display/intel_display_core.h"
 #include "display/intel_display_driver.h"
 #include "display/intel_dmc.h"
 #include "display/intel_dp.h"
@@ -58,6 +59,7 @@
 #include "display/intel_encoder.h"
 #include "display/intel_fbdev.h"
 #include "display/intel_hotplug.h"
+#include "display/intel_opregion.h"
 #include "display/intel_overlay.h"
 #include "display/intel_pch_refclk.h"
 #include "display/intel_pps.h"
index fd0274ec9c2c779bcaea13a1578308bdfc0e16c4..b6c632bd522cd2f1c7a62e79034bbe54d23b8414 100644 (file)
 
 #include <uapi/drm/i915_drm.h>
 
+#include <linux/pci.h>
 #include <linux/pm_qos.h>
 
 #include <drm/ttm/ttm_device.h>
 
-#include "display/intel_display_limits.h"
-#include "display/intel_display_core.h"
-
 #include "gem/i915_gem_context_types.h"
 #include "gem/i915_gem_shrinker.h"
 #include "gem/i915_gem_stolen.h"
@@ -63,8 +61,9 @@
 #include "intel_uncore.h"
 
 struct drm_i915_clock_gating_funcs;
-struct vlv_s0ix_state;
+struct intel_display;
 struct intel_pxp;
+struct vlv_s0ix_state;
 
 #define GEM_QUIRK_PIN_SWIZZLED_PAGES   BIT(0)
 
index 351928481cd9e3b490a332ff84f5a79e41e3415f..191ed8bb1d9c40dbc4b127f179765d5a44fb6cda 100644 (file)
@@ -33,6 +33,7 @@
 
 #include <drm/drm_drv.h>
 
+#include "display/intel_display_core.h"
 #include "display/intel_display_irq.h"
 #include "display/intel_hotplug.h"
 #include "display/intel_hotplug_irq.h"
index f45bd6b6cede45ca405929a0840f1d66fe13c75d..4c02a04be681796912dd713ce3d1c7ec3bdb722f 100644 (file)
@@ -5,6 +5,8 @@
 
 #include <linux/vga_switcheroo.h>
 
+#include "display/intel_display_core.h"
+
 #include "i915_driver.h"
 #include "i915_drv.h"
 #include "i915_switcheroo.h"
index 5bbf891ccc32c5f0bd4cb2f027554dad8842593b..f86a3629ae9eaf6093244f1601a2d8b5dca823de 100644 (file)
@@ -27,6 +27,7 @@
 
 #include "display/i9xx_plane_regs.h"
 #include "display/intel_display.h"
+#include "display/intel_display_core.h"
 
 #include "gt/intel_engine_regs.h"
 #include "gt/intel_gt.h"
index d581a9d2c063d1271e0d77e3db4ce1addd94f6b9..e83dc30e658d6a5b9f9edd72e885daede37e48ff 100644 (file)
@@ -11,6 +11,7 @@
 #include "display/intel_color_regs.h"
 #include "display/intel_crt_regs.h"
 #include "display/intel_cursor_regs.h"
+#include "display/intel_display_core.h"
 #include "display/intel_display_types.h"
 #include "display/intel_dmc_regs.h"
 #include "display/intel_dp_aux_regs.h"
index 48a10ff801486ed539c120abbe8c9cc0bc0c4e07..9b2254d8649174e50c0ba2fd5e5f9afbe38a28aa 100644 (file)
@@ -24,6 +24,8 @@
 #include <drm/drm_managed.h>
 #include <linux/pm_runtime.h>
 
+#include "display/intel_display_core.h"
+
 #include "gt/intel_gt.h"
 #include "gt/intel_engine_regs.h"
 #include "gt/intel_gt_regs.h"
index dab2b71a2a8fc42fd9bb87842aafa3505cecace8..fb8751bd5df0ab446d3ae0f43750ea6f23521f6f 100644 (file)
@@ -28,6 +28,8 @@
 
 #include <drm/drm_managed.h>
 
+#include "display/intel_display_device.h"
+
 #include "gt/intel_gt.h"
 #include "gt/intel_gt_requests.h"
 #include "gt/mock_engine.h"
index efee955ae8a3ded719f43a2d44ffae507c0c6c04..9f806ce0eb9ef615db5a4a2eb66c1fcd96d662c2 100644 (file)
@@ -5,6 +5,8 @@
 
 #include <linux/string_helpers.h>
 
+#include "../display/intel_display_core.h" /* FIXME */
+
 #include "i915_drv.h"
 #include "i915_reg.h"
 #include "intel_dram.h"
index 734e9f2801eab61b53aca11513cbf0432fb7bc6c..5346b8dda79a4fbee0b335e497b3b645660ed745 100644 (file)
@@ -10,6 +10,8 @@
 #include <drm/drm_managed.h>
 #include <drm/intel/i915_drm.h>
 
+#include "../display/intel_display_core.h" /* FIXME */
+
 #include "i915_drv.h"
 #include "intel_gmch.h"
 #include "intel_pci_config.h"