All of lore.kernel.org
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Thomas Zimmermann" <tzimmermann@suse.de>
Cc: dri-devel@lists.freedesktop.org
Subject: Re: [PATCH v3 1/3] firmware/sysfb: Remove rotation quirk for Lenovo D330
Date: Tue, 01 Sep 2026 08:32:40 +0000	[thread overview]
Message-ID: <20260901083240.BBD111F00ADB@smtp.kernel.org> (raw)
In-Reply-To: <20260901082057.37617-2-tzimmermann@suse.de>

Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [High] Removing the sysfb swap quirk breaks display rotation on Lenovo D330 systems with older BIOS versions.
--

commit f8f13abb4b89a4b4aa3805bfd4d2f46d356e038c
Author: Thomas Zimmermann <tzimmermann@suse.de>

firmware/sysfb: Remove rotation quirk for Lenovo D330

This commit removes the sysfb width/height swap quirk for the Lenovo D330.
It notes that the quirk breaks the display geometry on the tested firmware,
but acknowledges the behavior might depend on the BIOS release and advises
users to update their firmware to avoid issues.

> diff --git a/drivers/firmware/efi/sysfb_efi.c b/drivers/firmware/efi/sysfb_efi.c
> index 685283bb7327a..2338de73c62c9 100644
> --- a/drivers/firmware/efi/sysfb_efi.c
> +++ b/drivers/firmware/efi/sysfb_efi.c
> @@ -301,15 +301,6 @@ static const struct dmi_system_id efifb_dmi_swap_width_height[] __initconst = {
>  		},
>  		.callback = efifb_swap_width_height,
>  	},
> -	{
> -		/* Lenovo D330 with 800x1280 or 1200x1920 portrait screen */
> -		.matches = {
> -			DMI_EXACT_MATCH(DMI_SYS_VENDOR, "LENOVO"),
> -			DMI_EXACT_MATCH(DMI_PRODUCT_VERSION,
> -					"Lenovo ideapad D330-10IGM"),
> -		},
> -		.callback = efifb_swap_width_height,
> -	},

[Severity: High]
Does unconditionally removing this quirk cause a regression for users on
older BIOS versions?

If a user boots a Lenovo D330-10IGM with an older BIOS that incorrectly
reports a landscape resolution (e.g., 1280x800) for a portrait-stride
hardware setup, removing this dynamic swap leaves the dimensions uncorrected.

For drivers like simpledrm (which do not use EDID) or even efidrm (where the
framebuffer geometry is derived from the uncorrected si->lfb_width and
si->lfb_height), this will result in complete display corruption due to
mismatched strides.

Since the kernel has a strict policy against regressions, advising users to
update their firmware to fix a kernel-introduced regression might not be
sufficient.

Could this be fixed by keeping the quirk but conditionally applying the swap
inside efifb_swap_width_height() only if si->lfb_width > si->lfb_height?
This approach might fix the geometry for newer BIOS releases without breaking
the older ones.

>  	{
>  		/*
>  		 * Lenovo IdeaPad Duet 3 10IGL5 and 10IGL5-LTE with

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20260901082057.37617-1-tzimmermann@suse.de?part=1

  reply	other threads:[~2026-09-01  8:32 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-09-01  8:17 [PATCH v3 0/3] sysfb: Fix display output on Lenovo D330 (and others) Thomas Zimmermann
2026-09-01  8:17 ` [PATCH v3 1/3] firmware/sysfb: Remove rotation quirk for Lenovo D330 Thomas Zimmermann
2026-09-01  8:32   ` sashiko-bot [this message]
2026-09-01  8:17 ` [PATCH v3 2/3] drm/edid: Add drm_edid_detect_panel_size() Thomas Zimmermann
2026-09-02  8:45   ` Jani Nikula
2026-09-02 11:06     ` Thomas Zimmermann
2026-09-01  8:17 ` [PATCH v3 3/3] drm/sysfb: Use preferred panel size for panel orientation quirks Thomas Zimmermann

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20260901083240.BBD111F00ADB@smtp.kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=sashiko-reviews@lists.linux.dev \
    --cc=tzimmermann@suse.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.