Bug 19176 - Fix performance monitor for Hygon family 18h processor
Summary: Fix performance monitor for Hygon family 18h processor
Status: NEW
Alias: None
Product: ANCK 5.10 Dev
Classification: ANCK
Component: X86 (show other bugs) X86
Version: unspecified
Hardware: All Linux
: P3-Medium S3-normal
Target Milestone: ---
Assignee: Guanjun
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-03-02 16:30 UTC by liaoxuan
Modified: 2025-03-04 15:41 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description liaoxuan hygon_group 2025-03-02 16:30:30 UTC
The commit d5210a86e51f ("perf/x86/amd/core: Update and fix
stalled-cycles-* events for Zen 2 and later") changed
amd_f17h_perfmon_event_map to amd_zen1_perfmon_event_map
which is limited to processors only with X86_FEATURE_ZEN1.

This makes some event counters such as cache-misses and
cache-references can not be tracked on Hygon family 18h processors.
When using perf tool to monitor performance, the result will be
listed as follows:
  0    cache-miesses  #  0.000 % of all cache refs
  0    cache-references

So add perfmon_event_map support for Hygon family 18h processors
to fix the incorrect display.
Comment 1 liaoxuan hygon_group 2025-03-02 16:30:38 UTC
v5.10:
Comment 2 小龙 admin 2025-03-04 11:24:17 UTC
The PR Link: https://gitee.com/anolis/cloud-kernel/pulls/4752
Comment 3 小龙 admin 2025-03-04 15:41:29 UTC
The PR Link: https://gitee.com/anolis/cloud-kernel/pulls/4767