Received: by 10.223.176.5 with SMTP id f5csp1178756wra; Wed, 7 Feb 2018 14:12:12 -0800 (PST) X-Google-Smtp-Source: AH8x224lRc9uOk1m8mQzlgHmoLBIK23KlO7xq/WDEeJkvhaqELCrkdyAJJDph5NGuys/peVWRWEL X-Received: by 10.99.165.28 with SMTP id n28mr6224143pgf.103.1518041532317; Wed, 07 Feb 2018 14:12:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518041532; cv=none; d=google.com; s=arc-20160816; b=EKlj7sHuBWFIa1eIFARHQzycB1NYr/kA7ixemKY/5n7HMPOqDeM91D/UkcW+HJbU55 zk5k5HVY0uXB2Y/5IDi68i6EGyo/LqwQM0C/xbhfHHGR/7CGIduVtMuJWsLTm960X2D5 FOZ8nBVHkA/DRFGmXx3CsDvR7wclm/44g4KiESLNVGoLlxHwIixB25ugHEBaES+AfVBb ul9+DUoHCVVAUD1zN3PTBOw2MwkZGgCTYAbYdPNoeNa93PZlJO0qwF6iNOphvKwYX1Pn PAJklL9iSjpGonyOqg1+vaHluNJxqPm2x4q8I9Am6q5sl5n4SngjSdDyMzlH4aFh0a3+ 7shQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:organization:user-agent :references:in-reply-to:subject:cc:to:from:message-id:date :arc-authentication-results; bh=jbwJEM/wSIXng1AZi9vEnK101RwqjSWKBw+Oi802Mfw=; b=trqxjIkVOJYJv6G7I9LJpEefvViMaZaOuZwTLPDHRNAlpv4yNuq/Rw3ggwx900xpj3 TJQfKvCEK8kNR6ytlcOSzMyZMOS/E8QF4V1QaUuj4Dxnx7OOKNwL3Ksq/dvopOriZMOa X5ABaEWNhoRhCebpIgtozoVXyuhYJSlYCUC1m3zhYj+SIpBzpcs5x5efegimon3S7SmE /0cc9dNiVHxVwzYFE9kG8Cx0dS/Kh2uonRCXPSCDtowX0LDAzRihvJ0uLN5/YmRy2/j3 dpcX3AX4oyihpn5/3DciAEKs/JcgGKTA3R4TBX4VoUZMbFPXHIZAuyoi7NZEcljf2aM8 C/2g== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k12si318596pgn.319.2018.02.07.14.11.57; Wed, 07 Feb 2018 14:12:12 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751146AbeBGWKp (ORCPT + 99 others); Wed, 7 Feb 2018 17:10:45 -0500 Received: from foss.arm.com ([217.140.101.70]:56806 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750745AbeBGWKn (ORCPT ); Wed, 7 Feb 2018 17:10:43 -0500 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 764191435; Wed, 7 Feb 2018 14:10:43 -0800 (PST) Received: from big-swifty.misterjones.org (usa-sjc-mx-foss1.foss.arm.com [217.140.101.70]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 8AC053F24D; Wed, 7 Feb 2018 14:10:40 -0800 (PST) Date: Wed, 07 Feb 2018 22:10:33 +0000 Message-ID: <86bmh0a1t2.wl-marc.zyngier@arm.com> From: Marc Zyngier To: Brian Norris Cc: Derek Basehore , linux-kernel@vger.kernel.org, Soby.Mathew@arm.com, sudeep.holla@arm.com, devicetree@vger.kernel.org, robh+dt@kernel.org, mark.rutland@arm.com, linux-pm@vger.kernel.org, rafael.j.wysocki@intel.com, tglx@linutronix.de Subject: Re: [PATCH v5 1/4] cpu_pm: add syscore_suspend error handling In-Reply-To: <20180207220155.GA106856@ban.mtv.corp.google.com> References: <20180207014117.62611-1-dbasehore@chromium.org> <20180207014117.62611-2-dbasehore@chromium.org> <04ebd1d9-b45b-df87-d59e-1a3df97f3371@arm.com> <20180207220155.GA106856@ban.mtv.corp.google.com> User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM/1.14.9 (=?ISO-8859-4?Q?Goj=F2?=) APEL/10.8 EasyPG/1.0.0 Emacs/25.1 (aarch64-unknown-linux-gnu) MULE/6.0 (HANACHIRUSATO) Organization: ARM Ltd MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 07 Feb 2018 22:01:56 +0000, Brian Norris wrote: Hi Brian, > Hi Marc, > > On Wed, Feb 07, 2018 at 08:57:27AM +0000, Marc Zyngier wrote: > > On 07/02/18 01:41, Derek Basehore wrote: > > > If cpu_cluster_pm_enter() fails, cpu_pm_exit() should be called. This > > > will put the CPU in the correct state to resume from the failure. > > > > > > Signed-off-by: Derek Basehore > > > --- > > > kernel/cpu_pm.c | 3 +++ > > > 1 file changed, 3 insertions(+) > > > > > > diff --git a/kernel/cpu_pm.c b/kernel/cpu_pm.c > > > index 67b02e138a47..03bcc0751a51 100644 > > > --- a/kernel/cpu_pm.c > > > +++ b/kernel/cpu_pm.c > > > @@ -186,6 +186,9 @@ static int cpu_pm_suspend(void) > > > return ret; > > > > > > ret = cpu_cluster_pm_enter(); > > > + if (ret) > > > + cpu_pm_exit(); > > > + > > > return ret; > > > } > > > > > > > > > > It is unclear to me why we need this patch as part of the ITS series. I > > probably fixes something for you, but I don't see the connection with > > the other patches. > > Ths bug was noticed (by inspection) along with earlier versions of this > series, when Derek was still adding new cpu_pm callbacks, and new > failure modes within the existing callbacks. It's a proper fix to my > knowledge, but I believe it no longer has any particular relevance to > this series, since we're not really touching cpu_pm in this series any > more. I don't doubt that this is a proper fix, but it has a better chance of being noticed on its own, rather than buried together with a now unrelated series. I'd suggest that when you or Derek respin this series, you don't include this patch, but instead post it on its own for review. Thanks, M. -- Jazz is not dead, it just smell funny.