Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

drm/xe: Move xe_root_tile_mmio() to xe_device.h

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

+8 -7
+5
drivers/gpu/drm/xe/xe_device.h
··· 109 109 return xe_device_get_root_tile(xe)->primary_gt; 110 110 } 111 111 112 + static inline struct xe_mmio *xe_root_tile_mmio(struct xe_device *xe) 113 + { 114 + return &xe->tiles[0].mmio; 115 + } 116 + 112 117 static inline bool xe_device_uc_enabled(struct xe_device *xe) 113 118 { 114 119 return !xe->info.force_execlist;
+1 -1
drivers/gpu/drm/xe/xe_i2c.c
··· 27 27 #include "regs/xe_i2c_regs.h" 28 28 #include "regs/xe_irq_regs.h" 29 29 30 - #include "xe_device_types.h" 30 + #include "xe_device.h" 31 31 #include "xe_i2c.h" 32 32 #include "xe_mmio.h" 33 33 #include "xe_sriov.h"
-5
drivers/gpu/drm/xe/xe_mmio.h
··· 37 37 return addr; 38 38 } 39 39 40 - static inline struct xe_mmio *xe_root_tile_mmio(struct xe_device *xe) 41 - { 42 - return &xe->tiles[0].mmio; 43 - } 44 - 45 40 #ifdef CONFIG_PCI_IOV 46 41 void xe_mmio_init_vf_view(struct xe_mmio *mmio, const struct xe_mmio *base, unsigned int vfid); 47 42 #endif
+1 -1
drivers/gpu/drm/xe/xe_nvm.c
··· 6 6 #include <linux/intel_dg_nvm_aux.h> 7 7 #include <linux/pci.h> 8 8 9 - #include "xe_device_types.h" 9 + #include "xe_device.h" 10 10 #include "xe_mmio.h" 11 11 #include "xe_nvm.h" 12 12 #include "xe_pcode_api.h"
+1
drivers/gpu/drm/xe/xe_soc_remapper.c
··· 4 4 */ 5 5 6 6 #include "regs/xe_soc_remapper_regs.h" 7 + #include "xe_device.h" 7 8 #include "xe_mmio.h" 8 9 #include "xe_soc_remapper.h" 9 10