Unverified Commit 5216ad71 authored by openeuler-ci-bot's avatar openeuler-ci-bot Committed by Gitee
Browse files

!615 Intel: Add RAPL support for Emerald Rapids(EMR)

Merge Pull Request from: @yunyingsun 
 
Running Average Power Limit (RAPL) is an interface for reporting accumulated energy consumption of various system-on-chip (SoC) power domains. The RAPL energy reporting feature has been available for many generations on Intel SoC products.

To enable perf collecting RAPL events on future Intel Xeon platform Emerald Rapids, below upstream commit is needed:
(v6.2-rc3)  57512b57 perf/x86/rapl: Add support for Intel Emerald Rapids

This patch uses a macro "INTEL_FAM6_EMERALDRAPIDS_X" which is introduced with upstream commit:
(v6.1-rc1) 7beade0d x86/cpu: Add several Intel server CPU model numbers
which has been backported to OLK-5.10 earlier with this PR(under review, not merged yet):
https://gitee.com/openeuler/kernel/pulls/469
So here setting PR-469 as a dependency of this RAPL backport.

Note: this PR must be merged AFTER PR-469, otherwise there will be kernel compiling error complaining for missing definition of macro "INTEL_FAM6_EMERALDRAPIDS_X".

Intel-Kernel Issue:
https://gitee.com/openeuler/intel-kernel/issues/I6YGL6

Test:
With the patches in this PR included, running command below will list energy-psys events on EMR:
$ perf list power | grep energy-psys
Without the patches, no energy-psys event is available.
It's verified that test is PASS on Intel EMR pre-production platform.

Known Issue:
N/A

Default config change:
N/A 
 
Link:https://gitee.com/openeuler/kernel/pulls/615

 

Reviewed-by: default avatarJason Zeng <jason.zeng@intel.com>
Signed-off-by: default avatarJialin Zhang <zhangjialin11@huawei.com>
parents f3014d9a 042c1f23
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment