Skip to content

Commit 2016e21

Browse files
Jiucheng Xuwilldeacon
authored andcommitted
perf/amlogic: Add support for Amlogic meson G12 SoC DDR PMU driver
Add support for Amlogic Meson G12 Series SOC - DDR bandwidth PMU driver framework and interfaces. The PMU can not only monitor the total DDR bandwidth, but also individual IP module bandwidth. Signed-off-by: Jiucheng Xu <[email protected]> Tested-by: Chris Healy <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Will Deacon <[email protected]>
1 parent dcc7f00 commit 2016e21

File tree

8 files changed

+1048
-0
lines changed

8 files changed

+1048
-0
lines changed

MAINTAINERS

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1093,6 +1093,14 @@ S: Maintained
10931093
F: Documentation/hid/amd-sfh*
10941094
F: drivers/hid/amd-sfh-hid/
10951095

1096+
AMLOGIC DDR PMU DRIVER
1097+
M: Jiucheng Xu <[email protected]>
1098+
1099+
S: Supported
1100+
W: http://www.amlogic.com
1101+
F: drivers/perf/amlogic/
1102+
F: include/soc/amlogic/
1103+
10961104
AMPHION VPU CODEC V4L2 DRIVER
10971105
M: Ming Qian <[email protected]>
10981106
M: Shijie Qin <[email protected]>

drivers/perf/Kconfig

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,4 +201,6 @@ config MARVELL_CN10K_DDR_PMU
201201

202202
source "drivers/perf/arm_cspmu/Kconfig"
203203

204+
source "drivers/perf/amlogic/Kconfig"
205+
204206
endmenu

drivers/perf/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,4 @@ obj-$(CONFIG_MARVELL_CN10K_DDR_PMU) += marvell_cn10k_ddr_pmu.o
2222
obj-$(CONFIG_APPLE_M1_CPU_PMU) += apple_m1_cpu_pmu.o
2323
obj-$(CONFIG_ALIBABA_UNCORE_DRW_PMU) += alibaba_uncore_drw_pmu.o
2424
obj-$(CONFIG_ARM_CORESIGHT_PMU_ARCH_SYSTEM_PMU) += arm_cspmu/
25+
obj-$(CONFIG_MESON_DDR_PMU) += amlogic/

drivers/perf/amlogic/Kconfig

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# SPDX-License-Identifier: GPL-2.0-only
2+
config MESON_DDR_PMU
3+
tristate "Amlogic DDR Bandwidth Performance Monitor"
4+
depends on ARCH_MESON || COMPILE_TEST
5+
help
6+
Provides support for the DDR performance monitor
7+
in Amlogic SoCs, which can give information about
8+
memory throughput and other related events. It
9+
supports multiple channels to monitor the memory
10+
bandwidth simultaneously.

drivers/perf/amlogic/Makefile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# SPDX-License-Identifier: GPL-2.0-only
2+
3+
obj-$(CONFIG_MESON_DDR_PMU) += meson_ddr_pmu_g12.o
4+
5+
meson_ddr_pmu_g12-y := meson_ddr_pmu_core.o meson_g12_ddr_pmu.o

0 commit comments

Comments
 (0)