Received: by 2002:a05:6500:1b41:b0:1fb:d597:ff75 with SMTP id cz1csp149688lqb; Tue, 4 Jun 2024 07:37:26 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCW3CFTF21+6oEn/1trwmsSw6E1qhh5g3JyY+zqd6GLVKcQFiyzqRIelUJSFPW5ik3Rb4rmrGf8BVIQG7cnkoKNFd8CBresH6NQ/WXvFSA== X-Google-Smtp-Source: AGHT+IHxZunB1L3eem1ba+LjB/PCNg512ZOj8Fi6b+0U5bUT3j0EyZKxbmSWtSpru52yMD5QjQDU X-Received: by 2002:a19:c514:0:b0:52b:83f8:d1d5 with SMTP id 2adb3069b0e04-52b8958bdabmr7792431e87.36.1717511846361; Tue, 04 Jun 2024 07:37:26 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717511846; cv=pass; d=google.com; s=arc-20160816; b=Sz6gglHR6txlutoTO7BPPZR2zU34+nSZ6ZUFPbmlX1oqqd6eULFpxWnI4XdCCji5gG Qdt595LLhhDQQYysVJ/b0dIQPIuYmy8W5aTwpS6cpLLos91jDGCnmFtlGYcIFfrnqwW0 GKV2jIGu38bneJWnfsHql/FHde1kk2PH6uRirr6OQF4wwLU+03dukyOmcQXHiNkI2+d0 CYHvs5/F3qomVfigqBl4GIDpBC+qANHEs1e/1cY4xrXXOl2LGIENSCNBWTxXClT2M/Q/ yfM+Ah2L+GESfjMfXDka7fQNPXqXj6HtrLQ9qYBY0RxeKwC/YBU8ccE5eKoGV9CDIIuv LAIA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date; bh=1RuMpA0v6axsGDK8jA4dJuzek6tLKPIut+tDQudi0bc=; fh=JF+c2SGbQ2EnRbVFvNJyyCPfvaodXKYCRiCKcWDbTmk=; b=o5KfsB4q6LIoSiie2s0bl7njnI+LqLYfDysG39FVp1Pv7pFWAOxZgCMUbMwkqf2JLb u8dIuBzJg6iPrXnBn6rnMak2CeGhL33cU7s/yJDCkKoK8ncihsgWsw8Il2XODniXiy5u 3f3HLHAXeChyiltWLJpX1NPhXD6drlMSKwZlPw1nzc8gKrz1+bEoX2IeW4JRgY2R/dN8 WNYYMGfk5tNk/sjIQAdsUyqK2G6f/WKF2oOY4cpSSX9xJHcVdeskxmXjjAepr2OA48RW 3067V/mhPamdINonGLLQvKYBeZUBJfdkMXX2PwKuqLwG+ctN/U5UGroGGAWBlCC6jjcx gQFA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=arm.com dmarc=pass fromdomain=arm.com); spf=pass (google.com: domain of linux-kernel+bounces-200842-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-200842-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id 4fb4d7f45d1cf-57a31cc9616si5089443a12.649.2024.06.04.07.37.26 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Jun 2024 07:37:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-200842-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=arm.com dmarc=pass fromdomain=arm.com); spf=pass (google.com: domain of linux-kernel+bounces-200842-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-200842-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com 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 am.mirrors.kernel.org (Postfix) with ESMTPS id DC86A1F24560 for ; Tue, 4 Jun 2024 14:37:25 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BDF7513D258; Tue, 4 Jun 2024 14:34:45 +0000 (UTC) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 022B5C147; Tue, 4 Jun 2024 14:34:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.140.110.172 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717511685; cv=none; b=MQ56Qgo2AxNbBS5AZV2hx0RNY2XUtCX+JgVs2D4P8og0fvpjZG2vpmI9OirjKet7Ptv5KGKhRv0bNzunzIDv5ZhspVY+HtcztqiXFI5z0wPjHneort14FH+yv8nhXM8GGEinM681472Ucb4VSoY6RoWiih3zg60fylX4HlwoGps= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717511685; c=relaxed/simple; bh=VnrLIrbhzUALzkQehAninJgeB7+/iCbWWjBnOYjHgZY=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=kqd1CJqG/7qvi+qKMq++FP3Ka5QFYTjJEyxtX1fAbfabBO+nElkIjB2dqbMn1Qrma+EB/snovCiCC0mW2NYrb5ycMwFMAk1wfYQ/lHHLqKI+OaqGqdNmB+45O3TVQ42V1Z6+uaYfunRkokbbtKZiIuQq+jByn1VdhuXmiiiaVF8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com; spf=pass smtp.mailfrom=arm.com; arc=none smtp.client-ip=217.140.110.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arm.com Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id CDA6F1042; Tue, 4 Jun 2024 07:35:07 -0700 (PDT) Received: from J2N7QTR9R3 (usa-sjc-imap-foss1.foss.arm.com [10.121.207.14]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id AA0143F64C; Tue, 4 Jun 2024 07:34:41 -0700 (PDT) Date: Tue, 4 Jun 2024 15:34:36 +0100 From: Mark Rutland To: Arnaldo Carvalho de Melo Cc: Besar Wicaksono , Will Deacon , Adrian Hunter , Ian Rogers , Jiri Olsa , Kan Liang , Namhyung Kim , Linux Kernel Mailing List , linux-perf-users@vger.kernel.org Subject: Re: [RFC/PATCH 1/1] tools headers arm64: Sync arm64's cputype.h with the kernel sources Message-ID: References: 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 In-Reply-To: On Tue, Jun 04, 2024 at 10:53:38AM -0300, Arnaldo Carvalho de Melo wrote: > On Tue, Jun 04, 2024 at 10:11:22AM +0100, Mark Rutland wrote: > > On Mon, Jun 03, 2024 at 03:33:07PM -0300, Arnaldo Carvalho de Melo wrote: > > > 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? > > > > Hmm... looking at where that was added this is somewhat misnamed, this > > is really saying that these cores use the same IMPLEMENTATION DEFINED > > encoding of the source field. That's not really a property of Neoverse > > specifically, and I'm not sure what Arm's policy is here going forwards. > > > > We should probably rename that to something like > > common_data_source_encoding, with a big comment about exactly what it > > implies. > > > > I would not touch this for now -- someone would have to go audit the > > Ok, you mean not touch tools/perf/util/arm-spe.c, right, can I just go > ahead and update the copy of that header so that we have a clean (of > build warnings) build? Yes: update the header, but leave arm-spe.c unchanged. Sorry for not being clear! It'd be nice if we could update the commit message to note that we're deliberately leaving that as-is. Either way: Acked-by: Mark Rutland Mark.