Unverified Commit 1fe70419 authored by openeuler-ci-bot's avatar openeuler-ci-bot Committed by Gitee
Browse files

!4387 intel: backport uncore freq control tpmi support for BHS platform

Merge Pull Request from: @jiayingbao 
 
Implement support of uncore frequency control via TPMI (Topology Aware
Register and PM Capsule Interface). This driver provides the similar
functionality as the current uncore frequency driver using MSRs.

The scope of the uncore MSRs is package/die. But new generation of CPUs
have more granular control at a cluster level. Each package/die can have
multiple power domains, which further can have multiple clusters. The
TPMI interface allows control at cluster level.

The primary use case for uncore sysfs is to set maximum and minimum
uncore frequency to reduce power consumption or latency. The current
uncore sysfs control is per package/die. This is enough for the majority
of users as workload will move to different power domains as it moves
between different CPUs.

The TPMI documentation can be downloaded from:
https://github.com/intel/tpmi_power_management

Test:
uncore freq sysfs work as expected

config:
+CONFIG_INTEL_UNCORE_FREQ_CONTROL=m
+CONFIG_INTEL_UNCORE_FREQ_CONTROL_TPMI=m 
 
Link:https://gitee.com/openeuler/kernel/pulls/4387

 

Reviewed-by: default avatarLiu Chao <liuchao173@huawei.com>
Reviewed-by: default avatarJason Zeng <jason.zeng@intel.com>
Signed-off-by: default avatarJialin Zhang <zhangjialin11@huawei.com>
parents 17c4a028 79372d16
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment