From f1277e39494e5bccd7bd2c2ec46a52c7cbe952d0 Mon Sep 17 00:00:00 2001 From: Qi Liu Date: Thu, 27 Mar 2025 14:24:20 +0800 Subject: [PATCH] perf/x86/uncore: Add support for Hygon family 18h model 8h Adjust the DF PMU event and umask for Hygon family 18h model 8h processor. Signed-off-by: Qi Liu --- arch/x86/events/amd/uncore.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/x86/events/amd/uncore.c b/arch/x86/events/amd/uncore.c index dd2f869c33cd..af14e78a1697 100644 --- a/arch/x86/events/amd/uncore.c +++ b/arch/x86/events/amd/uncore.c @@ -234,6 +234,7 @@ static int amd_uncore_event_init(struct perf_event *event) event_mask = HYGON_F18H_M4H_RAW_EVENT_MASK_NB; if (boot_cpu_data.x86_model == 0x6 || boot_cpu_data.x86_model == 0x7 || + boot_cpu_data.x86_model == 0x8 || boot_cpu_data.x86_model == 0x10) event_mask = HYGON_F18H_M6H_RAW_EVENT_MASK_NB; } @@ -648,6 +649,7 @@ static int __init amd_uncore_init(void) *df_attr++ = &format_attr_umask10f18h.attr; else if (boot_cpu_data.x86_model == 0x6 || boot_cpu_data.x86_model == 0x7 || + boot_cpu_data.x86_model == 0x8 || boot_cpu_data.x86_model == 0x10) *df_attr++ = &format_attr_umask12f18h.attr; } -- Gitee