[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <a8c17f3d-39a9-4ec2-a4c0-503aab3757d2@intel.com>
Date: Wed, 22 Oct 2025 21:28:48 -0700
From: Reinette Chatre <reinette.chatre@...el.com>
To: Tony Luck <tony.luck@...el.com>, Fenghua Yu <fenghuay@...dia.com>, "Maciej
Wieczor-Retman" <maciej.wieczor-retman@...el.com>, Peter Newman
<peternewman@...gle.com>, James Morse <james.morse@....com>, Babu Moger
<babu.moger@....com>, Drew Fustini <dfustini@...libre.com>, Dave Martin
<Dave.Martin@....com>, Chen Yu <yu.c.chen@...el.com>
CC: <x86@...nel.org>, <linux-kernel@...r.kernel.org>,
<patches@...ts.linux.dev>
Subject: Re: [PATCH v12 15/31] x86,fs/resctrl: Fill in details of events for
guid 0x26696143 and 0x26557651
Hi Tony,
On 10/13/25 3:33 PM, Tony Luck wrote:
> The Intel Clearwater Forest CPU supports two RMID-based PMT feature
> groups documented in the xml/CWF/OOBMSM/RMID-ENERGY/cwf_aggregator.xml
Considering the new design I understand "feature group" (thanks to
struct pmt_feature_group) as all aggregators of a particular type (type
being either energy or perf) where there may be aggregators with different
guid, each with possibly different events. In comparison I understand
"event group" (thanks to struct event_group) as all aggregators of a
particular type (energy or perf) that have the *same* guid and thus the
same events. Does this match the intent?
> and xml/CWF/OOBMSM/RMID-PERF/cwf_aggregator.xml files in the Intel PMT
> GIT repository [1].
>
> The counter offsets in MMIO space are arranged in groups for each RMID.
>
> E.g the "energy" counters for guid 0x26696143 are arranged like this:
>
> MMIO offset:0x0000 Counter for RMID 0 PMT_EVENT_ENERGY
> MMIO offset:0x0008 Counter for RMID 0 PMT_EVENT_ACTIVITY
> MMIO offset:0x0010 Counter for RMID 1 PMT_EVENT_ENERGY
> MMIO offset:0x0018 Counter for RMID 1 PMT_EVENT_ACTIVITY
> ...
> MMIO offset:0x23F0 Counter for RMID 575 PMT_EVENT_ENERGY
> MMIO offset:0x23F8 Counter for RMID 575 PMT_EVENT_ACTIVITY
>
> After all counters there are three status registers that provide
> indications of how many times an aggregator was unable to process
> event counts, the time stamp for the most recent loss of data, and
> the time stamp of the most recent successful update.
>
> MMIO offset:0x2400 AGG_DATA_LOSS_COUNT
> MMIO offset:0x2408 AGG_DATA_LOSS_TIMESTAMP
> MMIO offset:0x2410 LAST_UPDATE_TIMESTAMP
>
> Define these events in the file system code and add the events
> to the event_group structures.
Could you please correct earlier definition to help make this transition from
"feature group" to "event group" clear?
>
> PMT_EVENT_ENERGY and PMT_EVENT_ACTIVITY are produced in fixed point
> format. File system code must output as floating point values.
>
> Signed-off-by: Tony Luck <tony.luck@...el.com>
> Link: https://github.com/intel/Intel-PMT # [1]
> ---
Reinette
Powered by blists - more mailing lists