Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp1768461ybh; Tue, 14 Jul 2020 06:56:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxdCT+cf7c/cY7DUe6xceTARyErRtDGdSOxwWHSqnE/ludSrpxGodFznFGKJE4jxPm0lZBk X-Received: by 2002:a17:907:9495:: with SMTP id dm21mr4567955ejc.357.1594734961768; Tue, 14 Jul 2020 06:56:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594734961; cv=none; d=google.com; s=arc-20160816; b=bhtmHLc+CZ5PIUkQ/HcLuiRJN5Hg74p6HTCRTPzEi8O9JgccELQPijKPVebs0aedGB NjyR5KPYv+CwXB9EYEAexWg4mvmZ/mi8M+7fnu0VTUr79hb+D/K1v5P60CaYJecDgzHj kTvp+QhQWyBBY0Q8Mn3vg/86103yCm9ftaVKTDxQU7V2lr0e3T0U0pAHpWWbUDXMhxrE DfrrxPXf2PRzOu+oZ1OlMG2VcRdH9fOylemPe6iDAq0AEcICB2caP5jk7p4ee/P9tXJZ eMcHcU2HGZF8d1NIdPoEhgliRsBCHCqNBCw+IUj3tG6iI3ttZAZng+gWvJh1ubExRMdr KSVg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version; bh=2DHbXEMPR9kKKspzgGqTKK3b3d08bDvPNu5F8TGYfWU=; b=p38kx7NN7Pds/crCoBPjPWHszu1I4OvPrUGGPGqY5yvkx8E+H/YPZuDA2dgIpB4kAh SPvKGuIGfI6rpO2Mz0RKuJzg54TfutqtzVkHY5ChaE7Yp6vLWbS8xTdaVG6zaIosD+lZ Sn4+Ti8cE5AgDHg/Mypcoke1pWLpYwu/za3op0HD1wYONiPmcNn8hxmJ+cDkWhgSmA8r 4uCTUPSC2XaMS2+ca8gYAXEkVqfoqvxYi/nfPdrL1P36Aa554qlv9LEP2/Kfx3ZL3dpx FTs8Fgp7+Ly1LLPBCxx0RitvIsF/WwbpOy6gzwkMXWw9rlyoqfPBUtuTDDhL+4yU8R5+ oUAw== 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id mb24si10783374ejb.233.2020.07.14.06.55.38; Tue, 14 Jul 2020 06:56:01 -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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728219AbgGNNzL (ORCPT + 99 others); Tue, 14 Jul 2020 09:55:11 -0400 Received: from mail-ot1-f48.google.com ([209.85.210.48]:45397 "EHLO mail-ot1-f48.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726450AbgGNNzK (ORCPT ); Tue, 14 Jul 2020 09:55:10 -0400 Received: by mail-ot1-f48.google.com with SMTP id h1so13035607otq.12; Tue, 14 Jul 2020 06:55:09 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=2DHbXEMPR9kKKspzgGqTKK3b3d08bDvPNu5F8TGYfWU=; b=E09eUJT8EsVGGUwo/ZSc655wRNnDXfgHeMJN6z8IhbfmVuVWIjt3TeXELKjg06+qSs r5upzkEQFSmPj/mUqqFUGIuiZVq0exIxKLbzb/oUYzjgqPT5WOgKcobo//s+6Ms4C80U vSTNdOosNfLKZ56Wy6v+iAw2aRvyhVKOybvvvELexy99R/ZY7ptAlObz5I0Vh9SA2LO5 FklScOYfqYG5TxMHa+XoiQv+oMxGQbJpb4BlKfOJqUOKzu7S3f8aLcYUoNeWjDkCwW9s Qo5ikfWZazwEFF2zRKuRCxWwTmfG3BuCEi6rsVxsPSZkg9zTWebgPvlXVRIaJNhcsex4 WBwg== X-Gm-Message-State: AOAM533Jny9WAgAFA6PIYPM0at+QF6R4YGEz0s/p5FfuzeEZ8cNyUqYK aKMqmWcPgTJc0s99ns91WwH6q16RZ83QapA0O+w= X-Received: by 2002:a05:6830:30ba:: with SMTP id g26mr4048682ots.118.1594734908915; Tue, 14 Jul 2020 06:55:08 -0700 (PDT) MIME-Version: 1.0 References: <20200615145130.bcdidqkp6w23xb6c@linutronix.de> <87tuzbh482.fsf@gmx.net> <20200616073827.vysntufld3ves666@linutronix.de> <87o8pjh1i0.fsf@gmx.net> <20200616155501.psduxnisltitodme@linutronix.de> <871rmesqkk.fsf@gmx.net> <20200617142734.mxwfoblufmo6li5e@linutronix.de> <87ftatqu07.fsf@gmx.net> <20200624201156.xu6hel3drnhno6c3@linutronix.de> <87ftak2kxr.fsf@rub.de> <20200714134410.3odqfvjq6rndjjf6@linutronix.de> In-Reply-To: <20200714134410.3odqfvjq6rndjjf6@linutronix.de> From: "Rafael J. Wysocki" Date: Tue, 14 Jul 2020 15:54:57 +0200 Message-ID: Subject: Re: power-off delay/hang due to commit 6d25be57 (mainline) To: Sebastian Andrzej Siewior Cc: Zhang Rui , Robert Moore , Erik Kaneda , "Rafael J. Wysocki" , Len Brown , Thomas Gleixner , Peter Zijlstra , Linux Kernel Mailing List , ACPI Devel Maling List , Stephen Berman , "open list:ACPI COMPONENT ARCHITECTURE (ACPICA)" Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jul 14, 2020 at 3:44 PM Sebastian Andrzej Siewior wrote:> > On 2020-06-24 23:49:52 [+0200], Stephen Berman wrote: > > Let me summarize the thread here: > > On Stephen's system, ACPI informs the thermal zone driver to poll the > temperature every second and the driver does so. > The driver queries the temperature by invoking acpi_evaluate_integer() > which invokes (at some point) acpi_ev_queue_notify_request(). Well, I don't quite see how acpi_ev_queue_notify_request() can be invoked from the acpi_evaluate_integer() code path. Do you have a call trace showing that? > This then invokes acpi_os_execute_deferred() via > queue_work_on(, kacpi_notify_wq, ) > > acpi_os_execute_deferred() invokes acpi_ev_notify_dispatch() and this is > no longer synchronised with the initial acpi_evaluate_integer() request. That indeed would be the case, but I first need to understand what's going on with the acpi_evaluate_integer() causing a Notify () to be queued up. Cheers!