Description of problem: From core PMU's perspective, Emerald Rapids is the same as the Sapphire Rapids. The enabling patches are mainly adding EMR CPUID to PMU kernel drivers. Upstream enabling commits, including the dependencies: (v6.2-rc6) 5a8a05f165fb perf/x86/intel/cstate: Add Emerald Rapids (v5.18-rc4) 528c9f1daf20 perf/x86/cstate: Add SAPPHIRERAPIDS_X CPU support (v5.14-rc1) 87bf399f86ec perf/x86/cstate: Add ICELAKE_X and ICELAKE_D support (v6.2-rc6) 6795e558e9cc perf/x86/intel: Add Emerald Rapids (v6.2-rc4) 5268a2842066 perf/x86/intel/uncore: Add Emerald Rapids (v6.2-rc4) 69ced4160969 perf/x86/msr: Add Emerald Rapids Version-Release number of selected component (if applicable): How reproducible: Steps to Reproduce: 1. 2. 3. Actual results: Expected results: Additional info: Without the enabling patches, platform dependent PMU events will not be available, like L1-dcache-loads. After backport, such events will be available and work fine with perf tool.
The PR Link: https://gitee.com/anolis/cloud-kernel/pulls/1596