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.
The PR Link: https://gitee.com/anolis/cloud-kernel/pulls/6252