]> git.ipfire.org Git - thirdparty/linux.git/commit
PM / devfreq: Add HiSilicon uncore frequency scaling driver
authorJie Zhan <zhanjie9@hisilicon.com>
Mon, 23 Jun 2025 14:34:01 +0000 (22:34 +0800)
committerChanwoo Choi <cw00.choi@samsung.com>
Mon, 14 Jul 2025 11:23:57 +0000 (20:23 +0900)
commit7da2fdaaa1e6062686ac96a9f096c2d7847533e4
treeda82708bc2846771f20e66765e23baed124fc062
parent45b9d1da6ca0d0285140f8779793b537e4560d45
PM / devfreq: Add HiSilicon uncore frequency scaling driver

Add the HiSilicon uncore frequency scaling driver for Kunpeng SoCs based on
the devfreq framework.  The uncore domain contains shared computing
resources, including system interconnects and L3 cache.  The uncore
frequency significantly impacts the system-wide performance as well as
power consumption.  This driver adds support for runtime management of
uncore frequency from kernel and userspace.  The main function includes
setting and getting frequencies, changing frequency scaling policies, and
querying the list of CPUs whose performance is significantly related to
this uncore frequency domain, etc.  The driver communicates with a platform
controller through an ACPI PCC mailbox to take the actual actions of
frequency scaling.

Co-developed-by: Lifeng Zheng <zhenglifeng1@huawei.com>
Signed-off-by: Lifeng Zheng <zhenglifeng1@huawei.com>
Reviewed-by: Jonathan Cameron <jonathan.cameron@huawei.com>
Reviewed-by: Huisong Li <lihuisong@huawei.com>
Signed-off-by: Jie Zhan <zhanjie9@hisilicon.com>
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
Link: https://patchwork.kernel.org/project/linux-pm/patch/20250623143401.4095045-3-zhanjie9@hisilicon.com/
Documentation/ABI/testing/sysfs-class-devfreq
drivers/devfreq/Kconfig
drivers/devfreq/Makefile
drivers/devfreq/hisi_uncore_freq.c [new file with mode: 0644]