Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp2146017rwn; Fri, 9 Sep 2022 09:07:33 -0700 (PDT) X-Google-Smtp-Source: AA6agR7tsys0uLxwA5cOJn1Ig2V9+o32Y7LqNJVCtj7fTRNpD1mT4bBDs98IOc37ok9aU/nlFvYS X-Received: by 2002:a17:906:ef8b:b0:730:e14f:d762 with SMTP id ze11-20020a170906ef8b00b00730e14fd762mr10560103ejb.519.1662739653520; Fri, 09 Sep 2022 09:07:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662739653; cv=none; d=google.com; s=arc-20160816; b=CovqqAhSKGgrf8uyOYBqBKCSuofzG5beJ+OjlHGUnfT5EnsHIDn8KNL8InC/GKhpEq p3t2TxBB2hxnKo0TN/7lRsp+mrp1kO4eIAvO4FudLOIxeJUNbWIUJh9X9onm8GaZQubV ZByA8uNwawlTXxa4yGqAEhzZyyRt4QiEbRBv85nIOF1TtFuy6N2yoXaaUSj9Ud6N962p HlfOV/CFRwCzwzxM3SocOF5BuMHoiBnCUEV7+oB7O+ktGW7Rulimk6T5ddubuSeJx+D6 /f4bdFVsCqbIkal9BpCz9KiviAGSOE/E25Q7DtGh5w2Xo5AZI12+GRML30HP+fg8DBbD zJBw== 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=MkilgVlqA2kdgmhZQ0iReqC0oZWmONGkCnLgx6F5YI4=; b=pyPhXebGHZMDeFkQnw9cSvRnMkAwBjRFOJixG1MEmj6XXptlN05ywta81bYzp8I4F5 sgwa5DQ7VFoQYzFdGUlY+RlWr2WIWDurNRHYvxaLDBfWzqus8mgBvKhXM17tW0ddQtX9 O9sxq6TI+snpvm70ayFMD/hsFlTH6AYfGuE84ZaoUt4+FaPYNukEA0J2uoTRJi+Y6M1B tbSdb92ZEYWOZeryxGCf1W6hmsBrxpegKFIs0qkhlkUH4bEVV7YbBwA1aGAPaB/ld3lK uHS9jVNeAaRipdEKOcgKo44Ss2Y2SIPDpMdsdiwZo8pbXzlevdExnjakh/joKyv9USiG H6rg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=eape8K73; 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 t24-20020a056402241800b00445fc3afc57si674042eda.360.2022.09.09.09.07.07; Fri, 09 Sep 2022 09:07:33 -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=eape8K73; 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 S230405AbiIIQBM (ORCPT + 99 others); Fri, 9 Sep 2022 12:01:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53686 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230450AbiIIQBJ (ORCPT ); Fri, 9 Sep 2022 12:01:09 -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 D0707AC25C for ; Fri, 9 Sep 2022 09:01:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1662739267; 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=MkilgVlqA2kdgmhZQ0iReqC0oZWmONGkCnLgx6F5YI4=; b=eape8K73ZXyvYRy5FycUbxm1SD1+5DWria3y1r4BtWIjCmWLhrl/7vHvjd5IFx4ksS6PO/ CV0qJP8WT+2DOUrD+INjZzjdx8BwEQ6McStTtoha1Et6HcZb8zOiaWQl0Zo6cmT5Qs09uE fUDEBM2zv4U1xyHssxklkX8SU9iKrWo= Received: from mail-ed1-f72.google.com (mail-ed1-f72.google.com [209.85.208.72]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_128_GCM_SHA256) id us-mta-389-BKNvnPFfMxSlkfPRyF9EQg-1; Fri, 09 Sep 2022 12:01:05 -0400 X-MC-Unique: BKNvnPFfMxSlkfPRyF9EQg-1 Received: by mail-ed1-f72.google.com with SMTP id b16-20020a056402279000b0044f1102e6e2so1608368ede.20 for ; Fri, 09 Sep 2022 09:01:05 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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; bh=MkilgVlqA2kdgmhZQ0iReqC0oZWmONGkCnLgx6F5YI4=; b=LHMqr2jmry1aRB8oXS9/BJ26x3MH1UzA/+rtw9I1Fp/dLIu76yY5+Gfl2B+FgH+2or uDEY5SUkrlKKQhp7tAQPH4nX0EpGeB+nMTnLrcbWQMKZGh81TCWJamo75iLbuPkl8sdy d5X61dV8Z1zF+w9FTprl8SHiuLha6pdO74Hq9za6zTmTHRnwSpTe69VuuU4SOfJzuTIe GHojo6CzAtF9VX0mhcSn2+HcTuJKeciQFHr+LIOEL/XteYrcYzow1ZeQc1W4YSTyxOH/ ZkUnGA3EFe3Faj/x1SqO40/ST5C7bzL2YJh12QjdJ/Soj58nDIFSBxOzK15ofa7Tkxvh FCag== X-Gm-Message-State: ACgBeo0yxUVBeNHI0WAh+D+Nccok5I8R6dVIEvcbn1zifQX+pckforQs XeERQaoLYebhgaGKr1vdNOSvIylulxxtYBEV0Tjw21T6RIjiWbdKuRsgbfAQJv7G8Nr8xVftHE+ JhzSnJ8GmJJkna7lzNhuYwN69 X-Received: by 2002:a05:6402:43c4:b0:43b:c5eb:c9dd with SMTP id p4-20020a05640243c400b0043bc5ebc9ddmr11996993edc.402.1662739264695; Fri, 09 Sep 2022 09:01:04 -0700 (PDT) X-Received: by 2002:a05:6402:43c4:b0:43b:c5eb:c9dd with SMTP id p4-20020a05640243c400b0043bc5ebc9ddmr11996963edc.402.1662739264420; Fri, 09 Sep 2022 09:01:04 -0700 (PDT) Received: from ?IPV6:2001:1c00:2a07:3a01:67e5:daf9:cec0:df6? (2001-1c00-2a07-3a01-67e5-daf9-cec0-0df6.cable.dynamic.v6.ziggo.nl. [2001:1c00:2a07:3a01:67e5:daf9:cec0:df6]) by smtp.gmail.com with ESMTPSA id q16-20020aa7cc10000000b0044e84d05cd8sm640965edt.0.2022.09.09.09.01.03 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 09 Sep 2022 09:01:03 -0700 (PDT) Message-ID: <75e632e6-07df-5b97-d9d7-c4b60a5a3b9b@redhat.com> Date: Fri, 9 Sep 2022 18:01:02 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.10.0 Subject: Re: [PATCH v3 0/4] Add some extra debugging mechanisms for s0i3 Content-Language: en-US To: Mario Limonciello , Len Brown , linux-acpi@vger.kernel.org, platform-driver-x86@vger.kernel.org, linux-pm@vger.kernel.org Cc: rafael@kernel.org, linux-kernel@vger.kernel.org References: <20220829162953.5947-1-mario.limonciello@amd.com> From: Hans de Goede In-Reply-To: <20220829162953.5947-1-mario.limonciello@amd.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.9 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 All, On 8/29/22 18:29, Mario Limonciello wrote: > Recently there have been reports of problems where the system consumes > too much power after certain interrupts occur that would notify the > kernel of some event but those events aren't marked for wakeup. > > These problems have been root caused to the timing of the kernel moving > the cores into ACPI C3 relative to other events from the previous wakeup > not being settled. Linux will more aggressively move the cores into C3 > for s2idle than Windows does for Modern Standby. > > To aide with debugging this class of problems in the future add a new > set of optional debugging infrastructure. > > Mario Limonciello (4): > ACPI: s2idle: Add a new ->check() callback for platform_s2idle_ops > platform/x86/amd: pmc: Add defines for STB events > platform/x86/amd: pmc: Always write to the STB > platform/x86/amd: pmc: Add an extra STB message for checking s2idle > entry 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. Regards, Hans > > drivers/acpi/sleep.h | 1 + > drivers/acpi/x86/s2idle.c | 14 ++++++++++++++ > drivers/platform/x86/amd/pmc.c | 32 ++++++++++++++++++++------------ > include/linux/acpi.h | 1 + > include/linux/suspend.h | 1 + > kernel/power/suspend.c | 3 +++ > 6 files changed, 40 insertions(+), 12 deletions(-) >