From: Wentao Liang <vulab@iscas.ac.cn>
To: adrian.larumbe@collabora.com
Cc: airlied@gmail.com, boris.brezillon@collabora.com,
dri-devel@lists.freedesktop.org, eric@anholt.net,
linux-kernel@vger.kernel.org, maarten.lankhorst@linux.intel.com,
mripard@kernel.org, neil.armstrong@linaro.org, robh@kernel.org,
simona@ffwll.ch, steven.price@arm.com, tomeu@tomeuvizoso.net,
tzimmermann@suse.de, Wentao Liang <vulab@iscas.ac.cn>,
stable@vger.kernel.org
Subject: [PATCH] drm/panfrost: Fix runtime PM leak in panfrost_remove()
Date: Wed, 16 Sep 2026 18:08:13 +0000 [thread overview]
Message-ID: <20260916180813.2090648-1-vulab@iscas.ac.cn> (raw)
The pm_runtime_get_sync() call keeps the device awake while the
hardware is torn down, but the usage counter it takes is never
dropped, so the count is left permanently elevated once runtime PM
has been disabled. Drop it with pm_runtime_put_noidle() once the
device has been marked suspended.
Fixes: f3ba91228e8e ("drm/panfrost: Add initial panfrost driver")
Cc: stable@vger.kernel.org
Signed-off-by: Wentao Liang <vulab@iscas.ac.cn>
---
drivers/gpu/drm/panfrost/panfrost_drv.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/gpu/drm/panfrost/panfrost_drv.c b/drivers/gpu/drm/panfrost/panfrost_drv.c
index 074c0995ddc2..6d047ca7e208 100644
--- a/drivers/gpu/drm/panfrost/panfrost_drv.c
+++ b/drivers/gpu/drm/panfrost/panfrost_drv.c
@@ -1029,6 +1029,7 @@ static void panfrost_remove(struct platform_device *pdev)
pm_runtime_disable(pfdev->base.dev);
panfrost_device_fini(pfdev);
pm_runtime_set_suspended(pfdev->base.dev);
+ pm_runtime_put_noidle(pfdev->base.dev);
}
static ssize_t profiling_show(struct device *dev,
--
2.34.1
next reply other threads:[~2026-09-16 18:08 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-16 18:08 Wentao Liang [this message]
2026-11-02 19:02 ` Adrian Larumbe
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=20260916180813.2090648-1-vulab@iscas.ac.cn \
--to=vulab@iscas.ac.cn \
--cc=adrian.larumbe@collabora.com \
--cc=airlied@gmail.com \
--cc=boris.brezillon@collabora.com \
--cc=dri-devel@lists.freedesktop.org \
--cc=eric@anholt.net \
--cc=linux-kernel@vger.kernel.org \
--cc=maarten.lankhorst@linux.intel.com \
--cc=mripard@kernel.org \
--cc=neil.armstrong@linaro.org \
--cc=robh@kernel.org \
--cc=simona@ffwll.ch \
--cc=stable@vger.kernel.org \
--cc=steven.price@arm.com \
--cc=tomeu@tomeuvizoso.net \
--cc=tzimmermann@suse.de \
/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
all inboxes | Powered by JetHome®