Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp36079iob; Mon, 2 May 2022 12:22:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx2Li9WXp+iYMS2pkaaug5jCvoepaK63pNMiVSn7uG0HyaJr5w2LlhsOkGCjw0/Vi1XRTPP X-Received: by 2002:a05:6512:3d91:b0:472:5f7a:28a7 with SMTP id k17-20020a0565123d9100b004725f7a28a7mr6284553lfv.429.1651519343189; Mon, 02 May 2022 12:22:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651519343; cv=none; d=google.com; s=arc-20160816; b=0/vWAfnHIU5atSHEWucygGGT7U7PvWBp+iHC54dlbAeaoF4dCnbovVQPcJEGfGpK6o YED61HqH5oUgSkUNTVy3pPOEJPocrNZFvghM1hg6m6+f12SgRNQuwXbygyZOjbsNPG6c oUvdu8KGGGBGcapEEJF1ZeP6Bn3kIAzTZP3UaQqyd+GjhkMJ1lhIgkX4xhUAP27jKoU6 3GW6TWc1GNcWoOSMHhUF9fcBqbrSNFbZtF47UDzYDlaR63CYEQ+9a/wBRnC4ihxBxKXF 7gaG22LJMr0SBXSXRWBZxCfyBO18KeGe311pRw3K9bxsOS6tRNotn/PACaglIJRW1nZe r9sA== 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=0sglHWDk0UrNSQnvXeEwWDQVaJy7moHeM6s16y69uVg=; b=Gvx6nr2PfxEI47BY9hLd/DTQrd0dtw9w68kPmiOMCrzIyknPTTy8FrRUnbJhkvc5jp gXojIlC3R7x8dakWFvDJJduH/z/KY5NneejoCeQG3sYGQllFXu1llm0bQh7iJMrA1uzn NMbvD/lJ/n2mUP/ggCz0nGnW0H2IZIk4uibl3y8SOPkkhCHX30/l8La2OLMFIDCqKNNf V6nsgeu72aibRkHlC6Y8mVhszLOpOsSbo/+QOzBFxH9yBfEt4+ezVeUB+P6o2FnQXYLd vMoTgme1MSPjnJ5AZP8K5oHCOTM5fQpAvDgR6U7VYN0M1UEoICsTkZIDDMiSiiIUzLQP nzsQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=P5BmmuXl; 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 i4-20020a056512340400b0046d168b658fsi15633773lfr.65.2022.05.02.12.21.33; Mon, 02 May 2022 12:22:23 -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=P5BmmuXl; 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 S1385794AbiEBPfa (ORCPT + 99 others); Mon, 2 May 2022 11:35:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40978 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1352619AbiEBPf2 (ORCPT ); Mon, 2 May 2022 11:35:28 -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 ESMTP id 121EC9FFB for ; Mon, 2 May 2022 08:31:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1651505518; 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=0sglHWDk0UrNSQnvXeEwWDQVaJy7moHeM6s16y69uVg=; b=P5BmmuXlnQksTAsfgDTsMCXTOSiurC7Axl/LyVnRyL4xtOxYHhbZa50fewfWDu8vbjNS2l vEpHjD90/89DHJe0/XOK/WLE/fsxBS7QcBJbBFtLlWQTtBIawchYdXOhGXIynT1YZhqsDx RZrZLh/75b8PtgEMhdD6I6WolDXfMew= Received: from mail-ej1-f70.google.com (mail-ej1-f70.google.com [209.85.218.70]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-413-G1GqP083MjSUpb8UhjssYA-1; Mon, 02 May 2022 11:31:56 -0400 X-MC-Unique: G1GqP083MjSUpb8UhjssYA-1 Received: by mail-ej1-f70.google.com with SMTP id qw30-20020a1709066a1e00b006f45e7f44b0so925819ejc.5 for ; Mon, 02 May 2022 08:31:56 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=0sglHWDk0UrNSQnvXeEwWDQVaJy7moHeM6s16y69uVg=; b=BQHNQ/xrQPvoFg0TBSGhGu1oSC2SOuJguD7bQMXxhOQ+bPNBMsoJVSJFoW4/XHw8Bs V9u3HvvVDQwJ5BaWGdDPGffocyPTSD3XyMDtXQvSemRvfV6vCYEH+bzgWW9SXi1MzRZh UhEaTqTyfosliB5FVuvUCWWajUJS4wYWWJxurjw8riPHtGiPH5aNiFwlrNOkkK52urcP mmSSX7w4Vfkugy+qs59XFtdgtg3K97aezk4Ayn/sH/aCFiDcH3P07t3+pgB6tugHZCRf 0Ppj9P+TDbw4YMV7jtQzlDQCadtOFixVaOLmeUW3lsPW+fRamy08L7OmSoEZNQgd66jh POWw== X-Gm-Message-State: AOAM531IZH1gu/Zdeh65mtkCvCeDbYdvKhIWMKBOT1c+D/4zfFQ5/QwG ygC+0kQ2/6D0gqSLBoOfkAHzUkNzxxgyNM7tHlRYHJuf0k2nfjkJx8k9qrOH7gyP9jMlkCUA/3i 02pNsi1VsC4CINyL3pE3sqbA2 X-Received: by 2002:a17:906:3104:b0:6ce:6b85:ecc9 with SMTP id 4-20020a170906310400b006ce6b85ecc9mr11125203ejx.339.1651505515473; Mon, 02 May 2022 08:31:55 -0700 (PDT) X-Received: by 2002:a17:906:3104:b0:6ce:6b85:ecc9 with SMTP id 4-20020a170906310400b006ce6b85ecc9mr11125166ejx.339.1651505515066; Mon, 02 May 2022 08:31:55 -0700 (PDT) Received: from [10.40.98.142] ([78.108.130.194]) by smtp.gmail.com with ESMTPSA id jl1-20020a17090775c100b006f3ef214e2bsm3772097ejc.145.2022.05.02.08.31.54 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 02 May 2022 08:31:54 -0700 (PDT) Message-ID: <0232e24a-eda6-4baa-6a95-13e32b777ce6@redhat.com> Date: Mon, 2 May 2022 17:31:53 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.8.0 Subject: Re: [PATCH 0/2] Add a workaround for s2idle resume on Lenovo laptops Content-Language: en-US To: Mario Limonciello , Mark Pearson Cc: Henrique de Moraes Holschuh , Mark Gross , "open list:THINKPAD ACPI EXTRAS DRIVER" , "open list:THINKPAD ACPI EXTRAS DRIVER" , open list References: <20220429030501.1909-1-mario.limonciello@amd.com> From: Hans de Goede In-Reply-To: <20220429030501.1909-1-mario.limonciello@amd.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-5.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_LOW,SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE 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/29/22 05:04, Mario Limonciello wrote: > Lenovo Thinkpads have a SMI handler during the D0 transition for NVME > devices specifically during resume from s2idle. When the IOMMU > translation layer is enabled for NVME devices (which is the default > behavior per the IVRS table), then this SMI handler causes a very long > resume time (10+ seconds). > > For the common s2idle circumstance on Linux this SMI handler is > unnecessary and just significantly inflates resume time. To avoid it, > add a new s2idle resume handler to thinkpad_acpi that will prevent it > from running on known problematic systems. If the SMI handler is fixed on > these systems the DMI data can be modified to exclude them or only match > problematic BIOS versions. > > Mario Limonciello (2): > platform/x86: thinkpad_acpi: Convert btusb DMI list to quirks > platform/x86: thinkpad_acpi: Add a s2idle resume quirk for a number of > laptops > > drivers/platform/x86/thinkpad_acpi.c | 134 ++++++++++++++++++++++++++- > 1 file changed, 131 insertions(+), 3 deletions(-) Thank you for your patch-series, I've applied the series to my review-hans branch: https://git.kernel.org/pub/scm/linux/kernel/git/pdx86/platform-drivers-x86.git/log/?h=review-hans Note it will show up in my review-hans branch once I've pushed my local branch there, which might take a while. Once I've run some tests on this branch the patches there will be added to the platform-drivers-x86/for-next branch and eventually will be included in the pdx86 pull-request to Linus for the next merge-window. I'll also cherry-pick these into the pdx86 fixes branch and add them to my next 5.18 fixes pull-req to Linus. Regards, Hans