From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.3 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,NICE_REPLY_A,SPF_HELO_NONE, SPF_PASS,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id CD609C4727E for ; Wed, 7 Oct 2020 16:18:20 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 7817920789 for ; Wed, 7 Oct 2020 16:18:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727422AbgJGQST (ORCPT ); Wed, 7 Oct 2020 12:18:19 -0400 Received: from mga12.intel.com ([192.55.52.136]:60617 "EHLO mga12.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727645AbgJGQSN (ORCPT ); Wed, 7 Oct 2020 12:18:13 -0400 IronPort-SDR: IXoxLzbKuwPKyBX01ZrQqeuxDJDVDXRGNOQ9tm7DbEsRtCsHbmrTKCr8DSIYHm58b3PYdpBMma daz58R+3LXjg== X-IronPort-AV: E=McAfee;i="6000,8403,9767"; a="144390652" X-IronPort-AV: E=Sophos;i="5.77,347,1596524400"; d="scan'208";a="144390652" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Oct 2020 09:18:09 -0700 IronPort-SDR: CPbeOcxXqJOW+DucWkloH/7RCdkTYebRQnWrHY/dw+r2kJTvfvRDc5hZLISSfFQMKzVQyujhen XA21YPwo/MWA== X-IronPort-AV: E=Sophos;i="5.77,347,1596524400"; d="scan'208";a="528032448" Received: from rjwysock-mobl1.ger.corp.intel.com (HELO [10.249.145.6]) ([10.249.145.6]) by orsmga005-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Oct 2020 09:18:05 -0700 Subject: Re: power-off delay/hang due to commit 6d25be57 (mainline) To: Sebastian Andrzej Siewior , "Rafael J. Wysocki" Cc: Stephen Berman , Zhang Rui , Robert Moore , Erik Kaneda , Len Brown , Thomas Gleixner , Peter Zijlstra , Linux Kernel Mailing List , ACPI Devel Maling List , "open list:ACPI COMPONENT ARCHITECTURE (ACPICA)" References: <20200714134410.3odqfvjq6rndjjf6@linutronix.de> <20200714141135.47adndrsdgpiqfy4@linutronix.de> <87blkbx1gt.fsf@gmx.net> <87imdp5r80.fsf@rub.de> <20200811132955.wbt55ns7bu5mxouq@linutronix.de> <20200811152551.dmfw46urecbmeklr@linutronix.de> <87ft8tayic.fsf@gmx.net> <20200811184902.2fm4eyprmpkfon2j@linutronix.de> <20201006214927.4nsqtfji4fdv3oed@linutronix.de> From: "Rafael J. Wysocki" Organization: Intel Technology Poland Sp. z o. o., KRS 101882, ul. Slowackiego 173, 80-298 Gdansk Message-ID: <3fc9074b-c153-8446-0289-1e4dfab395eb@intel.com> Date: Wed, 7 Oct 2020 18:18:03 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.12.1 MIME-Version: 1.0 In-Reply-To: <20201006214927.4nsqtfji4fdv3oed@linutronix.de> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US Precedence: bulk List-ID: X-Mailing-List: linux-acpi@vger.kernel.org On 10/6/2020 11:49 PM, Sebastian Andrzej Siewior wrote: > On 2020-08-11 20:49:05 [+0200], To Stephen Berman wrote: >> On 2020-08-11 19:22:19 [+0200], Stephen Berman wrote: >>> Attached. >> ssdt6.dsl: >> | ThermalZone (TZ10) >> | { >> … >> | Method (_TSP, 0, Serialized) // _TSP: Thermal Sampling Period >> | { >> | Return (0x0A) >> | } >> | >> | Method (_TZP, 0, Serialized) // _TZP: Thermal Zone Polling >> | { >> | Return (0x0A) >> | } >> | >> | Method (_TMP, 0, Serialized) // _TMP: Temperature >> | { >> | \GSA1.ZRC3 () >> | Sleep (0x03E8) >> | Notify (\_TZ.TZ10, 0x81) // Thermal Trip Point Change >> | Return (0x0B54) >> | } >> >> So if I read this correctly then TZ10 should be polled every second >> (check) and the temperature function contains a `sleep(1 second)' (which >> explains the mysteries delay) followed by the Notify() (which schedules >> the worker). >> >>> Done as Bug 208877. > Rafael, do you have any suggestions? > I've lost track of this sorry. I have ideas, let me get back to this next week. Cheers!