mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: James Clark <james.clark@linaro.org>
To: "Yoshihiro Furudera (Fujitsu)" <fj5100bi@fujitsu.com>
Cc: 'John Garry' <john.g.garry@oracle.com>,
	'Will Deacon' <will@kernel.org>,
	'Mike Leach' <mike.leach@linaro.org>,
	'Leo Yan' <leo.yan@linux.dev>,
	'Peter Zijlstra' <peterz@infradead.org>,
	'Ingo Molnar' <mingo@redhat.com>,
	'Arnaldo Carvalho de Melo' <acme@kernel.org>,
	'Namhyung Kim' <namhyung@kernel.org>,
	'Mark Rutland' <mark.rutland@arm.com>,
	'Alexander Shishkin' <alexander.shishkin@linux.intel.com>,
	'Jiri Olsa' <jolsa@kernel.org>, 'Ian Rogers' <irogers@google.com>,
	'Adrian Hunter' <adrian.hunter@intel.com>,
	"'Liang, Kan'" <kan.liang@linux.intel.com>,
	'Ilkka Koskinen' <ilkka@os.amperecomputing.com>,
	'Xu Yang' <xu.yang_2@nxp.com>,
	'Jing Zhang' <renyu.zj@linux.alibaba.com>,
	'Lucas Stach' <l.stach@pengutronix.de>,
	"'linux-arm-kernel@lists.infradead.org'"
	<linux-arm-kernel@lists.infradead.org>,
	"'linux-perf-users@vger.kernel.org'"
	<linux-perf-users@vger.kernel.org>,
	"'linux-kernel@vger.kernel.org'" <linux-kernel@vger.kernel.org>,
	"Akio Kakuno (Fujitsu)" <fj3333bs@fujitsu.com>,
	"'nick.forrington@arm.com'" <nick.forrington@arm.com>
Subject: Re: [PATCH v2] perf vendor events arm64: Add FUJITSU-MONAKA pmu event
Date: Tue, 17 Dec 2024 09:58:07 +0000	[thread overview]
Message-ID: <cb11fe5e-e6ab-4653-b925-4c3cb5273b43@linaro.org> (raw)
In-Reply-To: <OS3PR01MB6903A0317D8BB90A9B4DD7E8D4042@OS3PR01MB6903.jpnprd01.prod.outlook.com>



On 17/12/2024 6:35 am, Yoshihiro Furudera (Fujitsu) wrote:
> Hi, James
> 
>>> Also in the common files, we're using the description strings from the
>>> Arm ARM. I noticed that the ones from your spec are slightly different.
>>> This is ok for now, but if we add any new Arm cores that use the same
>>> events this description may get overwritten. For example
>>> ASE_SVE_INST_SPEC in the Arm ARM is currently "Operation speculatively
>> executed, Advanced SIMD or SVE".
>>>
>>> If you have any actual relevant details that are different from the
>>> common string, you should put them in .../arch/arm64/fujitsu/monaka.
>>> But if you are ok with the potential overwrite (which looks like it
>>> should be ok) then you can leave them as is.
>>
>> I think it's okay to overwrite it, but I'll check the specs.
> 
> Regarding this matter, the descriptions of the events added to the common files
> (common-and-microarch.json, recommended.json) will be modified to match Arm ARM.
> Then, we will write current descriptions as "BriefDescription" in .../arch/arm64/fujitsu/monaka.
> We will post this as a v3 patch later.
> 
>>
>>>
>>> [...]
>>>
>>>> diff --git
>>>> a/tools/perf/pmu-events/arch/arm64/fujitsu/monaka/general.json
>>>> b/tools/perf/pmu-events/arch/arm64/fujitsu/monaka/general.json
>>>> new file mode 100644
>>>> index 000000000000..80bf17fb8f4c
>>>> --- /dev/null
>>>> +++ b/tools/perf/pmu-events/arch/arm64/fujitsu/monaka/general.json
>>>> @@ -0,0 +1,8 @@
>>>> +[
>>>> +    {
>>>> +        "ArchStdEvent": "CPU_CYCLES"
>>>> +    },
>>>
>>> Other cores put CPU_CYCLES in bus.json. For user friendlyness I would
>>> put the common ones into the same existing groups. The same issue
>>> applies for some other common events.
>>>
>>
>> I will update as suggested.
> 
> MONAKA's event grouping is based on the grouping of "neoverse n1/n2".
> We found that the groups in "neoverse n1/n2" may differ from those in other cores.
> For example, "CPU_CYCLES" is classified in general.json in "neoverse n1/n2",
> but in bus.json in many other cores.
> 
> As a result, it is not possible to completely match the event groups of other cores.
> We will be checking the current grouping of events and modifying them as much as possible
> to match the other core, and will post this later as a v3 patch.
> 
> Best Regards,
> Yoshihiro Furudera

Hmmm ok, I didn't realize it was already inconsistent. Still it's better 
to try to not introduce a third variant though.


      reply	other threads:[~2024-12-17  9:58 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-11-11  6:48 Yoshihiro Furudera
2024-12-06  1:53 ` Yoshihiro Furudera (Fujitsu)
2024-12-09 10:01 ` James Clark
2024-12-10  7:05   ` Yoshihiro Furudera (Fujitsu)
2024-12-17  6:35     ` Yoshihiro Furudera (Fujitsu)
2024-12-17  9:58       ` James Clark [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=cb11fe5e-e6ab-4653-b925-4c3cb5273b43@linaro.org \
    --to=james.clark@linaro.org \
    --cc=acme@kernel.org \
    --cc=adrian.hunter@intel.com \
    --cc=alexander.shishkin@linux.intel.com \
    --cc=fj3333bs@fujitsu.com \
    --cc=fj5100bi@fujitsu.com \
    --cc=ilkka@os.amperecomputing.com \
    --cc=irogers@google.com \
    --cc=john.g.garry@oracle.com \
    --cc=jolsa@kernel.org \
    --cc=kan.liang@linux.intel.com \
    --cc=l.stach@pengutronix.de \
    --cc=leo.yan@linux.dev \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-perf-users@vger.kernel.org \
    --cc=mark.rutland@arm.com \
    --cc=mike.leach@linaro.org \
    --cc=mingo@redhat.com \
    --cc=namhyung@kernel.org \
    --cc=nick.forrington@arm.com \
    --cc=peterz@infradead.org \
    --cc=renyu.zj@linux.alibaba.com \
    --cc=will@kernel.org \
    --cc=xu.yang_2@nxp.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®