Bug 28374 - [devel-5.10] x86/perf/zhaoxin: Add uncore performance monitoring support
Summary: [devel-5.10] x86/perf/zhaoxin: Add uncore performance monitoring support
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-12-23 14:55 UTC by LeoLiu-oc
Modified: 2025-12-23 15:00 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 LeoLiu-oc zhaoxin_group 2025-12-23 14:55:00 UTC
Anolis kernel devel-5.10 branch need add uncore performance monitoring support for Zhaoxin
processors. The implementation provides performance counter access for
various uncore components across different Zhaoxin processor models.

Key features:
- Support for multiple Zhaoxin processor families: KX5000/KX6000,
  KH40000 (Yongfeng)
- Monitoring capabilities for uncore components including LLC, MESH,
  HOMESTOP, CCDie ZDI_PL, cIODie ZDI_PL, Memory Controller, and ZDI_DL_MMIO
- Topology detection for packages, dies, subnodes, and clusters
- MSR-based counter reading and configuration
- Support for both fixed and configurable performance counters
- Per-CPU topology information tracking
- Event constraint handling and proper CPU model-specific configuration

Files added:
- arch/x86/events/zhaoxin/uncore.c: Main uncore PMU implementation
- arch/x86/events/zhaoxin/uncore.h: Header definitions for uncore support

Files modified:
- arch/x86/events/zhaoxin/Makefile: Added uncore.o build target
- arch/x86/events/zhaoxin/core.c: Updated core PMU support with host/guest
  masking

The implementation follows the Linux perf framework's uncore PMU model,
providing a consistent interface for performance monitoring tools to access
uncore counters.
Comment 1 小龙 admin 2025-12-23 15:00:32 UTC
The PR Link: https://gitee.com/anolis/cloud-kernel/pulls/6252