Received: by 10.223.176.5 with SMTP id f5csp1170154wra; Wed, 7 Feb 2018 14:03:22 -0800 (PST) X-Google-Smtp-Source: AH8x225yT02s8OX/IWlyZ3xCi7g0J9C3Fak7Ll/ysDJaQXmpfofnZu6aFJ1ohPl9PmqA5YG0jCPF X-Received: by 2002:a17:902:7848:: with SMTP id e8-v6mr7528533pln.386.1518041002417; Wed, 07 Feb 2018 14:03:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518041002; cv=none; d=google.com; s=arc-20160816; b=uc0zKoPvzZIXpx2PoACN6lmbL98IDlppR7JD+q+gkstaLMAvqjVWS8TDx+nF4SMzgn E6sQwQJO2EHXc2XjX7QoaWPtFJ3WVpLvi/qnKXqUIP0/aBowhy+sGh+SCCRa+NQsBP22 FiTGijJIhwN0lmaqbb1GgEHIhawPKn14xDnnxxL1tob9o8sDhEK3PyrQYIvR9yva1U5z 5h7HfrBotGCqjZNWkGogKig/rOWqEvW0K2P/1l4gq22WOiOVGuP7vrf4Ilhp8tYuNmRn 8C1GkKVkwjQgNAhAUH8cTUWZOE1qqoIIBfI3zWgdv2FsfsLgBhI1GW7eA7JX7Jxa0MqE ZHGQ== 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-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=vlcd0tXOuJqhwMtvcCJr4979KmjL35GSMkbLOGRB/Kk=; b=clmZ9BBLomTlfVQBo1heRdn/BFFhfe8HNKgFTmgtBq8NSoOml7JzEvKU1YPOo9AxAv ucrTqzJUl6RJ+sWEhKCchaXwgNTdg4KxGsyNSlRNU2esbHnDgNRxvnQH7cnFblZYciY5 HAv4qLtX76LeE4277VHwl5gYJAks8DGme45dLWrN6ZNcGornbA5JrRLvTaxDou77zWo/ 1Z+aIpa/I9Is+3WF9srPbI1ZLw28VrjUKpu4L9HuC6S3PY2ZJwPFj9rxIjUcWRQbdTHu H3MhX6Hcl2Fn55mSBfRWl4KmqKamcci/Kt/NGht5wBdR2IKlzKVQc8+Br8n03Yr5SvFG Y4vA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=RVXvYdcm; 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=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l59-v6si83727plb.391.2018.02.07.14.03.08; Wed, 07 Feb 2018 14:03:22 -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=@chromium.org header.s=google header.b=RVXvYdcm; 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=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751130AbeBGWCC (ORCPT + 99 others); Wed, 7 Feb 2018 17:02:02 -0500 Received: from mail-pg0-f65.google.com ([74.125.83.65]:39342 "EHLO mail-pg0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750729AbeBGWCA (ORCPT ); Wed, 7 Feb 2018 17:02:00 -0500 Received: by mail-pg0-f65.google.com with SMTP id w17so844450pgv.6 for ; Wed, 07 Feb 2018 14:01:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=vlcd0tXOuJqhwMtvcCJr4979KmjL35GSMkbLOGRB/Kk=; b=RVXvYdcmK/CZ/wfMmRT/tvrLUyE/q2jtLzsH1miwentcZi2Q4gMdwSCkoXA9H6vzEN CUTVsIRZ7hWoHDddgywpDp1JqiHyZG1TI6H4BGY9VZcm1vDWMF0s14/K6+z0fryWAUs/ d3W+7F2exniFllYCB7+giE72k2DyuMPw5K5rg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=vlcd0tXOuJqhwMtvcCJr4979KmjL35GSMkbLOGRB/Kk=; b=Fm2DA8Is/7ZFOgxbwpDHA79Z7SUHE51eboMb6BjQ90CRNtQQqo8w82Agdg704IdMBB R23rBGloIqGjKQ+JZPsEHgbCGN/VfQn1ni4xlh4IZVHthf/7lcmKnVO6kUExbeysNxEa hEnVFetPO7uKlH6lKg9BPEuAAKh0M2zRRJ1rYVyUlY1WogsmAkciORL7wACcWY1OgbXF xtTZaoe/ZRZ19TLLrWVC23d7zL9pZypKSnCNUoC9q2EjRQ3EEc/4qLurajZIGLGqyiR0 MgS9XeeIQDu4q5YpeqQPehNwZ/ZQIgeXxQ1rby/Z8ii//dmeCP68gmvkZxL40mQgkSlX YRHQ== X-Gm-Message-State: APf1xPCsaEC+/vv+7Yl+Bu2riESke18uTWFqpphRIWf9dFL/JI+4vOfw a7t/PDJH6VtrJTXn9wnLWtB3cQ== X-Received: by 10.101.68.202 with SMTP id g10mr6213038pgs.210.1518040919515; Wed, 07 Feb 2018 14:01:59 -0800 (PST) Received: from ban.mtv.corp.google.com ([172.22.113.17]) by smtp.gmail.com with ESMTPSA id w9sm5810264pfl.74.2018.02.07.14.01.58 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 07 Feb 2018 14:01:58 -0800 (PST) Date: Wed, 7 Feb 2018 14:01:56 -0800 From: Brian Norris To: Marc Zyngier 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 Message-ID: <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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <04ebd1d9-b45b-df87-d59e-1a3df97f3371@arm.com> User-Agent: Mutt/1.9.2 (2017-12-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. Brian