perf/marvell: CN10k DDR performance monitor support
authorBharat Bhushan <bbhushan2@marvell.com>
Fri, 11 Feb 2022 04:53:44 +0000 (10:23 +0530)
committerWill Deacon <will@kernel.org>
Tue, 8 Mar 2022 11:17:37 +0000 (11:17 +0000)
commit7cf83e222bce0f135f9c2714a49623cbb9fbde29
tree74aca2bf8c0215fa016e1253ba76bd6f51b4443c
parent805bbdf28b271ed82b204cfd58b6eb456462ea49
perf/marvell: CN10k DDR performance monitor support

Marvell CN10k DRAM Subsystem (DSS) supports eight event counters for
monitoring performance and software can program each counter to monitor
any of the defined performance event. Performance events are for
interface between the DDR controller and the PHY, interface between the
DDR Controller and the CHI interconnect, or within the DDR Controller.
Additionally DSS also supports two fixed performance event counters, one
for number of ddr reads and other for ddr writes.

This patch add basic support for these performance monitoring events
on CN10k.

Signed-off-by: Bharat Bhushan <bbhushan2@marvell.com>
Reviewed-by: Bhaskara Budiredla <bbudiredla@marvell.com>
Link: https://lore.kernel.org/r/20220211045346.17894-3-bbhushan2@marvell.com
Signed-off-by: Will Deacon <will@kernel.org>
drivers/perf/Makefile
drivers/perf/marvell_cn10k_ddr_pmu.c [new file with mode: 0644]