Commit 8965e008 authored by Michal Wajdeczko's avatar Michal Wajdeczko
Browse files

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: default avatarMichal Wajdeczko <michal.wajdeczko@intel.com>
Reviewed-by: default avatarStuart Summers <stuart.summers@intel.com>
Reviewed-by: default avatarMatt Roper <matthew.d.roper@intel.com>
Link: https://patch.msgid.link/20260203211240.745-2-michal.wajdeczko@intel.com
parent 98b16727
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -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;
+1 −1
Original line number Diff line number Diff line
@@ -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"
+0 −5
Original line number Diff line number Diff line
@@ -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
+1 −1
Original line number Diff line number Diff line
@@ -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"
+1 −0
Original line number Diff line number Diff line
@@ -4,6 +4,7 @@
 */

#include "regs/xe_soc_remapper_regs.h"
#include "xe_device.h"
#include "xe_mmio.h"
#include "xe_soc_remapper.h"