Skip to content

Commit 111396b

Browse files
liaoxuan123YuntongJin
authored andcommitted
perf/x86/uncore: Add DF PMU support for Hygon family 18h model 18h
commit dbab1265fda0034466e3d7b1d7c4e1877fbf84d2 anolis. ANBZ: #30150 Adjust the DF PMU event and umask for Hygon family 18h model 18h processor. Hygon-SIG: commit none hygon anolis: perf/x86/uncore: Add DF PMU support for Hygon family 18h model 18h Hygon-SIG: commit dbab1265fda0 anolis anolis: perf/x86/uncore: Add DF PMU support for Hygon family 18h model 18h Backport from anolis to support Hygon family 18h model 18h Signed-off-by: Liao Xuan <liaoxuan@hygon.cn> Cc: hygon-arch@list.openanolis.cn Reviewed-by Guixin Liu <kanie@linux.alibaba.com> Link: https://gitee.com/anolis/cloud-kernel/pulls/6464 [ YuntongJin: amend commit log, fix conflict ] Signed-off-by: YuntongJin <jinyuntong@hygon.cn>
1 parent c8241cf commit 111396b

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

arch/x86/events/amd/uncore.c

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -742,10 +742,8 @@ static int __init amd_uncore_init(void)
742742
if (boot_cpu_data.x86_model == 0x4 ||
743743
boot_cpu_data.x86_model == 0x5)
744744
*df_attr++ = &format_attr_umask10f18h.attr;
745-
else if (boot_cpu_data.x86_model == 0x6 ||
746-
boot_cpu_data.x86_model == 0x7 ||
747-
boot_cpu_data.x86_model == 0x8 ||
748-
boot_cpu_data.x86_model == 0x10)
745+
else if (boot_cpu_data.x86_model >= 0x6 &&
746+
boot_cpu_data.x86_model <= 0x18)
749747
*df_attr++ = &format_attr_umask12f18h.attr;
750748
}
751749

0 commit comments

Comments
 (0)