From: "Hogander, Jouni" <jouni.hogander@intel.com>
To: "intel-xe@lists.freedesktop.org" <intel-xe@lists.freedesktop.org>,
"intel-gfx@lists.freedesktop.org"
<intel-gfx@lists.freedesktop.org>,
"Govindapillai, Vinod" <vinod.govindapillai@intel.com>
Subject: Re: [PATCH v8 4/5] drm/i915/irq: conditional HPD IRQ resets based on PME capability
Date: Tue, 15 Sep 2026 12:55:15 +0000 [thread overview]
Message-ID: <535c7657b7b73a3f0b7dd4927b1e683fa355cfde.camel@intel.com> (raw)
In-Reply-To: <20260915092518.639448-5-vinod.govindapillai@intel.com>
On Tue, 2026-09-15 at 12:25 +0300, Vinod Govindapillai wrote:
> If a device supports generating PME from HPDs, resetting HPD IRQs
> will be counter productive as HPDs itself will be lost. During
> suspend routines, all the IRQs are reset. So if the device is
> capable of generating PME rom HPDs, keep the HPD related IRQs from
> reset based on the PME capability of the device on a target power
> state. PME capability will be assessed and updated separately.
>
> v2: change keep_hpd to reset_hpd
>
> v3: use intel_display_rpm_pme_enabled() directly (JaniN)
>
> v4: remove the unused include file from the previous revision
>
> Bspec: 52979, 52980, 68857, 68867, 68970
> Assisted-by: GitHub_Copilot:claude-opus-5
> Signed-off-by: Vinod Govindapillai <vinod.govindapillai@intel.com>
Reviewed-by: Jouni Högander <jouni.hogander@intel.com>
> ---
> .../gpu/drm/i915/display/intel_display_irq.c | 18 +++++++++++-----
> --
> 1 file changed, 11 insertions(+), 7 deletions(-)
>
> diff --git a/drivers/gpu/drm/i915/display/intel_display_irq.c
> b/drivers/gpu/drm/i915/display/intel_display_irq.c
> index a59b75830bd1..8ce30112de97 100644
> --- a/drivers/gpu/drm/i915/display/intel_display_irq.c
> +++ b/drivers/gpu/drm/i915/display/intel_display_irq.c
> @@ -2217,8 +2217,10 @@ static void gen11_display_irq_reset(struct
> intel_display *display)
> enum pipe pipe;
> u32 trans_mask = BIT(TRANSCODER_A) | BIT(TRANSCODER_B) |
> BIT(TRANSCODER_C) | BIT(TRANSCODER_D);
> + bool reset_hpd = !intel_display_rpm_pme_enabled(display);
>
> - intel_de_write(display, GEN11_DISPLAY_INT_CTL, 0);
> + if (reset_hpd)
> + intel_de_write(display, GEN11_DISPLAY_INT_CTL, 0);
>
> if (DISPLAY_VER(display) >= 12) {
> enum transcoder trans;
> @@ -2250,13 +2252,15 @@ static void gen11_display_irq_reset(struct
> intel_display *display)
> irq_reset(display, GEN8_DE_PORT_IRQ_REGS);
> irq_reset(display, GEN8_DE_MISC_IRQ_REGS);
>
> - if (DISPLAY_VER(display) >= 14)
> - irq_reset(display, PICAINTERRUPT_IRQ_REGS);
> - else
> - irq_reset(display, GEN11_DE_HPD_IRQ_REGS);
> + if (reset_hpd) {
> + if (DISPLAY_VER(display) >= 14)
> + irq_reset(display, PICAINTERRUPT_IRQ_REGS);
> + else
> + irq_reset(display, GEN11_DE_HPD_IRQ_REGS);
>
> - if (INTEL_PCH_TYPE(display) >= PCH_ICP)
> - irq_reset(display, SDE_IRQ_REGS);
> + if (INTEL_PCH_TYPE(display) >= PCH_ICP)
> + irq_reset(display, SDE_IRQ_REGS);
> + }
> }
>
> void gen8_irq_power_well_post_enable(struct intel_display *display,
next prev parent reply other threads:[~2026-09-15 12:55 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-15 9:25 [PATCH v8 0/5] pm_pme support on display hotplug Vinod Govindapillai
2026-09-15 9:25 ` [PATCH v8 1/5] drm/xe/pm: introduce PM PME support Vinod Govindapillai
2026-09-15 12:27 ` Hogander, Jouni
2026-09-16 14:16 ` Rodrigo Vivi
2026-09-15 9:25 ` [PATCH v8 2/5] drm/i915: add pme_enabled() to the parent interface Vinod Govindapillai
2026-09-15 12:38 ` Hogander, Jouni
2026-09-15 9:25 ` [PATCH v8 3/5] drm/i915/xe: plug the pme_enabed implementation for xe Vinod Govindapillai
2026-09-15 12:39 ` Hogander, Jouni
2026-09-15 9:25 ` [PATCH v8 4/5] drm/i915/irq: conditional HPD IRQ resets based on PME capability Vinod Govindapillai
2026-09-15 9:43 ` sashiko-bot
2026-09-15 12:55 ` Hogander, Jouni [this message]
2026-09-15 9:25 ` [PATCH v8 5/5] drm/i915/hotplug: avoid HPD polling if the device is PME capable Vinod Govindapillai
2026-09-15 12:55 ` Hogander, Jouni
2026-09-15 9:34 ` ✓ CI.KUnit: success for pm_pme support on display hotplug (rev8) Patchwork
2026-09-15 9:50 ` ✗ CI.checksparse: warning " Patchwork
2026-09-15 10:11 ` ✓ Xe.CI.BAT: success " Patchwork
2026-09-15 11:01 ` ✓ i915.CI.BAT: " Patchwork
2026-09-15 12:34 ` ✗ Xe.CI.FULL: failure " Patchwork
2026-09-15 17:10 ` ✗ 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=535c7657b7b73a3f0b7dd4927b1e683fa355cfde.camel@intel.com \
--to=jouni.hogander@intel.com \
--cc=intel-gfx@lists.freedesktop.org \
--cc=intel-xe@lists.freedesktop.org \
--cc=vinod.govindapillai@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.