dri-devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/3] sysfb: Fix display output on Lenovo D330 (and others)
@ 2026-08-31  9:27 Thomas Zimmermann
  2026-08-31  9:27 ` [PATCH v2 1/3] firmware/sysfb: Remove rotation quirk for Lenovo D330 Thomas Zimmermann
                   ` (2 more replies)
  0 siblings, 3 replies; 15+ messages in thread
From: Thomas Zimmermann @ 2026-08-31  9:27 UTC (permalink / raw)
  To: javierm, ardb, ilias.apalodimas, jani.nikula, maarten.lankhorst,
	mripard, simona, airlied
  Cc: dri-devel, linux-efi, sashiko-reviews, Thomas Zimmermann

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.

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_get_preferred_size()
  drm/sysfb: Use preferred panel size for panel orientation quirks

 drivers/firmware/efi/sysfb_efi.c |  9 -------
 drivers/gpu/drm/drm_edid.c       | 46 ++++++++++++++++++++++++++++++++
 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, 96 insertions(+), 13 deletions(-)


base-commit: edb0a89a038079d0d86e768b30a72d053d3e39e0
-- 
2.55.0


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

end of thread, other threads:[~2026-08-31 16:56 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-08-31  9:27 [PATCH v2 0/3] sysfb: Fix display output on Lenovo D330 (and others) Thomas Zimmermann
2026-08-31  9:27 ` [PATCH v2 1/3] firmware/sysfb: Remove rotation quirk for Lenovo D330 Thomas Zimmermann
2026-08-31  9:47   ` sashiko-bot
2026-08-31 12:49   ` Jani Nikula
2026-08-31 13:23     ` Thomas Zimmermann
2026-08-31 13:32       ` Jani Nikula
2026-08-31  9:27 ` [PATCH v2 2/3] drm/edid: Add drm_edid_get_preferred_size() Thomas Zimmermann
2026-08-31 13:13   ` Jani Nikula
2026-08-31 13:31     ` Thomas Zimmermann
2026-08-31 13:36       ` Jani Nikula
2026-08-31 16:56       ` Jani Nikula
2026-08-31  9:27 ` [PATCH v2 3/3] drm/sysfb: Use preferred panel size for panel orientation quirks Thomas Zimmermann
2026-08-31 13:23   ` Jani Nikula
2026-08-31 13:43     ` Thomas Zimmermann
2026-08-31 14:11       ` Jani Nikula

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox