Received: by 2002:a25:b794:0:0:0:0:0 with SMTP id n20csp2750818ybh; Mon, 5 Aug 2019 06:16:37 -0700 (PDT) X-Google-Smtp-Source: APXvYqwYOboqU2ZEkquJr8DOU59U/j0f+/zeC9DqV8NhmkqRFwODhA6lUiGXJVZVkDCN6L5dyAE2 X-Received: by 2002:a63:d34c:: with SMTP id u12mr122408188pgi.114.1565010997697; Mon, 05 Aug 2019 06:16:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565010997; cv=none; d=google.com; s=arc-20160816; b=IgFjA/f4wZhZ+B7vyXmjUNy+Zn96oTvUc+9lZvAojoEfdBh9BQyqPtMJwB+4GhH5eq /lFBzL8fYjQlUBy+Xsv1nL2CdJhhS5+EJP5DCi7t13svcKzNOvEAFxMT84lze55cGfJF DeBdiF9+qAFXrhFsqq0JTW0PWN8y54Kuf4MamRzNDRFP+70A6GZmOsM8p5JRLV6VZHTi 33YavymvrmzUQIj1JsWTpav+ba4VGsC/r667y5fcThxsCoa3KWhtX6kyewmat5+U+grr ci4SVUMjYypdhsFfPtUZyZ5/UsLoZOailt7i7ALyQ/IFdFLs0XFaIG1AG3Whig5dGkxQ zQCA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=1fTMK1haiNag4vIdQqMpvMCOhSyc4nE9HB4TSG/rF6E=; b=Rh44i2h3OsMOk5GmBjzYz5kHIwiErcECBpF2PG8YoO+DfltWcSnDUGDQtqpHF7N1Bc gyUN7aAkgqPZPtUn8upicfbyYtkGOumppMc2xnxZwIpn75vxH72zHuq8kFa5PciHbmnH kgRW3gIUOI41OZL0BbV5R7XsiGuRxQcw5KpaV0Vit+iyBFJhPKwVF6HAxQMOvIDpxe9q HJJ+k0S4x7lCci+4JgT3c+yZ+ZUDljojtQQz86UooixepMHmu9rjKk3hiwTxNS3Xxg0y ouMxFERBnVAW3IvtEAl6X98lkowJI+Q50Omg0olNRSICZhM1D0VeDLJj+cZJcl8xynIt /7iQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=IrsnswP4; 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 d1si44310928pgq.540.2019.08.05.06.16.22; Mon, 05 Aug 2019 06:16:37 -0700 (PDT) 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=IrsnswP4; 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 S1730110AbfHENI6 (ORCPT + 99 others); Mon, 5 Aug 2019 09:08:58 -0400 Received: from mail.kernel.org ([198.145.29.99]:47138 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729675AbfHENIx (ORCPT ); Mon, 5 Aug 2019 09:08:53 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 9313621738; Mon, 5 Aug 2019 13:08:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1565010533; bh=VfcaByF7r95+yEsTsJOfHLZKb5vPPTHlHaR+VpYo8vM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=IrsnswP480g+xix10oSQbQ8+T+IYksYb5eF/kntb/uMHIoBkN51j6Z/TYI9NyebM6 PXPZe0ndwwRShyROfx/C2ocHdUhYkgcMp2BP8otgPMWooflRnASYL5SQNIJ64HrgT7 6fqoPQHyr/oFjf39mWnRKIfhtvHSUF7AFljTvkZw= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Anders Roxell , Lorenzo Pieralisi , Will Deacon Subject: [PATCH 4.14 42/53] drivers/perf: arm_pmu: Fix failure path in PM notifier Date: Mon, 5 Aug 2019 15:03:07 +0200 Message-Id: <20190805124932.694154877@linuxfoundation.org> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20190805124927.973499541@linuxfoundation.org> References: <20190805124927.973499541@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Will Deacon commit 0d7fd70f26039bd4b33444ca47f0e69ce3ae0354 upstream. Handling of the CPU_PM_ENTER_FAILED transition in the Arm PMU PM notifier code incorrectly skips restoration of the counters. Fix the logic so that CPU_PM_ENTER_FAILED follows the same path as CPU_PM_EXIT. Cc: Fixes: da4e4f18afe0f372 ("drivers/perf: arm_pmu: implement CPU_PM notifier") Reported-by: Anders Roxell Acked-by: Lorenzo Pieralisi Signed-off-by: Will Deacon Signed-off-by: Greg Kroah-Hartman --- drivers/perf/arm_pmu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/perf/arm_pmu.c +++ b/drivers/perf/arm_pmu.c @@ -751,8 +751,8 @@ static int cpu_pm_pmu_notify(struct noti cpu_pm_pmu_setup(armpmu, cmd); break; case CPU_PM_EXIT: - cpu_pm_pmu_setup(armpmu, cmd); case CPU_PM_ENTER_FAILED: + cpu_pm_pmu_setup(armpmu, cmd); armpmu->start(armpmu); break; default: