From patchwork Mon Jul 17 05:43:24 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Leo Yan X-Patchwork-Id: 13316383 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail-qk1-x730.google.com ([2607:f8b0:4864:20::730]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qLH1I-002hnK-1d for linux-arm-kernel@lists.infradead.org; Mon, 17 Jul 2023 05:43:41 +0000 Received: by mail-qk1-x730.google.com with SMTP id af79cd13be357-76731802203so394692685a.3 for ; Sun, 16 Jul 2023 22:43:38 -0700 (PDT) From: Leo Yan Subject: [PATCH v1 0/3] arm64: Support Cortex-X4 CPU for Perf Arm SPE Date: Mon, 17 Jul 2023 13:43:24 +0800 Message-Id: <20230717054327.79815-1-leo.yan@linaro.org> MIME-Version: 1.0 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+lwn-linux-arm-kernel=archive.lwn.net@lists.infradead.org List-Archive: To: Arnaldo Carvalho de Melo , Catalin Marinas , Will Deacon , John Garry , James Clark , Mike Leach , Peter Zijlstra , Ingo Molnar , Mark Rutland , Alexander Shishkin , Jiri Olsa , Namhyung Kim , Ian Rogers , Adrian Hunter , D Scott Phillips , Marc Zyngier , Anshuman Khandual , German Gomez , Ali Saidi , Jing Zhang , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org, fissure2010@gmail.com Cc: Leo Yan This series support Cortex-X4 CPU in Perf Arm SPE. The Arm64 and tools both include the header cputype.h for CPU part and MIDR definitions, to de-couple between the tools and the kernel, the tools doesn't directly use the kernel's header, alternatively, the tools maintain a copy and sync with kernel's header. To keep the exact same content between kernel and tools' headers, this series firstly adds Cortex-X4 CPU part and MIDR definitions in the kernel header; then the second patch syncs the change into the tools' header. The first patch is to support the Cortex-X4 in perf Arm SPE with the new CPU definitions. I don't have Cortex-X4 machine in hand, so just verified with compilation perf tool. Leo Yan (3): arm64: Add Cortex-X4 CPU part definitions tools headers arm64: Sync Cortex-X4 CPU part definitions perf arm-spe: Support data source for Cortex-X4 CPU arch/arm64/include/asm/cputype.h | 2 ++ tools/arch/arm64/include/asm/cputype.h | 2 ++ tools/perf/util/arm-spe.c | 14 ++++++++------ 3 files changed, 12 insertions(+), 6 deletions(-) Reviewed-by: Ali Saidi