All of lore.kernel.org
 help / color / mirror / Atom feed
From: Rodrigo Vivi <rodrigo.vivi@intel.com>
To: Michal Wajdeczko <michal.wajdeczko@intel.com>
Cc: <intel-xe@lists.freedesktop.org>,
	Lucas De Marchi <lucas.demarchi@intel.com>
Subject: Re: [PATCH 2/3] drm/xe: Drop undesired prefix from the platform name
Date: Wed, 22 May 2024 12:29:10 -0400	[thread overview]
Message-ID: <Zk4dVrOHnqiNRqrr@intel.com> (raw)
In-Reply-To: <20240521142257.756-3-michal.wajdeczko@intel.com>

On Tue, May 21, 2024 at 04:22:56PM +0200, Michal Wajdeczko wrote:
> We don't have to use exact names of the enumerators as the
> potentially user-facing platform names. When constructing
> platform descriptor fields, use the unique platform tag and
> add the XE_ prefix only to the generated enum field.
> 
> Signed-off-by: Michal Wajdeczko <michal.wajdeczko@intel.com>
> Cc: Lucas De Marchi <lucas.demarchi@intel.com>

Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>

> ---
>  drivers/gpu/drm/xe/xe_pci.c | 24 ++++++++++++------------
>  1 file changed, 12 insertions(+), 12 deletions(-)
> 
> diff --git a/drivers/gpu/drm/xe/xe_pci.c b/drivers/gpu/drm/xe/xe_pci.c
> index b30fe4849038..34ff997439f0 100644
> --- a/drivers/gpu/drm/xe/xe_pci.c
> +++ b/drivers/gpu/drm/xe/xe_pci.c
> @@ -75,7 +75,7 @@ __diag_push();
>  __diag_ignore_all("-Woverride-init", "Allow field overrides in table");
>  
>  #define PLATFORM(x)		\
> -	.platform = (x),	\
> +	.platform = XE_##x,	\
>  	.platform_name = #x
>  
>  #define NOP(x)	x
> @@ -222,7 +222,7 @@ static const struct xe_media_desc media_xe2 = {
>  static const struct xe_device_desc tgl_desc = {
>  	.graphics = &graphics_xelp,
>  	.media = &media_xem,
> -	PLATFORM(XE_TIGERLAKE),
> +	PLATFORM(TIGERLAKE),
>  	.has_display = true,
>  	.has_llc = true,
>  	.require_force_probe = true,
> @@ -231,7 +231,7 @@ static const struct xe_device_desc tgl_desc = {
>  static const struct xe_device_desc rkl_desc = {
>  	.graphics = &graphics_xelp,
>  	.media = &media_xem,
> -	PLATFORM(XE_ROCKETLAKE),
> +	PLATFORM(ROCKETLAKE),
>  	.has_display = true,
>  	.has_llc = true,
>  	.require_force_probe = true,
> @@ -242,7 +242,7 @@ static const u16 adls_rpls_ids[] = { XE_RPLS_IDS(NOP), 0 };
>  static const struct xe_device_desc adl_s_desc = {
>  	.graphics = &graphics_xelp,
>  	.media = &media_xem,
> -	PLATFORM(XE_ALDERLAKE_S),
> +	PLATFORM(ALDERLAKE_S),
>  	.has_display = true,
>  	.has_llc = true,
>  	.require_force_probe = true,
> @@ -257,7 +257,7 @@ static const u16 adlp_rplu_ids[] = { XE_RPLU_IDS(NOP), 0 };
>  static const struct xe_device_desc adl_p_desc = {
>  	.graphics = &graphics_xelp,
>  	.media = &media_xem,
> -	PLATFORM(XE_ALDERLAKE_P),
> +	PLATFORM(ALDERLAKE_P),
>  	.has_display = true,
>  	.has_llc = true,
>  	.require_force_probe = true,
> @@ -270,7 +270,7 @@ static const struct xe_device_desc adl_p_desc = {
>  static const struct xe_device_desc adl_n_desc = {
>  	.graphics = &graphics_xelp,
>  	.media = &media_xem,
> -	PLATFORM(XE_ALDERLAKE_N),
> +	PLATFORM(ALDERLAKE_N),
>  	.has_display = true,
>  	.has_llc = true,
>  	.require_force_probe = true,
> @@ -283,7 +283,7 @@ static const struct xe_device_desc dg1_desc = {
>  	.graphics = &graphics_xelpp,
>  	.media = &media_xem,
>  	DGFX_FEATURES,
> -	PLATFORM(XE_DG1),
> +	PLATFORM(DG1),
>  	.has_display = true,
>  	.has_heci_gscfi = 1,
>  	.require_force_probe = true,
> @@ -295,7 +295,7 @@ static const u16 dg2_g12_ids[] = { XE_DG2_G12_IDS(NOP), 0 };
>  
>  #define DG2_FEATURES \
>  	DGFX_FEATURES, \
> -	PLATFORM(XE_DG2), \
> +	PLATFORM(DG2), \
>  	.has_heci_gscfi = 1, \
>  	.subplatforms = (const struct xe_subplatform_desc[]) { \
>  		{ XE_SUBPLATFORM_DG2_G10, "G10", dg2_g10_ids }, \
> @@ -325,7 +325,7 @@ static const struct xe_device_desc dg2_desc = {
>  static const struct xe_device_desc pvc_desc = {
>  	.graphics = &graphics_xehpc,
>  	DGFX_FEATURES,
> -	PLATFORM(XE_PVC),
> +	PLATFORM(PVC),
>  	.has_display = false,
>  	.has_heci_gscfi = 1,
>  	.require_force_probe = true,
> @@ -334,19 +334,19 @@ static const struct xe_device_desc pvc_desc = {
>  static const struct xe_device_desc mtl_desc = {
>  	/* .graphics and .media determined via GMD_ID */
>  	.require_force_probe = true,
> -	PLATFORM(XE_METEORLAKE),
> +	PLATFORM(METEORLAKE),
>  	.has_display = true,
>  };
>  
>  static const struct xe_device_desc lnl_desc = {
> -	PLATFORM(XE_LUNARLAKE),
> +	PLATFORM(LUNARLAKE),
>  	.has_display = true,
>  	.require_force_probe = true,
>  };
>  
>  static const struct xe_device_desc bmg_desc __maybe_unused = {
>  	DGFX_FEATURES,
> -	PLATFORM(XE_BATTLEMAGE),
> +	PLATFORM(BATTLEMAGE),
>  	.has_display = true,
>  	.require_force_probe = true,
>  };
> -- 
> 2.43.0
> 

  reply	other threads:[~2024-05-22 16:29 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-05-21 14:22 [PATCH 0/3] Store platform name in xe_device.info Michal Wajdeczko
2024-05-21 14:22 ` [PATCH 1/3] drm/xe: " Michal Wajdeczko
2024-05-22 16:28   ` Rodrigo Vivi
2024-05-21 14:22 ` [PATCH 2/3] drm/xe: Drop undesired prefix from the platform name Michal Wajdeczko
2024-05-22 16:29   ` Rodrigo Vivi [this message]
2024-05-21 14:22 ` [PATCH 3/3] drm/xe: Use platform name in xe_assert() Michal Wajdeczko
2024-05-22 16:29   ` Rodrigo Vivi
2024-05-21 16:39 ` ✓ CI.Patch_applied: success for Store platform name in xe_device.info Patchwork
2024-05-21 16:39 ` ✓ CI.checkpatch: " Patchwork
2024-05-21 16:40 ` ✓ CI.KUnit: " Patchwork
2024-05-21 16:52 ` ✓ CI.Build: " Patchwork
2024-05-21 16:54 ` ✓ CI.Hooks: " Patchwork
2024-05-21 16:56 ` ✓ CI.checksparse: " Patchwork
2024-05-21 17:28 ` ✓ CI.BAT: " Patchwork
2024-05-21 22:53 ` ✗ CI.FULL: failure " Patchwork
2024-05-22 21:37   ` Michal Wajdeczko
2024-05-28 14:18 ` [PATCH 0/3] " Michal Wajdeczko
2024-05-29 17:29   ` Lucas De Marchi

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=Zk4dVrOHnqiNRqrr@intel.com \
    --to=rodrigo.vivi@intel.com \
    --cc=intel-xe@lists.freedesktop.org \
    --cc=lucas.demarchi@intel.com \
    --cc=michal.wajdeczko@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.