Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp986991imu; Fri, 11 Jan 2019 12:46:17 -0800 (PST) X-Google-Smtp-Source: ALg8bN7T3gV/LKvy4oOCaO2q6Wf5+cDj4IgP8LSnpac01dltCgkIfMneRMnJ+m+qZ5oC0nbyqRsC X-Received: by 2002:a63:a401:: with SMTP id c1mr4675738pgf.403.1547239577035; Fri, 11 Jan 2019 12:46:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547239577; cv=none; d=google.com; s=arc-20160816; b=ORFzga1ErGRkBda9oSAYb6Oy9CB4cF9OFYV11i497njHQhmk09jKodunmXHUBriWTF 3orXh5YSeEwJlrKyvPR3b7Ar960/xjceVTfR91G0uJ6qwiQbJO10L8pMssM+UZSI7KYC zuWDH3bEE9kUm8PtVrojnZD1E2nm6XqpLCvdkabPkQ6UiG6LpNVWQ244x7QY01E+rAwI wYMM6RPR2fkjJGFgOEUwDnt5jUtpki3wQDdhdJbytd3VToXNYZ0M8Td2YH+JOUusCeRE Ts9Mcm2BYlICAefGOuz6mVdJPAmAS+iU5xuMumEPBEtPn4BWeuopKzNSfuDJvdPkG6L4 tH3w== 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=2DxViYMX94bVy/F8vvshUbodHldvAQboquKza+Kd5rE=; b=D4ubRvKSYj3ERTsSgpkNGt4GbHzAwznv8bKNuthumcaRBOb5DtSVWLxdZaaeF19yi7 4nZayrUTtmpAByiRWiXLzHUFZbmOCeDvnH6n2MnFAatzlGH0uGicdMTf4twPu7zxc6PN V7r8Ht3NSgPnYpWeHZ1fD+gpnRMeuhdQy1DPu7NrDnLRNmrYTuNF7Dk/cBuS+G0T/GX1 DIjSpQoHuT0dYKg1yaXVOuBG7mGRqYmMU+vHH2IWuf3M1eQ+D+3Roi7fTazSyNtUIfbr pA4vtTNpYi7cQlqv4ZCpG+4OEOH7CoNLFTV8t+LZZr6Pw4mC6pGUERZNPsZqnpR+Tlfm n8Rw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=JkeHizBP; 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 q70si19768101pgq.526.2019.01.11.12.46.02; Fri, 11 Jan 2019 12:46:16 -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=JkeHizBP; 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 S2404453AbfAKOnp (ORCPT + 99 others); Fri, 11 Jan 2019 09:43:45 -0500 Received: from mail.kernel.org ([198.145.29.99]:36640 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731160AbfAKOnn (ORCPT ); Fri, 11 Jan 2019 09:43:43 -0500 Received: from localhost (5356596B.cm-6-7b.dynamic.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 7A00A20872; Fri, 11 Jan 2019 14:43:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1547217823; bh=AOjTSP8+oOzFy3AyeXoURySFFCpvCzXd26iIUN+Ua3A=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=JkeHizBPhBIiuSoj+QzN/ZQsk8XPnJQyCsqUl57xHuJGwJByGM9I4W+pvo2EFam+f lnat5ojWmHWnx5EplgFSIexefh4pLNzPH6ePy7lVwUc3BNwE0IvVEegljMuQaf9we3 sKiXUbbQdj9QJtnJBikMRu3mmq1zAlF7Gxs52EUM= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, John Garry , Will Deacon , Mark Rutland , Weijian Huang , Shaokun Zhang Subject: [PATCH 4.20 54/65] drivers/perf: hisi: Fixup one DDRC PMU register offset Date: Fri, 11 Jan 2019 15:15:40 +0100 Message-Id: <20190111131103.476392289@linuxfoundation.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190111131055.331350141@linuxfoundation.org> References: <20190111131055.331350141@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review X-Patchwork-Hint: ignore 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 4.20-stable review patch. If anyone has any objections, please let me know. ------------------ From: Shaokun Zhang commit eb4f5213251833567570df1a09803f895653274d upstream. For DDRC PMU, each PMU counter is fixed-purpose. There is a mismatch between perf list and driver definition on rw_chg event. # perf list | grep chg hisi_sccl1_ddrc0/rnk_chg/ [Kernel PMU event] hisi_sccl1_ddrc0/rw_chg/ [Kernel PMU event] But the register offset of rw_chg event is not defined in the driver, meanwhile bnk_chg register offset is mis-defined, let's fixup it. Fixes: 904dcf03f086 ("perf: hisi: Add support for HiSilicon SoC DDRC PMU driver") Cc: stable@vger.kernel.org Cc: John Garry Cc: Will Deacon Cc: Mark Rutland Reported-by: Weijian Huang Signed-off-by: Shaokun Zhang Signed-off-by: Will Deacon Signed-off-by: Greg Kroah-Hartman --- drivers/perf/hisilicon/hisi_uncore_ddrc_pmu.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- a/drivers/perf/hisilicon/hisi_uncore_ddrc_pmu.c +++ b/drivers/perf/hisilicon/hisi_uncore_ddrc_pmu.c @@ -30,8 +30,8 @@ #define DDRC_FLUX_RCMD 0x38c #define DDRC_PRE_CMD 0x3c0 #define DDRC_ACT_CMD 0x3c4 -#define DDRC_BNK_CHG 0x3c8 #define DDRC_RNK_CHG 0x3cc +#define DDRC_RW_CHG 0x3d0 #define DDRC_EVENT_CTRL 0x6C0 #define DDRC_INT_MASK 0x6c8 #define DDRC_INT_STATUS 0x6cc @@ -51,7 +51,7 @@ static const u32 ddrc_reg_off[] = { DDRC_FLUX_WR, DDRC_FLUX_RD, DDRC_FLUX_WCMD, DDRC_FLUX_RCMD, - DDRC_PRE_CMD, DDRC_ACT_CMD, DDRC_BNK_CHG, DDRC_RNK_CHG + DDRC_PRE_CMD, DDRC_ACT_CMD, DDRC_RNK_CHG, DDRC_RW_CHG }; /*