]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
drm/xe: Cleanup unused header includes
authorMatt Roper <matthew.d.roper@intel.com>
Thu, 15 Jan 2026 03:28:02 +0000 (19:28 -0800)
committerMatt Roper <matthew.d.roper@intel.com>
Thu, 15 Jan 2026 15:05:04 +0000 (07:05 -0800)
clangd reports many "unused header" warnings throughout the Xe driver.
Start working to clean this up by removing unnecessary includes in our
.c files and/or replacing them with explicit includes of other headers
that were previously being included indirectly.

By far the most common offender here was unnecessary inclusion of
xe_gt.h.  That likely originates from the early days of xe.ko when
xe_mmio did not exist and all register accesses, including those
unrelated to GTs, were done with GT functions.

There's still a lot of additional #include cleanup that can be done in
the headers themselves; that will come as a followup series.

v2:
 - Squash the 79-patch series down to a single patch.  (MattB)

Reviewed-by: Matthew Brost <matthew.brost@intel.com>
Link: https://patch.msgid.link/20260115032803.4067824-2-matthew.d.roper@intel.com
Signed-off-by: Matt Roper <matthew.d.roper@intel.com>
80 files changed:
drivers/gpu/drm/xe/tests/xe_bo.c
drivers/gpu/drm/xe/xe_bb.c
drivers/gpu/drm/xe/xe_bo.c
drivers/gpu/drm/xe/xe_devcoredump.c
drivers/gpu/drm/xe/xe_device.c
drivers/gpu/drm/xe/xe_exec.c
drivers/gpu/drm/xe/xe_exec_queue.c
drivers/gpu/drm/xe/xe_execlist.c
drivers/gpu/drm/xe/xe_ggtt.c
drivers/gpu/drm/xe/xe_gsc_debugfs.c
drivers/gpu/drm/xe/xe_gsc_proxy.c
drivers/gpu/drm/xe/xe_gsc_submit.c
drivers/gpu/drm/xe/xe_gt.c
drivers/gpu/drm/xe/xe_gt_clock.c
drivers/gpu/drm/xe/xe_gt_debugfs.c
drivers/gpu/drm/xe/xe_gt_idle.c
drivers/gpu/drm/xe/xe_gt_mcr.c
drivers/gpu/drm/xe/xe_gt_sriov_pf_config.c
drivers/gpu/drm/xe/xe_gt_sriov_pf_debugfs.c
drivers/gpu/drm/xe/xe_gt_sriov_pf_migration.c
drivers/gpu/drm/xe/xe_gt_sriov_pf_policy.c
drivers/gpu/drm/xe/xe_gt_sriov_pf_service.c
drivers/gpu/drm/xe/xe_gt_sriov_vf.c
drivers/gpu/drm/xe/xe_gt_stats.c
drivers/gpu/drm/xe/xe_gt_sysfs.c
drivers/gpu/drm/xe/xe_gt_throttle.c
drivers/gpu/drm/xe/xe_guc_ads.c
drivers/gpu/drm/xe/xe_guc_buf.c
drivers/gpu/drm/xe/xe_guc_capture.c
drivers/gpu/drm/xe/xe_guc_debugfs.c
drivers/gpu/drm/xe/xe_guc_hwconfig.c
drivers/gpu/drm/xe/xe_guc_log.c
drivers/gpu/drm/xe/xe_guc_relay.c
drivers/gpu/drm/xe/xe_guc_submit.c
drivers/gpu/drm/xe/xe_heci_gsc.c
drivers/gpu/drm/xe/xe_huc.c
drivers/gpu/drm/xe/xe_huc_debugfs.c
drivers/gpu/drm/xe/xe_hw_engine.c
drivers/gpu/drm/xe/xe_hw_engine_class_sysfs.c
drivers/gpu/drm/xe/xe_hw_engine_group.c
drivers/gpu/drm/xe/xe_hw_fence.c
drivers/gpu/drm/xe/xe_i2c.c
drivers/gpu/drm/xe/xe_irq.c
drivers/gpu/drm/xe/xe_memirq.c
drivers/gpu/drm/xe/xe_mmio.c
drivers/gpu/drm/xe/xe_mocs.c
drivers/gpu/drm/xe/xe_module.c
drivers/gpu/drm/xe/xe_nvm.c
drivers/gpu/drm/xe/xe_page_reclaim.c
drivers/gpu/drm/xe/xe_pci.c
drivers/gpu/drm/xe/xe_psmi.c
drivers/gpu/drm/xe/xe_pxp.c
drivers/gpu/drm/xe/xe_pxp_debugfs.c
drivers/gpu/drm/xe/xe_reg_sr.c
drivers/gpu/drm/xe/xe_reg_whitelist.c
drivers/gpu/drm/xe/xe_ring_ops.c
drivers/gpu/drm/xe/xe_rtp.c
drivers/gpu/drm/xe/xe_sa.c
drivers/gpu/drm/xe/xe_sched_job.c
drivers/gpu/drm/xe/xe_sriov_packet.c
drivers/gpu/drm/xe/xe_sriov_pf_debugfs.c
drivers/gpu/drm/xe/xe_sriov_vf.c
drivers/gpu/drm/xe/xe_step.c
drivers/gpu/drm/xe/xe_survivability_mode.c
drivers/gpu/drm/xe/xe_tile.c
drivers/gpu/drm/xe/xe_tlb_inval.c
drivers/gpu/drm/xe/xe_ttm_stolen_mgr.c
drivers/gpu/drm/xe/xe_ttm_sys_mgr.c
drivers/gpu/drm/xe/xe_ttm_vram_mgr.c
drivers/gpu/drm/xe/xe_uc.c
drivers/gpu/drm/xe/xe_uc_debugfs.c
drivers/gpu/drm/xe/xe_uc_fw.c
drivers/gpu/drm/xe/xe_validation.c
drivers/gpu/drm/xe/xe_vm.c
drivers/gpu/drm/xe/xe_vram.c
drivers/gpu/drm/xe/xe_vram_freq.c
drivers/gpu/drm/xe/xe_vsec.c
drivers/gpu/drm/xe/xe_wa.c
drivers/gpu/drm/xe/xe_wait_user_fence.c
drivers/gpu/drm/xe/xe_wopcm.c

index 2278e589a493b2f399cd64cb900cf7cbe50917aa..b7d8e45804cf825bac9fa9ba2b51b09635918d24 100644 (file)
@@ -18,6 +18,7 @@
 #include "tests/xe_test.h"
 
 #include "xe_bo_evict.h"
+#include "xe_gt.h"
 #include "xe_pci.h"
 #include "xe_pm.h"
 
index 6d20229c11de6fed1c4c044e0b40f1f68d36e01f..8b678297aaa29a47d0eb8323fea6976e5a5f8f11 100644 (file)
@@ -7,10 +7,9 @@
 
 #include "instructions/xe_mi_commands.h"
 #include "xe_assert.h"
-#include "xe_device.h"
+#include "xe_device_types.h"
 #include "xe_exec_queue_types.h"
 #include "xe_gt.h"
-#include "xe_hw_fence.h"
 #include "xe_sa.h"
 #include "xe_sched_job.h"
 #include "xe_vm_types.h"
index 917e50c276ac98921e15f816ffaff6f5602ac919..e9180b01a4e402ef84252d725ff2df994880f36d 100644 (file)
@@ -26,7 +26,6 @@
 #include "xe_dma_buf.h"
 #include "xe_drm_client.h"
 #include "xe_ggtt.h"
-#include "xe_gt.h"
 #include "xe_map.h"
 #include "xe_migrate.h"
 #include "xe_pat.h"
index 7263c2a5f3a8e43a765d51cd27e63be74e1a6383..cf41bb6d21725576f21ed5ee0e5468c1a83cf675 100644 (file)
 #include "xe_device.h"
 #include "xe_exec_queue.h"
 #include "xe_force_wake.h"
-#include "xe_gt.h"
 #include "xe_gt_printk.h"
+#include "xe_gt_types.h"
 #include "xe_guc_capture.h"
 #include "xe_guc_ct.h"
 #include "xe_guc_log.h"
 #include "xe_guc_submit.h"
 #include "xe_hw_engine.h"
-#include "xe_module.h"
 #include "xe_pm.h"
 #include "xe_sched_job.h"
 #include "xe_vm.h"
index 7190b208e3dae13f46fbf75a88164e2e2434dff6..495310a624b57b00433f568b8f493b494ea6d803 100644 (file)
@@ -35,7 +35,6 @@
 #include "xe_exec_queue.h"
 #include "xe_force_wake.h"
 #include "xe_ggtt.h"
-#include "xe_gsc_proxy.h"
 #include "xe_gt.h"
 #include "xe_gt_mcr.h"
 #include "xe_gt_printk.h"
index 730a5c9c26374bc02a2910de25f4dde6cdc99d0b..a5485fe6e3f16599e2b06aa4ce8514950f3c6e2f 100644 (file)
@@ -11,7 +11,6 @@
 #include <uapi/drm/xe_drm.h>
 #include <linux/delay.h>
 
-#include "xe_bo.h"
 #include "xe_device.h"
 #include "xe_exec_queue.h"
 #include "xe_hw_engine_group.h"
index b5737563ee140605a0be66b4e741af4f49f9846b..a940849bb6c7588012ef7497df83e8c1a7244087 100644 (file)
 #include "xe_gt_sriov_vf.h"
 #include "xe_hw_engine_class_sysfs.h"
 #include "xe_hw_engine_group.h"
-#include "xe_hw_fence.h"
 #include "xe_irq.h"
 #include "xe_lrc.h"
 #include "xe_macros.h"
 #include "xe_migrate.h"
 #include "xe_pm.h"
-#include "xe_ring_ops_types.h"
 #include "xe_trace.h"
 #include "xe_vm.h"
 #include "xe_pxp.h"
index 46c17a18a3f4868290df880b8a825a7d3c5741e5..8bf330aeaec0eb2d4f0e6ba7c66a18095affb814 100644 (file)
@@ -15,8 +15,7 @@
 #include "xe_bo.h"
 #include "xe_device.h"
 #include "xe_exec_queue.h"
-#include "xe_gt.h"
-#include "xe_hw_fence.h"
+#include "xe_gt_types.h"
 #include "xe_irq.h"
 #include "xe_lrc.h"
 #include "xe_macros.h"
index cb23d97845a8651b7ca4bd112b3a31a35a44ff80..60665ad1415bebf51d41fb044d05f20cbffb7813 100644 (file)
@@ -20,9 +20,8 @@
 #include "regs/xe_regs.h"
 #include "xe_assert.h"
 #include "xe_bo.h"
-#include "xe_device.h"
-#include "xe_gt.h"
 #include "xe_gt_printk.h"
+#include "xe_gt_types.h"
 #include "xe_map.h"
 #include "xe_mmio.h"
 #include "xe_pm.h"
index b13928b50eb942c24f3021782b10212a07c89b97..d4977e6669461bef704d4e3e6c2dcc4c3ec6f1da 100644 (file)
@@ -7,11 +7,10 @@
 
 #include <drm/drm_debugfs.h>
 #include <drm/drm_managed.h>
+#include <drm/drm_print.h>
 
-#include "xe_device.h"
-#include "xe_gt.h"
+#include "xe_gt_types.h"
 #include "xe_gsc.h"
-#include "xe_macros.h"
 #include "xe_pm.h"
 
 static struct xe_gt *
index e7573a0c5e5d246357c03ca8238f2f35b8390040..42438b21f235e6e37fc8185ad64499c9476f149b 100644 (file)
@@ -18,8 +18,8 @@
 #include "xe_force_wake.h"
 #include "xe_gsc.h"
 #include "xe_gsc_submit.h"
-#include "xe_gt.h"
 #include "xe_gt_printk.h"
+#include "xe_gt_types.h"
 #include "xe_map.h"
 #include "xe_mmio.h"
 #include "xe_pm.h"
index 9ede483d37efdc976457c97e989fb57efdf9ce8e..08082b596501c8aca900454f9e2961c9b5a53838 100644 (file)
 #include "xe_assert.h"
 #include "xe_bb.h"
 #include "xe_exec_queue.h"
-#include "xe_gt_printk.h"
 #include "xe_gt_types.h"
 #include "xe_map.h"
 #include "xe_sched_job.h"
 #include "instructions/xe_gsc_commands.h"
-#include "regs/xe_gsc_regs.h"
 
 #define GSC_HDR_SIZE (sizeof(struct intel_gsc_mtl_header)) /* shorthand define */
 
index 04dbf995a18b957bb0e8fb80e8d33d3cba0a1ee6..9d090d0f24383b2695d2adcdb6f673448abc348a 100644 (file)
 #include <generated/xe_wa_oob.h>
 
 #include "instructions/xe_alu_commands.h"
-#include "instructions/xe_gfxpipe_commands.h"
 #include "instructions/xe_mi_commands.h"
 #include "regs/xe_engine_regs.h"
 #include "regs/xe_gt_regs.h"
 #include "xe_assert.h"
 #include "xe_bb.h"
-#include "xe_bo.h"
 #include "xe_device.h"
 #include "xe_eu_stall.h"
 #include "xe_exec_queue.h"
index bfc25c46f798be659dadd9a937f6a3154ca17f5b..53b3835192da91d874e2d7672d0e42cbc16318bf 100644 (file)
@@ -8,12 +8,8 @@
 #include "xe_gt_clock.h"
 
 #include "regs/xe_gt_regs.h"
-#include "regs/xe_regs.h"
-#include "xe_assert.h"
-#include "xe_device.h"
-#include "xe_gt.h"
+#include "xe_gt_types.h"
 #include "xe_gt_printk.h"
-#include "xe_macros.h"
 #include "xe_mmio.h"
 
 #define f19_2_mhz      19200000
index e4f38b5150fc81e7743c3e903b6d895700ae308f..4363bc9c36067f3b22ff9f8fa5d64dece31cbe3b 100644 (file)
@@ -22,7 +22,6 @@
 #include "xe_guc_hwconfig.h"
 #include "xe_hw_engine.h"
 #include "xe_lrc.h"
-#include "xe_macros.h"
 #include "xe_mocs.h"
 #include "xe_pat.h"
 #include "xe_pm.h"
index c1c9bec3c48761fce4431addc7914cf2b7b3ea3e..7a569e1730a489cc91b82207ba380a17be2b0e0e 100644 (file)
@@ -13,7 +13,6 @@
 #include "xe_gt_sysfs.h"
 #include "xe_guc_pc.h"
 #include "regs/xe_gt_regs.h"
-#include "xe_macros.h"
 #include "xe_mmio.h"
 #include "xe_pm.h"
 #include "xe_sriov.h"
index 1640108606640029ba33d048f21f3cd296a83365..7c1fe9ac120d705cbd9b693b476e788d2e9e906c 100644 (file)
@@ -7,7 +7,6 @@
 
 #include "regs/xe_gt_regs.h"
 #include "xe_assert.h"
-#include "xe_gt.h"
 #include "xe_gt_printk.h"
 #include "xe_gt_topology.h"
 #include "xe_gt_types.h"
index 9f2525f3cb379b8d4b9aa63723a8bb055320ecad..23601ce79348a16897d1ee63468b55d5f85f1d1e 100644 (file)
 #include "xe_guc_buf.h"
 #include "xe_guc_ct.h"
 #include "xe_guc_db_mgr.h"
-#include "xe_guc_fwif.h"
 #include "xe_guc_id_mgr.h"
 #include "xe_guc_klv_helpers.h"
 #include "xe_guc_klv_thresholds_set.h"
 #include "xe_guc_submit.h"
 #include "xe_lmtt.h"
-#include "xe_map.h"
 #include "xe_migrate.h"
 #include "xe_sriov.h"
 #include "xe_ttm_vram_mgr.h"
index 47d288c5353941497242f96448182e5035f69286..f97abb02aebd8cecba37e38da9aa3894a39a468a 100644 (file)
@@ -8,7 +8,6 @@
 #include <drm/drm_print.h>
 #include <drm/drm_debugfs.h>
 
-#include "xe_bo.h"
 #include "xe_debugfs.h"
 #include "xe_device.h"
 #include "xe_gt.h"
index 7410e7b93256341c56b07a33c52f311baf9f2c5d..87a164efcc33c8807bb758931c6e1a3796a0337f 100644 (file)
@@ -14,7 +14,6 @@
 #include "xe_gt_sriov_pf.h"
 #include "xe_gt_sriov_pf_config.h"
 #include "xe_gt_sriov_pf_control.h"
-#include "xe_gt_sriov_pf_helpers.h"
 #include "xe_gt_sriov_pf_migration.h"
 #include "xe_gt_sriov_printk.h"
 #include "xe_guc.h"
@@ -25,6 +24,7 @@
 #include "xe_sriov.h"
 #include "xe_sriov_packet.h"
 #include "xe_sriov_packet_types.h"
+#include "xe_sriov_pf_helpers.h"
 #include "xe_sriov_pf_migration.h"
 
 #define XE_GT_SRIOV_PF_MIGRATION_RING_SIZE 5
index c28606ca6623cb3c94a5df6e79f488824e09a78c..848e24926ecd024e9989cc76ef679c23ecc22f4e 100644 (file)
@@ -7,7 +7,6 @@
 
 #include "abi/guc_actions_sriov_abi.h"
 
-#include "xe_bo.h"
 #include "xe_gt.h"
 #include "xe_gt_sriov_pf_helpers.h"
 #include "xe_gt_sriov_pf_policy.h"
index 2eb21610e5a05d8631a4c40d7aade1336b5e80e2..b5e0a5b7723ea0ef2663c7eae329fed716e08909 100644 (file)
@@ -5,20 +5,19 @@
 
 #include <drm/drm_managed.h>
 
-#include "abi/guc_actions_sriov_abi.h"
 #include "abi/guc_relay_actions_abi.h"
 
 #include "regs/xe_gt_regs.h"
 #include "regs/xe_guc_regs.h"
-#include "regs/xe_regs.h"
 
+#include "xe_assert.h"
 #include "xe_mmio.h"
 #include "xe_gt_sriov_printk.h"
-#include "xe_gt_sriov_pf_helpers.h"
 #include "xe_gt_sriov_pf_service.h"
 #include "xe_gt_sriov_pf_service_types.h"
 #include "xe_guc_ct.h"
 #include "xe_guc_hxg_helpers.h"
+#include "xe_sriov.h"
 #include "xe_sriov_pf_service.h"
 
 static const struct xe_reg tgl_runtime_regs[] = {
index d91c65dc349603afe25cbee0ce70dea80238e8fc..30e8c2cf5f09a43f18ad36107cb13975c9f2acd2 100644 (file)
@@ -15,7 +15,6 @@
 #include "abi/guc_klvs_abi.h"
 #include "abi/guc_relay_actions_abi.h"
 #include "regs/xe_gt_regs.h"
-#include "regs/xe_gtt_defs.h"
 
 #include "xe_assert.h"
 #include "xe_device.h"
index 8294bcd403106d55ff6e4472b4cdfda417175ce0..37506434d7a36dcfe16ee031959049694165c1b1 100644 (file)
@@ -7,8 +7,8 @@
 
 #include <drm/drm_print.h>
 
-#include "xe_gt.h"
 #include "xe_gt_stats.h"
+#include "xe_gt_types.h"
 
 /**
  * xe_gt_stats_incr - Increments the specified stats counter
index ec2b8246204b88ec9d1b818f54b4f93ab93058f6..1448be047b4a5958fdbc2b41136620f5ae2291e3 100644 (file)
@@ -10,7 +10,7 @@
 
 #include <drm/drm_managed.h>
 
-#include "xe_gt.h"
+#include "xe_gt_types.h"
 
 static void xe_gt_sysfs_kobj_release(struct kobject *kobj)
 {
index 570358310e9752f4adc2011972b536837207a33c..1e7e3a31aa6982132ee9d94597e7a2da441360ea 100644 (file)
@@ -6,7 +6,7 @@
 #include <drm/drm_managed.h>
 
 #include <regs/xe_gt_regs.h>
-#include "xe_device.h"
+#include "xe_device_types.h"
 #include "xe_gt.h"
 #include "xe_gt_sysfs.h"
 #include "xe_gt_throttle.h"
index 7e1cb6093de7b1906153812fcf449726bd4c2a66..f4cbc030f4c81b3110956b2464dd9d7fc8c4ed69 100644 (file)
@@ -28,8 +28,6 @@
 #include "xe_lrc.h"
 #include "xe_map.h"
 #include "xe_mmio.h"
-#include "xe_platform_types.h"
-#include "xe_uc_fw.h"
 #include "xe_wa.h"
 
 /* Slack of a few additional entries per engine */
index c36fc31e04383a7e85a7936fb8b1c2945b2574e0..11f77decd8d1b1cd76a3ebb804d545e11a3b15ef 100644 (file)
@@ -6,7 +6,6 @@
 #include <linux/cleanup.h>
 #include <drm/drm_managed.h>
 
-#include "xe_assert.h"
 #include "xe_bo.h"
 #include "xe_gt_printk.h"
 #include "xe_guc.h"
index bdd700ac1e54629eb582134f036c31a235e63fd0..2f5816c78fba211456b79090372bc8b2e805166f 100644 (file)
 #include "abi/guc_log_abi.h"
 #include "regs/xe_engine_regs.h"
 #include "regs/xe_gt_regs.h"
-#include "regs/xe_guc_regs.h"
-#include "regs/xe_regs.h"
 
-#include "xe_bo.h"
+#include "xe_bo_types.h"
 #include "xe_device.h"
 #include "xe_exec_queue_types.h"
 #include "xe_gt.h"
 #include "xe_gt_mcr.h"
 #include "xe_gt_printk.h"
 #include "xe_guc.h"
-#include "xe_guc_ads.h"
 #include "xe_guc_capture.h"
 #include "xe_guc_capture_types.h"
 #include "xe_guc_ct.h"
index 23827e87450f1660ed687b71a79631af6c624aae..2f23119686d44dd9a0b0fe976c11b389a207841f 100644 (file)
@@ -8,13 +8,12 @@
 #include <drm/drm_debugfs.h>
 #include <drm/drm_managed.h>
 
-#include "xe_device.h"
-#include "xe_gt.h"
+#include "xe_device_types.h"
+#include "xe_gt_types.h"
 #include "xe_guc.h"
 #include "xe_guc_ct.h"
 #include "xe_guc_log.h"
 #include "xe_guc_pc.h"
-#include "xe_macros.h"
 #include "xe_pm.h"
 
 /*
index af2c817d552cad5d04f15ef9b7e3d778a052b766..b300901dbb8e1e2018c671061504824567cc54de 100644 (file)
@@ -10,8 +10,8 @@
 
 #include "abi/guc_actions_abi.h"
 #include "xe_bo.h"
-#include "xe_device.h"
-#include "xe_gt.h"
+#include "xe_device_types.h"
+#include "xe_gt_types.h"
 #include "xe_guc.h"
 #include "xe_map.h"
 
index d7473b9673bb93a240634536d82338c233b129ca..acac66a4eca798e7d29c5796b7d53f5f80f3fc6c 100644 (file)
@@ -15,8 +15,8 @@
 #include "xe_bo.h"
 #include "xe_devcoredump.h"
 #include "xe_force_wake.h"
-#include "xe_gt.h"
 #include "xe_gt_printk.h"
+#include "xe_gt_types.h"
 #include "xe_map.h"
 #include "xe_mmio.h"
 #include "xe_module.h"
index 0c0ff24ba62a4801649ec1e9033943ca30d824ce..577a315854afcf06e6ffe38f8806f3c7545927aa 100644 (file)
@@ -17,8 +17,7 @@
 #include "abi/guc_relay_communication_abi.h"
 
 #include "xe_assert.h"
-#include "xe_device.h"
-#include "xe_gt.h"
+#include "xe_device_types.h"
 #include "xe_gt_sriov_printk.h"
 #include "xe_gt_sriov_pf_service.h"
 #include "xe_guc.h"
index be8fa76baf1d022aac8637c2f3819408bbc5a669..a27ea931b9562e2caf21990fdb7a365e4a5e7d79 100644 (file)
@@ -17,7 +17,6 @@
 #include "abi/guc_actions_abi.h"
 #include "abi/guc_actions_slpc_abi.h"
 #include "abi/guc_klvs_abi.h"
-#include "regs/xe_lrc_layout.h"
 #include "xe_assert.h"
 #include "xe_bo.h"
 #include "xe_devcoredump.h"
@@ -36,7 +35,6 @@
 #include "xe_guc_klv_helpers.h"
 #include "xe_guc_submit_types.h"
 #include "xe_hw_engine.h"
-#include "xe_hw_fence.h"
 #include "xe_lrc.h"
 #include "xe_macros.h"
 #include "xe_map.h"
index 495cdd4f948d5d2db691e51619872bad6b3a687a..c1f15313f92ef76760e69839e3f648ebf48ef852 100644 (file)
@@ -11,7 +11,6 @@
 #include <drm/drm_print.h>
 
 #include "xe_device_types.h"
-#include "xe_drv.h"
 #include "xe_heci_gsc.h"
 #include "regs/xe_gsc_regs.h"
 #include "xe_platform_types.h"
index 4212162913af4137d047428a233154af2087cc8b..57afe21444b183f298a106e29f0e802d2ce343b3 100644 (file)
@@ -12,7 +12,6 @@
 #include "abi/gsc_pxp_commands_abi.h"
 #include "regs/xe_gsc_regs.h"
 #include "regs/xe_guc_regs.h"
-#include "xe_assert.h"
 #include "xe_bo.h"
 #include "xe_device.h"
 #include "xe_force_wake.h"
index df9c4d79b7106bf8d4c912748ca262dfe3115005..80829967b3d79f466e76d30df6d219f05a697b7f 100644 (file)
@@ -7,11 +7,10 @@
 
 #include <drm/drm_debugfs.h>
 #include <drm/drm_managed.h>
+#include <drm/drm_print.h>
 
-#include "xe_device.h"
-#include "xe_gt.h"
+#include "xe_gt_types.h"
 #include "xe_huc.h"
-#include "xe_macros.h"
 #include "xe_pm.h"
 
 static struct xe_gt *
index 6a9e2a4272ddea567a00d12ca77a0b6c2ae5e28f..4d3ee5226e3ac7f2d539f9aac0df9f2b16410a8d 100644 (file)
@@ -33,7 +33,6 @@
 #include "xe_hw_fence.h"
 #include "xe_irq.h"
 #include "xe_lrc.h"
-#include "xe_macros.h"
 #include "xe_mmio.h"
 #include "xe_reg_sr.h"
 #include "xe_reg_whitelist.h"
index cb45cdceef6770c764c0d28341ad5d9f8c6f106b..3c65becb39adf7a6f990b9f20a5b2cc825a2e775 100644 (file)
@@ -7,7 +7,7 @@
 #include <linux/kobject.h>
 #include <linux/sysfs.h>
 
-#include "xe_device.h"
+#include "xe_device_types.h"
 #include "xe_gt.h"
 #include "xe_hw_engine_class_sysfs.h"
 #include "xe_pm.h"
index f69a32c274580bd76b0be06cee298f6085044b6f..2ef33dfbe3a2b113c848cae371f22fd12bea2835 100644 (file)
@@ -6,7 +6,7 @@
 #include <drm/drm_managed.h>
 
 #include "xe_assert.h"
-#include "xe_device.h"
+#include "xe_device_types.h"
 #include "xe_exec_queue.h"
 #include "xe_gt.h"
 #include "xe_gt_stats.h"
index 6b5bc67767d3e5f5250d88045335c666d634ba15..ae8ed15b64c5520d7a8a4b29a6899a37f45d96b4 100644 (file)
@@ -8,9 +8,7 @@
 #include <linux/device.h>
 #include <linux/slab.h>
 
-#include "xe_bo.h"
-#include "xe_device.h"
-#include "xe_gt.h"
+#include "xe_device_types.h"
 #include "xe_hw_engine.h"
 #include "xe_macros.h"
 #include "xe_map.h"
index befc77e46eae4eb97e676f7b0a8ee7b05dac5fce..1e1fb72e49bf215f025c4960124d372de88a4464 100644 (file)
@@ -5,6 +5,7 @@
  * Copyright (C) 2025 Intel Corporation.
  */
 
+#include <drm/drm_print.h>
 #include <linux/array_size.h>
 #include <linux/container_of.h>
 #include <linux/device.h>
 #include "regs/xe_i2c_regs.h"
 #include "regs/xe_irq_regs.h"
 
-#include "xe_device.h"
 #include "xe_device_types.h"
 #include "xe_i2c.h"
 #include "xe_mmio.h"
-#include "xe_platform_types.h"
+#include "xe_sriov.h"
 #include "xe_survivability_mode.h"
 
 /**
index baf5d2c6e802ff02d51a2613762a3a847447fa14..7560a45f7f64ee043be8aa78d9a4beaa1f21e668 100644 (file)
@@ -10,7 +10,6 @@
 #include <drm/drm_managed.h>
 
 #include "display/xe_display.h"
-#include "regs/xe_guc_regs.h"
 #include "regs/xe_irq_regs.h"
 #include "xe_device.h"
 #include "xe_drv.h"
index b0c7ce0a5d1eb2426ecb15419519f89784a4cc8e..811e07136efbfff8b39c8f88a5f8b1dc0e7f331c 100644 (file)
@@ -7,7 +7,6 @@
 
 #include "regs/xe_guc_regs.h"
 #include "regs/xe_irq_regs.h"
-#include "regs/xe_regs.h"
 
 #include "xe_assert.h"
 #include "xe_bo.h"
@@ -16,7 +15,6 @@
 #include "xe_gt.h"
 #include "xe_guc.h"
 #include "xe_hw_engine.h"
-#include "xe_map.h"
 #include "xe_memirq.h"
 #include "xe_tile_printk.h"
 
index 350dca1f092596eaa448d3fc0ae3c5251a9152b2..bcb6674b7dac0214c32e95f30277126154d9cbd6 100644 (file)
 #include <drm/drm_print.h>
 
 #include "regs/xe_bars.h"
-#include "regs/xe_regs.h"
 #include "xe_device.h"
-#include "xe_gt.h"
-#include "xe_gt_printk.h"
 #include "xe_gt_sriov_vf.h"
-#include "xe_macros.h"
 #include "xe_sriov.h"
 #include "xe_trace.h"
 #include "xe_wa.h"
index 0b7225bd77e0e833a23921a317e4969d67bbec09..54822497c21eb019d16809a552034e0f37fa6b4d 100644 (file)
@@ -6,7 +6,6 @@
 #include "xe_mocs.h"
 
 #include "regs/xe_gt_regs.h"
-#include "xe_bo.h"
 #include "xe_device.h"
 #include "xe_exec_queue.h"
 #include "xe_force_wake.h"
@@ -17,7 +16,6 @@
 #include "xe_platform_types.h"
 #include "xe_pm.h"
 #include "xe_sriov.h"
-#include "xe_step_types.h"
 
 #if IS_ENABLED(CONFIG_DRM_XE_DEBUG)
 #define mocs_dbg xe_gt_dbg
index 9934f90691fd82a140e32a127250bf599f04d446..a0048f64ed12d2896e7882eca0d92e21701e08f8 100644 (file)
@@ -10,7 +10,7 @@
 
 #include <drm/drm_module.h>
 
-#include "xe_device.h"
+#include "xe_device_types.h"
 #include "xe_drv.h"
 #include "xe_configfs.h"
 #include "xe_hw_fence.h"
index 01510061d4d43af81fb6135bf1014244aefa4a66..43737504651796c87df3b0088a8541128cbfbd2c 100644 (file)
@@ -6,7 +6,6 @@
 #include <linux/intel_dg_nvm_aux.h>
 #include <linux/pci.h>
 
-#include "xe_device.h"
 #include "xe_device_types.h"
 #include "xe_mmio.h"
 #include "xe_nvm.h"
index a8f35919a9da2f1d3af53a5889c6ab3f4fc3c822..e13c71a89da2cfae3ea3c429ede6fbaf1a80bfca 100644 (file)
 
 #include "xe_page_reclaim.h"
 
-#include "regs/xe_gt_regs.h"
-#include "xe_assert.h"
 #include "xe_gt_stats.h"
 #include "xe_macros.h"
-#include "xe_mmio.h"
 #include "xe_pat.h"
 #include "xe_sa.h"
 #include "xe_tlb_inval_types.h"
-#include "xe_vm.h"
 
 /**
  * xe_page_reclaim_skip() - Decide whether PRL should be skipped for a VMA
index fa0a374d88f899d244c6c9621c023f7f0cca5b4c..09189ff3da441009425bde0bdac1ba9dead1d137 100644 (file)
@@ -24,7 +24,6 @@
 #include "xe_gt.h"
 #include "xe_gt_sriov_vf.h"
 #include "xe_guc.h"
-#include "xe_macros.h"
 #include "xe_mmio.h"
 #include "xe_module.h"
 #include "xe_pci_rebar.h"
index 6a54e38b81ba97a3c1245b8abfd114cfd5c8c9c2..899b01f72ba336cd8d6f7d32da7fd0ebbc54a19c 100644 (file)
@@ -6,7 +6,7 @@
 #include <linux/debugfs.h>
 
 #include "xe_bo.h"
-#include "xe_device.h"
+#include "xe_device_types.h"
 #include "xe_configfs.h"
 #include "xe_psmi.h"
 
index 508f4c128a48b247ae1a1268fdc89f808941e391..d61446bf9c19b6ea4a6d291c374bf4c8d3517fad 100644 (file)
@@ -15,7 +15,6 @@
 #include "xe_force_wake.h"
 #include "xe_guc_submit.h"
 #include "xe_gsc_proxy.h"
-#include "xe_gt.h"
 #include "xe_gt_types.h"
 #include "xe_huc.h"
 #include "xe_mmio.h"
index 525a2f6bb0767ca583b7e995ac3f06c1a80f1b13..d6e2e41bc88ccf3d99bcbaec10c60f9cd5c6cd69 100644 (file)
@@ -11,7 +11,7 @@
 #include <drm/drm_managed.h>
 #include <drm/drm_print.h>
 
-#include "xe_device.h"
+#include "xe_device_types.h"
 #include "xe_pxp.h"
 #include "xe_pxp_types.h"
 #include "regs/xe_irq_regs.h"
index 1a465385f909104deb8cd50b08766a3a295e6505..d3e13ea33123c2030eb3d16d9b8da00b081441db 100644 (file)
 #include <drm/drm_managed.h>
 #include <drm/drm_print.h>
 
-#include "regs/xe_engine_regs.h"
-#include "regs/xe_gt_regs.h"
 #include "xe_device.h"
 #include "xe_device_types.h"
 #include "xe_force_wake.h"
-#include "xe_gt.h"
 #include "xe_gt_mcr.h"
 #include "xe_gt_printk.h"
+#include "xe_gt_types.h"
 #include "xe_hw_engine_types.h"
-#include "xe_macros.h"
 #include "xe_mmio.h"
 #include "xe_rtp_types.h"
 
index 1391cb6ec9c62523b5c62e2a33a0d0707670e140..1d36c09681aaa8cd0bdd3e764914bba6a24f7231 100644 (file)
@@ -8,7 +8,6 @@
 #include "regs/xe_engine_regs.h"
 #include "regs/xe_gt_regs.h"
 #include "regs/xe_oa_regs.h"
-#include "regs/xe_regs.h"
 #include "xe_device.h"
 #include "xe_gt_types.h"
 #include "xe_gt_printk.h"
index a1fd99f2d539cd6368da01253594ed16782dcf10..248620b0901dcd906f0009120d3c62bee16f1fe7 100644 (file)
 #include "instructions/xe_mi_commands.h"
 #include "regs/xe_engine_regs.h"
 #include "regs/xe_gt_regs.h"
-#include "regs/xe_lrc_layout.h"
 #include "xe_exec_queue.h"
-#include "xe_gt.h"
+#include "xe_gt_types.h"
 #include "xe_lrc.h"
-#include "xe_macros.h"
 #include "xe_sched_job.h"
 #include "xe_sriov.h"
 #include "xe_vm_types.h"
index ed509b1c8cfcdd0482812ff9d1ce99649650f742..b7c26e2fb411ea75fbd484b55f48019fc09f0581 100644 (file)
@@ -12,7 +12,6 @@
 #include "xe_configfs.h"
 #include "xe_gt.h"
 #include "xe_gt_topology.h"
-#include "xe_macros.h"
 #include "xe_reg_sr.h"
 #include "xe_sriov.h"
 
index a87c1436c7c10f16c7c37e9b5a6dabc6fb73eb87..b738102575d407044990aa4959e9a34002d67c8b 100644 (file)
@@ -10,7 +10,7 @@
 #include <drm/drm_managed.h>
 
 #include "xe_bo.h"
-#include "xe_device.h"
+#include "xe_device_types.h"
 #include "xe_map.h"
 
 static void xe_sa_bo_manager_fini(struct drm_device *drm, void *arg)
index 39aec7f6d86d8e315b215275ca40f7e17d2c1183..3927666fe5566e372d7ee19885452cadf75a27e2 100644 (file)
@@ -11,7 +11,7 @@
 
 #include "xe_device.h"
 #include "xe_exec_queue.h"
-#include "xe_gt.h"
+#include "xe_gt_types.h"
 #include "xe_hw_engine_types.h"
 #include "xe_hw_fence.h"
 #include "xe_lrc.h"
index 2cefefaed9ba2dae8c1db6de026cbaf6bbe0d88b..7a4c3de662e5613853115cfe523b5afbf6c8b301 100644 (file)
@@ -6,7 +6,6 @@
 #include "xe_bo.h"
 #include "xe_device.h"
 #include "xe_guc_klv_helpers.h"
-#include "xe_printk.h"
 #include "xe_sriov_packet.h"
 #include "xe_sriov_packet_types.h"
 #include "xe_sriov_pf_helpers.h"
index e84bdde9bc80140f46caabedd9112d0f8fd7eebb..81b377830d6d6c0a68cd71ad6ab5e164d083df19 100644 (file)
@@ -16,7 +16,6 @@
 #include "xe_sriov_pf_migration.h"
 #include "xe_sriov_pf_provision.h"
 #include "xe_sriov_pf_service.h"
-#include "xe_sriov_printk.h"
 #include "xe_tile_sriov_pf_debugfs.h"
 
 /*
index 1b75405b8d02774ec65aef3677074fe51910fac4..29894bd081c0480734a27c6fb3c9bbb6857da7dd 100644 (file)
@@ -6,7 +6,6 @@
 #include <drm/drm_debugfs.h>
 #include <drm/drm_managed.h>
 
-#include "xe_gt.h"
 #include "xe_gt_sriov_vf.h"
 #include "xe_guc.h"
 #include "xe_sriov_printk.h"
index 10e88f2c9615ef881e2e1614d0b47bd7d833d43b..2860986f82f7875d135df257cddd7c0836f64e87 100644 (file)
@@ -5,10 +5,11 @@
 
 #include "xe_step.h"
 
+#include <drm/drm_print.h>
 #include <kunit/visibility.h>
 #include <linux/bitfield.h>
 
-#include "xe_device.h"
+#include "xe_device_types.h"
 #include "xe_platform_types.h"
 
 /*
index 31456f432fc8036032dbca685e19964e52653cf1..6578ffc77bd511ac20081becff8036fcd9c2eb48 100644 (file)
@@ -12,7 +12,6 @@
 
 #include "xe_configfs.h"
 #include "xe_device.h"
-#include "xe_gt.h"
 #include "xe_heci_gsc.h"
 #include "xe_i2c.h"
 #include "xe_mmio.h"
index eb262aad11da716ee5b509661a08e97d7ac3c8a2..c465aae7883cc1dd75651f2c7866af74ee3e5aaf 100644 (file)
@@ -9,9 +9,8 @@
 #include <drm/drm_pagemap_util.h>
 
 #include "xe_bo.h"
-#include "xe_device.h"
+#include "xe_device_types.h"
 #include "xe_ggtt.h"
-#include "xe_gt.h"
 #include "xe_memirq.h"
 #include "xe_migrate.h"
 #include "xe_pcode.h"
index 61b99cf0a7338e5ac08241866d2a6208c3d6baf4..e837888367c4d1ac83e08921cd4ab81e8e33290b 100644 (file)
@@ -5,13 +5,10 @@
 
 #include <drm/drm_managed.h>
 
-#include "abi/guc_actions_abi.h"
-#include "xe_device.h"
+#include "xe_device_types.h"
 #include "xe_force_wake.h"
-#include "xe_gt.h"
-#include "xe_gt_printk.h"
 #include "xe_gt_stats.h"
-#include "xe_guc.h"
+#include "xe_gt_types.h"
 #include "xe_guc_ct.h"
 #include "xe_guc_tlb_inval.h"
 #include "xe_mmio.h"
index 1bddecfb723a45de425355bd24d8e2c2a4d16116..27c9d72222cf083a7505326e56c7682ee6f97e56 100644 (file)
@@ -17,7 +17,6 @@
 #include "regs/xe_regs.h"
 #include "xe_bo.h"
 #include "xe_device.h"
-#include "xe_gt.h"
 #include "xe_gt_printk.h"
 #include "xe_mmio.h"
 #include "xe_res_cursor.h"
index 3e404eb8d09896291dd876f9fd5abdd76e03f538..99fb7e99eb7f6b1892e56e6df64e224e45a61cbb 100644 (file)
@@ -13,7 +13,6 @@
 #include <drm/ttm/ttm_tt.h>
 
 #include "xe_bo.h"
-#include "xe_gt.h"
 
 struct xe_ttm_sys_node {
        struct ttm_buffer_object *tbo;
index 9f70802fce9238f8f89bffa1096d3a0e20f28e55..6553a19f7cf2f34914320a2f2671387a9cbe59ba 100644 (file)
@@ -12,7 +12,6 @@
 
 #include "xe_bo.h"
 #include "xe_device.h"
-#include "xe_gt.h"
 #include "xe_res_cursor.h"
 #include "xe_ttm_vram_mgr.h"
 #include "xe_vram_types.h"
index 157520ea178300c85d522484930611739f30ca97..3f63c2a7e86de36b263104afcd71d0cda2e31803 100644 (file)
@@ -8,7 +8,6 @@
 #include "xe_assert.h"
 #include "xe_device.h"
 #include "xe_gsc.h"
-#include "xe_gsc_proxy.h"
 #include "xe_gt.h"
 #include "xe_gt_printk.h"
 #include "xe_gt_sriov_vf.h"
@@ -17,7 +16,6 @@
 #include "xe_guc_engine_activity.h"
 #include "xe_huc.h"
 #include "xe_sriov.h"
-#include "xe_uc_fw.h"
 #include "xe_wopcm.h"
 
 static struct xe_gt *
index 24a4209051eecd6668e1b5aa424383347aa091c0..45119993f5cbc0b63deace487187e877cada51e4 100644 (file)
@@ -7,12 +7,12 @@
 
 #include <drm/drm_debugfs.h>
 
-#include "xe_gt.h"
 #include "xe_gsc_debugfs.h"
 #include "xe_guc_debugfs.h"
 #include "xe_huc_debugfs.h"
 #include "xe_macros.h"
 #include "xe_uc_debugfs.h"
+#include "xe_uc_types.h"
 
 void xe_uc_debugfs_register(struct xe_uc *uc, struct dentry *parent)
 {
index f5788db5073c3970ef1e1f1f9609e31b17f27326..d35bc4989144a2401182f5351c48c4fad2584dda 100644 (file)
@@ -14,9 +14,9 @@
 #include "xe_device_types.h"
 #include "xe_force_wake.h"
 #include "xe_gsc.h"
-#include "xe_gt.h"
 #include "xe_gt_printk.h"
 #include "xe_gt_sriov_vf.h"
+#include "xe_gt_types.h"
 #include "xe_guc.h"
 #include "xe_map.h"
 #include "xe_mmio.h"
index 826cd09966ef904c53132d083399c04c0ac7184f..a611438eaafee133424bb7afd89824ad634547b4 100644 (file)
@@ -2,7 +2,6 @@
 /*
  * Copyright © 2024 Intel Corporation
  */
-#include "xe_bo.h"
 #include <drm/drm_exec.h>
 #include <drm/drm_gem.h>
 #include <drm/drm_gpuvm.h>
index 001bc36da5ef870c72dd38e117e549ecb3a4c261..bbbc7e71b8ef4f5b6fb29070c373b27ed8b2d8ed 100644 (file)
@@ -33,7 +33,6 @@
 #include "xe_preempt_fence.h"
 #include "xe_pt.h"
 #include "xe_pxp.h"
-#include "xe_res_cursor.h"
 #include "xe_sriov_vf.h"
 #include "xe_svm.h"
 #include "xe_sync.h"
index 4f807eade2b742c2d718b5615f2cbbd8c3ff38ff..0538dcb8b18c834387890978a043c51c9195317a 100644 (file)
 #include "regs/xe_gt_regs.h"
 #include "regs/xe_regs.h"
 #include "xe_assert.h"
-#include "xe_bo.h"
 #include "xe_device.h"
 #include "xe_force_wake.h"
 #include "xe_gt_mcr.h"
 #include "xe_mmio.h"
-#include "xe_module.h"
 #include "xe_sriov.h"
 #include "xe_tile_sriov_vf.h"
 #include "xe_ttm_vram_mgr.h"
index 17bc84da4cdcc9da22f44b99f63f2393ad85371a..6f8281e0b96a31dd5613e93c0faef5c8002ffed5 100644 (file)
@@ -5,7 +5,6 @@
 #include <linux/sysfs.h>
 #include <drm/drm_managed.h>
 
-#include "xe_gt_types.h"
 #include "xe_pcode.h"
 #include "xe_pcode_api.h"
 #include "xe_tile.h"
index c83ea3d48faead0c75c4b75b5232a58afc6907db..4ebb4dbe1c9b9e6d17ba44aa45f743c9d247f10f 100644 (file)
@@ -12,7 +12,6 @@
 
 #include "xe_device.h"
 #include "xe_device_types.h"
-#include "xe_drv.h"
 #include "xe_mmio.h"
 #include "xe_platform_types.h"
 #include "xe_pm.h"
index a93717e77da0225dafdfd2fd2a798b750412529d..a991ee2b87819d6dde922d6288c103360f57b50d 100644 (file)
@@ -19,7 +19,7 @@
 #include "regs/xe_regs.h"
 #include "xe_device_types.h"
 #include "xe_force_wake.h"
-#include "xe_gt.h"
+#include "xe_gt_types.h"
 #include "xe_hw_engine_types.h"
 #include "xe_mmio.h"
 #include "xe_platform_types.h"
index 5b4264ea38bd21d1ea4e757e155c62101c35d95a..51eb940ceb4eedcbfc962d02f8eb3e7f3b01737c 100644 (file)
@@ -11,7 +11,6 @@
 #include <uapi/drm/xe_drm.h>
 
 #include "xe_device.h"
-#include "xe_gt.h"
 #include "xe_macros.h"
 #include "xe_exec_queue.h"
 
index ada0d0aa6b74941826f8698f808debc6c3292ca2..dde4f4967ca3738717217c2acb0227aa7d86153b 100644 (file)
@@ -10,7 +10,7 @@
 #include "regs/xe_guc_regs.h"
 #include "xe_device.h"
 #include "xe_force_wake.h"
-#include "xe_gt.h"
+#include "xe_gt_types.h"
 #include "xe_mmio.h"
 #include "xe_uc_fw.h"