From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0C11CC77B6D for ; Sat, 1 Apr 2023 01:59:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232415AbjDAB7x (ORCPT ); Fri, 31 Mar 2023 21:59:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54624 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233342AbjDAB7h (ORCPT ); Fri, 31 Mar 2023 21:59:37 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8F2A64EFE; Fri, 31 Mar 2023 18:58:22 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id DC65362D1E; Sat, 1 Apr 2023 01:44:39 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 37092C433EF; Sat, 1 Apr 2023 01:44:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1680313479; bh=5jd+H2qvse9+0T5vZAv2KLu4Yc33gmFKItwqhzT1A0s=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=D94H1XcgGCkzs0pDOMAMncR8R7iBR9qwkrV/eTZ4KkNn0RDQL5VJkZEoTxFGH5lua pPdJbP17lzj3PfQrTwLAyrszm7qnSlosEDX6xCC0eyIE/fG6m+I0fUsmnEyUzIOI2b uY70vnwvMcWTXltAETpf0FBHo7W1621H567z8j48GVyE9IZkYkNZWGsmhFihTLYuuQ NiEV9NAFTlzfZeC9l+WJBQg4fLJmj962m7Ngmm4dwfVRGi+vcuOZ3a2EzrOrdgyTG0 C3DcaBrUzaQONVgTbODFHZ6AlEGNRkO2fyWT24GBRRt0GJSQJGN9HNREkh2ITjVJ67 yAf8CmhIvMC6w== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Hans de Goede , Javier Martinez Canillas , Ard Biesheuvel , Sasha Levin , tglx@linutronix.de, mingo@redhat.com, bp@alien8.de, dave.hansen@linux.intel.com, x86@kernel.org Subject: [PATCH AUTOSEL 5.4 3/6] efi: sysfb_efi: Add quirk for Lenovo Yoga Book X91F/L Date: Fri, 31 Mar 2023 21:44:28 -0400 Message-Id: <20230401014431.3357345-3-sashal@kernel.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230401014431.3357345-1-sashal@kernel.org> References: <20230401014431.3357345-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Hans de Goede [ Upstream commit 5ed213dd64681f84a01ceaa82fb336cf7d59ddcf ] Another Lenovo convertable which reports a landscape resolution of 1920x1200 with a pitch of (1920 * 4) bytes, while the actual framebuffer has a resolution of 1200x1920 with a pitch of (1200 * 4) bytes. Signed-off-by: Hans de Goede Reviewed-by: Javier Martinez Canillas Signed-off-by: Ard Biesheuvel Signed-off-by: Sasha Levin --- arch/x86/kernel/sysfb_efi.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/arch/x86/kernel/sysfb_efi.c b/arch/x86/kernel/sysfb_efi.c index 9ea65611fba0b..fff04d2859765 100644 --- a/arch/x86/kernel/sysfb_efi.c +++ b/arch/x86/kernel/sysfb_efi.c @@ -272,6 +272,14 @@ static const struct dmi_system_id efifb_dmi_swap_width_height[] __initconst = { "IdeaPad Duet 3 10IGL5"), }, }, + { + /* Lenovo Yoga Book X91F / X91L */ + .matches = { + DMI_EXACT_MATCH(DMI_SYS_VENDOR, "LENOVO"), + /* Non exact match to match F + L versions */ + DMI_MATCH(DMI_PRODUCT_NAME, "Lenovo YB1-X91"), + }, + }, {}, }; -- 2.39.2