1
0
mirror of https://git.FreeBSD.org/src.git synced 2026-06-02 11:24:32 +00:00

pmc: add sapphire rapids model

This commit adds the sapphire rapids CPU model to hwpmc_intel.c,
allowing hwpmc to be used on this CPU family.

Reviewed by:	mhorne
MFC after:	3 days
Sponsored by:	Stormshield
Differential Revision:	https://reviews.freebsd.org/D57263
This commit is contained in:
Anaelle Cazuc
2026-05-28 13:28:32 -03:00
committed by Mitchell Horne
parent 510ee6698d
commit 03c69dd901
2 changed files with 5 additions and 0 deletions
+4
View File
@@ -266,6 +266,10 @@ pmc_intel_initialize(void)
cputype = PMC_CPU_INTEL_EMERALD_RAPIDS;
nclasses = 3;
break;
case 0x8F:
cputype = PMC_CPU_INTEL_SAPPHIRE_RAPIDS;
nclasses = 3;
break;
}
break;
}
+1
View File
@@ -111,6 +111,7 @@ extern char pmc_cpuid[PMC_CPUID_LEN];
__PMC_CPU(INTEL_ALDERLAKEN, 0xA1, "Intel AlderlakeN") \
__PMC_CPU(INTEL_GRANITE_RAPIDS, 0xA2, "Intel Granite Rapids") \
__PMC_CPU(INTEL_METEOR_LAKE, 0xA3, "Intel Meteorlake") \
__PMC_CPU(INTEL_SAPPHIRE_RAPIDS, 0xA4, "Intel Sapphire Rapids") \
__PMC_CPU(PPC_7450, 0x300, "PowerPC MPC7450") \
__PMC_CPU(PPC_E500, 0x340, "PowerPC e500 Core") \
__PMC_CPU(PPC_970, 0x380, "IBM PowerPC 970") \