mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] drivers/perf: hisi: Fix some event id for HiSilicon UC pmu
@ 2023-12-04 11:04 Junhao He
  2023-12-05  3:56 ` Yicong Yang
  2023-12-05 15:16 ` Will Deacon
  0 siblings, 2 replies; 3+ messages in thread
From: Junhao He @ 2023-12-04 11:04 UTC (permalink / raw)
  To: will, jonathan.cameron, linux-kernel
  Cc: linux-arm-kernel, linuxarm, yangyicong, prime.zeng, hejunhao3

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 <hejunhao3@huawei.com>
---
 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),
-- 
2.33.0


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] drivers/perf: hisi: Fix some event id for HiSilicon UC pmu
  2023-12-04 11:04 [PATCH] drivers/perf: hisi: Fix some event id for HiSilicon UC pmu Junhao He
@ 2023-12-05  3:56 ` Yicong Yang
  2023-12-05 15:16 ` Will Deacon
  1 sibling, 0 replies; 3+ messages in thread
From: Yicong Yang @ 2023-12-05  3:56 UTC (permalink / raw)
  To: Junhao He, will, jonathan.cameron, linux-kernel
  Cc: yangyicong, linux-arm-kernel, linuxarm, prime.zeng

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 <hejunhao3@huawei.com>

Reviewed-by: Yicong Yang <yangyicong@hisilicon.com>

> ---
>  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),
> 

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] drivers/perf: hisi: Fix some event id for HiSilicon UC pmu
  2023-12-04 11:04 [PATCH] drivers/perf: hisi: Fix some event id for HiSilicon UC pmu Junhao He
  2023-12-05  3:56 ` Yicong Yang
@ 2023-12-05 15:16 ` Will Deacon
  1 sibling, 0 replies; 3+ messages in thread
From: Will Deacon @ 2023-12-05 15:16 UTC (permalink / raw)
  To: jonathan.cameron, Junhao He, linux-kernel
  Cc: catalin.marinas, kernel-team, Will Deacon, linuxarm, yangyicong,
	prime.zeng, linux-arm-kernel

On Mon, 4 Dec 2023 19:04:25 +0800, Junhao He wrote:
> Some event id of HiSilicon uncore UC PMU driver is incorrect, fix them.
> 
> 

Applied to will (for-next/perf), thanks!

[1/1] drivers/perf: hisi: Fix some event id for HiSilicon UC pmu
      https://git.kernel.org/will/c/38bbef7240b8

Cheers,
-- 
Will

https://fixes.arm64.dev
https://next.arm64.dev
https://will.arm64.dev

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2023-12-05 15:16 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-12-04 11:04 [PATCH] drivers/perf: hisi: Fix some event id for HiSilicon UC pmu Junhao He
2023-12-05  3:56 ` Yicong Yang
2023-12-05 15:16 ` Will Deacon

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®