Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp1393066ybg; Thu, 11 Jun 2020 08:43:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyzdgJq9kWYPYR1zEXhpjkEhtgMNYxrjwv9JhV5r0/E4vLpb2pmCssnG05/Qc5dMmyAl2Sc X-Received: by 2002:a17:906:2584:: with SMTP id m4mr9083479ejb.328.1591890191689; Thu, 11 Jun 2020 08:43:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591890191; cv=none; d=google.com; s=arc-20160816; b=BRlHVtgrXao8swyG3Uya6NSuDcJpNGTLaTs9vxw2KvKhEFxZ9tOekqy2P3S2AJJY0V JdxpUAxae+mHiUFu3NrgGoZA94/0Uemn0snjrNsPmEL5Wt8vdtgl05N907V78PDQFaRz D6xFgxlZzMOiKVHNvAQ5zMv2Flz7hsT8juzZjwhy+phZzJ2EmXU8qJhkhsnNU4Pe4w6C cYicVPmKEvepyRqlgtkeICLdAo5IuLw5QQuIt4n/ia0YAEAez1pxweiHW4WOH87zuC1l DFkR1gFIEuNzngsyZ1qrRXv8xQ4FyRvRlsPbtPCfswSeur4BMX7Me3eaZN7IaW1uvCSO Wnhg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:message-id :in-reply-to:date:references:subject:cc:to:from:dkim-signature; bh=4vbc62/dsq/o+wNgb47rKwtw+N2CKUpzbeZEnhEOQ8M=; b=D+b9x1FUGTdXo+oR9hzu6tkwIsoDWgt044gmpp+DFlkdVmylxFkYtWKEKE51cpVT7J GspCPpoqXmDqzPBqvr141L1DZXcRjBKsGS4kOMRiUi3yYVBfsSMoG5g/V7+j1iO+Ae7z nIi/VZGYbJ2A9xJDXdxtQD8pRngRNQIGyFABRcZuFInsYhcnDMeiYyMRXxnCd4ccnowC RCoh7DsRRVXCMS4os3uOFTZMqPBoVZ2Lh/+rFL5smkrk7vQWp9kKHeMiXyRzF+M3hTw8 iTtrQtMph0W7nQXyIShOFMINGtkaQUmwIqchZtkuRFwFyu5N+kmdso1ixbRSqwV3r7LU yflg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmx.net header.s=badeba3b8450 header.b=UMkzd58t; 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 k23si2197624eji.601.2020.06.11.08.42.46; Thu, 11 Jun 2020 08:43:11 -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=UMkzd58t; 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 S1728584AbgFKPjy (ORCPT + 99 others); Thu, 11 Jun 2020 11:39:54 -0400 Received: from mout.gmx.net ([212.227.17.20]:59183 "EHLO mout.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728104AbgFKPjx (ORCPT ); Thu, 11 Jun 2020 11:39:53 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1591889982; bh=duYddU7rZ/sCtC2hxJLn7gufkhi9vJTrZjvVF5a0TQ4=; h=X-UI-Sender-Class:From:To:Cc:Subject:References:Date:In-Reply-To; b=UMkzd58thGfJBde5a2CIRPH4Ee9AEmSr32w+3bLLP9w9mzhfQN4yk8WWYbsIv3Eut Z15JNaxojAmDuKx0E7RGYhKB8yTEIpV4191o3jKuMBKJ7GqTP9Syef5bIsTmlDhzB9 alj5Z5x9CeFff7u0fHtGeEFnVSkxNqvhOtTzMG4k= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from strobe-jhalfs ([178.6.148.191]) by mail.gmx.com (mrgmx104 [212.227.17.168]) with ESMTPSA (Nemesis) id 1M72sJ-1jqpY91nl1-008deo; Thu, 11 Jun 2020 17:39:42 +0200 From: Stephen Berman To: Sebastian Andrzej Siewior Cc: Thomas Gleixner , Peter Zijlstra , linux-kernel@vger.kernel.org Subject: Re: power-off delay/hang due to commit 6d25be57 (mainline) References: <87bln7ves7.fsf@gmx.net> <20200506215713.qoo4enq32ckcjmz7@linutronix.de> <87v9l65d2y.fsf@gmx.net> <20200513220428.4nksinis2qs5dtmh@linutronix.de> <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> Date: Thu, 11 Jun 2020 17:39:40 +0200 In-Reply-To: <87imfyh6yx.fsf@gmx.net> (Stephen Berman's message of "Thu, 11 Jun 2020 00:49:26 +0200") Message-ID: <87wo4dligz.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 X-Provags-ID: V03:K1:YaG4ZGm00kCZCNwUK5e+OOIW7mUztVomXm6KpW7zOVhozRyidMB xQpFnWxqDIYCem3Iwc/EzAIkSc8hSrAnkTmRi57IdTleKwpnKE//nisOmWgBnzv2QNxdcyt 9rdFM/sD+ICZJMNQ62h2moOIrgBP3iWMsjAJXPQ+MmAYcNQfUolP6BmRlDbyLnHldM0zytB Vs61qGUfJ+pStfNdHKzMA== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:yQZagXvcqfY=:4UQXG2Uf6qP/u34yuqp1B9 8L7VgTk92n+k26DcDWABliOzxy4+dnA3k+mk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4X3tW/RZ4pkj7LdfE1SmxMehsA7iF9dvsAxwFM8NTKfYX4jO2qtNbtG5cIc 9E1KiLtCk6NWRFoDne+L0jBeA+lAtZ7PAO/R/0gajX469t4oJWZKfs8TalufOqiIuVf/psLmN sFs71bB/0rmHG3g3m Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 11 Jun 2020 00:49:26 +0200 Stephen Berman wrote: > On Wed, 10 Jun 2020 12:25:14 +0200 Sebastian Andrzej Siewior > wrote: > [...] >>> By the other patch do you mean the following? (This email was also put >>> into my spam by GMX and AFAICT has not yet shown up on the vger list.) >> >> Yes. But now that I played a little with it, I made dis: > [...] >> So you should have output like: >> |[ 14.131696] Flushing events_freezable_power_ >> the flush that hangs >> >> |[ 17.203246] Flushing events_freezable_power_ over, 0 >> It has been noticed (0 at the end) >> >> |[ 17.203849] Showing busy workqueues and worker pools: >> |[ 17.204400] workqueue events_freezable_power_: flags=0x84 >> |[ 17.205009] pwq 12: cpus=6 node=0 flags=0x0 nice=0 active=1/256 refcnt=2 >> |[ 17.205774] in-flight: 2147:disk_events_workfn >> |[ 17.206268] workqueue kblockd: flags=0x18 >> |[ 17.206682] pwq 13: cpus=6 node=0 flags=0x0 nice=-20 active=1/256 refcnt=2 >> |[ 17.207428] pending: blk_mq_requeue_work >> |[ 17.207958] pool 12: cpus=6 node=0 flags=0x0 nice=0 hung=2s workers=3 idle: >> | 535 42 >> >> A dump of all pending worqueue items. >> >> |[ 20.275239] Flushing events_freezable_power_ over, 0 >> |[ 20.275812] Showing busy workqueues and worker pools: >> |[ 20.276385] workqueue events_freezable_power_: flags=0x84 >> |[ 20.276972] pwq 12: cpus=6 node=0 flags=0x0 nice=0 active=1/256 refcnt=2 >> |[ 20.277712] in-flight: 2147:disk_events_workfn >> |[ 20.278245] workqueue kblockd: flags=0x18 >> |[ 20.278685] pwq 13: cpus=6 node=0 flags=0x0 nice=-20 active=1/256 refcnt=2 >> |[ 20.279471] pending: blk_mq_requeue_work >> |[ 20.279989] pool 12: cpus=6 node=0 flags=0x0 nice=0 hung=5s workers=3 idle: >> | 535 42 >> >> Another atempt. As you see `blk_mq_requeue_work' is references in both >> outputs but it makes progress (it is scheduled multiple times). The item >> `disk_events_workfn' stucks. > > I rebuilt kernel 5.6.4 with that patch, but before calling `shutdown -h > now' I guess I should have set printk_delay, because this time there was > a lot of output and it went by too fast. I'll try to delay it the next > time. I've done that now. I've sent you screenshots offlist. Here's a brief summary: The initial shutdown log output is essentially the same as the transcription I posted upthread, except that it is interspersed with messages from your patch like "Flush hid_reset+0x0/0x80". Then comes: ACPI: Preparing to enter system sleep state S5 Flushing kacpid Flushing kacpid_notify Flushing kacpid_notify over, 0 Showing busy workqueues and worker pools: workqueue events: flags=0x0 pwq 4: cpus=2 node=0 flags=0x0 nice=0 active=1/256 refcnt=2 pending: drm_fb_helper_diry_work workqueue kacpid_notify: flags=0x0 pwq 0: cpus=0 node=0 flags=0x0 nice=0 active=1/1 refcnt=4185 in-flight: 1578:acpi_os_execute_deferred delayed: acpi_os_execute_deferred, acpi_os_execute_deferred, ... The "acpi_os_execute_deferred" messages were repeated many times in the above line, then every 20-30 seconds again for several minutes. Then suddenly a call trace appeared which was similar but not identical to the one I posted upthread, and each line of the trace was followed by the line ", acpi_os_execute_deferred". This went by quite quickly even with the printk_delay I added, and I was unable to photograph the start of it and couldn't get all of the subsequent output, but the screenshots show some of it. After several minutes of this output I again did a hard reboot. Steve Berman