All of lore.kernel.org
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Baihui Liang" <liangbaihui@linux.spacemit.com>
Cc: dri-devel@lists.freedesktop.org
Subject: Re: [PATCH v3] drm/imagination: re-check firmware idle state before runtime suspend
Date: Fri, 27 Nov 2026 03:58:42 +0000	[thread overview]
Message-ID: <sashiko-outbox-236569@kernel.org> (raw)
In-Reply-To: <20261127-img-pm-autosuspend-v3-1-3a65ee22d9b2@linux.spacemit.com>

Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [Low] drm/imagination: missing Fixes trailer on runtime PM idle
  rejection fix
--

commit c29dc1db48c5cba60c84fc26290cdb68ebfc286c
Author: Baihui Liang <liangbaihui@linux.spacemit.com>

> drm/imagination: re-check firmware idle state before runtime suspend
>
> pvr_power_device_idle() rejects runtime suspend while the firmware
> hasn't reached ROGUE_FWIF_POW_IDLE. The PM core doesn't reschedule
> idle notification after rejection, so no further pm_runtime_put()
> arrives on an idle GPU and the device stays powered indefinitely.
>
> Move the idle check into pvr_power_device_suspend() and return -EBUSY
> after pm_runtime_mark_last_busy() so the PM core reschedules the
> autosuspend timer and retries until the firmware is idle.
>
> Factor the power-off sequence into a helper and call it from the
> removal path with runtime PM disabled, bypassing the idle check.
> Power off before destroying the job and free-list ID arrays, since
> the IRQ handler can still process firmware commands during shutdown
> and look up free-list IDs.
>
> Signed-off-by: Baihui Liang <liangbaihui@linux.spacemit.com>

[Severity: Low]
This fixes a bug where rejecting runtime idle in pvr_power_device_idle()
prevents the GPU from autosuspending.  Should this include:

  Fixes: 727538a4bbff ("drm/imagination: Implement power management")

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261127-img-pm-autosuspend-v3-1-3a65ee22d9b2@linux.spacemit.com?part=1

  reply	other threads:[~2026-11-27  3:58 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-27  3:39 [PATCH v3] drm/imagination: re-check firmware idle state before runtime suspend Baihui Liang
2026-11-27  3:39 ` Baihui Liang
2026-11-27  3:58 ` sashiko-bot [this message]
2026-11-29  6:27 ` Gyeyoung Baek
2026-11-29  6:27   ` Gyeyoung Baek
2026-11-29 13:40   ` Troy Mitchell
2026-11-29 13:40     ` Troy Mitchell
2026-12-01  1:46     ` Baihui Liang
2026-12-01  1:46       ` Baihui Liang
2026-11-30  8:20 ` Brajesh Gupta
2026-11-30  8:20   ` Brajesh Gupta
2026-12-01  2:48   ` Baihui Liang
2026-12-01  2:48     ` Baihui Liang
2026-12-01  8:30     ` [EXTERNAL] " Brajesh Gupta
2026-12-01  8:30       ` Brajesh Gupta

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-236569@kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=liangbaihui@linux.spacemit.com \
    --cc=sashiko-reviews@lists.linux.dev \
    /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.