]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
drivers/perf: hisi: Fixup one DDRC PMU register offset
authorShaokun Zhang <zhangshaokun@hisilicon.com>
Fri, 4 Jan 2019 06:21:34 +0000 (14:21 +0800)
committerWill Deacon <will.deacon@arm.com>
Fri, 4 Jan 2019 10:13:27 +0000 (10:13 +0000)
commiteb4f5213251833567570df1a09803f895653274d
tree59c4b4d47da39c21018cbeee75089dd25bab81f3
parent2f328fea47ac9020ac47c88dd01cd8f93da55bcc
drivers/perf: hisi: Fixup one DDRC PMU register offset

For DDRC PMU, each PMU counter is fixed-purpose. There is a mismatch
between perf list and driver definition on rw_chg event.
# perf list | grep chg
  hisi_sccl1_ddrc0/rnk_chg/                          [Kernel PMU event]
  hisi_sccl1_ddrc0/rw_chg/                           [Kernel PMU event]
But the register offset of rw_chg event is not defined in the driver,
meanwhile bnk_chg register offset is mis-defined, let's fixup it.

Fixes: 904dcf03f086 ("perf: hisi: Add support for HiSilicon SoC DDRC PMU driver")
Cc: stable@vger.kernel.org
Cc: John Garry <john.garry@huawei.com>
Cc: Will Deacon <will.deacon@arm.com>
Cc: Mark Rutland <mark.rutland@arm.com>
Reported-by: Weijian Huang <huangweijian4@hisilicon.com>
Signed-off-by: Shaokun Zhang <zhangshaokun@hisilicon.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
drivers/perf/hisilicon/hisi_uncore_ddrc_pmu.c