Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp2062661imw; Sat, 16 Jul 2022 23:54:46 -0700 (PDT) X-Google-Smtp-Source: AGRyM1sQfnVX8fmg/bbepNbi7ol2CsP36vZhZQvyD5kLGm4zJEHYrb2dSIQsH1nPtzujYDS/RmUs X-Received: by 2002:a05:6a00:1acf:b0:52b:3795:85ec with SMTP id f15-20020a056a001acf00b0052b379585ecmr12947439pfv.16.1658040886611; Sat, 16 Jul 2022 23:54:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658040886; cv=none; d=google.com; s=arc-20160816; b=ZCMRgswUXrNg6xemg1Nlhng4oCVNgLt76RlSZEEocSnZhWvCpoLe9Qjyj/aoeOjNtG S4HR1Q2V4m6Re46qKeMMS+MN044fvqpefvu4h5XxGWeTusw07h5z6/zAdoWobcmxSoNC PJRluIkXoTrm3ijGIoWU81AtrF6IBB+RlQeUmmXMW4fqh7EfiqilZwIgaQ5NDqoKBJck yii1cAugOcLEuPufa0C56HmWisBcqjV7irRxTxZFNUjIkbJfPjTeG6V/o1ufs8OO6Lut BxnLQ+NCw1gZr+8MKL7/3aQIxGieCLxjA0nzUe684fKspmy69KkAQwocI2ekrEETFInV svow== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent :content-transfer-encoding:references:in-reply-to:date:cc:to:from :subject:message-id:dkim-signature; bh=S1WgjQRPa4Uwj335+S4W8dF8LPgNSePYpZLtsiEAM9I=; b=ZlaCuVf7ClsVwB/0R7eoHAHkPjJKvFUTFyd0+UpqshMLVIyBHE4eJsrwXZY3N9TReh 4FIuVo4lJJ34HDOEzPrkOdr07ORj6ZV6J8sfGSSfAoWPij2Cxbs153tlltG6tha4+Z75 OrlWYCD+/LB7qmwVBxDCtOw1fKIyDyjxixV54Kk1em20Jy28VAB1Gh+WhKH+6q+bhJdl 7M6UebwPZZotUoMyfn+/CdPifMYhaFY1FYYCij6AUeldEBoI+pThgpBKiPc4qKJ97+P7 8BlD/Ddwpos6xpw+T9p1SqqQHUhy+oJegAUyWFYm8QhmsSR7dXWNVHk+tjyXHw0hm5Zh d+ZQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="nM8/Os6w"; 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=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id bd33-20020a056a0027a100b005255236075csi9991595pfb.16.2022.07.16.23.54.11; Sat, 16 Jul 2022 23:54:46 -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=@intel.com header.s=Intel header.b="nM8/Os6w"; 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=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232489AbiGQGOw (ORCPT + 99 others); Sun, 17 Jul 2022 02:14:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56540 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229980AbiGQGOv (ORCPT ); Sun, 17 Jul 2022 02:14:51 -0400 Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D9A95175BB; Sat, 16 Jul 2022 23:14:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1658038489; x=1689574489; h=message-id:subject:from:to:cc:date:in-reply-to: references:content-transfer-encoding:mime-version; bh=S1WgjQRPa4Uwj335+S4W8dF8LPgNSePYpZLtsiEAM9I=; b=nM8/Os6wETRcSTlnOzaZZ4Od7vhHu4wExXRf8URou+qfqYTHn5rLrz1k ErIhiTPJYq4ptqS8LRVYNo5Y7eJ5+OTsckSANqIsXdjYianwT2qVcmvp2 y1dBpFZZ6ztf6opNaAEbd1fYiGaOOzCbL1w3DuBNOtvBHvPl79xiK+91Q F+4FlaCEAw/9TzEZQWrUieov/BjU4STra/37dVQs4PBrnisqzBpx/MS0s WYUpPFddxKnBHVuTWb4hB5J0NEn3FRsHn7lF7ri0Xn4c+zeJbpRZwoRWT XYTcwIDftQmInREjYmxORXVEXD7lOBDkwP9tukvZanrTrW77x557+Ai6I g==; X-IronPort-AV: E=McAfee;i="6400,9594,10410"; a="372343457" X-IronPort-AV: E=Sophos;i="5.92,278,1650956400"; d="scan'208";a="372343457" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Jul 2022 23:14:49 -0700 X-IronPort-AV: E=Sophos;i="5.92,278,1650956400"; d="scan'208";a="624329999" Received: from agupta4-mobl3.gar.corp.intel.com ([10.215.155.220]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Jul 2022 23:14:46 -0700 Message-ID: <61311732eeea1f45e85537e911e4bb024c0a30b7.camel@intel.com> Subject: Re: [PATCH] intel: thermal: PCH: Drop ACPI_FADT_LOW_POWER_S0 check From: Zhang Rui To: "Rafael J. Wysocki" , Linux PM Cc: Linux ACPI , LKML , Mario Limonciello , Srinivas Pandruvada Date: Sun, 17 Jul 2022 14:14:42 +0800 In-Reply-To: <12013659.O9o76ZdvQC@kreacher> References: <12013659.O9o76ZdvQC@kreacher> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.44.1-0ubuntu1 MIME-Version: 1.0 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,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_NONE 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 On Thu, 2022-07-14 at 21:11 +0200, Rafael J. Wysocki wrote: > From: Rafael J. Wysocki >=20 > If ACPI_FADT_LOW_POWER_S0 is not set, this doesn't mean that low- > power > S0 idle is not usable.=C2=A0 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. >=20 > 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. 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. thanks, rui >=20 > Signed-off-by: Rafael J. Wysocki > --- > =C2=A0drivers/thermal/intel/intel_pch_thermal.c |=C2=A0=C2=A0=C2=A0 8 ---= ----- > =C2=A01 file changed, 8 deletions(-) >=20 > Index: linux-pm/drivers/thermal/intel/intel_pch_thermal.c > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > --- linux-pm.orig/drivers/thermal/intel/intel_pch_thermal.c > +++ linux-pm/drivers/thermal/intel/intel_pch_thermal.c > @@ -207,14 +207,6 @@ static int pch_wpt_suspend(struct pch_th > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0return 0; > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0} > =C2=A0 > -=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0/* Do not check temperature if= it is not a S0ix capable > platform */ > -#ifdef CONFIG_ACPI > -=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0if (!(acpi_gbl_FADT.flags & AC= PI_FADT_LOW_POWER_S0)) > -=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0return 0; > -#else > -=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0return 0; > -#endif > - > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0/* Do not check temperatu= re if it is not s2idle */ > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0if (pm_suspend_via_firmwa= re()) > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0return 0; >=20 >=20 >=20