From: Jani Nikula <jani.nikula@linux.intel.com>
To: Imre Deak <imre.deak@intel.com>,
intel-gfx@lists.freedesktop.org, intel-xe@lists.freedesktop.org
Subject: Re: [PATCH 04/13] drm/xe/display: Distinguish failed system suspend recovery
Date: Thu, 26 Nov 2026 15:22:21 +0200 [thread overview]
Message-ID: <6c6693b410e6ea3ff65cc30fb4f373c9301bcc1e@intel.com> (raw)
In-Reply-To: <20261126100755.1252635-5-imre.deak@intel.com>
On Thu, 26 Nov 2026, Imre Deak <imre.deak@intel.com> wrote:
> A suspend failure before xe_irq_suspend() resumes display while its HPD
> interrupts are still enabled. Pass that condition to the display resume
> path so a later DDI-pool change can preserve its cached assignments and
> HPD source tables on recovery.
>
> Normal system resume continues after interrupt reset/postinstall, with HPD
> masked until display initialization completes. Document replacing this
> distinction with display-only interrupt shutdown/reinitialization once
> those hooks are available.
This needs to be the same for i915 and xe. No xe specific stuff, please.
BR,
Jani.
>
> Signed-off-by: Imre Deak <imre.deak@intel.com>
> ---
> drivers/gpu/drm/xe/display/xe_display.c | 7 ++++++-
> drivers/gpu/drm/xe/display/xe_display.h | 4 ++--
> drivers/gpu/drm/xe/xe_device.c | 4 ++--
> 3 files changed, 10 insertions(+), 5 deletions(-)
>
> diff --git a/drivers/gpu/drm/xe/display/xe_display.c b/drivers/gpu/drm/xe/display/xe_display.c
> index 0236f69a0f883..f757cfad4bd6e 100644
> --- a/drivers/gpu/drm/xe/display/xe_display.c
> +++ b/drivers/gpu/drm/xe/display/xe_display.c
> @@ -286,7 +286,12 @@ void xe_display_pm_resume_early(struct xe_device *xe)
> intel_display_driver_pm_resume_early(display);
> }
>
> -void xe_display_pm_resume(struct xe_device *xe)
> +/*
> + * FIXME: Disable display-only interrupts at the end of xe_display_pm_suspend()
> + * and reinitialize them here, including failed-suspend recovery. That would
> + * remove the need to distinguish recovery without an interrupt reset.
> + */
> +void xe_display_pm_resume(struct xe_device *xe, bool suspend_failed)
> {
> struct intel_display *display = xe->display;
>
> diff --git a/drivers/gpu/drm/xe/display/xe_display.h b/drivers/gpu/drm/xe/display/xe_display.h
> index 6c580d9593b03..79f94be0cfb65 100644
> --- a/drivers/gpu/drm/xe/display/xe_display.h
> +++ b/drivers/gpu/drm/xe/display/xe_display.h
> @@ -41,7 +41,7 @@ void xe_display_irq_postinstall(struct xe_device *xe);
> void xe_display_pm_suspend(struct xe_device *xe);
> void xe_display_pm_suspend_late(struct xe_device *xe);
> void xe_display_pm_resume_early(struct xe_device *xe);
> -void xe_display_pm_resume(struct xe_device *xe);
> +void xe_display_pm_resume(struct xe_device *xe, bool suspend_failed);
> void xe_display_pm_runtime_suspend(struct xe_device *xe);
> void xe_display_pm_runtime_suspend_late(struct xe_device *xe);
> void xe_display_pm_runtime_resume_early(struct xe_device *xe);
> @@ -80,7 +80,7 @@ static inline void xe_display_irq_postinstall(struct xe_device *xe) {}
> static inline void xe_display_pm_suspend(struct xe_device *xe) {}
> static inline void xe_display_pm_suspend_late(struct xe_device *xe) {}
> static inline void xe_display_pm_resume_early(struct xe_device *xe) {}
> -static inline void xe_display_pm_resume(struct xe_device *xe) {}
> +static inline void xe_display_pm_resume(struct xe_device *xe, bool suspend_failed) {}
> static inline void xe_display_pm_runtime_suspend(struct xe_device *xe) {}
> static inline void xe_display_pm_runtime_suspend_late(struct xe_device *xe) {}
> static inline void xe_display_pm_runtime_resume_early(struct xe_device *xe) {}
> diff --git a/drivers/gpu/drm/xe/xe_device.c b/drivers/gpu/drm/xe/xe_device.c
> index 36693df655941..884a2be28c17b 100644
> --- a/drivers/gpu/drm/xe/xe_device.c
> +++ b/drivers/gpu/drm/xe/xe_device.c
> @@ -1464,7 +1464,7 @@ int xe_device_suspend(struct xe_device *xe, bool hibernate, bool flr)
> return 0;
>
> err_display:
> - xe_display_pm_resume(xe);
> + xe_display_pm_resume(xe, true);
> xe_pxp_pm_resume(xe->pxp);
> return err;
> }
> @@ -1543,7 +1543,7 @@ int xe_device_resume(struct xe_device *xe, bool flr)
> * Try to bring up display before bailing from GT resume failure,
> * so we don't leave the user clueless with a blank screen.
> */
> - xe_display_pm_resume(xe);
> + xe_display_pm_resume(xe, false);
> if (err)
> return err;
--
Jani Nikula, Intel
next prev parent reply other threads:[~2026-11-26 13:22 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-26 10:07 [PATCH 00/13] drm/i915/ddi_mgr: Add support for dynamic DDI allocation Imre Deak
2026-11-26 10:07 ` [PATCH 01/13] drm/i915/dp: Allow rebuilding the source rate list Imre Deak
2026-11-26 10:07 ` [PATCH 02/13] drm/i915/hotplug: Set detector enable bits without a clear mask Imre Deak
2026-11-26 10:07 ` [PATCH 03/13] drm/i915/nvl+: Add support for remapping logical HPD pins to HW pins Imre Deak
2026-11-26 10:07 ` [PATCH 04/13] drm/xe/display: Distinguish failed system suspend recovery Imre Deak
2026-11-26 13:22 ` Jani Nikula [this message]
2026-11-26 10:07 ` [PATCH 05/13] drm/i915/gmbus: Extract a helper for Type-C DDC pin mapping Imre Deak
2026-11-26 10:07 ` [PATCH 06/13] drm/i915/ddi_mgr: Add support for dynamic DDI allocation Imre Deak
2026-11-26 13:23 ` Jani Nikula
2026-11-26 10:07 ` [PATCH 07/13] drm/i915/gmbus: Extract adapter creation and destruction Imre Deak
2026-11-26 10:07 ` [PATCH 08/13] drm/i915/gmbus: Add stable DDC adapters for the DDI pool Imre Deak
2026-11-26 10:07 ` [PATCH 09/13] drm/i915/ddi_mgr: Register encoders with dynamic DDI support Imre Deak
2026-11-26 10:26 ` sashiko-bot
2026-11-26 10:07 ` [PATCH 10/13] drm/i915/ddi_mgr: Keep AUX access consistent with DDI pool routes Imre Deak
2026-11-26 10:07 ` [PATCH 11/13] drm/i915/ddi_mgr: Verify and restore DDI allocations after runtime resume Imre Deak
2026-11-26 10:07 ` [PATCH 12/13] drm/i915/ddi_mgr: Handle DDI pool system suspend and resume Imre Deak
2026-11-26 10:41 ` sashiko-bot
2026-11-26 10:07 ` [PATCH 13/13] drm/i915/ddi_mgr: Enable dynamic DDI allocation at load Imre Deak
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=6c6693b410e6ea3ff65cc30fb4f373c9301bcc1e@intel.com \
--to=jani.nikula@linux.intel.com \
--cc=imre.deak@intel.com \
--cc=intel-gfx@lists.freedesktop.org \
--cc=intel-xe@lists.freedesktop.org \
/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