public inbox for intel-gfx@lists.freedesktop.org
 help / color / mirror / Atom feed
From: "Nautiyal, Ankit K" <ankit.k.nautiyal@intel.com>
To: Suraj Kandpal <suraj.kandpal@intel.com>,
	<intel-xe@lists.freedesktop.org>,
	 <intel-gfx@lists.freedesktop.org>
Cc: Nemesa Garg <nemesa.garg@intel.com>
Subject: Re: [PATCH v2] drm/i915/display: Disable DMG Clock Gating
Date: Wed, 21 Jan 2026 09:28:01 +0530	[thread overview]
Message-ID: <d9ed8612-34ff-4b43-b486-8fd9d27da9c8@intel.com> (raw)
In-Reply-To: <20260121030257.662294-1-suraj.kandpal@intel.com>


On 1/21/2026 8:32 AM, Suraj Kandpal wrote:
> Incorrect clock is connected to DMG registers.
> Disable DMG Clock gating during display initialization.
>
> WA: 22021451799
> Bspec: 69095
> Signed-off-by: Suraj Kandpal <suraj.kandpal@intel.com>
> Reviewed-by: Nemesa Garg <nemesa.garg@intel.com>
> ---
>
> v1 -> v2:
> -Remove details from comment (Nemesa)
> -Add details in commit message (Ville)
>
>   drivers/gpu/drm/i915/display/intel_modeset_setup.c | 4 ++++
>   drivers/gpu/drm/i915/i915_reg.h                    | 1 +
>   drivers/gpu/drm/tests/drm_hdmi_state_helper_test.c | 1 +
>   3 files changed, 6 insertions(+)
>
> diff --git a/drivers/gpu/drm/i915/display/intel_modeset_setup.c b/drivers/gpu/drm/i915/display/intel_modeset_setup.c
> index d10cbf69a5f8..7180e54af50b 100644
> --- a/drivers/gpu/drm/i915/display/intel_modeset_setup.c
> +++ b/drivers/gpu/drm/i915/display/intel_modeset_setup.c
> @@ -910,6 +910,10 @@ get_encoder_power_domains(struct intel_display *display)
>   
>   static void intel_early_display_was(struct intel_display *display)
>   {
> +	/* Wa_22021451799 */
> +	if (DISPLAY_VER(display) == 35)

I think we are now moving all display WAs into intel_display_wa.c.

So instead of the open‑coded DISPLAY_VER(display) == 35 check here, this 
should use: intel_display_needs_wa_22021451799()

Regards,

Ankit


> +		intel_de_rmw(display, GEN9_CLKGATE_DIS_0, 0, DMG_GATING_DIS);
> +
>   	/*
>   	 * Display WA #1185 WaDisableDARBFClkGating:glk,icl,ehl,tgl
>   	 * Also known as Wa_14010480278.
> diff --git a/drivers/gpu/drm/i915/i915_reg.h b/drivers/gpu/drm/i915/i915_reg.h
> index 5bf3b4ab2baa..f928db78a3fa 100644
> --- a/drivers/gpu/drm/i915/i915_reg.h
> +++ b/drivers/gpu/drm/i915/i915_reg.h
> @@ -763,6 +763,7 @@
>    */
>   #define GEN9_CLKGATE_DIS_0		_MMIO(0x46530)
>   #define   DARBF_GATING_DIS		REG_BIT(27)
> +#define   DMG_GATING_DIS		REG_BIT(21)
>   #define   MTL_PIPEDMC_GATING_DIS(pipe)	REG_BIT(15 - (pipe))
>   #define   PWM2_GATING_DIS		REG_BIT(14)
>   #define   PWM1_GATING_DIS		REG_BIT(13)
> diff --git a/drivers/gpu/drm/tests/drm_hdmi_state_helper_test.c b/drivers/gpu/drm/tests/drm_hdmi_state_helper_test.c
> index d95786faf181..c4c4058c8ac5 100644
> --- a/drivers/gpu/drm/tests/drm_hdmi_state_helper_test.c
> +++ b/drivers/gpu/drm/tests/drm_hdmi_state_helper_test.c
> @@ -2923,6 +2923,7 @@ static void drm_test_check_reject_hdr_infoframe_bpc_10(struct kunit *test)
>   						&new_conn_state->hdr_output_metadata,
>   						hdr_blob->base.id,
>   						sizeof(struct hdr_output_metadata), -1,
> +						sizeof(struct hdr_output_metadata),
>   						&replaced);
>   	KUNIT_ASSERT_EQ(test, ret, 0);
>   	KUNIT_ASSERT_EQ(test, replaced, true);

  reply	other threads:[~2026-01-21  3:58 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-01-20  5:00 [PATCH] drm/i915/display: Disable DMG Clock Gating Suraj Kandpal
2026-01-20  5:58 ` ✓ i915.CI.BAT: success for " Patchwork
2026-01-20  8:23 ` [PATCH] " Garg, Nemesa
2026-01-20  8:25   ` Kandpal, Suraj
2026-01-20 16:13   ` Ville Syrjälä
2026-01-21  2:55     ` Kandpal, Suraj
2026-01-20 11:05 ` ✗ i915.CI.Full: failure for " Patchwork
2026-01-21  3:02 ` [PATCH v2] " Suraj Kandpal
2026-01-21  3:58   ` Nautiyal, Ankit K [this message]
2026-01-21  5:14     ` Kandpal, Suraj
2026-01-21 10:34   ` Jani Nikula
2026-01-21  3:05 ` ✗ Fi.CI.BUILD: failure for drm/i915/display: Disable DMG Clock Gating (rev2) Patchwork
2026-01-22  3:18 ` [PATCH v3] drm/i915/display: Disable DMG Clock Gating Suraj Kandpal
2026-01-22  4:20 ` ✓ i915.CI.BAT: success for drm/i915/display: Disable DMG Clock Gating (rev3) Patchwork
2026-01-22 11:59 ` ✓ 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=d9ed8612-34ff-4b43-b486-8fd9d27da9c8@intel.com \
    --to=ankit.k.nautiyal@intel.com \
    --cc=intel-gfx@lists.freedesktop.org \
    --cc=intel-xe@lists.freedesktop.org \
    --cc=nemesa.garg@intel.com \
    --cc=suraj.kandpal@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