Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp1477865ybt; Mon, 15 Jun 2020 01:00:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyR2spm/Ho+n9/eIORFrIjOYaUTYL+6yZt+1UAWfrIYoICo9JUd13zzzODzKcoT/Z6FUQX4 X-Received: by 2002:a17:906:b301:: with SMTP id n1mr11545499ejz.64.1592208035014; Mon, 15 Jun 2020 01:00:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592208035; cv=none; d=google.com; s=arc-20160816; b=0KSNlt4gD7gl8NbzGo3n7GqlrMK+44fHq9pncgIpaEv7rUekuey+0KLdRrLpD//r8q LNUlr3LXpX33bgT448rOyLqFN6EBE0Lu1xCslYriLXy8IvEqUzu/INC8xdTS5eLR+FRR jwAYmjqGfKmecJvA9WS7wFDJKMYVR9Wzy2I58BKu3AEQIju0actYcaMs9zgKaTVJKW6f 7eJf5E51l4lucWiArPvfUVtFbhPT3qkHFcf3SdqJJmnmCxVuB1lokdmpv97RbqvznFgd Gprer1tl63hdsKFktbLwGJ7XOB5uU90ityOgZEeOnKlDY7troyMrjBfv2jE3HnRO1IcE ab9w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:message-id:date:references:subject:cc:to:from :dkim-signature; bh=Jx3cDQZhfDT9aQs5ykQ4/Vrwf6fdWk2F7etCKzaZDfs=; b=RzrktD3JxxqvzBkXpo3NiKgoe1eiClantvmhiXsicHZ2sTikPk1TWgrCkiOGZxmHiF jvq5iiW+LufVJLeC4ExUNsGLXLRskjqv0fb3MECEvJCZkhxGCykMZBlkj2jdCDUYXMUo Lk37QDs4uTTHU8JBrGAcZd6V9z3fBhEA2xpU3Qttl6m1oEthv8g9fSLBuU1DYWUdW4+Y ZX0202gbxrc63HVF5mAxGulokKZD5n1KKtJWK1v4WsgR/mHjT1kk3EYDhGVPOt9woF1k p9CDXtR4fZuD74leJluP844UFok5NQrbYMCaGhKZJ6Snx8EQpsCieisO+xOYqaCU3XkY IRpA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmx.net header.s=badeba3b8450 header.b=aKNNV9gW; 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 u5si8310019edq.596.2020.06.15.01.00.12; Mon, 15 Jun 2020 01:00:35 -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; dkim=pass header.i=@gmx.net header.s=badeba3b8450 header.b=aKNNV9gW; 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 S1728709AbgFOH6R (ORCPT + 99 others); Mon, 15 Jun 2020 03:58:17 -0400 Received: from mout.gmx.net ([212.227.17.22]:59861 "EHLO mout.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728260AbgFOH6P (ORCPT ); Mon, 15 Jun 2020 03:58:15 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1592207882; bh=U8IPqJVxL9sihunBAz/g/f+mmoRQ44LPopwZv+2y8OY=; h=X-UI-Sender-Class:From:To:Cc:Subject:References:Date; b=aKNNV9gW89LG+xNJ3s7dOo1YAdXwBTxt7CeGlGQZxs9aFAZL/yJRTuk71qkweU6Fs pt0hBBiPXIn2lTcwzq7nYgADbZ5gvfXBvcm+q62waGk3WiXEo0tzvuUKRb3lzVc9/s Bgs2rdjUke+ZX+kZZWciGk7Iv3hiHZ0cyct1TsUg= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from strobe-jhalfs ([188.109.165.61]) by mail.gmx.com (mrgmx105 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MfYPY-1jII0g0Xw8-00g0yF; Mon, 15 Jun 2020 09:58:02 +0200 From: Stephen Berman To: Sebastian Andrzej Siewior 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) References: <87mu6aurfn.fsf@gmx.net> <20200522164012.ynyvrjompv42jtmx@linutronix.de> <87y2owwo2o.fsf@rub.de> <20200609202339.cgy57twm2zdtjhje@linutronix.de> <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> Date: Mon, 15 Jun 2020 09:58:00 +0200 Message-ID: <874krcsquv.fsf@gmx.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:+odMrTtZ2fTVQjvQB8+YNCxbfgXDqZyiMSFFeoPDbjahRl/8cC6 CvRCyumWQP5hIaD4iKplD/I9DNwgVGD/qeV7qeUeKQBRrr2D45R9dG4e+2a+3M7wv/NpaoB lHqwu8Xz5b5L1k+V6cDsRDyQZpqDlsPTjVerNR8iMIPijsdImWOBDVGanyYAChhi5cEC3XQ Th0CwJQNDeE83wZnETyPQ== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:wZ4++9cPohs=:9LFRibNLA4Lv0PfSTQZdgZ 2rahvvgBALQWIC0QpdTdqVnznpJfvLVfahC2HhdtD8C2CvtJkwcLgp/otzkEIic0kd02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bo7OSU/9+eznHuh8lrFnb+Rk6ROGLAVjxd mqOT6QuFIu0yH8RUnfudaWdtlWEZ4VaXNYJ+hyCNiG5bkQKhJpXrQCC/g7kzW8Rlmokjga44H KtR3LYgAkrvGCgtCl Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, 14 Jun 2020 19:10:05 +0200 Sebastian Andrzej Siewior wrote: > On 2020-06-14 14:12:18 [+0200], Stephen Berman wrote: [...] >> What am I supposed to do after "echo t > /proc/sysrq-trigger"? Both >> before and after doing that I get an error trying to open the file: >>=20 >> root [ ~ ]# cat /proc/sysrq-trigger >> cat: /proc/sysrq-trigger: Input/output error > > echo "t > /proc/sysrq-trigger" > > not cat. Ok, sorry, I had misunderstood, but now I've looked at the documentation. I had in fact already done `echo t > /proc/sysrq-trigger' in an xterm (as root) and there was no output. Later, after booting kernel 5.1.0 because of the message flooding with 5.6.4, I did `echo t > /proc/sysrq-trigger' in a virtual tty (also as root) and the only output was: `[ ] sysrq: Show State'. Is this expected? (In /proc/sys/kernel/sysrq there is `1'.) I couldn't try it in a 5.6.4 virtual tty because of the message flooding (see below). [...] >> I applied this patch to 5.6.4 and recompiled, and on the next boot with >> that kernel, the kernel buffer (and kernel and system logs) began to get >> flooded with these messages: >>=20 >> Jun 14 10:37:13 strobe-jhalfs kernel: [ 5.943987] >> acpi_os_execute_deferred(843) Start ffff8fb82c7b6500 >> 000000003edf1e05(ffff8fb82c492990) >> Jun 14 10:37:13 strobe-jhalfs kernel: [ 5.944102] acpi_os_execute(1101) >> Adding acpi_ev_asynch_enable_gpe+0x0/0x2f ffff8fb82c492990 >> Jun 14 10:37:13 strobe-jhalfs kernel: [ 5.944104] >> acpi_os_execute_deferred(845) End ffff8fb82c7b6500 >> 000000003edf1e05(ffff8fb82c492990) >> Jun 14 10:37:13 strobe-jhalfs kernel: [ 5.944105] >> acpi_os_execute_deferred(843) Start ffff8fb82b844800 >> 000000002ba560ea(ffff8fb82c492990) >> Jun 14 10:37:13 strobe-jhalfs kernel: [ 5.944124] >> acpi_os_execute_deferred(845) End ffff8fb82b844800 >> 000000002ba560ea(ffff8fb82c492990) >> Jun 14 10:37:13 strobe-jhalfs kernel: [ 5.944288] >> acpi_os_execute_deferred(843) Start ffff8fb82c7b6540 >> 000000003edf1e05(ffff8fb82c492990) >> Jun 14 10:37:13 strobe-jhalfs kernel: [ 5.944387] acpi_os_execute(1101) >> Adding acpi_ev_asynch_enable_gpe+0x0/0x2f ffff8fb82c492990 >>=20 >> and so on without stopping. I could start X and avoid seeing the >> messages, but was afraid the logs would fill up the root partition if I >> let it keep going, so I rebooted with another kernel. >>=20 >> Was this message flood because I booted with "ignore_loglevel >> initcall_debug"? In the logs there are also lots of messages like this: > > Is there a acpi_os_execute_* flood? The *few* at what appears to system > startup and might be normal. If there appear *many* more and are > constantly printing (check with dmesg) then we might be to something. The kernel log shows 305 of these messages in the 4 minutes and 17 seconds between the start of klogd and when I rebooted. [...] > I attached the updated acpi patch. It limits the prints to the > kacpi_notify_wq queue which appears to stuck at shutdown. I applied this patch and rebuilt the kernel. After booting 5.6.4 this morning there was again message flooding and this time I was unable to log in because of it, so had to do a hard reboot and booted with 5.1.0. The kernel log shows 207 acpi_os_execute_deferred_notify messages in 3 minutes and 6 seconds; here are the first: Jun 15 08:55:22 strobe-jhalfs kernel: [ 5.943848] acpi_os_execute(1109) = Adding acpi_ev_asynch_enable_gpe+0x0/0x2f ffff8d7aaba18990 Jun 15 08:55:22 strobe-jhalfs kernel: [ 5.943851] acpi_os_execute_deferr= ed_notify(851) Start ffff8d7aab157fc0 acpi_ev_asynch_enable_gpe+0x0/0x2f(ff= ff8d7aaba18990) Jun 15 08:55:22 strobe-jhalfs kernel: [ 5.943865] acpi_os_execute_deferr= ed_notify(853) End ffff8d7aab157fc0 acpi_ev_asynch_enable_gpe+0x0/0x2f(ff= ff8d7aaba18990) Jun 15 08:55:22 strobe-jhalfs kernel: [ 5.944104] acpi_os_execute(1109) = Adding acpi_ev_asynch_enable_gpe+0x0/0x2f ffff8d7aaba18990 Jun 15 08:55:22 strobe-jhalfs kernel: [ 5.944106] acpi_os_execute_deferr= ed_notify(851) Start ffff8d7aab157fc0 acpi_ev_asynch_enable_gpe+0x0/0x2f(ff= ff8d7aaba18990) Jun 15 08:55:22 strobe-jhalfs kernel: [ 5.944115] acpi_os_execute_deferr= ed_notify(853) End ffff8d7aab157fc0 acpi_ev_asynch_enable_gpe+0x0/0x2f(ff= ff8d7aaba18990) Jun 15 08:55:22 strobe-jhalfs kernel: [ 5.944406] acpi_os_execute(1109) = Adding acpi_ev_asynch_enable_gpe+0x0/0x2f ffff8d7aaba18990 Jun 15 08:55:22 strobe-jhalfs kernel: [ 5.944408] acpi_os_execute_deferr= ed_notify(851) Start ffff8d7aab157fc0 acpi_ev_asynch_enable_gpe+0x0/0x2f(ff= ff8d7aaba18990) Jun 15 08:55:22 strobe-jhalfs kernel: [ 5.944417] acpi_os_execute_deferr= ed_notify(853) End ffff8d7aab157fc0 acpi_ev_asynch_enable_gpe+0x0/0x2f(ff= ff8d7aaba18990) > The interesting part is to see if there is a acpi_os_execute() adding a > specific event multiple times which does not complete. Maybe at runtime, > maybe at shutdown time. If that is the case then ignoring this specific > event might fix the shutdown problem. With all this information so far, > I don't see a relation with this problem and the commit=E2=80=A6 In those 3 minutes and 8 seconds there were 5 "Adding acpi_ev_asynch_enable_gpe" messages at the beginning, then 185 "Adding acpi_ev_notify_dispatch" messages, which kept coming until I rebooted. Steve Berman