From: sashiko-bot@kernel.org
To: "Vinod Govindapillai" <vinod.govindapillai@intel.com>
Cc: intel-xe@lists.freedesktop.org, intel-gfx@lists.freedesktop.org
Subject: Re: [PATCH v5 08/10] drm/xe/pm: clear PME HPD flag on runtime suspend error handler
Date: Fri, 11 Sep 2026 08:20:21 +0000 [thread overview]
Message-ID: <20260911082021.BB88E1F00893@smtp.kernel.org> (raw)
In-Reply-To: <20260911080448.778316-9-vinod.govindapillai@intel.com>
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
Pre-existing issues:
- [High] Missing rollback of suspended GTs and evicted BOs in PM suspend error paths.
--
commit 05e729a00eec5c74e7d63026c111b70a9b537da1
Author: Vinod Govindapillai <vinod.govindapillai@intel.com>
drm/xe/pm: clear PME HPD flag on runtime suspend error handler
This commit explicitly clears the PME HPD flag in the error path of
xe_pm_runtime_suspend(). The flag is normally set during early runtime
suspend and cleared during early runtime resume, but was previously left
uncleared if an error occurred in the suspend sequence.
[ ... ]
> diff --git a/drivers/gpu/drm/xe/xe_pm.c b/drivers/gpu/drm/xe/xe_pm.c
> index c79f55b66a419..5e7263316683a 100644
> --- a/drivers/gpu/drm/xe/xe_pm.c
> +++ b/drivers/gpu/drm/xe/xe_pm.c
> @@ -663,6 +663,13 @@ int xe_pm_runtime_suspend(struct xe_device *xe)
> return 0;
>
> out_resume:
> + /*
> + * We need to explicitly clear the PME HPD flag in this error handler.
> + * Normally this is set during early runtime suspend and cleared during
> + * early runtime resume call.
> + */
> + xe_display_clear_pme_hpd(xe);
> +
> xe_display_pm_runtime_resume(xe);
> xe_pxp_pm_resume(xe->pxp);
[Severity: High]
This isn't a bug introduced by this patch, but on this error path, do we
leave previously suspended GTs in a suspended state?
If xe_gt_suspend() or xe_gt_runtime_suspend() fails during the for_each_gt()
iteration in xe_pm_runtime_suspend(), we jump to out_resume. It appears we
do not resume the GTs that were already successfully suspended in earlier
loop iterations, nor do we restore the BOs that were evicted before the loop:
for_each_gt(gt, xe, id) {
err = xe->d3cold.allowed ? xe_gt_suspend(gt) : xe_gt_runtime_suspend(gt);
if (err)
goto out_resume;
}
A similar pattern seems to exist in the system suspend path in xe_pm_suspend():
for_each_gt(gt, xe, id) {
err = xe_gt_suspend(gt);
if (err)
goto err_display;
}
Can this leave the device in a corrupted state where some components are
suspended while the PM core considers the device active?
--
Sashiko AI review · https://sashiko.dev/#/patchset/20260911080448.778316-1-vinod.govindapillai@intel.com?part=8
next prev parent reply other threads:[~2026-09-11 8:20 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-11 8:04 [PATCH v5 00/10] pm_pme support on display hotplug Vinod Govindapillai
2026-09-11 8:04 ` [PATCH v5 01/10] drm/xe/pm: initialize the device's system wakeup capabilities Vinod Govindapillai
2026-09-11 8:04 ` [PATCH v5 02/10] drm/xe/pm: introduce PM PME support Vinod Govindapillai
2026-09-11 8:04 ` [PATCH v5 03/10] drm/xe/pm: avoid reclaim when arming PME wakeup Vinod Govindapillai
2026-09-11 8:22 ` sashiko-bot
2026-09-11 8:04 ` [PATCH v5 04/10] drm/i915: add pme_enabled() to the parent interface Vinod Govindapillai
2026-09-11 8:04 ` [PATCH v5 05/10] drm/i915/xe: plug the pme_enabed implementation for xe Vinod Govindapillai
2026-09-11 8:04 ` [PATCH v5 06/10] drm/i915/hotplug: add helpers to track HPDs can generate PME Vinod Govindapillai
2026-09-11 13:00 ` Jani Nikula
2026-09-11 15:36 ` Govindapillai, Vinod
2026-09-11 8:04 ` [PATCH v5 07/10] drm/i915: plug the pm runtime handlers with PME HPD handling Vinod Govindapillai
2026-09-11 8:04 ` [PATCH v5 08/10] drm/xe/pm: clear PME HPD flag on runtime suspend error handler Vinod Govindapillai
2026-09-11 8:20 ` sashiko-bot [this message]
2026-09-11 8:04 ` [PATCH v5 09/10] drm/i915/irq: conditional HPD IRQ resets based on PME capability Vinod Govindapillai
2026-09-11 8:27 ` sashiko-bot
2026-09-11 8:04 ` [PATCH v5 10/10] drm/i915/hotplug: avoid HPD polling if the device is PME capable Vinod Govindapillai
2026-09-11 8:34 ` sashiko-bot
2026-09-11 8:17 ` ✓ CI.KUnit: success for pm_pme support on display hotplug (rev5) Patchwork
2026-09-11 9:06 ` ✓ Xe.CI.BAT: " Patchwork
2026-09-11 15:39 ` ✓ Xe.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=20260911082021.BB88E1F00893@smtp.kernel.org \
--to=sashiko-bot@kernel.org \
--cc=intel-gfx@lists.freedesktop.org \
--cc=intel-xe@lists.freedesktop.org \
--cc=sashiko-reviews@lists.linux.dev \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox