From: sashiko-bot@kernel.org
To: "Vinay Belgaumkar" <vinay.belgaumkar@intel.com>
Cc: intel-xe@lists.freedesktop.org
Subject: Re: [PATCH v2 1/2] drm/xe: Inspect all forcewake bits for runtime idleness
Date: Thu, 10 Sep 2026 21:45:27 +0000 [thread overview]
Message-ID: <20260910214528.021B41F000FF@smtp.kernel.org> (raw)
In-Reply-To: <20260910212823.2358362-1-vinay.belgaumkar@intel.com>
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [High] The runtime PM autosuspend retry mechanism is broken, causing unconditional suspension even when forcewake bits are set.
--
commit 87cc16a66c9eb41f1b093edd9b83a3cac1ad67b5
Author: Vinay Belgaumkar <vinay.belgaumkar@intel.com>
drm/xe: Inspect all forcewake bits for runtime idleness
This commit adds checks for all GT force wake bits in the idle check
for runtime suspend to avoid suspending while the GT is kept awake.
It also adds a call to pm_runtime_autosuspend() inside the idle check
to ensure a PM subsystem retry at a later time.
> diff --git a/drivers/gpu/drm/xe/xe_pci.c b/drivers/gpu/drm/xe/xe_pci.c
> index 1e04e8ef2611f..278cfd390364c 100644
> --- a/drivers/gpu/drm/xe/xe_pci.c
> +++ b/drivers/gpu/drm/xe/xe_pci.c
[ ... ]
> @@ -1437,10 +1437,14 @@ static int xe_pci_runtime_idle(struct device *dev)
> {
> struct pci_dev *pdev = to_pci_dev(dev);
> struct xe_device *xe = pdev_to_xe_device(pdev);
> + int ret;
>
> xe_pm_d3cold_allowed_toggle(xe);
>
> - return 0;
> + ret = xe_pm_check_runtime_idle(xe);
> + pm_runtime_autosuspend(dev);
[Severity: High]
Does this cause an immediate suspension rather than a delayed retry?
When xe_pm_check_runtime_idle() detects forcewake bits and returns -EBUSY,
pm_runtime_autosuspend() is called to queue a retry. However, because
pm_runtime_mark_last_busy() is not called to update the timestamp, the PM
core calculates that the autosuspend timer is already expired.
This causes rpm_suspend() to execute immediately. Since the
xe_pci_runtime_suspend() callback does not re-check idleness, the device
appears to unconditionally suspend while forcewake bits are still active.
> +
> + return ret;
> }
>
> static const struct dev_pm_ops xe_pm_ops = {
--
Sashiko AI review · https://sashiko.dev/#/patchset/20260910212823.2358362-1-vinay.belgaumkar@intel.com?part=1
next prev parent reply other threads:[~2026-09-10 21:45 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-10 21:28 [PATCH v2 1/2] drm/xe: Inspect all forcewake bits for runtime idleness Vinay Belgaumkar
2026-09-10 21:28 ` [PATCH v2 2/2] drm/xe: Poll GT for C6 before D3 Vinay Belgaumkar
2026-09-10 21:41 ` sashiko-bot
2026-09-10 22:23 ` Rodrigo Vivi
2026-09-10 21:41 ` ✓ CI.KUnit: success for series starting with [v2,1/2] drm/xe: Inspect all forcewake bits for runtime idleness Patchwork
2026-09-10 21:45 ` sashiko-bot [this message]
2026-09-10 21:53 ` [PATCH v2 1/2] " Belgaumkar, Vinay
2026-09-10 22:17 ` Rodrigo Vivi
2026-09-10 23:00 ` Belgaumkar, Vinay
2026-09-11 21:58 ` Rodrigo Vivi
2026-09-11 23:02 ` Belgaumkar, Vinay
2026-09-10 22:35 ` ✓ Xe.CI.BAT: success for series starting with [v2,1/2] " Patchwork
2026-09-11 7:03 ` ✗ 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=20260910214528.021B41F000FF@smtp.kernel.org \
--to=sashiko-bot@kernel.org \
--cc=intel-xe@lists.freedesktop.org \
--cc=sashiko-reviews@lists.linux.dev \
--cc=vinay.belgaumkar@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.