Received: by 2002:a05:6500:1b41:b0:1fb:d597:ff75 with SMTP id cz1csp339440lqb; Tue, 4 Jun 2024 13:02:03 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCX/ACze6T6WMMT0EESzIk00cUfaqlKVS+9CCqWlCCfcI6MTyxWCa/qJKzid79GpQLIVJ2GvJmabLpHrICM0irbbttWeSfg/jBe68Sxn0w== X-Google-Smtp-Source: AGHT+IEhKCGoDPcbf9IiluWILu838QuTRGKpXytU2hmSX/G1/iHXZVceSLGFVPOCtkRCTUTTGUZA X-Received: by 2002:ac5:c8b6:0:b0:4eb:12b7:d81c with SMTP id 71dfb90a1353d-4eb3a3e7cf7mr710574e0c.5.1717531322890; Tue, 04 Jun 2024 13:02:02 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717531322; cv=pass; d=google.com; s=arc-20160816; b=rOnMhnIXisd4ZwZcg8kmKsE3jA5+Ize9uV8b87s8qwhYA53FI6w+DrKtAC3dMp2ul0 73fPC8pCrY4QYWJZ2xXmwVRRxLpiKa9ZM++nRtE9j5CC44boxn0H1or7O/Ze0vYAZcs+ di8s6sOPWmVaaqO79dfOW+N9sDivvAKpJUOIKVBmQNGEEgBz5EMzl4gSS5ac7Ebg9m39 h7Ijp820uXQA0Fq/Ag0WDnUi2Q8E/Alre0GbiTU3p1ixmSJrDqpiPkXd2k/u3oXQFev4 7MS2JSb2kIL0nK8n3kMPx109BSJFHfkjSdSvIQZO3aPiM0FxcuFLTYFUi+bNHV+DKI/v eKhA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id; bh=zZWAmhI2tO5r6IbrlAX+MTGfRMgpXclwDn760gMpPs4=; fh=t+rrslhgLliN8Re9nuSySHK+TnWuoU0sEMZLQ2d9nOE=; b=PHiVxRHmdSChJyl2Dq6r1TfO9En1eR/APhx/V9pU7UnUOJyjw6vDIpBN7JB0tnV5ND 7W/860w3zO2S3+/N4f5FChX1F3hYB14gZXUvtOGupT42luyk8MOicMYB1LMSHWrsCZn4 jYhar76njIrIl8v7Xy/RQUq9jiCdizuoZx1IThuO0YO01BG6a4Exbb09NvJVQp8kE5b/ GaxIq6XJHTjM+WaxAvX8ytQF7S7UyNSvsuvGx4pB/7hsxeiiXR/eSHeDsM4GSUdK9en3 DItlzBF2E9iBNw6uH4sY0N3InI9raqqYveNiq84UazhQPTNEpVNjLZQV8z17RTFJKzIc SaKQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-201312-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-201312-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id 71dfb90a1353d-4eafee38f2fsi570461e0c.164.2024.06.04.13.02.02 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Jun 2024 13:02:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-201312-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-201312-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-201312-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 945771C225E3 for ; Tue, 4 Jun 2024 20:02:02 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5C00114B949; Tue, 4 Jun 2024 20:01:47 +0000 (UTC) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2803C13E8BF; Tue, 4 Jun 2024 20:01:44 +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=1717531306; cv=none; b=Fr+chZ/O0YI9rkTFjxWn7IFY8tGjQwqMntMchL8srHimMuOtq1r9FxsCOy/wA+pJxiHy0Vvwgs6JcLIes3FTuIC9oBQd53BvB8w4lEiGvoexE363qcGq5LX6IYuFBgbpZ947neLIEtQ7FwIHRMuQeNOLm7wyc2aRndnjsAE6Wj0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717531306; c=relaxed/simple; bh=RAw2k4mzU8OEDpDAeN6B2j6vr4BCw4gc3iGeitqWH58=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=tGmnAmwtcBmNE07f+U1YnsG+O59CpaYhLd3XXz3pnCLJoAWX1gBGJzcTNFTK/3RCNZcz/q4j0wDdpbKj/pitec6TEo4JC0FGCd/GD4UnV29AqzdXag8gIh0CQNFKSz8/SNZQWakdHkruR7beef6jQ5UAFKYSjPHaK6V2feZl+iE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=foss.arm.com; spf=none smtp.mailfrom=foss.arm.com; arc=none smtp.client-ip=217.140.110.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=foss.arm.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=foss.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 54970FEC; Tue, 4 Jun 2024 13:02:08 -0700 (PDT) Received: from [10.2.76.71] (e132581.arm.com [10.2.76.71]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 8F6D83F64C; Tue, 4 Jun 2024 13:01:42 -0700 (PDT) Message-ID: Date: Tue, 4 Jun 2024 21:01:41 +0100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [RFC/PATCH 1/1] tools headers arm64: Sync arm64's cputype.h with the kernel sources To: Mark Rutland Cc: Arnaldo Carvalho de Melo , Besar Wicaksono , Will Deacon , Adrian Hunter , Ian Rogers , Jiri Olsa , Kan Liang , Namhyung Kim , Linux Kernel Mailing List , linux-perf-users@vger.kernel.org, James Clark References: Content-Language: en-US From: Leo Yan In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 6/4/24 19:55, Mark Rutland wrote: [...] >> Now more and more Arm CPUs support the data source in SPE and share the same >> data source format. It's not scalable for us to adding every CPU variant >> into the file util/arm-spe.c. >> >> I would like to expose the PMSIDR_EL1.LDS bit (Data source indicator for >> sampled load instructions) via the 'cap' folder, and then we can save this >> info into the perf meta data during record phase. > > I'd be happy to expose fields from PMSIDR_EL1. > >> In the perf report, we can parse the meta data and if the >> PMSIDR_EL1.LDS bit is set, the tool will parse the data source packet >> based on the common format. > > I don't believe that's right. > > PMSIDR_EL1.LDS indicates that the loaded data source field is > implemented, but even when it is implemented, the format is > IMPLEMENTATION DEFINED. Thanks for correction. PMSIDR_EL1.LDS bit is necessary but not sufficient for using the common data source format. > Today, Arm Ltd implementations happen to share a format, but that isn't > implied by PMSIDR_EL1.LDS, and there's no guarantee that future CPUs > will all use the same format. > > For the moment we'll have to keep adding to this list. I would like to use an opposite way - we can only maintain CPU variants with special data source format, otherwise, all other CPUs use the common format. Thanks, Leo