]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
drm/xe: Move xe_root_tile_mmio() to xe_device.h
authorMichal Wajdeczko <michal.wajdeczko@intel.com>
Tue, 3 Feb 2026 21:12:36 +0000 (22:12 +0100)
committerMichal Wajdeczko <michal.wajdeczko@intel.com>
Thu, 5 Feb 2026 20:08:28 +0000 (21:08 +0100)
It seems to be a better place for this helper function, where
we already have other 'root' oriented helpers.

Signed-off-by: Michal Wajdeczko <michal.wajdeczko@intel.com>
Reviewed-by: Stuart Summers <stuart.summers@intel.com>
Reviewed-by: Matt Roper <matthew.d.roper@intel.com>
Link: https://patch.msgid.link/20260203211240.745-2-michal.wajdeczko@intel.com
drivers/gpu/drm/xe/xe_device.h
drivers/gpu/drm/xe/xe_i2c.c
drivers/gpu/drm/xe/xe_mmio.h
drivers/gpu/drm/xe/xe_nvm.c
drivers/gpu/drm/xe/xe_soc_remapper.c

index 58d7d8b2fea391f8dc673b0050265a93692f3d80..39464650533b5fd9aa7d9fc3dd432710303311b5 100644 (file)
@@ -109,6 +109,11 @@ static inline struct xe_gt *xe_root_mmio_gt(struct xe_device *xe)
        return xe_device_get_root_tile(xe)->primary_gt;
 }
 
+static inline struct xe_mmio *xe_root_tile_mmio(struct xe_device *xe)
+{
+       return &xe->tiles[0].mmio;
+}
+
 static inline bool xe_device_uc_enabled(struct xe_device *xe)
 {
        return !xe->info.force_execlist;
index 1e1fb72e49bf215f025c4960124d372de88a4464..1deb812fe01dc019a4eee45307d3c7c5797ae61a 100644 (file)
@@ -27,7 +27,7 @@
 #include "regs/xe_i2c_regs.h"
 #include "regs/xe_irq_regs.h"
 
-#include "xe_device_types.h"
+#include "xe_device.h"
 #include "xe_i2c.h"
 #include "xe_mmio.h"
 #include "xe_sriov.h"
index 15362789ab99498176889c03c1501123a2c25add..6a8faebb2c298fde2070b7dac520b5983e0d0b69 100644 (file)
@@ -37,11 +37,6 @@ static inline u32 xe_mmio_adjusted_addr(const struct xe_mmio *mmio, u32 addr)
        return addr;
 }
 
-static inline struct xe_mmio *xe_root_tile_mmio(struct xe_device *xe)
-{
-       return &xe->tiles[0].mmio;
-}
-
 #ifdef CONFIG_PCI_IOV
 void xe_mmio_init_vf_view(struct xe_mmio *mmio, const struct xe_mmio *base, unsigned int vfid);
 #endif
index bc88804de51463d5b72bdbb6d656716cfd024566..1fdfb690ea3d3f330e3c60879cf809f2bb6f424e 100644 (file)
@@ -6,7 +6,7 @@
 #include <linux/intel_dg_nvm_aux.h>
 #include <linux/pci.h>
 
-#include "xe_device_types.h"
+#include "xe_device.h"
 #include "xe_mmio.h"
 #include "xe_nvm.h"
 #include "xe_pcode_api.h"
index 1c391d7191966a63e2eb43e12965933aa15d7f8c..c031336a6d753d820062d50ee8dd5912417314b1 100644 (file)
@@ -4,6 +4,7 @@
  */
 
 #include "regs/xe_soc_remapper_regs.h"
+#include "xe_device.h"
 #include "xe_mmio.h"
 #include "xe_soc_remapper.h"