From: sashiko-bot@kernel.org
To: "Zongyao Bai" <zongyao.bai@intel.com>, intel-xe@lists.freedesktop.org
Subject: Re: [RESEND PATCH v3 2/3] drm/xe/forcewake: flush delayed release at power and teardown boundaries
Date: Tue, 01 Dec 2026 23:24:39 +0000 [thread overview]
Message-ID: <sashiko-outbox-244380@kernel.org> (raw)
In-Reply-To: <20261201230744.680448-3-zongyao.bai@intel.com>
Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [Medium] drm/xe: missing xe_force_wake_flush() in xe_gt_flr_prepare()
before PCIe FLR
--
commit 9c538d813afa70e3cd0f25e79eefb0e7519a510c
Author: Zongyao Bai <zongyao.bai@intel.com>
drm/xe/forcewake: flush delayed release at power and teardown boundaries
This commit adds xe_force_wake_flush() and xe_force_wake_stop() to cancel
delayed forcewake releases and put held domains to sleep across suspend,
shutdown, and device removal.
> diff --git a/drivers/gpu/drm/xe/xe_gt.c b/drivers/gpu/drm/xe/xe_gt.c
> index 1d2fbb8a0de8d..9c8c315f63b24 100644
> --- a/drivers/gpu/drm/xe/xe_gt.c
> +++ b/drivers/gpu/drm/xe/xe_gt.c
> @@ -1058,7 +1058,7 @@ int xe_gt_suspend(struct xe_gt *gt)
> xe_gt_dbg(gt, "suspending\n");
> xe_gt_sanitize(gt);
>
> - CLASS(xe_force_wake, fw_ref)(gt_to_fw(gt), XE_FORCEWAKE_ALL);
> + CLASS(xe_force_wake_flush, fw_ref)(gt_to_fw(gt), XE_FORCEWAKE_ALL);
> if (!xe_force_wake_ref_has_domain(fw_ref.domains, XE_FORCEWAKE_ALL)) {
> xe_gt_err(gt, "suspend failed (%pe)\n", ERR_PTR(-ETIMEDOUT));
> return -ETIMEDOUT;
[Severity: Medium]
Should xe_gt_flr_prepare() also call xe_force_wake_flush(gt_to_fw(gt))?
When xe_pci_reset_prepare() calls xe_device_suspend(xe, false, true), the
flr branch calls xe_gt_flr_prepare() instead of xe_gt_suspend():
drivers/gpu/drm/xe/xe_device.c:xe_device_suspend() {
...
if (flr) {
for_each_gt(gt, xe, id)
xe_gt_flr_prepare(gt);
} else {
...
for_each_gt(gt, xe, id) {
err = xe_gt_suspend(gt);
...
}
If a forcewake domain is in delayed hold when a PCIe FLR starts,
delayed_release_work can fire while MMIO is disabled during the reset and
trigger sleep ACK timeout warnings, or fw->delayed_domains can stay set
after the hardware FLR resets domains to sleep, causing
xe_force_wake_get() during post-FLR xe_device_resume() to reuse the
domain without waking it.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261201230744.680448-1-zongyao.bai@intel.com?part=2
next prev parent reply other threads:[~2026-12-01 23:24 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-01 23:07 [RESEND PATCH v3 0/3] drm/xe/forcewake: add delayed release for engine-cycle queries Zongyao Bai
2026-12-01 23:07 ` [RESEND PATCH v3 1/3] drm/xe/forcewake: add delayed release with hysteresis Zongyao Bai
2026-12-01 23:30 ` sashiko-bot
2026-12-01 23:07 ` [RESEND PATCH v3 2/3] drm/xe/forcewake: flush delayed release at power and teardown boundaries Zongyao Bai
2026-12-01 23:24 ` sashiko-bot [this message]
2026-12-02 0:18 ` Bai, Zongyao
2026-12-01 23:07 ` [RESEND PATCH v3 3/3] drm/xe/query: use delayed forcewake release for engine-cycle queries Zongyao Bai
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=sashiko-outbox-244380@kernel.org \
--to=sashiko-bot@kernel.org \
--cc=intel-xe@lists.freedesktop.org \
--cc=sashiko-reviews@lists.linux.dev \
--cc=zongyao.bai@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.