Intel-GFX Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: "Ville Syrjälä" <ville.syrjala@linux.intel.com>
To: Jani Nikula <jani.nikula@intel.com>
Cc: intel-gfx@lists.freedesktop.org
Subject: Re: [PATCH 2/2] drm/i915: separate RPL-U from RPL-P
Date: Tue, 24 Nov 2026 20:06:44 +0200	[thread overview]
Message-ID: <awXSND47i2nv9z-H@intel.com> (raw)
In-Reply-To: <20261124173521.1619675-2-jani.nikula@intel.com>

On Tue, Nov 24, 2026 at 07:35:21PM +0200, Jani Nikula wrote:
> RPL-S is a subplatform of ADL-S and RPL-P is a subplatform of
> ADL-P. It's a bit much that RPL-P also matches RPL-U. Separate RPL-U
> from RPL-P, and make RPL-U a standalone subplatform of ADL-P.

My head spins every time I look at the subplatform mess.

> 
> Signed-off-by: Jani Nikula <jani.nikula@intel.com>
> ---
>  drivers/gpu/drm/i915/intel_device_info.c | 7 +++----
>  drivers/gpu/drm/i915/intel_step.c        | 2 +-
>  2 files changed, 4 insertions(+), 5 deletions(-)
> 
> diff --git a/drivers/gpu/drm/i915/intel_device_info.c b/drivers/gpu/drm/i915/intel_device_info.c
> index 2014a8f07e61..23a6d7c939bc 100644
> --- a/drivers/gpu/drm/i915/intel_device_info.c
> +++ b/drivers/gpu/drm/i915/intel_device_info.c
> @@ -178,7 +178,6 @@ static const u16 subplatform_n_ids[] = {
>  
>  static const u16 subplatform_rpl_ids[] = {
>  	INTEL_RPLS_IDS(ID),
> -	INTEL_RPLU_IDS(ID),
>  	INTEL_RPLP_IDS(ID),

I don't even know why RPL-S and RPL-P are grouped together here.
IIRC one is an ADL-S (one of the franken-TGLs) derivative, and the
other is an ADL-P (actual ADL) derivative.

And I *think* RPL-U is just a variant of RPL-P, just like ADL-N is
just a variant of ADL-P.

Hmm, oh this is GT stuff. Yeah, no real idea what's a derivative
of what on that side. But IS_RAPTORLAKE_U() seems to be completely
unused on that side, so I think you might just want to nuke the
RPL-U subplatform and call it a RPL-P.

There are also incredible constructs such as
'IS_ALDERLAKE_P(i915) && !IS_ALDERLAKE_P_N(i915)' somewhere in
the code.

I think the only way this can be made sensible in any way is
to have a rule that if you have even a single subplatform, then
you add subplatforms for all the variants of that platform.
Unfortunately I don't have a good idea how to deal with ADL-S
and its derivatives. With ADL-P you can avoid that issue by making
the platform name just "ADL", with ADL-P being one of its
subplatforms. But ADL-S has to be both a platform and subplatform :/

>  };
>  
> @@ -257,9 +256,9 @@ static void intel_device_info_subplatform_init(struct drm_i915_private *i915)
>  	} else if (find_devid(devid, subplatform_rpl_ids,
>  			      ARRAY_SIZE(subplatform_rpl_ids))) {
>  		mask = BIT(INTEL_SUBPLATFORM_RPL);
> -		if (find_devid(devid, subplatform_rplu_ids,
> -			       ARRAY_SIZE(subplatform_rplu_ids)))
> -			mask |= BIT(INTEL_SUBPLATFORM_RPLU);
> +	} else if (find_devid(devid, subplatform_rplu_ids,
> +			      ARRAY_SIZE(subplatform_rplu_ids))) {
> +		mask |= BIT(INTEL_SUBPLATFORM_RPLU);
>  	} else if (find_devid(devid, subplatform_g10_ids,
>  			      ARRAY_SIZE(subplatform_g10_ids))) {
>  		mask = BIT(INTEL_SUBPLATFORM_G10);
> diff --git a/drivers/gpu/drm/i915/intel_step.c b/drivers/gpu/drm/i915/intel_step.c
> index 60a2af5307fc..91055c185d52 100644
> --- a/drivers/gpu/drm/i915/intel_step.c
> +++ b/drivers/gpu/drm/i915/intel_step.c
> @@ -177,7 +177,7 @@ void intel_step_init(struct drm_i915_private *i915)
>  	} else if (IS_ALDERLAKE_P_N(i915)) {
>  		revids = adlp_n_revids;
>  		size = ARRAY_SIZE(adlp_n_revids);
> -	} else if (IS_RAPTORLAKE_P(i915)) {
> +	} else if (IS_RAPTORLAKE_P(i915) || IS_RAPTORLAKE_U(i915)) {
>  		revids = adlp_rplp_revids;
>  		size = ARRAY_SIZE(adlp_rplp_revids);
>  	} else if (IS_ALDERLAKE_P(i915)) {
> -- 
> 2.47.3

-- 
Ville Syrjälä
Intel

  reply	other threads:[~2026-11-24 18:17 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-24 17:35 [PATCH 1/2] drm/i915: simplify ULT/ULX subplatform detection Jani Nikula
2026-11-24 17:35 ` [PATCH 2/2] drm/i915: separate RPL-U from RPL-P Jani Nikula
2026-11-24 18:06   ` Ville Syrjälä [this message]
2026-11-25  5:02 ` ✓ i915.CI.BAT: success for series starting with [1/2] drm/i915: simplify ULT/ULX subplatform detection Patchwork
2026-11-26  0:12 ` ✓ i915.CI.Full: " 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=awXSND47i2nv9z-H@intel.com \
    --to=ville.syrjala@linux.intel.com \
    --cc=intel-gfx@lists.freedesktop.org \
    --cc=jani.nikula@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox