From 75692fa06e439ce1eed46a7cdf8609b1bbd7d587 Mon Sep 17 00:00:00 2001 From: Qi Liu Date: Thu, 27 Mar 2025 10:56:34 +0800 Subject: [PATCH] perf/x86/uncore: Add DF PMU 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 | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/x86/events/amd/uncore.c b/arch/x86/events/amd/uncore.c index 5bc616a638f0..0a6c567683b0 100644 --- a/arch/x86/events/amd/uncore.c +++ b/arch/x86/events/amd/uncore.c @@ -246,6 +246,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; } -- Gitee