Skip to content

Commit 7f949f6

Browse files
Jing Zhangwilldeacon
authored andcommitted
perf/arm-cmn: Fix the unhandled overflow status of counter 4 to 7
The register por_dt_pmovsr Bits[7:0] indicates overflow from counters 7 to 0. But in arm_cmn_handle_irq(), only handled the overflow status of Bits[3:0] which results in unhandled overflow status of counters 4 to 7. So let the overflow status of DTC counters 4 to 7 to be handled. Fixes: 0ba6477 ("perf: Add Arm CMN-600 PMU driver") Signed-off-by: Jing Zhang <renyu.zj@linux.alibaba.com> Reviewed-by: Robin Murphy <robin.murphy@arm.com> Link: https://lore.kernel.org/r/1695612152-123633-1-git-send-email-renyu.zj@linux.alibaba.com Signed-off-by: Will Deacon <will@kernel.org>
1 parent 44a5b6b commit 7f949f6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/perf/arm-cmn.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1972,7 +1972,7 @@ static irqreturn_t arm_cmn_handle_irq(int irq, void *dev_id)
19721972
u64 delta;
19731973
int i;
19741974

1975-
for (i = 0; i < CMN_DTM_NUM_COUNTERS; i++) {
1975+
for (i = 0; i < CMN_DT_NUM_COUNTERS; i++) {
19761976
if (status & (1U << i)) {
19771977
ret = IRQ_HANDLED;
19781978
if (WARN_ON(!dtc->counters[i]))

0 commit comments

Comments
 (0)