Skip to content

media: qcom: iris: fix runtime PM error handling

Hungyu Lin linux-arm-msm linux-media lkml 5 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v5 Latest2 patches 0 repliesNew
  2. v42 patches 2 repliesSuperseded
  3. v32 patches 2 repliesSuperseded
Earlier versions · 2
VersionPostedPatchesRepliesStatus
v21 patch0 repliesSuperseded
v11 patch1 replySuperseded

Changes in v5 from the cover letter

- Handle pm_runtime_put_sync() return value in iris_disable_power_domains().
- Add a blank line before return statement in rollback path.

Patches in v5 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2media: qcom: iris: fix runtime PM reference leaksdrivers/media/platform/qcom/iris/iris_resources.c+6 -90 replies
2/2media: qcom: iris: rollback OPP vote on PM resume failuredrivers/media/platform/qcom/iris/iris_resources.c+10 -10 replies

Reviews trailers per patch

1 of 2 patches has a Reviewed-by or Acked-by.

PatchDmitry Baryshkov
1/2R-b
2/2

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v5 thread

Cover letter [PATCH v5 0/2] media: qcom: iris: fix runtime PM error handling

This series fixes two issues in the Iris power management path.

Patch 1 updates the runtime PM handling to use pm_runtime_resume_and_get() and ensures that runtime PM references remain balanced during power-down error handling.

Patch 2 rolls back the maximum OPP vote when pm_runtime_resume_and_get() fails during power-up, preventing the driver from leaving an unnecessary OPP vote active after a failed resume.

Changes in v5:
- Handle pm_runtime_put_sync() return value in iris_disable_power_domains().
- Add a blank line before return statement in rollback path.

Changes in v4:
- Added Dmitry Baryshkov's Reviewed-by tag to patch 1.
- Reworked rollback handling in patch 2 to use a standard goto-based error path.
- Roll back the OPP vote from a dedicated error label when pm_runtime_resume_and_get() fails.

Hungyu Lin (2):
media: qcom: iris: fix runtime PM reference leaks
media: qcom: iris: rollback OPP vote on PM resume failure

 .../media/platform/qcom/iris/iris_resources.c | 20 ++++++++++++-------
 1 file changed, 13 insertions(+), 7 deletions(-)
Signature · 1 line
2.34.1