Skip to content

Commit

Permalink
drivers/perf: hisi: Fix wrong value for all counters enable
Browse files Browse the repository at this point in the history
In L3C uncore PMU drivers, bit16 is used to control all counters enable &
disable. Wrong value is given in the driver and its default value is 1'b1,
it can work because each PMU counter has its own control bits too.
Let's fix the wrong value.

Fixes: 2940bc4 ("perf: hisi: Add support for HiSilicon SoC L3C PMU driver")
Signed-off-by: Shaokun Zhang <zhangshaokun@hisilicon.com>
Cc: Will Deacon <will@kernel.org>
Cc: Mark Rutland <mark.rutland@arm.com>
Link: https://lore.kernel.org/r/1591350221-32275-1-git-send-email-zhangshaokun@hisilicon.com
Signed-off-by: Will Deacon <will@kernel.org>
  • Loading branch information
Shaokun Zhang authored and Will Deacon committed Jun 8, 2020
1 parent 91970be commit 961abd7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/perf/hisilicon/hisi_uncore_l3c_pmu.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
/* L3C has 8-counters */
#define L3C_NR_COUNTERS 0x8

#define L3C_PERF_CTRL_EN 0x20000
#define L3C_PERF_CTRL_EN 0x10000
#define L3C_EVTYPE_NONE 0xff

/*
Expand Down

0 comments on commit 961abd7

Please sign in to comment.