Skip to contentSkip to conversation

perf/x86: Add Airmont NP

PATCH Applied Martin Schiller 3 participants 9 messages Nov 24, 2025 – Dec 17, 2025

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

cover perf/x86: Add Airmont NP

From the perspective of Intel cstate, PMU and MSR the Airmont NP (aka Lightning Mountain) is identical to Airmont.

This changes are taken from patched kernel sources of the MaxLinear SDK which can be found at https://github.com/maxlinear/linux

Martin Schiller (3):
perf/x86/msr: Add Airmont NP
perf/x86/intel: Add Airmont NP
perf/x86/cstate: Add Airmont NP

 arch/x86/events/intel/core.c   | 1 +
 arch/x86/events/intel/cstate.c | 1 +
 arch/x86/events/msr.c          | 1 +
 3 files changed, 3 insertions(+)
Signature · 1 line
2.47.3
#1 lore raw

PATCH 1/3 perf/x86/msr: Add Airmont NP

Like Airmont, the Airmont NP (aka Intel / MaxLinear Lightning Mountain) supports SMI_COUNT MSR.

---
 arch/x86/events/msr.c | 1 +
 1 file changed, 1 insertion(+)
arch/x86/events/msr.c +1 -0
index 7f5007a4752a..8052596b8503 100644
@@ -78,6 +78,7 @@ static bool test_intel(int idx, void *data)
 	case INTEL_ATOM_SILVERMONT:
 	case INTEL_ATOM_SILVERMONT_D:
 	case INTEL_ATOM_AIRMONT:
+	case INTEL_ATOM_AIRMONT_NP:
 
 	case INTEL_ATOM_GOLDMONT:
 	case INTEL_ATOM_GOLDMONT_D:
Signature · 1 line
2.47.3
#3 lore raw

PATCH 2/3 perf/x86/intel: Add Airmont NP

In reply to Martin Schiller

The Intel / MaxLinear Airmont NP (aka Lightning Mountain) supports the same architectual and non-architecural events as Airmont.

---
 arch/x86/events/intel/core.c | 1 +
 1 file changed, 1 insertion(+)
arch/x86/events/intel/core.c +1 -0
index fe65be0b9d9c..641008590a17 100644
@@ -7024,6 +7024,7 @@ __init int intel_pmu_init(void)
 	case INTEL_ATOM_SILVERMONT_D:
 	case INTEL_ATOM_SILVERMONT_MID:
 	case INTEL_ATOM_AIRMONT:
+	case INTEL_ATOM_AIRMONT_NP:
 	case INTEL_ATOM_SILVERMONT_MID2:
 		memcpy(hw_cache_event_ids, slm_hw_cache_event_ids,
 			sizeof(hw_cache_event_ids));
Signature · 1 line
2.47.3
#5 lore raw

PATCH 3/3 perf/x86/cstate: Add Airmont NP

In reply to Martin Schiller

From the perspective of Intel cstate residency counters, the Airmont NP (aka Lightning Mountain) is identical to the Airmont.

---
 arch/x86/events/intel/cstate.c | 1 +
 1 file changed, 1 insertion(+)
arch/x86/events/intel/cstate.c +1 -0
index ec753e39b007..531dba5a8095 100644
@@ -599,6 +599,7 @@ static const struct x86_cpu_id intel_cstates_match[] __initconst = {
 	X86_MATCH_VFM(INTEL_ATOM_SILVERMONT,	&slm_cstates),
 	X86_MATCH_VFM(INTEL_ATOM_SILVERMONT_D,	&slm_cstates),
 	X86_MATCH_VFM(INTEL_ATOM_AIRMONT,	&slm_cstates),
+	X86_MATCH_VFM(INTEL_ATOM_AIRMONT_NP,	&slm_cstates),
 
 	X86_MATCH_VFM(INTEL_BROADWELL,		&snb_cstates),
 	X86_MATCH_VFM(INTEL_BROADWELL_D,	&snb_cstates),
Signature · 1 line
2.47.3
Reviewed-by on the v1 series
#7 lore raw
In reply to Martin Schiller
Quoted 11 lines · Martin Schiller

From the perspective of Intel cstate, PMU and MSR the Airmont NP (aka Lightning Mountain) is identical to Airmont.

This changes are taken from patched kernel sources of the MaxLinear SDK which can be found at https://github.com/maxlinear/linux

Martin Schiller (3):
perf/x86/msr: Add Airmont NP
perf/x86/intel: Add Airmont NP
perf/x86/cstate: Add Airmont NP

Quoted 4 lines
 arch/x86/events/intel/core.c   | 1 +
 arch/x86/events/intel/cstate.c | 1 +
 arch/x86/events/msr.c          | 1 +
 3 files changed, 3 insertions(+)

The whole patch-set looks good to me.

#8 lore raw
Quoted 12 lines · Dapeng
Quoted 11 lines · Martin Schiller

From the perspective of Intel cstate, PMU and MSR the Airmont NP (aka Lightning Mountain) is identical to Airmont.

This changes are taken from patched kernel sources of the MaxLinear SDK which can be found at https://github.com/maxlinear/linux

Martin Schiller (3):
perf/x86/msr: Add Airmont NP
perf/x86/intel: Add Airmont NP
perf/x86/cstate: Add Airmont NP

Quoted 8 lines
Quoted 4 lines
 arch/x86/events/intel/core.c   | 1 +
 arch/x86/events/intel/cstate.c | 1 +
 arch/x86/events/msr.c          | 1 +
 3 files changed, 3 insertions(+)

The whole patch-set looks good to me.

Thanks for your review.

Is there anything left I need to do to ensure that these changes get merged?

Regards,
Martin

#4 lore raw

[tip: perf/core] perf/x86/intel: Add Airmont NP

In reply to Martin Schiller
The following commit has been merged into the perf/core branch of tip:

The following commit has been merged into the perf/core branch of tip:

Commit-ID:     a08340fd291671c54d379d285b2325490ce90ddd
Gitweb:        https://git.kernel.org/tip/a08340fd291671c54d379d285b2325490ce90ddd
Author:        Martin Schiller <[email protected]>
AuthorDate:    Mon, 24 Nov 2025 08:48:45 +01:00
Committer:     Peter Zijlstra <[email protected]>
CommitterDate: Wed, 17 Dec 2025 13:31:08 +01:00

perf/x86/intel: Add Airmont NP

The Intel / MaxLinear Airmont NP (aka Lightning Mountain) supports the same architectual and non-architecural events as Airmont.

---
 arch/x86/events/intel/core.c | 1 +
 1 file changed, 1 insertion(+)
arch/x86/events/intel/core.c +1 -0
index 0553c11..1840ca1 100644
@@ -7410,6 +7410,7 @@ __init int intel_pmu_init(void)
 	case INTEL_ATOM_SILVERMONT_D:
 	case INTEL_ATOM_SILVERMONT_MID:
 	case INTEL_ATOM_AIRMONT:
+	case INTEL_ATOM_AIRMONT_NP:
 	case INTEL_ATOM_SILVERMONT_MID2:
 		memcpy(hw_cache_event_ids, slm_hw_cache_event_ids,
 			sizeof(hw_cache_event_ids));
#6 lore raw

[tip: perf/core] perf/x86/cstate: Add Airmont NP

In reply to Martin Schiller
The following commit has been merged into the perf/core branch of tip:

The following commit has been merged into the perf/core branch of tip:

Commit-ID:     3006911f284d769b0f66c12b39da130325ef1440
Gitweb:        https://git.kernel.org/tip/3006911f284d769b0f66c12b39da130325ef1440
Author:        Martin Schiller <[email protected]>
AuthorDate:    Mon, 24 Nov 2025 08:48:46 +01:00
Committer:     Peter Zijlstra <[email protected]>
CommitterDate: Wed, 17 Dec 2025 13:31:09 +01:00

perf/x86/cstate: Add Airmont NP

Quoted 1 line

From the perspective of Intel cstate residency counters, the Airmont NP

(aka Lightning Mountain) is identical to the Airmont.

---
 arch/x86/events/intel/cstate.c | 1 +
 1 file changed, 1 insertion(+)
arch/x86/events/intel/cstate.c +1 -0
index 1e2658b..f3d5ee0 100644
@@ -613,6 +613,7 @@ static const struct x86_cpu_id intel_cstates_match[] __initconst = {
 	X86_MATCH_VFM(INTEL_ATOM_SILVERMONT,	&slm_cstates),
 	X86_MATCH_VFM(INTEL_ATOM_SILVERMONT_D,	&slm_cstates),
 	X86_MATCH_VFM(INTEL_ATOM_AIRMONT,	&slm_cstates),
+	X86_MATCH_VFM(INTEL_ATOM_AIRMONT_NP,	&slm_cstates),
 
 	X86_MATCH_VFM(INTEL_BROADWELL,		&snb_cstates),
 	X86_MATCH_VFM(INTEL_BROADWELL_D,	&snb_cstates),
#2 lore raw

[tip: perf/core] perf/x86/msr: Add Airmont NP

In reply to Martin Schiller
The following commit has been merged into the perf/core branch of tip:

The following commit has been merged into the perf/core branch of tip:

Commit-ID:     63dbadcafc1f4d1da796a8e2c0aea1e561f79ece
Gitweb:        https://git.kernel.org/tip/63dbadcafc1f4d1da796a8e2c0aea1e561f79ece
Author:        Martin Schiller <[email protected]>
AuthorDate:    Mon, 24 Nov 2025 08:48:44 +01:00
Committer:     Peter Zijlstra <[email protected]>
CommitterDate: Wed, 17 Dec 2025 13:31:08 +01:00

perf/x86/msr: Add Airmont NP

Like Airmont, the Airmont NP (aka Intel / MaxLinear Lightning Mountain) supports SMI_COUNT MSR.

---
 arch/x86/events/msr.c | 1 +
 1 file changed, 1 insertion(+)
arch/x86/events/msr.c +1 -0
index 7f5007a..8052596 100644
@@ -78,6 +78,7 @@ static bool test_intel(int idx, void *data)
 	case INTEL_ATOM_SILVERMONT:
 	case INTEL_ATOM_SILVERMONT_D:
 	case INTEL_ATOM_AIRMONT:
+	case INTEL_ATOM_AIRMONT_NP:
 
 	case INTEL_ATOM_GOLDMONT:
 	case INTEL_ATOM_GOLDMONT_D: