Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp1771953ybt; Mon, 15 Jun 2020 09:02:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzEiY9I9FbrJ6PbuGPrH96mV9XEf2yzONe0VzwSe9Ydj+XsyiCWhoouSOjuN+D1xb1YZYGY X-Received: by 2002:a17:906:2a4d:: with SMTP id k13mr27355849eje.253.1592236932882; Mon, 15 Jun 2020 09:02:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592236932; cv=none; d=google.com; s=arc-20160816; b=jA4Es++ug0nDpEpXB+0Mm6qfPJQUMetHlayvPHcnOmbcLDdzOHGL5at2/8jG5iGET/ 6ilyRXe72CSeKVI9r65ZqZd9n0Vs05Kpx/j3zvIJIYdSpGW3It0i7bGPqWfixfyBqkRj HQ6YtEghdPJwfEVxHdrdr3PdxltPGNBk4yq9l/m9EC11g/VXyznv4Y5OQV8CVjdd00wf BTygMWvvQ11J/D+x6hWgT+QB0qW1ph44+w9G349b5zmDbeZAJc+lTNGo/CMB3C+V3UdF Btq2Eq7XyuZSDMQ5gjFZWAzLi1y7yeMB6ntVVX3BKY9njfLN6YOzqsDCJJ8ZERTQd3JO j3wg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=ONsrZDsGkWiMcm2niQ3anhKc6JPB6cYQ8D07NNfuggA=; b=RYek5kZmKdhmCM+88+tnzgkjHANkoMHJN5+UK+DvFXD/MhpXbqvSaI9DqbL1pVWKZ2 EvWNBFfTU6mDg9X6hv/uN1Jgf60GLjI09hRUi9mW0KUoP6sH0cJnT2CkQojq9IDDgr4e /D9etIV9ZkV9WUBP2Y5Z0GXBVwxcZ/Azo2GZghtU7Sf/bJs1ANcJbv7sjNpIDpXF2/lJ /Z2/r/DnLRFLp4yiXvgWhr3UkTcGzckDoNvaEz2BWdiwey1U3luw4e3hhifw3dPqNgay J4j4WFpYlx4vzBoNG0xzmjwPJKhvvEhqBu4u8X4050V961NxhDHDKlh6J6l/iV/EF7VA gPsQ== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p13si9337753ejf.178.2020.06.15.09.01.49; Mon, 15 Jun 2020 09:02:12 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730772AbgFOP6u (ORCPT + 99 others); Mon, 15 Jun 2020 11:58:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51888 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727785AbgFOP6t (ORCPT ); Mon, 15 Jun 2020 11:58:49 -0400 Received: from Galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5D245C061A0E; Mon, 15 Jun 2020 08:58:49 -0700 (PDT) Received: from bigeasy by Galois.linutronix.de with local (Exim 4.80) (envelope-from ) id 1jkrVW-0006KP-C2; Mon, 15 Jun 2020 17:58:46 +0200 Date: Mon, 15 Jun 2020 17:58:46 +0200 From: Sebastian Andrzej Siewior To: Stephen Berman Cc: Thomas Gleixner , Peter Zijlstra , linux-kernel@vger.kernel.org, linux-acpi@vger.kernel.org Subject: Re: power-off delay/hang due to commit 6d25be57 (mainline) Message-ID: <20200615155846.nd5n32qggusakxl7@linutronix.de> References: <87tuzjcovq.fsf@gmx.net> <20200610102514.4vdzu5u7d6vnpicn@linutronix.de> <87imfyh6yx.fsf@gmx.net> <87wo4dligz.fsf@gmx.net> <20200612110122.jossn5zrktcvpbpm@linutronix.de> <87tuzdrgm5.fsf@gmx.net> <20200614171005.3zy673p6bpwoqnmq@linutronix.de> <874krcsquv.fsf@gmx.net> <20200615145130.bcdidqkp6w23xb6c@linutronix.de> <87tuzcqqul.fsf@gmx.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <87tuzcqqul.fsf@gmx.net> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2020-06-15 17:41:06 [+0200], Stephen Berman wrote: > > If you do this "t" then there should be a lot of output on your console. > > If you do this from an xterm then you can see the output after typing > > "dmesg". The output should appear also in your system log. > > Ah, ok, I do see it in the log, it looks basically the same as the call > trace I posted upthread. I wonder why there was no such output in the > console, could there be some setting that suppresses it even though > /proc/sys/kernel/sysrq has `1'? You have ignore_loglevel soo everything should appear on your console. The is true for your tty / ctrl+alt+f1 but your xterm shell. > There were in fact 99 "Start .* acpi_ev_notify_dispatch" messages and 98 > "End .* acpi_ev_notify_dispatch" messages. Here's the last of them > before I rebooted: > > Jun 15 08:58:25 strobe-jhalfs kernel: [ 193.315014] acpi_os_execute(1109) Adding acpi_ev_notify_dispatch+0x0/0x55 ffff8d7aa99a66e0 > Jun 15 08:58:25 strobe-jhalfs kernel: [ 193.319929] acpi_os_execute_deferred_notify(853) End ffff8d7aa8758d00 acpi_ev_notify_dispatch+0x0/0x55(ffff8d7aa84e7eb0) > Jun 15 08:58:25 strobe-jhalfs kernel: [ 193.321242] acpi_os_execute_deferred_notify(851) Start ffff8d7aa8758a80 acpi_ev_notify_dispatch+0x0/0x55(ffff8d7aa84e70a0) > Jun 15 08:58:26 strobe-jhalfs kernel: [ 194.339017] acpi_os_execute(1109) Adding acpi_ev_notify_dispatch+0x0/0x55 ffff8d7aa99a6730 > Jun 15 08:58:27 strobe-jhalfs kernel: [ 195.363005] acpi_os_execute(1109) Adding acpi_ev_notify_dispatch+0x0/0x55 ffff8d7aa99a6780 > Jun 15 08:58:27 strobe-jhalfs kernel: [ 195.367978] acpi_os_execute_deferred_notify(853) End ffff8d7aa8758a80 acpi_ev_notify_dispatch+0x0/0x55(ffff8d7aa84e70a0) > Jun 15 08:58:27 strobe-jhalfs kernel: [ 195.369234] acpi_os_execute_deferred_notify(851) Start ffff8d7aa8758240 acpi_ev_notify_dispatch+0x0/0x55(ffff8d7aa84e7a00) > Jun 15 08:58:28 strobe-jhalfs kernel: [ 196.387017] acpi_os_execute(1109) Adding acpi_ev_notify_dispatch+0x0/0x55 ffff8d7aa99a68c0 > Jun 15 08:58:28 strobe-jhalfs kernel: [ 196.388508] acpi_os_execute_deferred_notify(853) End ffff8d7aa8758240 acpi_ev_notify_dispatch+0x0/0x55(ffff8d7aa84e7a00) > Jun 15 08:58:28 strobe-jhalfs kernel: [ 196.390128] acpi_os_execute_deferred_notify(851) Start ffff8d7aa8758b80 acpi_ev_notify_dispatch+0x0/0x55(ffff8d7aa84e7460) > Jun 15 08:58:29 strobe-jhalfs kernel: [ 197.208714] wlan1: deauthenticating from 7c:ff:4d:08:df:22 by local choice (Reason: 3=DEAUTH_LEAVING) > Jun 15 08:58:29 strobe-jhalfs kernel: [ 197.232214] ip (4614) used greatest stack depth: 11272 bytes left > Jun 15 08:58:29 strobe-jhalfs kernel: Kernel logging (proc) stopped. > Jun 15 08:58:29 strobe-jhalfs kernel: Kernel log daemon terminating. Okay. So there is "Adding" of four events/work items in total, each almost every second. Processing of one work-item took two seconds, the other one took a second. These events are "old" so I don't see the "adding" line for the Start/End. You could look in the log for ffff8d7aa8758a80 to seen when it was enqueued but it feels like ACPI enqueues more events then it is capable of processing. > Steve Berman Sebastian