From: Jani Nikula <jani.nikula@linux.intel.com>
To: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>,
intel-xe@lists.freedesktop.org
Subject: Re: [Intel-xe] [PATCH] drm/xe: Fix Alderlake-P and DG2 display info
Date: Thu, 16 Mar 2023 15:05:42 +0200 [thread overview]
Message-ID: <87mt4calsp.fsf@intel.com> (raw)
In-Reply-To: <20230316110752.129831-1-maarten.lankhorst@linux.intel.com>
On Thu, 16 Mar 2023, Maarten Lankhorst <maarten.lankhorst@linux.intel.com> wrote:
> DG2 has cdclk squash, without which we calculate the CDCLK wrongly.
> Alderlake-P is LPD, not gen 12 display.
>
> With those fixed, display should work on both and all problems that were
> uncovered by testing done from rebasing are fixed.
>
> Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
> ---
> drivers/gpu/drm/xe/xe_display.c | 10 +++++++++-
> 1 file changed, 9 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/xe/xe_display.c b/drivers/gpu/drm/xe/xe_display.c
> index f28553be858d..54ec8ba5d3f3 100644
> --- a/drivers/gpu/drm/xe/xe_display.c
> +++ b/drivers/gpu/drm/xe/xe_display.c
> @@ -482,19 +482,27 @@ void xe_display_info_init(struct xe_device *xe)
> xe->info.display = (struct xe_device_display_info) { GEN12_DISPLAY };
> break;
> case XE_ALDERLAKE_S:
> - case XE_ALDERLAKE_P:
> xe->info.display = (struct xe_device_display_info) {
> GEN12_DISPLAY,
> .has_hti = 1,
> .has_psr_hw_tracking = 0,
> };
> break;
> + case XE_ALDERLAKE_P:
> + xe->info.display = (struct xe_device_display_info) {
All of these should probably have const in them to ensure the compound
literals are put in rodata.
BR,
Jani.
> + XE_LPD,
> + .has_cdclk_crawl = 1,
> + .has_modular_fia = 1,
> + .has_psr_hw_tracking = 0,
> + };
> + break;
> case XE_DG2:
> xe->info.display = (struct xe_device_display_info) {
> XE_LPD,
> .cpu_transcoder_mask =
> BIT(TRANSCODER_A) | BIT(TRANSCODER_B) |
> BIT(TRANSCODER_C) | BIT(TRANSCODER_D),
> + .has_cdclk_squash = 1,
> };
> break;
> case XE_METEORLAKE:
--
Jani Nikula, Intel Open Source Graphics Center
prev parent reply other threads:[~2023-03-16 13:07 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-03-16 11:07 [Intel-xe] [PATCH] drm/xe: Fix Alderlake-P and DG2 display info Maarten Lankhorst
2023-03-16 11:10 ` [Intel-xe] ✓ CI.Patch_applied: success for " Patchwork
2023-03-16 11:11 ` [Intel-xe] ✓ CI.KUnit: " Patchwork
2023-03-16 11:15 ` [Intel-xe] ✓ CI.Build: " Patchwork
2023-03-16 11:26 ` [Intel-xe] ○ CI.BAT: info " Patchwork
2023-03-16 14:06 ` Lucas De Marchi
2023-03-16 12:17 ` [Intel-xe] [PATCH] " Thomas Hellström
2023-03-16 12:21 ` Matthew Auld
2023-03-16 12:46 ` Maarten Lankhorst
2023-03-16 13:05 ` Jani Nikula [this message]
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=87mt4calsp.fsf@intel.com \
--to=jani.nikula@linux.intel.com \
--cc=intel-xe@lists.freedesktop.org \
--cc=maarten.lankhorst@linux.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