Commit f6c1b4fb authored by silviazhao's avatar silviazhao Committed by sanglipeng
Browse files

x86/perf/zhaoxin: Add stepping check for ZXC

stable inclusion
from stable-v5.10.173
commit 895cb50196ab4bcd53959385aafec593bbd23755
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I8BFR3

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=895cb50196ab4bcd53959385aafec593bbd23755



--------------------------------

[ Upstream commit fd636b6a ]

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: 3a4ac121 ("x86/perf: Add hardware performance events support for Zhaoxin CPU.")

Reported-by: default avatarArjan <8vvbbqzo567a@nospam.xutrox.com>
Reported-by: default avatarKevin Brace <kevinbrace@gmx.com>
Signed-off-by: default avatarsilviazhao <silviazhao-oc@zhaoxin.com>
Signed-off-by: default avatarPeter Zijlstra (Intel) <peterz@infradead.org>
Link: https://bugzilla.kernel.org/show_bug.cgi?id=212389


Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
Signed-off-by: default avatarsanglipeng <sanglipeng1@jd.com>
parent 9bfc4be5
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment