Skip to content

Commit 6409259

Browse files
dinghaoliuSteven Price
authored andcommitted
drm/panfrost: Fix runtime PM imbalance on error
The caller expects panfrost_job_hw_submit() to increase runtime PM usage counter. The refcount decrement on the error branch of WARN_ON() will break the counter balance and needs to be removed. Signed-off-by: Dinghao Liu <[email protected]> Reviewed-by: Steven Price <[email protected]> Signed-off-by: Steven Price <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
1 parent b99773e commit 6409259

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

drivers/gpu/drm/panfrost/panfrost_job.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,6 @@ static void panfrost_job_hw_submit(struct panfrost_job *job, int js)
152152
return;
153153

154154
if (WARN_ON(job_read(pfdev, JS_COMMAND_NEXT(js)))) {
155-
pm_runtime_put_sync_autosuspend(pfdev->dev);
156155
return;
157156
}
158157

0 commit comments

Comments
 (0)