Received: by 10.223.185.116 with SMTP id b49csp310232wrg; Fri, 2 Mar 2018 19:59:03 -0800 (PST) X-Google-Smtp-Source: AG47ELt5mToLyO9c0PnJ6cKCxn5McxKJ/rIIAMBQxQEoXpIoELItSWYkmSIRaOqvQVfS4peWgFTb X-Received: by 10.99.167.2 with SMTP id d2mr6230932pgf.408.1520049543299; Fri, 02 Mar 2018 19:59:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520049543; cv=none; d=google.com; s=arc-20160816; b=ook1oMumOmi7wSi/PgSptFgR9Xb7sjnfOgzvmqYVXHR9BARrb41iEK9h7Tme1bpi5S iMX5mFm+9aaVDB1Te6paUTFA98c8ILI+KKr/gIY4Ka7FD1Wvlgd/RFmR/qGEhNSgGkpy DhO89YBerLJrHsmLGRm7qDkkqjzweHLHfGvdQzkI+anoDC1EkCB+GMMaxL/6rrpfACaz D62J7p6wx2oqKrJnQJOZNQWdNSLaZhPagoCiTTHzjjw917lzKZN3yocwJMtWJPg56wim j5ftDy06NPxbxpb72ueQelLcHvWNPL9Rcimon3VnwmAgvY4Pqppl0WEQjkDOH9K9+4nX AxqA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature:dkim-signature :arc-authentication-results; bh=g4qAV4qNPeBj/sIV/i06M5fia7RRmxpaXQec6OR01+s=; b=raTaV9r4SSIz9/XWUg4+JDVVlGQOWPh02qEh/Z6mX2Pc+69EGUdunBTdOmR93XkCHQ Tka3vFFTxoAKxMGq6a7QagfuUvwC04BE9K5Gfl6QZ7JXZGdfKUcd4jHpk7A2HUtBfceK oSlongIq+jNZ+y24SjSbFlPTHjaR9HaY2juR2wDXlwjOrYdEozei+4o3FJ1ZxzCJ6Q71 /BUhRSXcjWXzFekz8Llyn2/qHtmQg+9EXP6tlZzXrHjRiFl5LGTXbHcaho8XeDjOm3i5 4G42Q5t0J/n2JT2seHZde0FI0Y+n171OWgi0C/sHJek6qQWa7yklFCsrX/myqRrvaANB OGjA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@google.com header.s=20161025 header.b=ZP0qLors; dkim=fail header.i=@chromium.org header.s=google header.b=L6eTAZfK; 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=fail (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 h18si5919322pfi.31.2018.03.02.19.58.49; Fri, 02 Mar 2018 19:59:03 -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=fail header.i=@google.com header.s=20161025 header.b=ZP0qLors; dkim=fail header.i=@chromium.org header.s=google header.b=L6eTAZfK; 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=fail (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S964956AbeCCBXR (ORCPT + 99 others); Fri, 2 Mar 2018 20:23:17 -0500 Received: from mail-wm0-f54.google.com ([74.125.82.54]:53550 "EHLO mail-wm0-f54.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S964863AbeCCBXP (ORCPT ); Fri, 2 Mar 2018 20:23:15 -0500 Received: by mail-wm0-f54.google.com with SMTP id t74so6261290wme.3 for ; Fri, 02 Mar 2018 17:23:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=g4qAV4qNPeBj/sIV/i06M5fia7RRmxpaXQec6OR01+s=; b=ZP0qLorsqjtNCIbsJjOEzCv1wpUvPHZNR3HDVCtgvktWA2nGQcuL+/CdfqcCtU7MB9 NBV1PDEtMrFeeiwBp+B1obmyDCFEf/3pvYZtksWoP0oajocpAqWOJMn+yktHrjqI6feH an0LG8w+wFkvFp8ujr3noE6aXOYnmHd+vEnZXMxtifX9cYenZv77003MXWx9/gaBJiH3 B5D8enmT26XktCdCFtXtAXUU3MyZJVw+w3T9YnmFBtjjdh4wUs4m0wjJmUQ9HhGY6FwK 1xnop5uYLgrwl71ca6+CyCt+vgT7EM2WV3SannIHB2U/dgwa8oV/2ukuCkLJo5MUr1xi JBtw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=g4qAV4qNPeBj/sIV/i06M5fia7RRmxpaXQec6OR01+s=; b=L6eTAZfKybS4UKvFJeKuv0A9VCTxrnNb7JtpQxkpev6A3NpFqlpgHv11W1yqe13c3M BBrFiMPkji8FtzAr5Z8/xok+3tbykdNLC+4Gcpty7WJU7xQZyZ7ltx+uNuQgf+EdI0L/ TuIY8WMA44uKzjArCyuXmoB0tJ8hvqYSRDu5s= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=g4qAV4qNPeBj/sIV/i06M5fia7RRmxpaXQec6OR01+s=; b=aL+yl7WMea9tXv8YaUTb4XieFA0QlNgrxksO26e/RTgBoOsRE1s4QO8easfKDTJ9me 3zSjfIRREMgJtySqVBnXvLznazYWAvjLjHsNIqiwoQYLui63XvtcoteEpPblRIYKIKeD 4w42FHeR7e/iqo1XLGPtwSjb7fLTEGzt2LB04yu/UMMUxMKj1b+Pqnzge+UUMuWZibiT jp0fKQU73aUaqikVWUIvgLJOSz093EDwGffzc9bP0vtyhEfJjG1lDRNCBJ34vwP5UZ55 Jdv1IJ050MrSbo0vDl4l55pMppVL48ve2Rxid/GfC1XtPAa6CMeKAWqegTgqWwAohbOq r9zQ== X-Gm-Message-State: AElRT7GSVULxYOt86fIx/1OMKzxsrziN715mzVvns0SX3ZT2CkjkneWc 1kttOkQADjpMKRu5MsEy1Jnu2j8GivquCDAwysrofzeOG28= X-Received: by 10.28.72.136 with SMTP id v130mr2645399wma.87.1520040194414; Fri, 02 Mar 2018 17:23:14 -0800 (PST) MIME-Version: 1.0 Received: by 10.28.160.10 with HTTP; Fri, 2 Mar 2018 17:23:13 -0800 (PST) In-Reply-To: <20180301083950.esonqqg2m5noofdp@linutronix.de> References: <20180301032754.146788-1-dbasehore@chromium.org> <20180301083950.esonqqg2m5noofdp@linutronix.de> From: "dbasehore ." Date: Fri, 2 Mar 2018 17:23:13 -0800 X-Google-Sender-Auth: ozBquMV7kho3Xiaffg5bCRykPF0 Message-ID: Subject: Re: [PATCH] cpu_pm: add syscore_suspend error handling To: Sebastian Andrzej Siewior Cc: linux-kernel , "Wysocki, Rafael J" , alex.shi@linaro.org, Brian Norris , Marc Zyngier Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Mar 1, 2018 at 12:39 AM, Sebastian Andrzej Siewior wrote: > On 2018-02-28 19:27:54 [-0800], 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. > > Was this triggered or found on review? Either way it was introduced in > 6f3eaec87b6b ("cpu_pm: call notifiers during suspend") > and I might need a stable tag. It was found during review. I was able to verify that this is a bug, though. The Rockchip RK3399 doesn't use cluster idle except during suspend. If I just return an error for cpu_cluster_pm_enter, the machine wedges. Including this patch makes it error out of suspend gracefully. > >> Signed-off-by: Derek Basehore > > Sebastian