All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/3] omapdrm: Fix runtime PM issues at module load and unload time
@ 2018-11-01 10:25 Laurent Pinchart
  2018-11-01 10:25 ` [PATCH 1/3] drm/omap: Populate DSS children in omapdss driver Laurent Pinchart
                   ` (3 more replies)
  0 siblings, 4 replies; 11+ messages in thread
From: Laurent Pinchart @ 2018-11-01 10:25 UTC (permalink / raw)
  To: dri-devel; +Cc: Tony Lindgren, Tomi Valkeinen, linux-omap

Hello,

This series fixes crashes in the omapdss driver at both load and unload
time, due to runtime PM problems related to probe deferral. The bugs got
introduced in v4.20-rc, this should thus be considered as v4.20 fixes.

At the core of the problem comes commit 27d624527d99 ("drm/omap: dss:
Acquire next dssdev at probe time") which can cause probe deferral for
the DSS when the encoder and panel modules are not loaded yet. As the
omapdss module contains drivers for the DSS and all its children, this
results in the internal encoders being probed before the DSS. Missing
runtime PM handling around register access then caused imprecise
external aborts.

Patch 1/3 moves population of the DSS children from arch code to the
omapdss driver. This prevents the DSS children from being probed before
the DSS. The change can be considered as a workaround in the sense that
runtime PM of the DSS children should operate correctly even when the
DSS probe fail. However, given that reducing the amount of arch code is
an improvement in itself, I believe the solution to be acceptable.

Patches 2/3 and 3/3 then ensure that the HDMI4 and DSI devices are
active at bind and probe time respectively, in order to access hardware
registers there.

Tony, patch 1/3 touches both the mach-omap2 and omapdss. Would you be
fine merging it through the DRM tree ? I don't think there's a risk of
conflict during the v4.20-rc cycle.

Laurent Pinchart (3):
  drm/omap: Populate DSS children in omapdss driver
  drm/omap: hdmi4: Ensure the device is active during bind
  drm/omap: dsi: Ensure the device is active during probe

 arch/arm/mach-omap2/display.c       | 111 +++++++++++++---------------
 drivers/gpu/drm/omapdrm/dss/dsi.c   |  25 +++++--
 drivers/gpu/drm/omapdrm/dss/dss.c   |  11 ++-
 drivers/gpu/drm/omapdrm/dss/hdmi4.c |  10 ++-
 4 files changed, 91 insertions(+), 66 deletions(-)

-- 
Regards,

Laurent Pinchart

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

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

end of thread, other threads:[~2018-11-05 20:15 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-11-01 10:25 [PATCH 0/3] omapdrm: Fix runtime PM issues at module load and unload time Laurent Pinchart
2018-11-01 10:25 ` [PATCH 1/3] drm/omap: Populate DSS children in omapdss driver Laurent Pinchart
2018-11-01 10:25 ` [PATCH 2/3] drm/omap: hdmi4: Ensure the device is active during bind Laurent Pinchart
2018-11-01 10:25 ` [PATCH 3/3] drm/omap: dsi: Ensure the device is active during probe Laurent Pinchart
2018-11-01 11:47 ` [PATCH 0/3] omapdrm: Fix runtime PM issues at module load and unload time Tomi Valkeinen
2018-11-01 12:13   ` Laurent Pinchart
2018-11-01 12:56     ` Tomi Valkeinen
2018-11-01 15:58     ` Tony Lindgren
2018-11-01 16:17       ` Laurent Pinchart
2018-11-05 15:14         ` Laurent Pinchart
2018-11-05 20:15           ` Tony Lindgren

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.