Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp4321536rwl; Mon, 3 Apr 2023 03:19:48 -0700 (PDT) X-Google-Smtp-Source: AKy350ayvTxDFs4b5EnehHPrXuJxY0QWHQ8hGEKI4bxc6Z3/tMzGqEpxRbOfMIn48D8gdVI4Mm75 X-Received: by 2002:a17:906:280e:b0:947:46e0:9e4f with SMTP id r14-20020a170906280e00b0094746e09e4fmr13041475ejc.3.1680517188385; Mon, 03 Apr 2023 03:19:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680517188; cv=none; d=google.com; s=arc-20160816; b=xLgjHu9N00olG9FPfD1y1oa6f4as3V/c2wE9AvtpXd/Fche24GQ3VZOZS7oe70gjFt MndxKIyuCcSNKUsyfSoXF22zvicL7uKskB+hYgldbEAQMxkYfSFlNteRi/XbnEuOFPvs bDqLnUfcJf4d67n4f3FdFvwM1lON68FZ4ovPLqYQcT+7jSFGZrYOtXsEgM6JtXpu6DXw BQuEuT6O1Vb/5pO1iB3cFtxjxHsLM0PXVXMHS5PvCb/hMVlKYgPAjLuT4rQP6Q5b3MNl ZxKBKfsfZKRXySJ4urOueu/0YPUM20cooJh+sOS94oG4hRF4LoIHCNLmaW/erGA+Yigb RWIQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=wA8QAb0BytdfB1jw9T76UqPrNQns0erlp298xSbCHJo=; b=P0twmLqaim+T1+Xhi/tbecO4+9quxs7mRCddrf+gjgU+QYR6oBKFKnjdNoJmMYT0JI yFR2M2wOQblIKGkMH+DivbAiyfBzE3OtdO13GgEJOfRJNt0Uml3j4/w37hMfMJIY8jvs RSIY52B/bQyH+DLIc24pxQYatEUBxZwaMLHRLzBUArC0tDXfkUrjuZPDsN66U2920Pvh DsKFcDWB14jpRhGk6ylxqpZKDp0fl6EZBbiRWg8AG43NL0fc1qXrW7bIbOUVNn6ITeT7 gNhUtUhL26afJXDRTtjzZcucNftf8haNj0wZGoOZx6SXqUBHdkZHDzCBpu6YkaaelTAm uX0A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=gyAMoQUo; 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=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f22-20020aa7d856000000b005022a645a91si7970309eds.483.2023.04.03.03.19.23; Mon, 03 Apr 2023 03:19:48 -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=pass header.i=@redhat.com header.s=mimecast20190719 header.b=gyAMoQUo; 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=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231859AbjDCKE2 (ORCPT + 99 others); Mon, 3 Apr 2023 06:04:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53472 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231864AbjDCKE1 (ORCPT ); Mon, 3 Apr 2023 06:04:27 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6C16610A96 for ; Mon, 3 Apr 2023 03:03:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1680516215; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=wA8QAb0BytdfB1jw9T76UqPrNQns0erlp298xSbCHJo=; b=gyAMoQUo7ZmPhpFGLRXhrCmUDDyYi/ue/FEtXyKxWGqCSEsmMebs230/VrtnQuOFUvXcrf Qs2jVQqYMjRGYuV+Bm/sh6o3tDndh1fsB6B8gr4AAtF3rzKYTNwNRKqctECcRCwNwZRKe3 ZULzdd+nheynQOv6yleqTTaSS/khUA4= Received: from mail-ed1-f69.google.com (mail-ed1-f69.google.com [209.85.208.69]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-447-Dl6nBevvNImt_e8UROf2NA-1; Mon, 03 Apr 2023 06:03:32 -0400 X-MC-Unique: Dl6nBevvNImt_e8UROf2NA-1 Received: by mail-ed1-f69.google.com with SMTP id x35-20020a50baa6000000b005021d1b1e9eso40754182ede.13 for ; Mon, 03 Apr 2023 03:03:31 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680516211; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=wA8QAb0BytdfB1jw9T76UqPrNQns0erlp298xSbCHJo=; b=yi4bgeqKHbn1nh2UNgTf1PNKSe1GqWXKXcx0L7h5Opb8bo7nPIo/sj6VGRTjAAono9 hr1BVwE3MjeuF4z0n484VyKjMjLifY5HLNQ9tW/OfyIe3j1xzKRF4L9gYnelN+fpJZl3 3qUIZSNnpg1mu5dj/pgPHHo54c4sKQtYx6IPdRdGL8jiygb0XCkSloZ5eVfkmCvN9d2s Eo5cbAWPOsGa+DR3aSKrwNtjnZBpHlNwJsUB5HfaPK67IVxOKekwI/Ohnlxu4c8+L8vn IPuU7BCsu9U3llf2tsyg5MZH8ftROoVD0IatyFwCXNmu7SCXKzCNosfwDOTt+acAr0Ta bCQw== X-Gm-Message-State: AAQBX9cmQgC6OIwXRrRlmHCHdiI7JovvLNBWFIqhB9SdP8F7OX81GH2y 8xBosN/vPPxwkN+6o/qi7Ygmo5+iXTRi+o2ReuL/JQevyECRPDCMIDgGDAMSOCJJxMkxLYHaPZO tSx6e0KJk8NWUkqDyLU/PIYLH X-Received: by 2002:aa7:d49a:0:b0:502:7d3f:1f04 with SMTP id b26-20020aa7d49a000000b005027d3f1f04mr10062091edr.19.1680516211103; Mon, 03 Apr 2023 03:03:31 -0700 (PDT) X-Received: by 2002:aa7:d49a:0:b0:502:7d3f:1f04 with SMTP id b26-20020aa7d49a000000b005027d3f1f04mr10062074edr.19.1680516210787; Mon, 03 Apr 2023 03:03:30 -0700 (PDT) Received: from ?IPV6:2001:1c00:c32:7800:5bfa:a036:83f0:f9ec? (2001-1c00-0c32-7800-5bfa-a036-83f0-f9ec.cable.dynamic.v6.ziggo.nl. [2001:1c00:c32:7800:5bfa:a036:83f0:f9ec]) by smtp.gmail.com with ESMTPSA id f24-20020a50a6d8000000b004acbda55f6bsm4381529edc.27.2023.04.03.03.03.29 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 03 Apr 2023 03:03:30 -0700 (PDT) Message-ID: Date: Mon, 3 Apr 2023 12:03:29 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.7.1 Subject: Re: [PATCH] platform/x86: thinkpad_acpi: Add missing T14s Gen1 type to s2idle quirk list Content-Language: en-US, nl To: Benjamin Asbach Cc: Mario Limonciello , Mark Pearson , Henrique de Moraes Holschuh , Mark Gross , ibm-acpi-devel@lists.sourceforge.net, platform-driver-x86@vger.kernel.org, linux-kernel@vger.kernel.org References: <20230331232447.37204-1-asbachb.kernel@impl.it> From: Hans de Goede In-Reply-To: <20230331232447.37204-1-asbachb.kernel@impl.it> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-1.5 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On 4/1/23 01:24, Benjamin Asbach wrote: >> 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. Can you provide some more in info on this? Then Mark can maybe check if we need to add more models ? Mark, generally speaking it may help to do a DMI_EXACT_MATCH on DMI_PRODUCT_VERSION with ThinkPads ? That contains the human readable model string instead of things like "20UJ", and I guess that we want to e.g. apply the s2idle quirk to all "T14s Gen1 AMD" ThinkPads. > > Signed-off-by: Benjamin Asbach > Tested-by: Benjamin Asbach Thank you for your patch, I've applied this patch to my fixes branch: https://git.kernel.org/pub/scm/linux/kernel/git/pdx86/platform-drivers-x86.git/log/?h=fixes I will include this patch in my next fixes pull-req to Linus for the current kernel development cycle. Regards, Hans > > 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,