All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/4] drm/msm/adreno: fix runtime PM imbalance at unbind
@ 2023-03-03 16:48 ` Johan Hovold
  0 siblings, 0 replies; 12+ messages in thread
From: Johan Hovold @ 2023-03-03 16:48 UTC (permalink / raw)
  To: Rob Clark, Abhinav Kumar, Dmitry Baryshkov
  Cc: freedreno, Sean Paul, Bjorn Andersson, linux-kernel, dri-devel,
	linux-arm-msm, Johan Hovold

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(-)

-- 
2.39.2


^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2023-03-21 12:55 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-03 16:48 [PATCH v2 0/4] drm/msm/adreno: fix runtime PM imbalance at unbind Johan Hovold
2023-03-03 16:48 ` Johan Hovold
2023-03-03 16:48 ` [PATCH v2 1/4] " Johan Hovold
2023-03-03 16:48   ` Johan Hovold
2023-03-03 16:48 ` [PATCH v2 2/4] drm/msm/adreno: fix runtime PM imbalance at gpu load Johan Hovold
2023-03-03 16:48   ` Johan Hovold
2023-03-03 16:48 ` [PATCH v2 3/4] drm/msm/adreno: drop bogus pm_runtime_set_active() Johan Hovold
2023-03-03 16:48   ` Johan Hovold
2023-03-03 16:48 ` [PATCH v2 4/4] drm/msm/adreno: clean up component ops indentation Johan Hovold
2023-03-03 16:48   ` Johan Hovold
2023-03-21 12:56 ` [PATCH v2 0/4] drm/msm/adreno: fix runtime PM imbalance at unbind Johan Hovold
2023-03-21 12:56   ` Johan Hovold

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.