Skip to content

drm-panel: Don't make failures quite so fatal

Douglas Anderson dri-devel lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 6 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3drm/panel-edp: Abstract out function to set conservative timingsdrivers/gpu/drm/panel/panel-edp.c+20 -202 replies
2/3drm/panel-edp: If we fail to powerup/get EDID, use conservative timingsdrivers/gpu/drm/panel/panel-edp.c+7 -52 replies
3/3drm-panel: If drm_panel_dp_aux_backlight() fails, don't fail panel probedrivers/gpu/drm/panel/panel-edp.c drivers/gpu/drm/panel/panel-samsung-atna33xc20.c+14 -32 replies

Reviews trailers per patch

All 3 patches have a Reviewed-by or Acked-by.

PatchHsin-Yi Wang
1/3R-b
2/3R-b
3/3R-b

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

Read the v1 thread

Cover letter [PATCH 0/3] drm-panel: Don't make failures quite so fatal

This patch series is born out of the observation that after several Chromebooks transitioned over to the generic "edp-panel" compatible string that we received a number of in-the-field reports of the primary graphics device for the Chromebook not coming up.

The current belief is that these Chromebooks are actually suffering from a true hardware failure and the panel is either fully disconnected or it has some type of intermittent connection. While we can't solve that problem, digging showed that we actually dealt with this situation better _before_ switching to the generic "edp-panel" compatible string.

Before switching to "edp-panel", devices using eDP would finish their probe and would actually not show any failure until you tried to turn the panel on. That was a _good_ thing. The component model used by many DRM devices means that if the panel doesn't finish probing that the rest of the DRM device doesn't probe. In turn, that means that any other display adapters (like ones that would allow hooking up an external display) don't probe. The end result was that a device with a broken panel that could have continued to be a useful computer by hooking up an external display became e-waste.

I won't say that this series is the most elegant/wonderful thing in the world. Ideally we could fail the probe of the panel and still use the external display. That's a pretty serious re-design, though. DRM devices work like they do with the component model because of some of their inherent complexities.

Douglas Anderson (3):
drm/panel-edp: Abstract out function to set conservative timings drm/panel-edp: If we fail to powerup/get EDID, use conservative
timings
drm-panel: If drm_panel_dp_aux_backlight() fails, don't fail panel
probe

 drivers/gpu/drm/panel/panel-edp.c             | 60 +++++++++++--------
 .../gpu/drm/panel/panel-samsung-atna33xc20.c  |  9 ++-
 2 files changed, 41 insertions(+), 28 deletions(-)
Signature · 1 line
2.44.0.396.g6e790dbe36-goog