Bug 28936 - AMD Turin/Genoa perf UMC patches for OpenAnolis 6.6 kernel
Summary: AMD Turin/Genoa perf UMC patches for OpenAnolis 6.6 kernel
Status: NEW
Alias: None
Product: ANCK 6.6 Dev
Classification: ANCK
Component: X86 (show other bugs) X86
Version: 6.6.25-2.2
Hardware: All Linux
: P3-Medium S3-normal
Target Milestone: ---
Assignee: Guanjun
QA Contact: shuming
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-12-29 14:15 UTC by NarasimharaoPVS
Modified: 2025-12-29 20:01 UTC (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description NarasimharaoPVS 2025-12-29 14:15:34 UTC
Description of problem:

perf/x86/amd/uncore: Fix DF and UMC domain identification
perf/x86/amd/uncore: Avoid PMU registration if counters are unavailable
perf vendor events amd: Add Zen 4 memory controller events
perf/x86/amd/uncore: Pass through error code for initialization failures, instead of -ENODEV
perf/x86/amd/uncore: Fix uninitialized return value in amd_uncore_init()
perf/x86/amd/uncore: Add memory controller support
perf/x86/amd/uncore: Add group exclusivity
perf/x86/amd/uncore: Use rdmsr if rdpmc is unavailable
perf/x86/amd/uncore: Move discovery and registration
perf/x86/amd/uncore: Refactor uncore management

Version-Release number of selected component (if applicable):

kernel-6.6

How reproducible:
$ cd /tools/perf
$ make perf 
$ ./perf

Steps to Reproduce:
1.
2.
3.

Actual results:

[ perf]$ sudo ./perf stat -a -e amd_umc/umc_cas_cmd.all/ -- sleep 1
Performance counter stats for 'system wide':
         	1,314,906      amd_umc/umc_cas_cmd.all/
       	1.003616768 seconds time elapsed
 
[ perf]$ sudo ./perf stat -a  -e amd_umc_0/umc_cas_cmd.all/ \
  		-e amd_umc_4/umc_cas_cmd.all/ -- sleep 1
Performance counter stats for 'system wide':
            	93,364      amd_umc_0/umc_cas_cmd.all/
            	85,003      amd_umc_4/umc_cas_cmd.all/
       	1.003245951 seconds time elapsed

Expected results:
[ perf]$ sudo ./perf stat -a -e amd_umc/umc_cas_cmd.all/ -- sleep 1
Performance counter stats for 'system wide':
         	1,314,906      amd_umc/umc_cas_cmd.all/
       	1.003616768 seconds time elapsed
 
[ perf]$ sudo ./perf stat -a  -e amd_umc_0/umc_cas_cmd.all/ \
  		-e amd_umc_4/umc_cas_cmd.all/ -- sleep 1
Performance counter stats for 'system wide':
            	93,364      amd_umc_0/umc_cas_cmd.all/
            	85,003      amd_umc_4/umc_cas_cmd.all/
       	1.003245951 seconds time elapsed
Comment 1 小龙 admin 2025-12-29 20:01:30 UTC
The PR Link: https://gitee.com/anolis/cloud-kernel/pulls/6285