perf/x86: Add Airmont NP
Subsystems (2)
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
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
@@ -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
[tip: perf/core] perf/x86/msr: Add Airmont NP
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
@@ -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 :
PATCH 2/3 perf/x86/intel: Add Airmont NP
In reply to Martin SchillerThe 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
@@ -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
[tip: perf/core] perf/x86/intel: Add Airmont NP
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
@@ -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));
PATCH 3/3 perf/x86/cstate: Add Airmont NP
In reply to Martin SchillerFrom 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
@@ -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
[tip: perf/core] perf/x86/cstate: Add Airmont NP
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
@@ -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),
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.
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.
Reviewed-by Dapeng Mi <[email protected]>
Thanks for your review.
Is there anything left I need to do to ensure that these changes get merged?
Regards,
Martin