Skip to content

drm/msm/adreno: fix runtime PM imbalance at unbind

Johan Hovold dri-devel linux-arm-msm lkml stable 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest4 patches 1 replyIn review
  2. v14 patches 2 repliesSuperseded

Changes in v2 from the cover letter

- fix the runtime PM imbalance in the gpu load error paths (new)

- drop the patch removing the pm_runtime_disable() from adreno_gpu_cleanup() as this function can currently still be called with runtime PM enabled if suspending the scheduler in adreno_system_suspend() at unbind fails

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4drm/msm/adreno: fix runtime PM imbalance at unbinddrivers/gpu/drm/msm/adreno/adreno_device.c+2 -10 replies
2/4drm/msm/adreno: fix runtime PM imbalance at gpu loaddrivers/gpu/drm/msm/adreno/adreno_device.c+12 -40 replies
3/4drm/msm/adreno: drop bogus pm_runtime_set_active()drivers/gpu/drm/msm/adreno/adreno_device.c+0 -30 replies
4/4drm/msm/adreno: clean up component ops indentationdrivers/gpu/drm/msm/adreno/adreno_device.c+2 -20 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH v2 0/4] drm/msm/adreno: fix runtime PM imbalance at unbind

As reported by Bjorn, we can end up with an unbalanced runtime PM disable count if unbind() is called before the DRM device is opened (e.g. if component bind fails due to the panel driver not having been loaded yet).

As runtime PM must currently stay disabled until the firmware has been loaded, fix this by making the runtime PM disable call at unbind() conditional.

The rest of the series fixes further imbalances in the load_gpu() error paths and removes a bogus pm_runtime_set_active() call. Included is also a related indentation cleanup.

Johan

Changes in v2
- fix the runtime PM imbalance in the gpu load error paths (new)

- drop the patch removing the pm_runtime_disable() from adreno_gpu_cleanup() as this function can currently still be called with runtime PM enabled if suspending the scheduler in adreno_system_suspend() at unbind fails

Johan Hovold (4):
drm/msm/adreno: fix runtime PM imbalance at unbind drm/msm/adreno: fix runtime PM imbalance at gpu load drm/msm/adreno: drop bogus pm_runtime_set_active() drm/msm/adreno: clean up component ops indentation

 drivers/gpu/drm/msm/adreno/adreno_device.c | 26 +++++++++++++---------
 1 file changed, 16 insertions(+), 10 deletions(-)
Signature · 1 line
2.39.2