From: Matt Atwood <matthew.s.atwood@intel.com>
To: Lucas De Marchi <lucas.demarchi@intel.com>,
<intel-xe@lists.freedesktop.org>
Cc: intel-xe@lists.freedesktop.org
Subject: Re: [Intel-xe] [PATCH 2/4] drm/xe: Annotate desc of platforms with display
Date: Wed, 10 May 2023 14:05:23 -0700 [thread overview]
Message-ID: <ZFwHE57LReb2mWjV@msatwood-mobl> (raw)
In-Reply-To: <20230510195424.3045127-3-lucas.demarchi@intel.com>
On Wed, May 10, 2023 at 12:54:22PM -0700, Lucas De Marchi wrote:
> Some platforms don't have the display IP. Currently those are PVC and
> ATS-M. For PVC the current initialization order works as the display
> initialization can check by platform. However the display side can't
> differentiate ATS-M from DG2 to act accordingly.
>
Reviewed-by: Matt Atwood <matthew.s.atwood@intel.com>
> Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>
> ---
> drivers/gpu/drm/xe/xe_pci.c | 17 ++++++++++++++---
> 1 file changed, 14 insertions(+), 3 deletions(-)
>
> diff --git a/drivers/gpu/drm/xe/xe_pci.c b/drivers/gpu/drm/xe/xe_pci.c
> index a6858fc7fe8d..7dfbc4fa138a 100644
> --- a/drivers/gpu/drm/xe/xe_pci.c
> +++ b/drivers/gpu/drm/xe/xe_pci.c
> @@ -52,6 +52,8 @@ struct xe_device_desc {
>
> u8 require_force_probe:1;
> u8 is_dgfx:1;
> + u8 has_display:1;
> +
> /*
> * FIXME: Xe doesn't care about presence/lack of 4tile since we can
> * already determine that from the graphics IP version. This flag
> @@ -179,7 +181,8 @@ static const struct xe_device_desc tgl_desc = {
> .graphics = &graphics_xelp,
> .media = &media_xem,
> PLATFORM(XE_TIGERLAKE),
> - .has_llc = 1,
> + .has_display = true,
> + .has_llc = true,
> .require_force_probe = true,
> };
>
> @@ -187,6 +190,7 @@ static const struct xe_device_desc rkl_desc = {
> .graphics = &graphics_xelp,
> .media = &media_xem,
> PLATFORM(XE_ROCKETLAKE),
> + .has_display = true,
> .require_force_probe = true,
> };
>
> @@ -194,7 +198,8 @@ static const struct xe_device_desc adl_s_desc = {
> .graphics = &graphics_xelp,
> .media = &media_xem,
> PLATFORM(XE_ALDERLAKE_S),
> - .has_llc = 1,
> + .has_display = true,
> + .has_llc = true,
> .require_force_probe = true,
> };
>
> @@ -204,7 +209,8 @@ static const struct xe_device_desc adl_p_desc = {
> .graphics = &graphics_xelp,
> .media = &media_xem,
> PLATFORM(XE_ALDERLAKE_P),
> - .has_llc = 1,
> + .has_display = true,
> + .has_llc = true,
> .require_force_probe = true,
> .subplatforms = (const struct xe_subplatform_desc[]) {
> { XE_SUBPLATFORM_ADLP_RPLU, "RPLU", adlp_rplu_ids },
> @@ -220,6 +226,7 @@ static const struct xe_device_desc dg1_desc = {
> .media = &media_xem,
> DGFX_FEATURES,
> PLATFORM(XE_DG1),
> + .has_display = true,
> .require_force_probe = true,
> };
>
> @@ -244,6 +251,7 @@ static const struct xe_device_desc ats_m_desc = {
> .require_force_probe = true,
>
> DG2_FEATURES,
> + .has_display = false,
> };
>
> static const struct xe_device_desc dg2_desc = {
> @@ -252,6 +260,7 @@ static const struct xe_device_desc dg2_desc = {
> .require_force_probe = true,
>
> DG2_FEATURES,
> + .has_display = true,
> };
>
> static const struct xe_gt_desc pvc_gts[] = {
> @@ -267,6 +276,7 @@ static const struct xe_device_desc pvc_desc = {
> .graphics = &graphics_xehpc,
> DGFX_FEATURES,
> PLATFORM(XE_PVC),
> + .has_display = false,
> .require_force_probe = true,
> .extra_gts = pvc_gts,
> };
> @@ -284,6 +294,7 @@ static const struct xe_device_desc mtl_desc = {
> /* .graphics and .media determined via GMD_ID */
> .require_force_probe = true,
> PLATFORM(XE_METEORLAKE),
> + .has_display = true,
> .extra_gts = xelpmp_gts,
> };
>
> --
> 2.40.1
>
next prev parent reply other threads:[~2023-05-10 21:05 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-05-10 19:54 [Intel-xe] [PATCH 0/4] Fix display integration for ATS-M Lucas De Marchi
2023-05-10 19:54 ` [Intel-xe] [PATCH 1/4] fixup! drm/xe/display: Implement display support Lucas De Marchi
2023-05-10 21:01 ` Matt Atwood
2023-05-10 19:54 ` [Intel-xe] [PATCH 2/4] drm/xe: Annotate desc of platforms with display Lucas De Marchi
2023-05-10 21:05 ` Matt Atwood [this message]
2023-05-10 19:54 ` [Intel-xe] [PATCH 3/4] drm/xe/display: Consider has_display to enable it Lucas De Marchi
2023-05-10 21:07 ` Matt Atwood
2023-05-11 12:47 ` Souza, Jose
2023-05-11 15:34 ` Jani Nikula
2023-05-11 17:12 ` Lucas De Marchi
2023-05-11 17:12 ` Lucas De Marchi
2023-05-11 17:22 ` Souza, Jose
2023-05-11 18:02 ` Lucas De Marchi
2023-05-11 18:28 ` Lucas De Marchi
2023-05-11 20:03 ` Souza, Jose
2023-05-12 6:59 ` Jani Nikula
2023-05-10 19:54 ` [Intel-xe] [PATCH 4/4] drm/xe/display: Use xe_display_driver prefix Lucas De Marchi
2023-05-10 21:31 ` Matt Atwood
2023-05-10 20:13 ` [Intel-xe] ✓ CI.Patch_applied: success for Fix display integration for ATS-M Patchwork
2023-05-10 20:14 ` [Intel-xe] ✓ CI.KUnit: " Patchwork
2023-05-10 20:18 ` [Intel-xe] ✓ CI.Build: " Patchwork
2023-05-10 20:40 ` [Intel-xe] ○ CI.BAT: info " 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=ZFwHE57LReb2mWjV@msatwood-mobl \
--to=matthew.s.atwood@intel.com \
--cc=intel-xe@lists.freedesktop.org \
--cc=lucas.demarchi@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.