Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp36585838rwd; Tue, 11 Jul 2023 03:03:03 -0700 (PDT) X-Google-Smtp-Source: APBJJlHFFonUj9pKkLBjHumM+RYtpCe0AQ07jg7dk7nIcxQfwnOXavXc4iz7FgTNHm10pItB/Whu X-Received: by 2002:a05:6358:c09:b0:135:544c:4dc8 with SMTP id f9-20020a0563580c0900b00135544c4dc8mr11987988rwj.16.1689069783111; Tue, 11 Jul 2023 03:03:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689069783; cv=none; d=google.com; s=arc-20160816; b=TgAQLMczI78yxqQxWhXriUWKZxUp1RhMqIPYUNMKfmG3nW/sY2wc0ByTTNmULzHvbT dx8I/9mwhYfpqscNsKVTDsZ7RMfUIxshoyyThr/CyjvHXF+45vH3eMmFq2s3b14XkOAx V6tCPg5AeH14+XU5gsazsNccnnwPUNj5P9862qdMbUs9J/KfwNFcp619kBQCSDluqXye J9PR+UvHLv8fF+33Ow8b7sCdolteTF5XGSa1r7e9cmayGt2qLugEiJiJAsesVxmhyfY0 Y2Sx1k4usI0Tsde9PGUcmB0KeDq1vrMxIStOP8n2LXPxk2Ys+WfSOvPl4CULEG4V2rE6 jgEw== 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=rUm+pZx3Dcl0b3Pl2ghj/mOdNmFNLUrrNmowYZCq6lY=; fh=7nI1NxvTaFxcACrdfvmp4jk2XyS6TgkDz71ydiizofs=; b=aIuYpo2zy7n7HtHQ4aSvmFwjyOEk7aUUxZU5hPOrygyC02E20ee3ix9a9jmALFJ4+y SRVO4+8418zdpx64wx27JNpwc0jzj5lQf9wF777mBOQdhDSsGnRibIORJ5/n8tgnQlmT lMuMDqemuutBKsYe7UkgGD7CbetKomdiSPDMzTokBGI6nrM4gNwDENeECcbS7WG8qvpt vzHSGd72TCfZS7ogDw7IgdM/y+wTQc679gE8FVTSXnfXGc2upiY8TwzF+VorMSO6tFL2 4jqD/WZpyPU5pqjzM/qXInuV6m5vaZSHRiDucgciSKEib7Knpcd3RBDFqz8lLsVMfNyO YL0Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="AyB2M1/e"; 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 r190-20020a632bc7000000b0055be45c42d4si1208829pgr.810.2023.07.11.03.02.49; Tue, 11 Jul 2023 03:03:03 -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="AyB2M1/e"; 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 S231201AbjGKJsP (ORCPT + 99 others); Tue, 11 Jul 2023 05:48:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37128 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231857AbjGKJsF (ORCPT ); Tue, 11 Jul 2023 05:48:05 -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 395FC97 for ; Tue, 11 Jul 2023 02:47:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1689068839; 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=rUm+pZx3Dcl0b3Pl2ghj/mOdNmFNLUrrNmowYZCq6lY=; b=AyB2M1/egqwGnSbonUvQmSB549HpIvlvNJlSwOOP9T045dNDHBbXX9tdvekSQro/yupUg1 UmbsOUe3SygpXzuLCRPDdoDgZjCikBngG1ErqI5/ubmEc0fDsqjnaJSkfMkEFg3WncsZBX L6wJmiVDy0bGNsxxxD4CKJ/a7KizuLg= Received: from mail-ej1-f71.google.com (mail-ej1-f71.google.com [209.85.218.71]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-649-fZjpaLmuN5m6IoDDMfSc3Q-1; Tue, 11 Jul 2023 05:47:18 -0400 X-MC-Unique: fZjpaLmuN5m6IoDDMfSc3Q-1 Received: by mail-ej1-f71.google.com with SMTP id a640c23a62f3a-9932e8e76b9so368327166b.3 for ; Tue, 11 Jul 2023 02:47:18 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689068837; x=1691660837; 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=rUm+pZx3Dcl0b3Pl2ghj/mOdNmFNLUrrNmowYZCq6lY=; b=iKdKeI0RkH/dEISLWfAI9KRNyGecW3zH68KzyvFFDxkQQNVTbqcNNd84+Gw/yfsgQZ nwt7R+Hwn/wXz0H3YtgRBgsDy/FxQk7T98XJmXiWCuYRzrOB24LD0fcLHpYsvFLdo8A6 0Afg1FMRFjerKJ6TjBawHvYG9VGhma3wNpGWFVidYZ7qBLVuFP7BwbQc2QyALoZPu59q Kzoor7Q61l1bK18Y/32OjFjgg6q5us5TrGKZZb4EZnMrfsGZ3hD6Cquo2nMHKY1khNYG HJXRR0DqRkurdQYqisTp/Ib79ALLJkbLtsxKfIvjs4e71cFKu3G6ZmSdcskbhCSvNalJ z4gA== X-Gm-Message-State: ABy/qLbEkWd5obuDNVolCQgEY7+vYFF8jtCwoD3BEPPxSIVhszuOv+Pk R7D3g/AZr7oRAXWvS37rH5BOajYcX4t7RCTQ+YeRhsRAJV1h7Z7ZAI3vh1wSVjoVBZGVqTEshJL 0bqRoAA4AwTUTw2PIVnuZGTGq X-Received: by 2002:a17:907:2943:b0:979:dad9:4e9 with SMTP id et3-20020a170907294300b00979dad904e9mr14001324ejc.50.1689068837254; Tue, 11 Jul 2023 02:47:17 -0700 (PDT) X-Received: by 2002:a17:907:2943:b0:979:dad9:4e9 with SMTP id et3-20020a170907294300b00979dad904e9mr14001311ejc.50.1689068836965; Tue, 11 Jul 2023 02:47:16 -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 y24-20020a170906471800b00992b71d8f19sm922827ejq.133.2023.07.11.02.47.16 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 11 Jul 2023 02:47:16 -0700 (PDT) Message-ID: <95ad7037-76c4-d3fd-b2ea-430488a7e6e9@redhat.com> Date: Tue, 11 Jul 2023 11:47:15 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.12.0 Subject: Re: [PATCH 0/2] Fix s2idle resume on HP 15s-eq2xxx Content-Language: en-US, nl To: Mario Limonciello Cc: Mark Gross , "open list:X86 PLATFORM DRIVERS" , Shyam Sundar S K , open list References: <20230710183934.17315-1-mario.limonciello@amd.com> From: Hans de Goede In-Reply-To: <20230710183934.17315-1-mario.limonciello@amd.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.2 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_BLOCKED,RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham 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 Mario, On 7/10/23 20:39, Mario Limonciello wrote: > HP 15s-eq2xxx has problems resuming from s2idle when IOMMU is enabled. > This is the same root cause as some Lenovo laptops had where IOMMU enabled > caused issues with NVME during s2idle resume from a problematic SMI. > > To series fixes the issue by re-using the same quirk developed from the > older Lenovo laptops. > > Mario Limonciello (2): > platform/x86: Move s2idle quirk from thinkpad-acpi to amd-pmc > platform/x86/amd: pmc: Apply nvme quirk to HP 15s-eq2xxx > > drivers/platform/x86/amd/Makefile | 2 +- > drivers/platform/x86/amd/pmc-quirks.c | 172 ++++++++++++++++++++++++++ > drivers/platform/x86/amd/pmc.c | 30 +---- > drivers/platform/x86/amd/pmc.h | 43 +++++++ > drivers/platform/x86/thinkpad_acpi.c | 143 --------------------- > 5 files changed, 222 insertions(+), 168 deletions(-) > create mode 100644 drivers/platform/x86/amd/pmc-quirks.c > create mode 100644 drivers/platform/x86/amd/pmc.h Thank you for your series, I've applied this series to my fixes branch: https://git.kernel.org/pub/scm/linux/kernel/git/pdx86/platform-drivers-x86.git/log/?h=fixes For patch 1/2 the inclusion of linux/pci.h in drivers/platform/x86/amd/pmc.h is not necessary, where as some actually needed headers (types and mutex) were missing. So I've moved the pci.h include back to pmc.c and added a few missing includes. I have squashed the following diff into 1/2 while merging for this: diff --git a/drivers/platform/x86/amd/pmc-quirks.c b/drivers/platform/x86/amd/pmc-quirks.c index cdf4c7d0a36b..362e7c0097d7 100644 --- a/drivers/platform/x86/amd/pmc-quirks.c +++ b/drivers/platform/x86/amd/pmc-quirks.c @@ -9,6 +9,9 @@ */ #include +#include +#include +#include #include "pmc.h" diff --git a/drivers/platform/x86/amd/pmc.c b/drivers/platform/x86/amd/pmc.c index 5a9bc062fa8a..a8ca95a5d44c 100644 --- a/drivers/platform/x86/amd/pmc.c +++ b/drivers/platform/x86/amd/pmc.c @@ -20,6 +20,7 @@ #include #include #include +#include #include #include #include diff --git a/drivers/platform/x86/amd/pmc.h b/drivers/platform/x86/amd/pmc.h index 8f78985ba340..c27bd6a5642f 100644 --- a/drivers/platform/x86/amd/pmc.h +++ b/drivers/platform/x86/amd/pmc.h @@ -11,7 +11,8 @@ #ifndef PMC_H #define PMC_H -#include +#include +#include struct amd_pmc_dev { void __iomem *regbase; Since this is just changing #include-s this should not cause any functional changes. I will include this series in my next fixes pull-req to Linus for the current kernel development cycle. Regards, Hans