Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp3905528ybx; Mon, 4 Nov 2019 04:49:17 -0800 (PST) X-Google-Smtp-Source: APXvYqxlZrzo25THJBwjnb2q17TXNrT02JAa/NGbcL2Q3mJMiy0GeRVjAUPKYkw8TKmPwBo+jZ9g X-Received: by 2002:a50:f30c:: with SMTP id p12mr7481522edm.208.1572871757438; Mon, 04 Nov 2019 04:49:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1572871757; cv=none; d=google.com; s=arc-20160816; b=uR2s86PQgitsReUJcEV+02SatkPQjmKfPg8n0DzBiBuMUwjt3ho9i6MlIQfbwR/0BI iUNusqi6rcOqc4WWyRtYnTJAkIpGtL/Aet8evb1zN+/QMTlskMVV4Hlm0LQY9NFYjPLl KTjEUPkysBzTB1CdEOYWUyg0vPq/2OLSq7o3ROTccW91wX9uuxDVFi1C2eMpbZ1kRIyo ZGz6g69zWB5Ww5PmeI4mpyzOp3jfvwp5n8rEOInHAG0fdqPwqmz2OQg55r+zMnzdywGF R10Zjcs8EisOpKVN53lxM0kjWWtQFKWkUT5WcINrkrymJmUwQplA/UE7UFCbi5JlrFRk ZObg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=mfldR1s6+feeVy9waVmBOVYmHtFWo4/Ocy0uplRIXUA=; b=cCSTiZDlXfTwSenqvb+IEXAwZb1EDd0UU1lw+xtaDr7pGQqiYTNJ1H+pi/GLX6MY99 PmzSMBMM0nesng76aMybSY3B4phFU0jDIETN3JeN8DDSkvoCeaeQTGDykmraz6N/Hpoq H9NzDzjBhDIrvayQBvu/iU+BV9boSpkebXRcpolozegVDuRTRSiRQPcQo5P9QrBp4JPS s4dgtHA7ZGObMRE1WBe/uK5nSq6KOW2WVtJDfdIjoNAM6QvRLl3y/u7W5KcxV34+8QGM X2/OZ2O5y2c+2rFi0i4s+BsTzr3RWBQqWbze8z6QzZcqKJkyqJ+EtdquaEouPjAosL6W HLSw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Dxf2qdCc; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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. [209.132.180.67]) by mx.google.com with ESMTP id i47si7277702eda.91.2019.11.04.04.48.54; Mon, 04 Nov 2019 04:49:17 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Dxf2qdCc; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S1728807AbfKDMqY (ORCPT + 99 others); Mon, 4 Nov 2019 07:46:24 -0500 Received: from mail.kernel.org ([198.145.29.99]:55266 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727236AbfKDMqY (ORCPT ); Mon, 4 Nov 2019 07:46:24 -0500 Received: from dragon (li1038-30.members.linode.com [45.33.96.30]) (using TLSv1.2 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 11BD8218BA; Mon, 4 Nov 2019 12:46:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1572871583; bh=uu6hMcwvil/xb9dqy8jjyGW+1kTfPIrio1g2NerX6OE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Dxf2qdCcOkPEg/SW5EDL+yx9RaRwjiVhtnRit11I3Y0pAfi0DJ5GvvIuch+W02iXF 1c/lS5US48HKzpmbDWvTmti++TWT0jI3XG/Vlkf6AM5BYboyPPtELDCYqzZRZKfO3O kbzIXvY/7wzA+S6xm9qMwBXQAHY3NXdT7iNrG4iI= Date: Mon, 4 Nov 2019 20:45:55 +0800 From: Shawn Guo To: Schrempf Frieder Cc: Krzysztof Kozlowski , Fabio Estevam , Mark Rutland , NXP Linux Team , Pengutronix Kernel Team , Rob Herring , Sascha Hauer , "devicetree@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH v3 09/11] ARM: dts: imx6ul-kontron-n6x1x-s: Disable the snvs-poweroff driver Message-ID: <20191104124553.GY24620@dragon> References: <20191031142112.12431-1-frieder.schrempf@kontron.de> <20191031142112.12431-10-frieder.schrempf@kontron.de> <20191104074346.GT24620@dragon> <626ad87a-eb1d-4dca-7cd3-8c5f38025aec@kontron.de> <7da30a17-d16c-3cde-12a8-430ff3eec692@kontron.de> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <7da30a17-d16c-3cde-12a8-430ff3eec692@kontron.de> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Nov 04, 2019 at 11:18:19AM +0000, Schrempf Frieder wrote: > On 04.11.19 09:06, Frieder Schrempf wrote: > > Hi Shawn, > > > > On 04.11.19 08:43, Shawn Guo wrote: > >> On Thu, Oct 31, 2019 at 02:24:27PM +0000, Schrempf Frieder wrote: > >>> From: Frieder Schrempf > >>> > >>> The snvs-poweroff driver can power off the system by pulling the > >>> PMIC_ON_REQ signal low, to let the PMIC disable the power. > >>> The Kontron SoMs do not have this signal connected, so let's remove > >>> the node. > >>> > >>> This seems to fix a real issue when the signal is asserted at > >>> poweroff, but not actually causing the power to turn off. It was > >>> observed, that in this case the system would not shut down properly. > >> > >> I do not quite follow on this.? How does disabling snvs_poweroff fix the > >> issue?? The root cause of system not shut down properly seems to be that > >> PMIC doesn't shut down power.? This looks like a clean-up rather than > >> bug fix. > > > > I don't know the exact reasons, but we had issues on these boards when > > doing a "poweroff". The kernel would print something like the log below. > > Disabling the snvs-poweroff solved this. > > > > But note that this has last been reproduced on v4.14. So I'm not sure if > > this is still a problem with the current kernel. > > > > ####### > > reboot: Power down > > Unable to poweroff system > > > > ==================================== > > WARNING: halt/675 still has locks held! > > 4.14.104-exceet #1 Not tainted > > ------------------------------------ > > 1 lock held by halt/675: > > ?#0:? (reboot_mutex){+.+.}, at: [] SyS_reboot+0x14c/0x1dc > > ####### > > > >> > >>> > >>> Signed-off-by: Frieder Schrempf > >>> Fixes: 1ea4b76cdfde ("ARM: dts: imx6ul-kontron-n6310: Add Kontron > >>> i.MX6UL N6310 SoM and boards") > >> > >> If you think this is really a bug fix, it should be applied to the file > >> before renaming rather than the one after renaming. > > > > I will try to reproduce the issue with the current kernel and depending > > on the results either drop the Fixes tag or move the patch before the > > renaming. > > I just tried this with 5.4-rc5 and the issue persists. When > snvs-poweroff is enabled without the hardware actually being able to > power down via PMIC I get a locking WARNING from the kernel. Probably > because the system is still running, when it's already supposed to be > shut down by the PMIC. I still do not get it. Are you saying that with snvs-poweroff being disabled, your system is now able to be shut down properly by PMIC? Shawn > > So this fixes a real problem and therefore I will keep the Fixes tag and > move the patch to the proper place in this series.