diff mbox series

drivers/perf: hisi: Fix PA PMU counter offset

Message ID 20210928123022.23467-1-zhangshaokun@hisilicon.com (mailing list archive)
State New, archived
Headers show
Series drivers/perf: hisi: Fix PA PMU counter offset | expand

Commit Message

Shaokun Zhang Sept. 28, 2021, 12:30 p.m. UTC
The PA PMU counter offset was correct in [1] and the driver has
already been verified. We want to keep the register offset using
lower case character in later version that is consistent with
the existed driver. Since there was no functional change, we
didn't do more test. However there is typo when modified the PA
PMU counter offset by mistake, so fix this bad mistake.

[1] https://www.spinics.net/lists/arm-kernel/msg865263.html

Cc: Will Deacon <will@kernel.org>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: John Garry <john.garry@huawei.com>
Cc: Qi Liu <liuqi115@huawei.com>
Signed-off-by: Shaokun Zhang <zhangshaokun@hisilicon.com>
---
 drivers/perf/hisilicon/hisi_uncore_pa_pmu.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Will Deacon Oct. 4, 2021, 3:34 p.m. UTC | #1
On Tue, 28 Sep 2021 20:30:22 +0800, Shaokun Zhang wrote:
> The PA PMU counter offset was correct in [1] and the driver has
> already been verified. We want to keep the register offset using
> lower case character in later version that is consistent with
> the existed driver. Since there was no functional change, we
> didn't do more test. However there is typo when modified the PA
> PMU counter offset by mistake, so fix this bad mistake.
> 
> [...]

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

[1/1] drivers/perf: hisi: Fix PA PMU counter offset
      https://git.kernel.org/will/c/16cc4af286aa

Cheers,
diff mbox series

Patch

diff --git a/drivers/perf/hisilicon/hisi_uncore_pa_pmu.c b/drivers/perf/hisilicon/hisi_uncore_pa_pmu.c
index 83264ec0a957..bad99d149172 100644
--- a/drivers/perf/hisilicon/hisi_uncore_pa_pmu.c
+++ b/drivers/perf/hisilicon/hisi_uncore_pa_pmu.c
@@ -27,7 +27,7 @@ 
 #define PA_INT_CLEAR			0x1c7c
 #define PA_EVENT_TYPE0			0x1c80
 #define PA_PMU_VERSION			0x1cf0
-#define PA_EVENT_CNT0_L			0x1f00
+#define PA_EVENT_CNT0_L			0x1d00
 
 #define PA_EVTYPE_MASK			0xff
 #define PA_NR_COUNTERS			0x8