Received: by 2002:ab2:7903:0:b0:1fb:b500:807b with SMTP id a3csp1148376lqj; Mon, 3 Jun 2024 11:33:25 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCW0LbM/yIqnJX2Lhfc7+qObUlPwfBPJ8iJ2v8JmJJfQIR/zRWzwwMgQqkbqiGyRazkkjQ6U0wRXOdvAPg4y3Qq8lrEVcLxz++EjGOfLxQ== X-Google-Smtp-Source: AGHT+IFifMbVBXYoA8c46eIFsQ4cRH8/cBUZhl5N/icqyJ+9DVBkPuFcrKIJWCSb/HPTzKGFWywb X-Received: by 2002:a05:6e02:1c4c:b0:374:a840:e5c0 with SMTP id e9e14a558f8ab-374a840e9c6mr6815135ab.0.1717439604770; Mon, 03 Jun 2024 11:33:24 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717439604; cv=pass; d=google.com; s=arc-20160816; b=elTK+97BC5b0VnIpChN93kDTEqxVRG+owjJWCh9fBiAfrstCJo5pf7vy1JgsHZZOYX E8JWKxPH3mi0lvxCuLYcPEkLma2sijX+7widIZwMIzWo9F5tkVdMKOVsVaKFvLZjo6n5 DEYqWGtOGKdGLtdMsuIMIj324jWFTU96DOXwaViYep0FnwDLTlN64RZABbg+nwh1u8Ip fri1CfGQeFFml+wjojvujIaRJAWJykKD9ef+o3X6zMArPa54cdlsErbFfTP2OsAzasc8 L1TVv8CwpkJ8wzWvF8RY+r9OlK16hDR0U49nwB1Xsfr1gJXakrmCvMYbMSLyDvMxxdLg hFfw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-disposition:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:message-id:subject:cc:to:from:date :dkim-signature; bh=LyP4Xxr9IyDgbDbm2Q3/t6DVr1q1BAYcbdpn60+zUzY=; fh=cOJXi38YXJNUxs2uO/UKwiAYFgU2SXLEUJvry/xsOBM=; b=jLVfQBkDNLMA0yPFipnnxqYewxvhf8TO9PotfDNzfVJVbJLebVd+NlGgKMI8bz28Du xPk04drBB/BU5ptDJLsD37kpRBR3N2gKzuswx6PcietzGQYIe2uCorwP/AJFtY3rX808 Czt56bl3Zh0+eVULvGohsgqPHXyB7rLmi5i7A3SkcZpi+M9KZ04ucaySuKYaTGakD4xz KeFS20S+w9AFMMBcYJxnF5oBx4j/sGOm3bBTBvQJ44mGDDQU/QOxHd5EZdlQ+/lDvpK4 j4C89dPkd8ETLfwMoGld+zen3P62clpPl2AjncLttvrsySJlCsbhBV6vyk+vbS80lR5v RZDQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=pNr2KKPE; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-199569-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-199569-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id 41be03b00d2f7-6c3540fad17si899581a12.54.2024.06.03.11.33.24 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 03 Jun 2024 11:33:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-199569-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=pNr2KKPE; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-199569-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-199569-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 05E7C2846D1 for ; Mon, 3 Jun 2024 18:33:21 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2C72C1386DA; Mon, 3 Jun 2024 18:33:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="pNr2KKPE" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 51A0B137C2E; Mon, 3 Jun 2024 18:33:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717439594; cv=none; b=T7zw0DSB8WkCLFdJD67dl+YfhbSBwieNLcl0s0Y1G5zsOcdGGzfvREQ/GKaIL7FBanGR4lYwLIclKVcvlj81JCYD5thax3v6IRM4zmu4GA9gjiS7pWmgeXWQSpFRIrwkxwjtFEHkKTk+O02fkEkdk49YWD51u38dP2MPIN1HC4g= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717439594; c=relaxed/simple; bh=jj98CjPyME4Voy2QNWkrK/fLGNfW8hYiYos9sHUioDc=; h=Date:From:To:Cc:Subject:Message-ID:MIME-Version:Content-Type: Content-Disposition; b=VaHQk0yCgziYBx/QTX0FkXVINr0xAe2TOvAibv/a0HnUIr8GS0TaFoN1S+19YdiarKQyE/YxYTgOCSfOXndat1NLW3BOas8sOdYTkYVULQvsw+NC7r1qP0iJehucwC5TB6gKelhkNJDmQMIbl8irbpC80cb5mU6BxrUFyJLso+4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=pNr2KKPE; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7DA85C2BD10; Mon, 3 Jun 2024 18:33:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1717439594; bh=jj98CjPyME4Voy2QNWkrK/fLGNfW8hYiYos9sHUioDc=; h=Date:From:To:Cc:Subject:From; b=pNr2KKPEQNBb/rj38zjXqkpqE3syPrUUNJlgXH3iN7pcww+ss2jTI4OwsRpTIxMwO mcsqEjXQezj6xsSIFTVAENtYDLC8D8rP9sCMDvLR2SgALjbvD+ROSKsiU+37AI1TQd /W7K9W+75HMBuUUL0qdJ1/GvFYb7p1ksoahjV1RQEpMiB6cap2uw6t1KFth1oC6yUZ N0XbyxXrDM83mI0OJyCv7mB0cBaXeX9SqxqC/plAvxi72Iy8K/UEOwB13i13yVyQB2 Pxi8jT+XaqiHxSYtUNblXZeMw9dhEhZy1svXt/OxPsy34KFbmNr96Ts9fMDZjjfPEg rEODhx7z9Q7hA== Date: Mon, 3 Jun 2024 15:33:07 -0300 From: Arnaldo Carvalho de Melo To: Mark Rutland , Besar Wicaksono , Will Deacon Cc: Adrian Hunter , Ian Rogers , Jiri Olsa , Kan Liang , Namhyung Kim , Linux Kernel Mailing List , linux-perf-users@vger.kernel.org Subject: [RFC/PATCH 1/1] tools headers arm64: Sync arm64's cputype.h with the kernel sources Message-ID: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline To get the changes in: 0ce85db6c2141b7f ("arm64: cputype: Add Neoverse-V3 definitions") 02a0a04676fa7796 ("arm64: cputype: Add Cortex-X4 definitions") f4d9d9dcc70b96b5 ("arm64: Add Neoverse-V2 part") That makes this perf source code to be rebuilt: CC /tmp/build/perf-tools/util/arm-spe.o The changes in the above patch add MIDR_NEOVERSE_V[23] and MIDR_NEOVERSE_V1 is used in arm-spe.c, so probably we need to add those and perhaps MIDR_CORTEX_X4 to that array? Or maybe we need to leave this for later when this is all tested on those machines? static const struct midr_range neoverse_spe[] = { MIDR_ALL_VERSIONS(MIDR_NEOVERSE_N1), MIDR_ALL_VERSIONS(MIDR_NEOVERSE_N2), MIDR_ALL_VERSIONS(MIDR_NEOVERSE_V1), {}, }; That addresses this perf build warning: Warning: Kernel ABI header differences: diff -u tools/arch/arm64/include/asm/cputype.h arch/arm64/include/asm/cputype.h Cc: Adrian Hunter Cc: Besar Wicaksono Cc: Ian Rogers Cc: Jiri Olsa Cc: Kan Liang Cc: Mark Rutland Cc: Namhyung Kim Cc: Will Deacon Link: https://lore.kernel.org/lkml/ Signed-off-by: Arnaldo Carvalho de Melo --- tools/arch/arm64/include/asm/cputype.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tools/arch/arm64/include/asm/cputype.h b/tools/arch/arm64/include/asm/cputype.h index 52f076afeb96006c..7b32b99023a21d3a 100644 --- a/tools/arch/arm64/include/asm/cputype.h +++ b/tools/arch/arm64/include/asm/cputype.h @@ -86,6 +86,9 @@ #define ARM_CPU_PART_CORTEX_X2 0xD48 #define ARM_CPU_PART_NEOVERSE_N2 0xD49 #define ARM_CPU_PART_CORTEX_A78C 0xD4B +#define ARM_CPU_PART_NEOVERSE_V2 0xD4F +#define ARM_CPU_PART_CORTEX_X4 0xD82 +#define ARM_CPU_PART_NEOVERSE_V3 0xD84 #define APM_CPU_PART_XGENE 0x000 #define APM_CPU_VAR_POTENZA 0x00 @@ -159,6 +162,9 @@ #define MIDR_CORTEX_X2 MIDR_CPU_MODEL(ARM_CPU_IMP_ARM, ARM_CPU_PART_CORTEX_X2) #define MIDR_NEOVERSE_N2 MIDR_CPU_MODEL(ARM_CPU_IMP_ARM, ARM_CPU_PART_NEOVERSE_N2) #define MIDR_CORTEX_A78C MIDR_CPU_MODEL(ARM_CPU_IMP_ARM, ARM_CPU_PART_CORTEX_A78C) +#define MIDR_NEOVERSE_V2 MIDR_CPU_MODEL(ARM_CPU_IMP_ARM, ARM_CPU_PART_NEOVERSE_V2) +#define MIDR_CORTEX_X4 MIDR_CPU_MODEL(ARM_CPU_IMP_ARM, ARM_CPU_PART_CORTEX_X4) +#define MIDR_NEOVERSE_V3 MIDR_CPU_MODEL(ARM_CPU_IMP_ARM, ARM_CPU_PART_NEOVERSE_V3) #define MIDR_THUNDERX MIDR_CPU_MODEL(ARM_CPU_IMP_CAVIUM, CAVIUM_CPU_PART_THUNDERX) #define MIDR_THUNDERX_81XX MIDR_CPU_MODEL(ARM_CPU_IMP_CAVIUM, CAVIUM_CPU_PART_THUNDERX_81XX) #define MIDR_THUNDERX_83XX MIDR_CPU_MODEL(ARM_CPU_IMP_CAVIUM, CAVIUM_CPU_PART_THUNDERX_83XX) -- 2.44.0