Skip to content

sysfb: Fix display output on Lenovo D330 (and others)

Thomas Zimmermann dri-devel linux-efi sashiko-reviews 4 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest3 patches 7 repliesIn review
  2. v33 patches 2 repliesSuperseded
  3. v23 patches 10 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v13 patches4 repliesSuperseded

Changes in v4 from the cover letter

- fix test for EDID PTD (Jani)

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3firmware/sysfb: Remove rotation quirk for Lenovo D330drivers/firmware/efi/sysfb_efi.c+0 -92 replies
2/3drm/edid: Add drm_edid_detect_panel_size()drivers/gpu/drm/drm_edid.c include/drm/drm_edid.h+49 -03 replies
3/3drm/sysfb: Use preferred panel size for panel orientation quirksdrivers/gpu/drm/sysfb/efidrm.c drivers/gpu/drm/sysfb/ofdrm.c drivers/gpu/drm/sysfb/vesadrm.c+48 -42 replies

Reviews trailers per patch

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

PatchArd BiesheuvelJani NikulaJavier Martinez Canillas
1/3A-b R-b
2/3A-b R-b R-b
3/3A-b A-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v4 thread

Cover letter [PATCH v4 0/3] sysfb: Fix display output on Lenovo D330 (and others)

The kernel mis-interprets the display geometry given by the Lenovo D330 as incorrect. The values are correct, but the display output is rotated by 90°. With the kernel's firmware quirk applied, the output is garbled.

Remove the firmware quirk for the Lenovo D330 and let DRM's sysfb drivers set the correct panel orientation instead. To make this work for any display mode, use the panel size for looking up the correct orientation.

Tested on a Lenovo D330-10IGM IdeaPad.

v4:
- fix test for EDID PTD (Jani)
v3:
- rename EDID helper to drm_edid_detect_panel_size()
- clean up EDID code (Jani)
- mention possible dependency on device firmware version v2:
- reorder patches to have the immediate fix first
- detect and handle broken EDID better (Sashiko)
- fix width/height pointer check (Sashiko)

Thomas Zimmermann (3):
firmware/sysfb: Remove rotation quirk for Lenovo D330 drm/edid: Add drm_edid_detect_panel_size()
drm/sysfb: Use preferred panel size for panel orientation quirks

 drivers/firmware/efi/sysfb_efi.c |  9 ------
 drivers/gpu/drm/drm_edid.c       | 47 ++++++++++++++++++++++++++++++++
 drivers/gpu/drm/sysfb/efidrm.c   | 17 +++++++++++-
 drivers/gpu/drm/sysfb/ofdrm.c    | 18 ++++++++++--
 drivers/gpu/drm/sysfb/vesadrm.c  | 17 +++++++++++-
 include/drm/drm_edid.h           |  2 ++
 6 files changed, 97 insertions(+), 13 deletions(-)

base-commit: aa389a514292b196ae89c6515568b3329abeec63

Signature · 1 line
2.55.0