Forum | Documentation | Website | Blog

Skip to content
Snippets Groups Projects
Commit cf7b6107 authored by Shuai Xue's avatar Shuai Xue Committed by Will Deacon
Browse files

drivers/perf: add DDR Sub-System Driveway PMU driver for Yitian 710 SoC


Add the DDR Sub-System Driveway Performance Monitoring Unit (PMU) driver
support for Alibaba T-Head Yitian 710 SoC chip. Yitian supports DDR5/4
DRAM and targets cloud computing and HPC.

Each PMU is registered as a device in /sys/bus/event_source/devices, and
users can select event to monitor in each sub-channel, independently. For
example, ali_drw_21000 and ali_drw_21080 are two PMU devices for two
sub-channels of the same channel in die 0. And the PMU device of die 1 is
prefixed with ali_drw_400XXXXX, e.g. ali_drw_40021000.

Due to hardware limitation, one of DDRSS Driveway PMU overflow interrupt
shares the same irq number with MPAM ERR_IRQ. To register DDRSS PMU and
MPAM drivers successfully, add IRQF_SHARED flag.

Signed-off-by: default avatarShuai Xue <xueshuai@linux.alibaba.com>
Co-developed-by: default avatarHongbo Yao <yaohongbo@linux.alibaba.com>
Signed-off-by: default avatarHongbo Yao <yaohongbo@linux.alibaba.com>
Co-developed-by: default avatarNeng Chen <nengchen@linux.alibaba.com>
Signed-off-by: default avatarNeng Chen <nengchen@linux.alibaba.com>
Reviewed-by: default avatarJonathan Cameron <Jonathan.Cameron@huawei.com>
Reviewed-by: default avatarBaolin Wang <baolin.wang@linux.alibaba.com>
Link: https://lore.kernel.org/r/20220818031822.38415-3-xueshuai@linux.alibaba.com


Signed-off-by: default avatarWill Deacon <will@kernel.org>
parent a6f92909
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment