Bug 26819 - [devel-6.6] perf/zhaoxin/uncore: Enhance uncore support and fix related bugs
Summary: [devel-6.6] perf/zhaoxin/uncore: Enhance uncore support and fix related bugs
Status: NEW
Alias: None
Product: ANCK 6.6 Dev
Classification: ANCK
Component: X86 (show other bugs) X86
Version: unspecified
Hardware: All Linux
: P3-Medium S3-normal
Target Milestone: ---
Assignee: Guanjun
QA Contact: shuming
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-10-29 17:38 UTC by LeoLiu-oc
Modified: 2025-10-29 17:42 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 LeoLiu-oc zhaoxin_group 2025-10-29 17:38:45 UTC
This patch makes several improvements to Zhaoxin PMU uncore.

1. Zhaoxin uncore PMC driver control:
Adds kernel parameters zhaoxin_pmc_uncore={0|off} or
zhaoxin_pmc_uncore={1|on}. These parameters can be used to enable the
Zhaoxin uncore PMC driver during Linux kernel boot. By default, the driver
is disabled.
2. Fix PCI device conflict bug:
Resolves the previous PCI device conflict bug. For the PCI/MC/PXPTRF
devices which are based on PCI access, the method of accessing them has
been changed from probe to pci_get_device.
3. Fix MC bug on KX-7000:
Identifies and fixes a bug related to the MC on KX-7000.
When running the stream test and repeatedly executing the command
perf stat -e uncore_mc_a0/umask=0xf, event=0x1/ sleep 10
2~3 times, a large abnormal value occurs.
Debugging reveals that the read_counter function has an issue when reading
high-order data. This patch corrects this problem to ensure accurate
performance measurement and operation of the MC on KX-7000.
Comment 1 小龙 admin 2025-10-29 17:42:12 UTC
The PR Link: https://gitee.com/anolis/cloud-kernel/pulls/5938