[PATCH 1/4] drm/xe: Move xe_root_tile_mmio() to xe_device.h
Matt Roper
matthew.d.roper at intel.com
Mon Jun 9 21:27:59 UTC 2025
On Tue, Jun 03, 2025 at 10:28:23PM +0200, Michal Wajdeczko wrote:
> It seems to be a better place for this helper function.
>
> Signed-off-by: Michal Wajdeczko <michal.wajdeczko at intel.com>
> Cc: Lucas De Marchi <lucas.demarchi at intel.com>
> Cc: Matt Roper <matthew.d.roper at intel.com>
Reviewed-by: Matt Roper <matthew.d.roper at intel.com>
> ---
> drivers/gpu/drm/xe/xe_device.h | 5 +++++
> drivers/gpu/drm/xe/xe_mmio.h | 5 -----
> 2 files changed, 5 insertions(+), 5 deletions(-)
>
> diff --git a/drivers/gpu/drm/xe/xe_device.h b/drivers/gpu/drm/xe/xe_device.h
> index 0bc3bc8e6803..884e8e4fddbf 100644
> --- a/drivers/gpu/drm/xe/xe_device.h
> +++ b/drivers/gpu/drm/xe/xe_device.h
> @@ -117,6 +117,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;
> diff --git a/drivers/gpu/drm/xe/xe_mmio.h b/drivers/gpu/drm/xe/xe_mmio.h
> index c151ba569003..540bade24790 100644
> --- a/drivers/gpu/drm/xe/xe_mmio.h
> +++ b/drivers/gpu/drm/xe/xe_mmio.h
> @@ -37,9 +37,4 @@ 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;
> -}
> -
> #endif
> --
> 2.47.1
>
--
Matt Roper
Graphics Software Engineer
Linux GPU Platform Enablement
Intel Corporation
More information about the Intel-xe
mailing list