All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Summers, Stuart" <stuart.summers@intel.com>
To: "intel-xe@lists.freedesktop.org" <intel-xe@lists.freedesktop.org>,
	"Wajdeczko, Michal" <Michal.Wajdeczko@intel.com>
Cc: "Roper, Matthew D" <matthew.d.roper@intel.com>,
	"De Marchi, Lucas" <lucas.demarchi@intel.com>
Subject: Re: [PATCH 1/4] drm/xe: Move xe_root_tile_mmio() to xe_device.h
Date: Wed, 4 Jun 2025 00:12:49 +0000	[thread overview]
Message-ID: <eb14616bb45ee258c53d2d8c7fcafec79c620a37.camel@intel.com> (raw)
In-Reply-To: <20250603202826.681-2-michal.wajdeczko@intel.com>

On Tue, 2025-06-03 at 22:28 +0200, Michal Wajdeczko wrote:
> It seems to be a better place for this helper function.
> 
> Signed-off-by: Michal Wajdeczko <michal.wajdeczko@intel.com>
> Cc: Lucas De Marchi <lucas.demarchi@intel.com>
> Cc: Matt Roper <matthew.d.roper@intel.com>

Would be nice in the commit message to mention this is because the rest
of the mmio structures are per-tile. That said, why not move
xe_mmio_probe_early and xe_mmio_probe_tiles at the same time for a
similar reason?

Reviewed-by: Stuart Summers <stuart.summers@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


  reply	other threads:[~2025-06-04  0:13 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-06-03 20:28 [PATCH 0/4] Some more _types.h cleanups Michal Wajdeczko
2025-06-03 20:28 ` [PATCH 1/4] drm/xe: Move xe_root_tile_mmio() to xe_device.h Michal Wajdeczko
2025-06-04  0:12   ` Summers, Stuart [this message]
2025-06-04  9:04     ` Michal Wajdeczko
2025-06-09 21:27   ` Matt Roper
2025-06-03 20:28 ` [PATCH 2/4] drm/xe: Promote struct xe_mmio definition to own file Michal Wajdeczko
2025-06-04  0:16   ` Summers, Stuart
2025-06-09 21:28   ` Matt Roper
2025-06-03 20:28 ` [PATCH 3/4] drm/xe: Promote struct xe_tile " Michal Wajdeczko
2025-06-09 21:24   ` Matt Roper
2025-06-03 20:28 ` [PATCH 4/4] drm/xe: Drop unnecessary include from xe_tile.h Michal Wajdeczko
2025-06-09 21:27   ` Matt Roper
2025-06-10  5:03   ` Upadhyay, Tejas
2025-06-03 20:33 ` ✓ CI.Patch_applied: success for Some more _types.h cleanups Patchwork
2025-06-03 20:33 ` ✗ CI.checkpatch: warning " Patchwork
2025-06-03 20:34 ` ✗ CI.KUnit: failure " Patchwork
2025-06-04 17:50 ` ✗ CI.Patch_applied: failure for Some more _types.h cleanups (rev2) Patchwork

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=eb14616bb45ee258c53d2d8c7fcafec79c620a37.camel@intel.com \
    --to=stuart.summers@intel.com \
    --cc=Michal.Wajdeczko@intel.com \
    --cc=intel-xe@lists.freedesktop.org \
    --cc=lucas.demarchi@intel.com \
    --cc=matthew.d.roper@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.