From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1A136C46CA7 for ; Tue, 5 Dec 2023 04:04:15 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231280AbjLED4a (ORCPT ); Mon, 4 Dec 2023 22:56:30 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34784 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229611AbjLED42 (ORCPT ); Mon, 4 Dec 2023 22:56:28 -0500 Received: from szxga08-in.huawei.com (szxga08-in.huawei.com [45.249.212.255]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A1F76C6 for ; Mon, 4 Dec 2023 19:56:34 -0800 (PST) Received: from canpemm500009.china.huawei.com (unknown [172.30.72.56]) by szxga08-in.huawei.com (SkyGuard) with ESMTP id 4Skmp70yRHz1Q65W; Tue, 5 Dec 2023 11:52:47 +0800 (CST) Received: from [10.67.121.177] (10.67.121.177) by canpemm500009.china.huawei.com (7.192.105.203) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35; Tue, 5 Dec 2023 11:56:32 +0800 CC: , , , Subject: Re: [PATCH] drivers/perf: hisi: Fix some event id for HiSilicon UC pmu To: Junhao He , , , References: <20231204110425.20354-1-hejunhao3@huawei.com> From: Yicong Yang Message-ID: Date: Tue, 5 Dec 2023 11:56:32 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.5.1 MIME-Version: 1.0 In-Reply-To: <20231204110425.20354-1-hejunhao3@huawei.com> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.67.121.177] X-ClientProxiedBy: dggems701-chm.china.huawei.com (10.3.19.178) To canpemm500009.china.huawei.com (7.192.105.203) X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2023/12/4 19:04, Junhao He wrote: > Some event id of HiSilicon uncore UC PMU driver is incorrect, fix them. > > Fixes: 312eca95e28d ("drivers/perf: hisi: Add support for HiSilicon UC PMU driver") > Signed-off-by: Junhao He Reviewed-by: Yicong Yang > --- > drivers/perf/hisilicon/hisi_uncore_uc_pmu.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/drivers/perf/hisilicon/hisi_uncore_uc_pmu.c b/drivers/perf/hisilicon/hisi_uncore_uc_pmu.c > index 63da05e5831c..636fb79647c8 100644 > --- a/drivers/perf/hisilicon/hisi_uncore_uc_pmu.c > +++ b/drivers/perf/hisilicon/hisi_uncore_uc_pmu.c > @@ -383,8 +383,8 @@ static struct attribute *hisi_uc_pmu_events_attr[] = { > HISI_PMU_EVENT_ATTR(cpu_rd, 0x10), > HISI_PMU_EVENT_ATTR(cpu_rd64, 0x17), > HISI_PMU_EVENT_ATTR(cpu_rs64, 0x19), > - HISI_PMU_EVENT_ATTR(cpu_mru, 0x1a), > - HISI_PMU_EVENT_ATTR(cycles, 0x9c), > + HISI_PMU_EVENT_ATTR(cpu_mru, 0x1c), > + HISI_PMU_EVENT_ATTR(cycles, 0x95), > HISI_PMU_EVENT_ATTR(spipe_hit, 0xb3), > HISI_PMU_EVENT_ATTR(hpipe_hit, 0xdb), > HISI_PMU_EVENT_ATTR(cring_rxdat_cnt, 0xfa), >