Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp1764144rwl; Fri, 31 Mar 2023 16:51:27 -0700 (PDT) X-Google-Smtp-Source: AKy350bHW4KdRtPhU+GWjSZQG9QveG1NCwiqSizEc7V6TokeNZGME9xIXSvrmV3ZniVbO74n4l0M X-Received: by 2002:a17:906:18d:b0:92f:39d9:1e50 with SMTP id 13-20020a170906018d00b0092f39d91e50mr5657957ejb.3.1680306687275; Fri, 31 Mar 2023 16:51:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680306687; cv=none; d=google.com; s=arc-20160816; b=zZqHRCvNmhlyUbqj1RxsNxG1eDYqfjIPlCyP5Byk45Ny705YM070yIBoCwUVHtobjL KSGrLO3B4V0gcaS6ASPeE0EPHLykcbPJJzdUX+dA175n5mJFAUSJ95Mlj3D2c7EWGKx4 RM4aCJ0WnjiTk+af3UGetZuTE4dZ7nHVhdVJW7pjIoMypfJiGYN+d/1iy2WwF5MCnbQS d2FKowRi8pwwmCI57VIzEf5dBOeAD3KYgQttqkCsO62e3msK7BXu+J2BbLLLwZWTpSHY ob4K1HxU5GF6I+HeWQzs4/FVZf3WtnBl3/3KDyobmhHsB6VaWf9djjqFFvdT9H0vI4nZ sk1Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:content-transfer-encoding:mime-version :message-id:date:subject:cc:from:dkim-signature; bh=SZqPCakegtWX1R1qWrI7INznL0Z1cwGdHEenYechGH8=; b=dqAXSZmz3yh3zWIxc3ew6CwIqNQZaNkbjbOzeaysnxubf5iQJchmeVy7xyCmcj6hKB KDfoRWCYh7RQTHNg3OG8gPqo6s2nH96WU6Hbxk9spZnJ7mDiRynqdQzzhMmc7j6zttVE skBaexg9k1Ax+kRjDoEo03hT8ICty/QpHyD5wchRq/mArbwpQBBmaWyOvgsKKAT7N0In 7zURa0r9ZeRXf6yg188pVYObCSQY3dBJBCEpe4qE5d5OH8SPJPpTEGxJbrPKZjf4pRnR DNgTZm9gcWd7YvOFYEozCJLFcswIqrASPgZFPkhTLDTWblXKl4w6nGOpmqcviQPOn3PX hnUQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@impl.it header.s=mail header.b=c+sn60TT; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=impl.it Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n6-20020a170906840600b009236600c6b6si2232579ejx.627.2023.03.31.16.51.00; Fri, 31 Mar 2023 16:51:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=fail header.i=@impl.it header.s=mail header.b=c+sn60TT; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=impl.it Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232712AbjCaXov (ORCPT + 99 others); Fri, 31 Mar 2023 19:44:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55472 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229988AbjCaXot (ORCPT ); Fri, 31 Mar 2023 19:44:49 -0400 X-Greylist: delayed 601 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Fri, 31 Mar 2023 16:44:47 PDT Received: from helium.impl.it (helium.impl.it [IPv6:2a01:4f8:c0c:b78a::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A08F110A82; Fri, 31 Mar 2023 16:44:47 -0700 (PDT) Received-SPF: None (mailfrom) identity=mailfrom; client-ip=2a02:ab88:1380:6600:79f7:20e6:6650:f439; helo=localhost; envelope-from=noreply@impl.it; receiver= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=impl.it; s=mail; t=1680305131; bh=SZqPCakegtWX1R1qWrI7INznL0Z1cwGdHEenYechGH8=; h=From:To:Cc:Subject:Date; b=c+sn60TTvHUyBB7xoT7Q9W2rs7VPzvXvCEtLl7Mwh5xafHo8MFbJ6EMu1X/TvmYYS rzQ412/nOl7GJCcPbt3uYzXLr2bC8IhTBTI8YMmG99Ar9n5PA3kDUIMjgmJ2+y0YoU 6q2+P+PFIAWUlQjJpIUOudMoNWequIoo9mAe8Mfs= Received: from localhost (unknown [IPv6:2a02:ab88:1380:6600:79f7:20e6:6650:f439]) by helium.impl.it (Postfix) with ESMTPSA id 46749443150; Sat, 1 Apr 2023 01:25:31 +0200 (CEST) From: Benjamin Asbach Cc: Mario Limonciello , Mark Pearson , Benjamin Asbach , Henrique de Moraes Holschuh , Hans de Goede , Mark Gross , ibm-acpi-devel@lists.sourceforge.net, platform-driver-x86@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] platform/x86: thinkpad_acpi: Add missing T14s Gen1 type to s2idle quirk list Date: Sat, 1 Apr 2023 01:24:47 +0200 Message-Id: <20230331232447.37204-1-asbachb.kernel@impl.it> X-Mailer: git-send-email 2.40.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net To: unlisted-recipients:; (no To-header on input) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > Lenovo laptops that contain NVME SSDs across a variety of generations have > trouble resuming from suspend to idle when the IOMMU translation layer is > active for the NVME storage device. > > This generally manifests as a large resume delay or page faults. These > delays and page faults occur as a result of a Lenovo BIOS specific SMI > that runs during the D3->D0 transition on NVME devices. Link: https://lore.kernel.org/all/20220503183420.348-1-mario.limonciello@amd.com/ As Lenovo distributes T14s Gen1 laptops with different product names a missing one is added by this patch. Note: Based on lenovo support page there might be some more variants which are not represented in s2idle quirk list. Signed-off-by: Benjamin Asbach Tested-by: Benjamin Asbach Link: https://bbs.archlinux.org/viewtopic.php?pid=2084655#p2084655 --- drivers/platform/x86/thinkpad_acpi.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/drivers/platform/x86/thinkpad_acpi.c b/drivers/platform/x86/thinkpad_acpi.c index 32c10457399e..57428d7a392d 100644 --- a/drivers/platform/x86/thinkpad_acpi.c +++ b/drivers/platform/x86/thinkpad_acpi.c @@ -4478,6 +4478,15 @@ static const struct dmi_system_id fwbug_list[] __initconst = { DMI_MATCH(DMI_PRODUCT_NAME, "20UH"), } }, + { + .ident = "T14s Gen1 AMD", + .driver_data = &quirk_s2idle_bug, + .matches = { + DMI_MATCH(DMI_BOARD_VENDOR, "LENOVO"), + DMI_MATCH(DMI_PRODUCT_NAME, "20UJ"), + } + }, + { .ident = "P14s Gen1 AMD", .driver_data = &quirk_s2idle_bug, -- 2.40.0