Bug 8052 - [devel-5.10] Add performance events support for Zhaoxin
Summary: [devel-5.10] Add performance events support for Zhaoxin
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: shuming
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-01-25 16:55 UTC by LeoLiu-oc
Modified: 2024-06-25 10:28 UTC (History)
2 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 2024-01-25 16:55:48 UTC
commit fd636b6a9bc6034f2e5bb869658898a2b472c037 upstream.

Some of Nano series processors will lead GP when accessing
PMC fixed counter. Meanwhile, their hardware support for PMC
has not announced externally. So exclude Nano CPUs from ZXC
by checking stepping information. This is an unambiguous way
to differentiate between ZXC and Nano CPUs.

Following are Nano and ZXC FMS information:
Nano FMS: Family=6, Model=F, Stepping=[0-A][C-D]
ZXC FMS:  Family=6, Model=F, Stepping=E-F OR
          Family=6, Model=0x19, Stepping=0-3

Fixes: 3a4ac12 ("x86/perf: Add hardware performance events support for Zhaoxin CPU.")

Reported-by: Arjan <8vvbbqzo567a@nospam.xutrox.com>
Reported-by: Kevin Brace <kevinbrace@gmx.com>
Signed-off-by: silviazhao <silviazhao-oc@zhaoxin.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://bugzilla.kernel.org/show_bug.cgi?id=212389
Comment 1 LeoLiu-oc zhaoxin_group 2024-01-26 10:11:21 UTC
Add uncore performance events support for Zhaoxin CPU。
Comment 2 小龙 admin 2024-01-26 10:27:47 UTC
The PR Link: https://gitee.com/anolis/cloud-kernel/pulls/2674
Comment 3 小龙 admin 2024-06-25 10:28:51 UTC
The PR Link: https://gitee.com/anolis/cloud-kernel/pulls/3410