Intel-XE Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Jani Nikula <jani.nikula@linux.intel.com>
To: Ville Syrjala <ville.syrjala@linux.intel.com>,
	intel-gfx@lists.freedesktop.org
Cc: intel-xe@lists.freedesktop.org
Subject: Re: [PATCH 1/2] drm/i915: Enable DDI A/B AUX interrupts on LNL+
Date: Mon, 24 Nov 2025 14:09:03 +0200	[thread overview]
Message-ID: <0ee681692a65af21f258985666ed245f1da18169@intel.com> (raw)
In-Reply-To: <20251119185310.10428-2-ville.syrjala@linux.intel.com>

On Wed, 19 Nov 2025, Ville Syrjala <ville.syrjala@linux.intel.com> wrote:
> From: Ville Syrjälä <ville.syrjala@linux.intel.com>
>
> Apparently the DDI A/B AUX interrupts move onto the PICA side
> on LNL. Unmask them properly so that we actually get the
> interrupts. The interrupt handler was already trying to handle
> them despite the interrupts remaining masked.
>
> Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>

Reviewed-by: Jani Nikula <jani.nikula@intel.com>

> ---
>  drivers/gpu/drm/i915/display/intel_display_irq.c | 12 +++++++++++-
>  drivers/gpu/drm/i915/display/intel_display_irq.h |  2 ++
>  drivers/gpu/drm/i915/display/intel_hotplug_irq.c |  5 +----
>  3 files changed, 14 insertions(+), 5 deletions(-)
>
> diff --git a/drivers/gpu/drm/i915/display/intel_display_irq.c b/drivers/gpu/drm/i915/display/intel_display_irq.c
> index d2933ac3acb4..9adeebb376b1 100644
> --- a/drivers/gpu/drm/i915/display/intel_display_irq.c
> +++ b/drivers/gpu/drm/i915/display/intel_display_irq.c
> @@ -2410,10 +2410,20 @@ void gen8_de_irq_postinstall(struct intel_display *display)
>  	}
>  }
>  
> +u32 xelpdp_pica_aux_mask(struct intel_display *display)
> +{
> +	u32 mask = XELPDP_AUX_TC_MASK;
> +
> +	if (DISPLAY_VER(display) >= 20)
> +		mask |= XE2LPD_AUX_DDI_MASK;
> +
> +	return mask;
> +}
> +
>  static void mtp_irq_postinstall(struct intel_display *display)
>  {
>  	u32 sde_mask = SDE_GMBUS_ICP | SDE_PICAINTERRUPT;
> -	u32 de_hpd_mask = XELPDP_AUX_TC_MASK;
> +	u32 de_hpd_mask = xelpdp_pica_aux_mask(display);
>  	u32 de_hpd_enables = de_hpd_mask | XELPDP_DP_ALT_HOTPLUG_MASK |
>  			     XELPDP_TBT_HOTPLUG_MASK;
>  
> diff --git a/drivers/gpu/drm/i915/display/intel_display_irq.h b/drivers/gpu/drm/i915/display/intel_display_irq.h
> index 84acd31948cf..b25d180254d7 100644
> --- a/drivers/gpu/drm/i915/display/intel_display_irq.h
> +++ b/drivers/gpu/drm/i915/display/intel_display_irq.h
> @@ -16,6 +16,8 @@ struct drm_printer;
>  struct intel_display;
>  struct intel_display_irq_snapshot;
>  
> +u32 xelpdp_pica_aux_mask(struct intel_display *display);
> +
>  void valleyview_enable_display_irqs(struct intel_display *display);
>  void valleyview_disable_display_irqs(struct intel_display *display);
>  
> diff --git a/drivers/gpu/drm/i915/display/intel_hotplug_irq.c b/drivers/gpu/drm/i915/display/intel_hotplug_irq.c
> index 46c47b3d6f42..82c39e4ffa37 100644
> --- a/drivers/gpu/drm/i915/display/intel_hotplug_irq.c
> +++ b/drivers/gpu/drm/i915/display/intel_hotplug_irq.c
> @@ -519,12 +519,9 @@ void xelpdp_pica_irq_handler(struct intel_display *display, u32 iir)
>  {
>  	enum hpd_pin pin;
>  	u32 hotplug_trigger = iir & (XELPDP_DP_ALT_HOTPLUG_MASK | XELPDP_TBT_HOTPLUG_MASK);
> -	u32 trigger_aux = iir & XELPDP_AUX_TC_MASK;
> +	u32 trigger_aux = iir & xelpdp_pica_aux_mask(display);
>  	u32 pin_mask = 0, long_mask = 0;
>  
> -	if (DISPLAY_VER(display) >= 20)
> -		trigger_aux |= iir & XE2LPD_AUX_DDI_MASK;
> -
>  	for (pin = HPD_PORT_TC1; pin <= HPD_PORT_TC4; pin++) {
>  		u32 val;

-- 
Jani Nikula, Intel

  reply	other threads:[~2025-11-24 12:09 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-11-19 18:53 [PATCH 0/2] drm/i915: Go back to using AUX interrupts Ville Syrjala
2025-11-19 18:53 ` [PATCH 1/2] drm/i915: Enable DDI A/B AUX interrupts on LNL+ Ville Syrjala
2025-11-24 12:09   ` Jani Nikula [this message]
2025-11-19 18:53 ` [PATCH 2/2] Revert "drm/i915/dp: change aux_ctl reg read to polling read" Ville Syrjala
2025-11-20  3:40   ` Murthy, Arun R
2025-11-20 13:08     ` Jani Nikula
2025-11-20 14:11       ` Ville Syrjälä
2025-11-24 12:09   ` Jani Nikula
2025-11-19 20:24 ` ✓ CI.KUnit: success for drm/i915: Go back to using AUX interrupts Patchwork
2025-11-19 20:46 ` ✗ CI.checksparse: warning " Patchwork
2025-11-19 21:40 ` ✓ Xe.CI.BAT: success " Patchwork
2025-11-20  1:35 ` ✗ 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=0ee681692a65af21f258985666ed245f1da18169@intel.com \
    --to=jani.nikula@linux.intel.com \
    --cc=intel-gfx@lists.freedesktop.org \
    --cc=intel-xe@lists.freedesktop.org \
    --cc=ville.syrjala@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