Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp540370pxu; Wed, 7 Oct 2020 09:25:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxrewmJ64ZJg0lIWpgdDnHzjO+DBCXgI1inZKLbAOsE9FQBw6s1S//e24lu+RyWOr3UyUM8 X-Received: by 2002:a50:e799:: with SMTP id b25mr4374953edn.225.1602087907552; Wed, 07 Oct 2020 09:25:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1602087907; cv=none; d=google.com; s=arc-20160816; b=Cu9bDUP3JtstLLyn8B+j3l9kkOzaQNblmdqqaXqilYjnFTVrtqv/3E54zo5apQ62FR FqgQDWdMQJn1a9QhIVRXev/0BE0Kb0WFTLlwZk32upkRoAWkX2IdKD9EKlYlWt9mR+CU RmvoJJw5HGWOHd2fPWHvgyb9QDDDVGrvGbVul2E1e/3wYzOmtEgfXyRb75d2WppF9wMk mLZcfVghGH9VSIiImqOQ+UXQV8kDDMqn3972FuEzlDLfkBtVKCRnIsNjc0+U3GZxPIcM NpgZCMX4YR5nO3uwoQCVYywsKd2xFPvDER+lGQgneXulG+QJt7Dd8PQkJJtmr7K8xmAt 7XvA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-language:content-transfer-encoding :in-reply-to:mime-version:user-agent:date:message-id:organization :from:references:cc:to:subject:ironport-sdr:ironport-sdr; bh=lJE1T8uH/LZCATNKjcuRJO+dn+A6z3uML4sLT3f91D4=; b=xAa6G7KBHSYrODU7lePqjT2VPWQze1KC8CtQTxtn+oR8MPt66jaaMlztxBAbOEmxWr Gn0925HMagtBmAgmgP5EieaEgwLW2xM1ztVSDa45BKUWQ42QJQngJP3sd+6iH9ohR43G v7n2R6YXDhg/alxVPAxPE0YAN6327+Q2Z0nETAcfqmgFj9LMLo5PM3sYC4Z9TYXuTiVn qqjStK5riQkvJG2xWoWbXaIU+EK02CnCFC7Qm36qZQVPr5UhTdM1LQwhci4/AMIsk6lc uXHCLb6u0YzcWv89kzKlK1NqUiLrnJtXsbdt6SJ4fOOKPZo0iGBd4FgB4oTTkbg54fOf jNuw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z19si1923762edm.464.2020.10.07.09.24.43; Wed, 07 Oct 2020 09:25:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729170AbgJGQSU (ORCPT + 99 others); Wed, 7 Oct 2020 12:18:20 -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-kernel@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!