Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp852878ybk; Wed, 13 May 2020 15:06:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw0PhrIJOfHEk49erPT0NYnzMEXy2uG2jZuwHaQw6R+jC74FO8y5qpd7L5LGY7ke5J1VLL8 X-Received: by 2002:a17:906:2f90:: with SMTP id w16mr1136148eji.252.1589407582396; Wed, 13 May 2020 15:06:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589407582; cv=none; d=google.com; s=arc-20160816; b=h85ztInHOyQGpiDuY2SdWTR2HXhZp4ohOt8U7peQOfIQZGV+A1M2qQ5fb8pT3nwOjs pteELjb6VEz92g/21RaFzx227dqsKjtEkZT3rztCVudIfhTUGDno3T3XfPoSPFw5XA+R oI027//QAzfYFDilPZqyWXinj8aQVvai9mzwRy8caDnqEr2ir60f3cyWS/aOgIGkqSN4 VfZmsWMde8r+z32HCkJZCpQboTf4TojeUir3d70AJyg32EzatWobq1Y2gKJNu02W1uPC YBNWWSBwy15g3ZRlrSixbzH2IjUzDlH8+KwcIt24ZI6vWWfxO1sY6wM5Xhg7ukkCUtoQ x/hg== 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=Ulrh/T/+nHD2pobJ7tImrStbVSH4jLFk6h44aOSHIgo=; b=L/xSWiO+8g7ha7Y8f7avRJMzIb+OKVVIH4JpMoxU2WtlEdMhXtDE03ruwiQMk4u4RY Ilg6rNrJBps7e3wU8aGLnCysZAtOqDJmjgPm3C9lYuzkQZptWW6xv9V29hZAur82SGUn jhvrC/2QUGEm6/qP8rdBqLmgTyawPMmDtvBt2mBFdfWtBbiQeTktHaNxxJsRu72O1UiZ 0R9p+d+Bp81two4iV951MgpqWj3jlETZMSTY8sNezySrg8EkOZlQ8VTHwXA97YPzZfhf ZpX/wJAcfVbkKKanJGLkx5eS9DQmYFBbYcnkm/WmrVTrok7/cbiaAXTKRORyDv3jU+wJ lzOw== 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 g4si642640edn.285.2020.05.13.15.05.59; Wed, 13 May 2020 15:06:22 -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 S1730396AbgEMWEb (ORCPT + 99 others); Wed, 13 May 2020 18:04:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51384 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1729775AbgEMWEb (ORCPT ); Wed, 13 May 2020 18:04:31 -0400 Received: from Galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 55414C061A0C for ; Wed, 13 May 2020 15:04:31 -0700 (PDT) Received: from bigeasy by Galois.linutronix.de with local (Exim 4.80) (envelope-from ) id 1jYzUK-00058z-Vy; Thu, 14 May 2020 00:04:29 +0200 Date: Thu, 14 May 2020 00:04:28 +0200 From: Sebastian Andrzej Siewior To: Stephen Berman Cc: Thomas Gleixner , Peter Zijlstra , linux-kernel@vger.kernel.org Subject: Re: power-off delay/hang due to commit 6d25be57 (mainline) Message-ID: <20200513220428.4nksinis2qs5dtmh@linutronix.de> References: <87bln7ves7.fsf@gmx.net> <20200506215713.qoo4enq32ckcjmz7@linutronix.de> <87v9l65d2y.fsf@gmx.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <87v9l65d2y.fsf@gmx.net> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2020-05-08 23:30:45 [+0200], Stephen Berman wrote: > > Can you log the output on the serial console? > > How do I do that? The spec for your mainboard says "serial port header". You would need to connect a cable there to another computer and log its output. The alternative would be to delay the output on the console and use a camera. > > If the commit you cited is really the problem then it would mean that a > > worker isn't scheduled for some reason. Could you please enable > > CONFIG_WQ_WATCHDOG to see if workqueue core code notices that a worker > > isn't making progress? > > How will I know if that happens, is there a specific message in the tty? On the tty console where you see the "timing out command, waited" message, there should be something starting with |BUG: workqueue lockup - pool following with the pool information that got stuck. That code checks the workqueues every 30secs by default. So if you waited >= 60secs then system is not detecting a stall. As far as I can tell, there is nothing special on your system. The CD and disk drives are served by the AHCI controller. There is no special SCSI/SATA/SAS controller. Right now I have no idea how the workqueues fit in the picture. Could you please check if the stall-dector says something? Is it possible to show me output when the timeout message comes? My guess is that the system is going down and before unounting/remount RO the filesystem it flushes its last data. But this is done before issuing the "halt-syscall". > Thanks for your reply. > > Steve Berman Sebastian