Intel-XE Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Gustavo Sousa <gustavo.sousa@intel.com>
To: Dnyaneshwar Bhadane <dnyaneshwar.bhadane@intel.com>,
	<intel-gfx@lists.freedesktop.org>,
	<intel-xe@lists.freedesktop.org>
Cc: Dnyaneshwar Bhadane <dnyaneshwar.bhadane@intel.com>
Subject: Re: [PATCH v2 2/3] drm/i915/display: Add definition for wcl as subplatform
Date: Fri, 19 Sep 2025 17:32:55 -0300	[thread overview]
Message-ID: <175831397551.1987.9539609696117964896@intel.com> (raw)
In-Reply-To: <20250919162233.1624905-3-dnyaneshwar.bhadane@intel.com>

Quoting Dnyaneshwar Bhadane (2025-09-19 13:22:32-03:00)
>Update the device definition structs for adding wildcat lake as
>subplatfrom of pantherlake.

I think the commit message is missing the reason why we are doing this.
I would replace the above paragraph with something like:

    "We will need to differentiate between WCL and PTL in
    intel_encoder_is_c10phy(). Since WCL and PTL use the same display
    architecture, let's define WCL as a subplatform of PTL to allow the
    differentiation."

>
>Signed-off-by: Dnyaneshwar Bhadane <dnyaneshwar.bhadane@intel.com>
>---
> drivers/gpu/drm/i915/display/intel_display_device.c | 12 ++++++++++++
> drivers/gpu/drm/i915/display/intel_display_device.h |  4 +++-
> 2 files changed, 15 insertions(+), 1 deletion(-)
>
>diff --git a/drivers/gpu/drm/i915/display/intel_display_device.c b/drivers/gpu/drm/i915/display/intel_display_device.c
>index a9a36176096f..84aa6b6384da 100644
>--- a/drivers/gpu/drm/i915/display/intel_display_device.c
>+++ b/drivers/gpu/drm/i915/display/intel_display_device.c
>@@ -1379,6 +1379,11 @@ static const u16 mtl_u_ids[] = {
>         0
> };
> 
>+static const u16 wcl_ids[] = {
>+        INTEL_WCL_IDS(ID),
>+        0
>+};
>+

To be consistent with the other subplatform device id lists, we probably
want to move this to be just before the definition of ptl_desc.

With this addressed and the commit message rephrased,

    Reviewed-by: Gustavo Sousa <gustavo.sousa@intel.com>

--
Gustavo Sousa

> /*
>  * Do not initialize the .info member of the platform desc for GMD ID based
>  * platforms. Their display will be probed automatically based on the IP version
>@@ -1406,6 +1411,13 @@ static const struct platform_desc bmg_desc = {
> 
> static const struct platform_desc ptl_desc = {
>         PLATFORM(pantherlake),
>+        .subplatforms = (const struct subplatform_desc[]) {
>+                {
>+                        SUBPLATFORM(pantherlake, wildcatlake),
>+                        .pciidlist = wcl_ids,
>+                },
>+                {},
>+        }
> };
> 
> __diag_pop();
>diff --git a/drivers/gpu/drm/i915/display/intel_display_device.h b/drivers/gpu/drm/i915/display/intel_display_device.h
>index 1f091fbcd0ec..0e062753cf9b 100644
>--- a/drivers/gpu/drm/i915/display/intel_display_device.h
>+++ b/drivers/gpu/drm/i915/display/intel_display_device.h
>@@ -101,7 +101,9 @@ struct pci_dev;
>         /* Display ver 14.1 (based on GMD ID) */ \
>         func(battlemage) \
>         /* Display ver 30 (based on GMD ID) */ \
>-        func(pantherlake)
>+        func(pantherlake) \
>+        func(pantherlake_wildcatlake)
>+
> 
> #define __MEMBER(name) unsigned long name:1;
> #define __COUNT(x) 1 +
>-- 
>2.51.0
>

  reply	other threads:[~2025-09-19 20:33 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-09-19 16:22 [PATCH v2 0/3] drm/i915/xe3: Restrict PTL intel_encoder_is_c10phy() to only PHY A Dnyaneshwar Bhadane
2025-09-19 16:22 ` [PATCH v2 1/3] drm/pcids: Split PTL pciids group to make wcl subplatform Dnyaneshwar Bhadane
2025-09-19 20:19   ` Gustavo Sousa
2025-09-19 16:22 ` [PATCH v2 2/3] drm/i915/display: Add definition for wcl as subplatform Dnyaneshwar Bhadane
2025-09-19 20:32   ` Gustavo Sousa [this message]
2025-09-22  8:55     ` Jani Nikula
2025-09-19 16:22 ` [PATCH v2 3/3] drm/i915/xe3: Restrict PTL intel_encoder_is_c10phy() to only PHY A Dnyaneshwar Bhadane
2025-09-19 21:01   ` Gustavo Sousa
2025-09-22 15:14     ` Bhadane, Dnyaneshwar
2025-09-19 16:59 ` ✗ CI.checkpatch: warning for drm/i915/xe3: Restrict PTL intel_encoder_is_c10phy() to only PHY A (rev2) Patchwork
2025-09-19 17:00 ` ✓ CI.KUnit: success " Patchwork
2025-09-19 17:15 ` ✗ CI.checksparse: warning " Patchwork
2025-09-19 17:34 ` ✓ Xe.CI.BAT: success " Patchwork
2025-09-20  1:41 ` ✗ Xe.CI.Full: failure " 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=175831397551.1987.9539609696117964896@intel.com \
    --to=gustavo.sousa@intel.com \
    --cc=dnyaneshwar.bhadane@intel.com \
    --cc=intel-gfx@lists.freedesktop.org \
    --cc=intel-xe@lists.freedesktop.org \
    /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