From nobody Tue Dec 2 01:04:37 2025 Received: from mxout70.expurgate.net (mxout70.expurgate.net [194.37.255.70]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1DA622DFA2D; Mon, 24 Nov 2025 08:06:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=194.37.255.70 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1763971619; cv=none; b=Zka3u4bVWHYIzOJJOGwXUCZYNCuC3Vv/UbDQMpmGV0t+7AAD48H95giiCPAkqxOpfh2UwznklpOz6RXsKf3D5gVT0pK65PqH5pd6oj++cLTzEU8ArvjMFXyvhwPbBmGIJZMR75lhbameHy71h2B+wrzeEh3YwVanWPL7yEfelwA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1763971619; c=relaxed/simple; bh=F9uJWD3rUKowmv2igq5Yy2Vrg6075o+kqKNns1F/Yec=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=bBkO1BIQbJWE/2RPJni7wOg8druzD47c3PfNyQDgXFlyDxvVrb9x/JyZlUwVrfytaN88be2EpHZWiKWe49TlRtzgxtHuyImEs7It3JfaatEEluxeedIJDioXNte243oFf+wZTi28wdrHAkxCfOv+kqC/UBmIxLeCTy/2scT4mfE= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=dev.tdt.de; spf=pass smtp.mailfrom=dev.tdt.de; dkim=temperror (0-bit key) header.d=dev.tdt.de header.i=@dev.tdt.de header.b=RBfdOTmj; arc=none smtp.client-ip=194.37.255.70 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=dev.tdt.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=dev.tdt.de Authentication-Results: smtp.subspace.kernel.org; dkim=temperror (0-bit key) header.d=dev.tdt.de header.i=@dev.tdt.de header.b="RBfdOTmj" Received: from [194.37.255.9] (helo=mxout.expurgate.net) by relay.expurgate.net with smtp (Exim 4.92) (envelope-from ) id 1vNRK8-003IZD-TZ; Mon, 24 Nov 2025 08:49:24 +0100 Received: from [195.243.126.94] (helo=securemail.tdt.de) by relay.expurgate.net with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1vNRK8-0041zS-76; Mon, 24 Nov 2025 08:49:24 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dev.tdt.de; s=z1-selector1; t=1763970563; bh=7chVPCZERRAnG3trSITIQxhj4xyFY+6yUYn8lmvoLfs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=RBfdOTmj+8JOvGg6/6Ihq0IVkSET84D7r3LOCtCHKxOGVuJz6crQhfl7ExY10gb83 dFTB3mV6edj+NJSkJB8n7nee7iE2pJbVOq6mBdlSiq6YFyaf5gt6qI7QeZaQRWFix3 3TI3MSfHlgv7ZyHThTAP7/hl4mtBpousDMpbN/fkq6fWWVeoaNg69SVDaWGhHSaqLI teLkp1EEgeCbiFjRjHGCMbxjDXlfa1cyoaPEjiGKBe7tZV7lWFs+UUW+/0OG/QCscJ QRp7jJhK3JWmQHHZAgxGbE+YaZdblYVpNTG7+Ole2vozx5Ju0CEVE3xoc3BXEae2Vn G1yTl/B5H2a2Q== Received: from securemail.tdt.de (localhost [127.0.0.1]) by securemail.tdt.de (Postfix) with ESMTP id B59DF240042; Mon, 24 Nov 2025 08:49:23 +0100 (CET) Received: from mail.dev.tdt.de (unknown [10.2.4.42]) by securemail.tdt.de (Postfix) with ESMTP id AB516240036; Mon, 24 Nov 2025 08:49:23 +0100 (CET) Received: from mschillerX13.tdtnet.local (unknown [10.2.3.19]) by mail.dev.tdt.de (Postfix) with ESMTPSA id 84C0820807; Mon, 24 Nov 2025 08:49:23 +0100 (CET) From: Martin Schiller To: tony.luck@intel.com, peterz@infradead.org, mingo@redhat.com, acme@kernel.org, namhyung@kernel.org, mark.rutland@arm.com, alexander.shishkin@linux.intel.com, jolsa@kernel.org, irogers@google.com, adrian.hunter@intel.com, james.clark@linaro.org, tglx@linutronix.de, bp@alien8.de, dave.hansen@linux.intel.com Cc: x86@kernel.org, hpa@zytor.com, linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org, fe@dev.tdt.de, Martin Schiller Subject: [PATCH 1/3] perf/x86/msr: Add Airmont NP Date: Mon, 24 Nov 2025 08:48:44 +0100 Message-ID: <20251124074846.9653-2-ms@dev.tdt.de> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20251124074846.9653-1-ms@dev.tdt.de> References: <20251124074846.9653-1-ms@dev.tdt.de> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-purgate: clean X-purgate-type: clean X-purgate-ID: 151534::1763970564-7EEE10DE-D438690F/0/0 Content-Type: text/plain; charset="utf-8" Like Airmont, the Airmont NP (aka Intel / MaxLinear Lightning Mountain) supports SMI_COUNT MSR. Signed-off-by: Martin Schiller Reviewed-by: Dapeng Mi --- arch/x86/events/msr.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/x86/events/msr.c b/arch/x86/events/msr.c index 7f5007a4752a..8052596b8503 100644 --- a/arch/x86/events/msr.c +++ b/arch/x86/events/msr.c @@ -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: =20 case INTEL_ATOM_GOLDMONT: case INTEL_ATOM_GOLDMONT_D: --=20 2.47.3 From nobody Tue Dec 2 01:04:37 2025 Received: from mxout70.expurgate.net (mxout70.expurgate.net [194.37.255.70]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 066312DFA2D; Mon, 24 Nov 2025 08:07:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=194.37.255.70 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1763971624; cv=none; b=Fvy6fxEX6KSOIBC/Wd09OvsbYfuO2WTPvIlPMhq9wvoLqefgA7p37PbYKjlQSsWZUpL11VyLke1wgCUy5G/vn2w/yVsvPOFSnpcAfpLH3ZuVhceLcX+660+LoLRTux7oUUrWw6l3HDvaLoVfMhm31uW7t/PsX/opI/lFl1lj9Hs= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1763971624; c=relaxed/simple; bh=YjpV8a/b+3XZWj9YGxtJU7MpoE3cs3sCHXvo2avfjy4=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=JMZ2BLbcQCctTsbBGX0cS03g65ZRJ4DEFy5YWuYETNIAmVq61xbTJ8n8kdyyOXlZLP/BqagxP0l45vlr73hDvpQntLj0WnCd+jbpqJV8oN+gDfexgSlBpGKRzBLTIN0nes2ayjTTC8sSh8RGW0BQwJYpm3WAw/aebvNVtsf2oLo= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=dev.tdt.de; spf=pass smtp.mailfrom=dev.tdt.de; dkim=temperror (0-bit key) header.d=dev.tdt.de header.i=@dev.tdt.de header.b=GlYfnKVe; arc=none smtp.client-ip=194.37.255.70 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=dev.tdt.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=dev.tdt.de Authentication-Results: smtp.subspace.kernel.org; dkim=temperror (0-bit key) header.d=dev.tdt.de header.i=@dev.tdt.de header.b="GlYfnKVe" Received: from [194.37.255.9] (helo=mxout.expurgate.net) by relay.expurgate.net with smtp (Exim 4.92) (envelope-from ) id 1vNRKB-003Ian-P7; Mon, 24 Nov 2025 08:49:27 +0100 Received: from [195.243.126.94] (helo=securemail.tdt.de) by relay.expurgate.net with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1vNRKB-003cu9-2u; Mon, 24 Nov 2025 08:49:27 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dev.tdt.de; s=z1-selector1; t=1763970566; bh=8iXdg9biPmrAlI62Amh3svltb4bmVIj/g0MMCCRiclY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=GlYfnKVe6uppiqcWbME1EpwAdpIe++/jjgbd+VCwSCRXx/9FkS0voLC+m34Usf+fM i5/RerfXTbFFDmf+nhqqdc1k7HZGjJL6f3EILIFSeI5sBMVOwHCjh4MLlMUcG9MVIH 3mddHMhGl92l+wZmvWQCOnllWUyvMz8gx81f4iBCRM8BFmrzF9Zx82tVyMvdDr0gys VfTI2K+j08uHFHXxhSLWefQJ6rMKU9vLzkJnDv30MGZS/ut9lc/ATTa6p16p35gBj3 nBs2R7ab6NeVjvUl2sovc61BtufVWpJVIiHSwi38zv6Hh+u7gqxo9mlVX/hT7HPq65 tQD1Jcjmxk5YQ== Received: from securemail.tdt.de (localhost [127.0.0.1]) by securemail.tdt.de (Postfix) with ESMTP id 96532240041; Mon, 24 Nov 2025 08:49:26 +0100 (CET) Received: from mail.dev.tdt.de (unknown [10.2.4.42]) by securemail.tdt.de (Postfix) with ESMTP id 8C4FB240036; Mon, 24 Nov 2025 08:49:26 +0100 (CET) Received: from mschillerX13.tdtnet.local (unknown [10.2.3.19]) by mail.dev.tdt.de (Postfix) with ESMTPSA id 6B6B520807; Mon, 24 Nov 2025 08:49:26 +0100 (CET) From: Martin Schiller To: tony.luck@intel.com, peterz@infradead.org, mingo@redhat.com, acme@kernel.org, namhyung@kernel.org, mark.rutland@arm.com, alexander.shishkin@linux.intel.com, jolsa@kernel.org, irogers@google.com, adrian.hunter@intel.com, james.clark@linaro.org, tglx@linutronix.de, bp@alien8.de, dave.hansen@linux.intel.com Cc: x86@kernel.org, hpa@zytor.com, linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org, fe@dev.tdt.de, Martin Schiller Subject: [PATCH 2/3] perf/x86/intel: Add Airmont NP Date: Mon, 24 Nov 2025 08:48:45 +0100 Message-ID: <20251124074846.9653-3-ms@dev.tdt.de> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20251124074846.9653-1-ms@dev.tdt.de> References: <20251124074846.9653-1-ms@dev.tdt.de> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-purgate: clean X-purgate-ID: 151534::1763970567-A6AC20DE-3D03E177/0/0 X-purgate-type: clean Content-Type: text/plain; charset="utf-8" The Intel / MaxLinear Airmont NP (aka Lightning Mountain) supports the same architectual and non-architecural events as Airmont. Signed-off-by: Martin Schiller Reviewed-by: Dapeng Mi --- arch/x86/events/intel/core.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/x86/events/intel/core.c b/arch/x86/events/intel/core.c index fe65be0b9d9c..641008590a17 100644 --- a/arch/x86/events/intel/core.c +++ b/arch/x86/events/intel/core.c @@ -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)); --=20 2.47.3 From nobody Tue Dec 2 01:04:37 2025 Received: from mxout70.expurgate.net (mxout70.expurgate.net [194.37.255.70]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 110102EBB8C; Mon, 24 Nov 2025 08:07:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=194.37.255.70 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1763971643; cv=none; b=uOH/3I3tltNMub/ziU+dyRGFQTxcEtZr9hd2fs+J+wVfrcM6RwVX8zigha5YbMVgKKmm7yBVAJyiQBsK2oAlQyBNIVFUcOqLfN7rV7R0nYHNP7ciJna8MtSIBhv3XlOPVBt+MX2iBfxsEi/XimaF+73FxNwyJ/QpwNLGoMfn3aI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1763971643; c=relaxed/simple; bh=KFa4vTZr0uRdIPuHYGQLszzuau8R3dwTAeJBUYe3VPk=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=p7IiC+jOLg7XO3KPKQh30PEId8+32MMJqkR1EPNpaU2OoGACfUO1KCy6k/7vwtRf37UTQS6X8VE4hi7/B8f9SYEE2lDzu0KXh7lkOAoke5nv6JotdjpW8F9GKsbV6hTn6AH/anQ1nZKMfDjG0lvtp+qOwtE2MAC+MJsHqTqUxlM= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=dev.tdt.de; spf=pass smtp.mailfrom=dev.tdt.de; dkim=temperror (0-bit key) header.d=dev.tdt.de header.i=@dev.tdt.de header.b=jY8Q5CzC; arc=none smtp.client-ip=194.37.255.70 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=dev.tdt.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=dev.tdt.de Authentication-Results: smtp.subspace.kernel.org; dkim=temperror (0-bit key) header.d=dev.tdt.de header.i=@dev.tdt.de header.b="jY8Q5CzC" Received: from [194.37.255.9] (helo=mxout.expurgate.net) by relay.expurgate.net with smtp (Exim 4.92) (envelope-from ) id 1vNRKC-003IbK-Py; Mon, 24 Nov 2025 08:49:28 +0100 Received: from [195.243.126.94] (helo=securemail.tdt.de) by relay.expurgate.net with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1vNRKC-0000iU-4G; Mon, 24 Nov 2025 08:49:28 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dev.tdt.de; s=z1-selector1; t=1763970567; bh=k4EA6anycoPgCYLxOhgWRVt70C+ttaebkhehKtNd+LU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=jY8Q5CzCR0G52ElJydXe1FXbDZoM6vmVUqJ4pznpY/a2JHDWUtt/JLQ/ocgQkeKrx r2BYj2hIbz7KIJq3Hrly0j3I0xd+Urga3OUTtIaQ80iu2F1cgExF4HCzl5Qm1OS5XH LgcYdzsi7SYQU1glzutKU53GKTyylnswSL+gVFicoEdL5KLjk/KCiEXdLMLimAIkrI j+14FGHUeZA48dQ7hz4YmzPTs8zIgalkYjLmMCqk6P7Tom7JMmMIcgLwNP8eiSGRio 0qUqyGCOODiVsXJ9vBiHrTPooRjC80PD9ysZwtduukw4rjbAV8hjo430YRcKLB2UEw vXy4PriauHLJQ== Received: from securemail.tdt.de (localhost [127.0.0.1]) by securemail.tdt.de (Postfix) with ESMTP id A5630240041; Mon, 24 Nov 2025 08:49:27 +0100 (CET) Received: from mail.dev.tdt.de (unknown [10.2.4.42]) by securemail.tdt.de (Postfix) with ESMTP id 9C4C5240036; Mon, 24 Nov 2025 08:49:27 +0100 (CET) Received: from mschillerX13.tdtnet.local (unknown [10.2.3.19]) by mail.dev.tdt.de (Postfix) with ESMTPSA id 7AE9520807; Mon, 24 Nov 2025 08:49:27 +0100 (CET) From: Martin Schiller To: tony.luck@intel.com, peterz@infradead.org, mingo@redhat.com, acme@kernel.org, namhyung@kernel.org, mark.rutland@arm.com, alexander.shishkin@linux.intel.com, jolsa@kernel.org, irogers@google.com, adrian.hunter@intel.com, james.clark@linaro.org, tglx@linutronix.de, bp@alien8.de, dave.hansen@linux.intel.com Cc: x86@kernel.org, hpa@zytor.com, linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org, fe@dev.tdt.de, Martin Schiller Subject: [PATCH 3/3] perf/x86/cstate: Add Airmont NP Date: Mon, 24 Nov 2025 08:48:46 +0100 Message-ID: <20251124074846.9653-4-ms@dev.tdt.de> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20251124074846.9653-1-ms@dev.tdt.de> References: <20251124074846.9653-1-ms@dev.tdt.de> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-purgate: clean X-purgate-ID: 151534::1763970568-7E6E00DE-283D9A80/0/0 X-purgate-type: clean Content-Type: text/plain; charset="utf-8" From the perspective of Intel cstate residency counters, the Airmont NP (aka Lightning Mountain) is identical to the Airmont. Signed-off-by: Martin Schiller Reviewed-by: Dapeng Mi --- arch/x86/events/intel/cstate.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/x86/events/intel/cstate.c b/arch/x86/events/intel/cstate.c index ec753e39b007..531dba5a8095 100644 --- a/arch/x86/events/intel/cstate.c +++ b/arch/x86/events/intel/cstate.c @@ -599,6 +599,7 @@ static const struct x86_cpu_id intel_cstates_match[] __= initconst =3D { 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), =20 X86_MATCH_VFM(INTEL_BROADWELL, &snb_cstates), X86_MATCH_VFM(INTEL_BROADWELL_D, &snb_cstates), --=20 2.47.3