]> git.baikalelectronics.ru Git - kernel.git/commit
perf: hisi: Add support for HiSilicon SoC DDRC PMU driver
authorShaokun Zhang <zhangshaokun@hisilicon.com>
Thu, 19 Oct 2017 11:05:20 +0000 (19:05 +0800)
committerWill Deacon <will.deacon@arm.com>
Thu, 19 Oct 2017 16:06:35 +0000 (17:06 +0100)
commit3cd34e0e4fae7b03e18d9289ba81a3f7c8e79036
treec9a4482bd8c5b33d64bc1220254d266bf3d6072d
parent9cdc8af63153f05add857e5e7ad1be5f025db510
perf: hisi: Add support for HiSilicon SoC DDRC PMU driver

This patch adds support for DDRC PMU driver in HiSilicon SoC chip, Each
DDRC has own control, counter and interrupt registers and is an separate
PMU. For each DDRC PMU, it has 8-fixed-purpose counters which have been
mapped to 8-events by hardware, it assumes that counter index is equal
to event code (0 - 7) in DDRC PMU driver. Interrupt is supported to
handle counter (32-bits) overflow.

Acked-by: Mark Rutland <mark.rutland@arm.com>
Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Signed-off-by: Shaokun Zhang <zhangshaokun@hisilicon.com>
Signed-off-by: Anurup M <anurup.m@huawei.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
drivers/perf/hisilicon/Makefile
drivers/perf/hisilicon/hisi_uncore_ddrc_pmu.c [new file with mode: 0644]
include/linux/cpuhotplug.h