Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp2627993imw; Sun, 17 Jul 2022 13:10:10 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vofjShzkXPaZOsGhV18Ix7BvvBTC1iSuNJ+nLRCEoUh6Ki1EdesJT7AqgogsWR4uTaR0Yv X-Received: by 2002:a17:907:75e9:b0:72b:2ddb:41fe with SMTP id jz9-20020a17090775e900b0072b2ddb41femr23102073ejc.329.1658088610490; Sun, 17 Jul 2022 13:10:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658088610; cv=none; d=google.com; s=arc-20160816; b=wCBR/8AnvjUnJFm3OAmOgwGGH3VX6inRNZm0DpBcQgqZ8MD7Q9pm2Trjhln9DG5PAJ YLNQofJ2oofw4ACiITENvRviveBszcIoM+dmvhhpG7+so+9jIZM9C+/Vcj9YPTI17BiT DsfKIiyqFoZSt4nHOmhJPvJS3sbtxZ+uAo2Cr1e6gWr0OZBzeok4wrbO/34hCZr73zPj Vp05eFaM9Zf4apJkpcNExBjLCykLb+fMo6NgQPM8+/9pHPugPvW0Qr19nmNvweDWRaKY D5gP7Tos1qJlqN3gILVVb3PW6hFD3TlJ2PYnaOGP/VeoKgpQpH1p7nzqRnS2nIxbtYL2 LDiQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version; bh=CPCaSY0Eo4Egu4Za9o4rdwtMcin5MxefXpC2xwA0s3Y=; b=f+4tPUo7vgBR86+pGP5agbZLCK7fxhEbDAk2BFi/YFbSJ+okPlyrgB+/ReFQPArkKq HEOZNvh3b10+6XWhXgzkLI8sh43+xHGPN76W9ddLFwP8lVe82Zpbv5wcRuZH9hWV7a9X UNOo3F8MC6QLfcaTa7SOofm3faLNxlTQ1x7oubk0hJ+tGHGBRJDhHq4JqyHsiFZouV3P d1XP8D8sAlKGUdPeNbtm588XcclNJi7Itse3qiNDxSp5eEEBP9ZiGTEn3eN/vj7WdUNM TQUO9wBEKMY8fs+2qgjJ/UgxqTdZNKdAZd9f9h0BIugbzLmvnIQqLqB/PRNdbCCZZtb6 YAZw== ARC-Authentication-Results: i=1; mx.google.com; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l23-20020a1709065a9700b0072b4d337f83si11177988ejq.837.2022.07.17.13.09.45; Sun, 17 Jul 2022 13:10:10 -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; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231483AbiGQTjQ (ORCPT + 99 others); Sun, 17 Jul 2022 15:39:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40016 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229535AbiGQTjP (ORCPT ); Sun, 17 Jul 2022 15:39:15 -0400 Received: from mail-yw1-f182.google.com (mail-yw1-f182.google.com [209.85.128.182]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 916D9212; Sun, 17 Jul 2022 12:39:13 -0700 (PDT) Received: by mail-yw1-f182.google.com with SMTP id 00721157ae682-31e0d4ad6caso28902857b3.10; Sun, 17 Jul 2022 12:39:13 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=CPCaSY0Eo4Egu4Za9o4rdwtMcin5MxefXpC2xwA0s3Y=; b=uO/chpt2QI1GS+MZXJC8lijz7GMoTjvluh7XwP2bPIuK5bKxPavj9VBm/IKyS+RwR+ HQWSFAz9BfHSlA5ihoaYpvK3RHOovLJYaiGxMl4SJXdWvozykZUEZn1UDXF3hT1o+QMH fI60HYRSJyR2Lx8cdm9G/NLzkb1gXMKBjjgw40j+rEk/B4CoXtEHrbLhOG+NCDrk/dnh bpDONWnS9Mjy+d2yT9+E2dacUmysOSg5NL7bTHZZL98Kcd4YHnkEanb+xn5MnZSMEJW9 f1gXZuXrhclEaOQUVyzAo6Sc1g+nBxjru3ZdPteWgp0EAiDUkggD3ZYRhdjzBZwKhltn Z10A== X-Gm-Message-State: AJIora/4HO7azRt3gQNM6fFzQDvyU5mZxNlN0uZKhQOxFoXbOUzAhtc7 XcKx8Hh278naF+wkT8NUL2C06BwbglvzlD0dthuIjO39akY= X-Received: by 2002:a81:c24e:0:b0:31e:f02:e18e with SMTP id t14-20020a81c24e000000b0031e0f02e18emr7471675ywg.515.1658086752837; Sun, 17 Jul 2022 12:39:12 -0700 (PDT) MIME-Version: 1.0 References: <12013659.O9o76ZdvQC@kreacher> <61311732eeea1f45e85537e911e4bb024c0a30b7.camel@intel.com> In-Reply-To: <61311732eeea1f45e85537e911e4bb024c0a30b7.camel@intel.com> From: "Rafael J. Wysocki" Date: Sun, 17 Jul 2022 21:39:01 +0200 Message-ID: Subject: Re: [PATCH] intel: thermal: PCH: Drop ACPI_FADT_LOW_POWER_S0 check To: Zhang Rui Cc: "Rafael J. Wysocki" , Linux PM , Linux ACPI , LKML , Mario Limonciello , Srinivas Pandruvada Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.4 required=5.0 tests=BAYES_00, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS autolearn=no 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 On Sun, Jul 17, 2022 at 8:14 AM Zhang Rui wrote: > > On Thu, 2022-07-14 at 21:11 +0200, Rafael J. Wysocki wrote: > > From: Rafael J. Wysocki > > > > If ACPI_FADT_LOW_POWER_S0 is not set, this doesn't mean that low- > > power > > S0 idle is not usable. It merely means that using S3 on the given > > system is more beneficial from the energy saving perspective than > > using > > low-power S0 idle, as long as S3 is supported. > > Agreed. > > > > > Suspend-to-idle is still a valid suspend mode if > > ACPI_FADT_LOW_POWER_S0 > > is not set and the pm_suspend_via_firmware() check in > > pch_wpt_suspend() > > is sufficient to distinguish suspend-to-idle from S3, so drop the > > confusing ACPI_FADT_LOW_POWER_S0 check. > > the cooling delay in the suspend callback is to make sure PCH > temperature won't block S0ix during s2idle. So if S0ix is not > supported, it is meaningless to invoke the cooling delay during s2idle. But there is no way to determine whether or not S0ix is supported. In particular, ACPI_FADT_LOW_POWER_S0 is not one. > so the problem is that we don't have an indicator for S0ix capability. > And this also applies to drivers/rtc/rtc-cmos.c, where we use ACPI SCI > for runtime RTC wakeup instead of HPET interrupt on "S0ix capable" > platforms because the HPET timer may block S0ix. "S0ix capable" doesn't matter. What matters is whether or not the current transition under way is into S0 or into suspend-to-idle. In the latter case there is no reason to avoid doing whatever is done in the expectation that S0ix may be entered going forward.