Skip to contentSkip to conversation

drivers/perf: hisi: Fix some event id for HiSilicon UC pmu

PATCH Applied Junhao He 3 participants 3 messages Dec 4, 2023 – Dec 5, 2023

Subsystems (2)
lore
Share & tools
lore

Junhao He

author
#0 lore raw

PATCH 1/1 drivers/perf: hisi: Fix some event id for HiSilicon UC pmu

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")
---
 drivers/perf/hisilicon/hisi_uncore_uc_pmu.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/perf/hisilicon/hisi_uncore_uc_pmu.c +2 -2
index 63da05e5831c..636fb79647c8 100644
@@ -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),
Signature · 1 line
2.33.0
Reviewed-by on v1 1/1
#1 lore raw
Quoted 4 lines · Junhao He

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")
Quoted 10 lines
---
 drivers/perf/hisilicon/hisi_uncore_uc_pmu.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/perf/hisilicon/hisi_uncore_uc_pmu.c +0 -0
index 63da05e5831c..636fb79647c8 100644

drivers/perf/hisilicon/hisi_uncore_uc_pmu.c static struct attribute *hisi_uc_pmu_events_attr[] = { · line 390

Quoted 10 lines
drivers/perf/hisilicon/hisi_uncore_uc_pmu.c +2 -2
@@ -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),

_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

maintainer Applied
#2 lore raw
In reply to Junhao He
Quoted 3 lines · Junhao He

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,

Signature · 5 lines
Will

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