From 70a3eae3a3bc2230687f9c8210eca6762277aa2a Mon Sep 17 00:00:00 2001 From: leoliu-oc Date: Mon, 9 Mar 2026 10:56:22 +0800 Subject: [PATCH] perf/zhaoxin/core: Tailor FMS for KH-50000 zhaoxin inclusion category: feature -------------------- This patch adds support for CPU model 0x7b in the Zhaoxin PMU driver. It extends the existing switch statement in `zhaoxin_pmu_init` to handle this new CPU model, which is similar to the 0x6b model. Reviewed-by: Tony W. Wang Tested-by: Lyle Li Signed-off-by: leoliu-oc --- arch/x86/events/zhaoxin/core.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/x86/events/zhaoxin/core.c b/arch/x86/events/zhaoxin/core.c index 687c2d8a25ff..61cb6582d8c2 100644 --- a/arch/x86/events/zhaoxin/core.c +++ b/arch/x86/events/zhaoxin/core.c @@ -646,6 +646,7 @@ __init int zhaoxin_pmu_init(void) break; case 0x5b: case 0x6b: + case 0x7b: zx_pmon_event_map[PERF_COUNT_HW_STALLED_CYCLES_FRONTEND] = X86_CONFIG(.event = 0x02, .umask = 0x01, .inv = 0x01, .cmask = 0x01); @@ -661,7 +662,7 @@ __init int zhaoxin_pmu_init(void) if (boot_cpu_data.x86_model == 0x5b) pr_cont("Yongfeng events, "); - if (boot_cpu_data.x86_model == 0x6b) + if (boot_cpu_data.x86_model == 0x6b || boot_cpu_data.x86_model == 0x7b) pr_cont("Shijidadao events, "); break; -- Gitee