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=-3.9 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS 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 48D4EC4363D for ; Tue, 6 Oct 2020 21:49:32 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id C95A7208C3 for ; Tue, 6 Oct 2020 21:49:31 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="GoXQ2/Pe"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="DzUbLG9Q" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726731AbgJFVtb (ORCPT ); Tue, 6 Oct 2020 17:49:31 -0400 Received: from Galois.linutronix.de ([193.142.43.55]:39164 "EHLO galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726668AbgJFVta (ORCPT ); Tue, 6 Oct 2020 17:49:30 -0400 Date: Tue, 6 Oct 2020 23:49:27 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1602020968; 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=wLExEVGZHnixuPxldWLoYuOXnjhKVAwnQQdvjmNvv6k=; b=GoXQ2/PesXmj2YlEFR2VG3y0C/qrbcKsmHP62AcCv32RWac5d+CQoG2xgjdyLLUv53dLZC d3Pm2H+BMV+vyh7NpsVuA9ZgoFLadv1tgt4biwsDZuA9yNQyQJtyOl36pCDbFJ8NAzJg29 kOz8zjB7sJV39ELH9IS0yVUYtGkqceGHcFW7Y2gx+sVLmdNPucddomhP3/gynugvvbxdvo RIECjxIGjbEQ3seeEVYAAgX4AR+rTlQMDqyqEZ1Kd+5x+iSUMIM7ZsU7wEMBODgMKb2uHk 2Tq4lNK323jMy4glfCMtPPzf0l0OfFSTX2lvmSsvPVycnAm5xtY0GblVKSyztQ== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1602020968; 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=wLExEVGZHnixuPxldWLoYuOXnjhKVAwnQQdvjmNvv6k=; b=DzUbLG9QQwTXf/THyOyoi3ZR5QzdfED3L4/PunJuZ7f/e5PhnyjLfC/XWUzQqYtD7bvO1s Qmo6QQEz3QbblNDQ== From: Sebastian Andrzej Siewior To: "Rafael J. Wysocki" Cc: Stephen Berman , Zhang Rui , Robert Moore , Erik Kaneda , "Rafael J. Wysocki" , Len Brown , Thomas Gleixner , Peter Zijlstra , Linux Kernel Mailing List , ACPI Devel Maling List , "open list:ACPI COMPONENT ARCHITECTURE (ACPICA)" Subject: Re: power-off delay/hang due to commit 6d25be57 (mainline) Message-ID: <20201006214927.4nsqtfji4fdv3oed@linutronix.de> 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> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable In-Reply-To: <20200811184902.2fm4eyprmpkfon2j@linutronix.de> Precedence: bulk List-ID: X-Mailing-List: linux-acpi@vger.kernel.org On 2020-08-11 20:49:05 [+0200], To Stephen Berman wrote: > On 2020-08-11 19:22:19 [+0200], Stephen Berman wrote: > > Attached. >=20 > ssdt6.dsl: > | ThermalZone (TZ10) > | { > =E2=80=A6 > | 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) > | } >=20 > 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). >=20 > > Done as Bug 208877. Rafael, do you have any suggestions? =20 Sebastian