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 AF74EC7EE32 for ; Wed, 1 Mar 2023 16:29:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229791AbjCAQ3y (ORCPT ); Wed, 1 Mar 2023 11:29:54 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49186 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229771AbjCAQ3j (ORCPT ); Wed, 1 Mar 2023 11:29:39 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 06E1E3D91F; Wed, 1 Mar 2023 08:29:38 -0800 (PST) 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 ams.source.kernel.org (Postfix) with ESMTPS id BFD5CB810B5; Wed, 1 Mar 2023 16:29:36 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id DB193C433D2; Wed, 1 Mar 2023 16:29:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1677688175; bh=0tZ/4NzooGbrjMVXg9sTdBqHaTj1hP3blSQVZAnuiwo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=oLKHorCX35vHEkAF4bYOMOnVgzgzzY+to+NenO9pessMoNekLI7tUpP1RDOeH8G1R aLzuBPRSI9X7r8kCfzgBR0/7lWlRdA88l0jIRzQPb9ivqQnckj2BhDhMnioZPOBaY0 QXnFHpWIeeGk5+CHFbqBdH8aX4uT7nAfjWyFeXEN9LyMAkPmBMslxOY48N2BH2OWoT WbGnO8KnfcLKicjUBSrUa+BVLtg8gnpAIbn0uQ7Vv7PGEj51UYTHT6VeaDiMrq0uHE oKZguEi6CK7+YthY7a5o73f1zdAhiw6yIzFVh37p9MQr8tW8Jc1UK8fwCnDXKVH1lk H3d+5KSy4GOzQ== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Darrell Kavanagh , Hans de Goede , Ard Biesheuvel , Sasha Levin , linux-efi@vger.kernel.org Subject: [PATCH AUTOSEL 6.2 4/6] firmware/efi sysfb_efi: Add quirk for Lenovo IdeaPad Duet 3 Date: Wed, 1 Mar 2023 11:29:27 -0500 Message-Id: <20230301162929.1302785-4-sashal@kernel.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230301162929.1302785-1-sashal@kernel.org> References: <20230301162929.1302785-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: Darrell Kavanagh [ Upstream commit e1d447157f232c650e6f32c9fb89ff3d0207c69a ] 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: Darrell Kavanagh Reviewed-by: Hans de Goede Signed-off-by: Ard Biesheuvel Signed-off-by: Sasha Levin --- drivers/firmware/efi/sysfb_efi.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/drivers/firmware/efi/sysfb_efi.c b/drivers/firmware/efi/sysfb_efi.c index 7882d4b3f2be4..f06fdacc9bc83 100644 --- a/drivers/firmware/efi/sysfb_efi.c +++ b/drivers/firmware/efi/sysfb_efi.c @@ -264,6 +264,14 @@ static const struct dmi_system_id efifb_dmi_swap_width_height[] __initconst = { "Lenovo ideapad D330-10IGM"), }, }, + { + /* Lenovo IdeaPad Duet 3 10IGL5 with 1200x1920 portrait screen */ + .matches = { + DMI_EXACT_MATCH(DMI_SYS_VENDOR, "LENOVO"), + DMI_EXACT_MATCH(DMI_PRODUCT_VERSION, + "IdeaPad Duet 3 10IGL5"), + }, + }, {}, }; -- 2.39.2