[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <6869d7ee-d9b2-4460-8433-4473be566e95@intel.com>
Date: Thu, 23 Oct 2025 10:46:51 -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 22/31] x86,fs/resctrl: Handle domain creation/deletion
for RDT_RESOURCE_PERF_PKG
Hi Tony,
On 10/13/25 3:33 PM, Tony Luck wrote:
> The L3 resource has several requirements for domains. There are per-domain
> structures that hold the 64-bit values of counters, and elements to keep
> track of the overflow and limbo threads.
>
> None of these are needed for the PERF_PKG resource. The hardware counters
> are wide enough that they do not wrap around for decades.
>
> Define a new rdt_perf_pkg_mon_domain structure which just consists of the
> standard rdt_domain_hdr to keep track of domain id and CPU mask.
>
> Update resctrl_online_mon_domain() for RDT_RESOURCE_PERF_PKG. The only action
> needed for this resource is to create and populate domain directories if a
> domain is added while resctrl is mounted.
>
> Similarly resctrl_offline_mon_domain() only needs to remove domain
> directories.
>
> Signed-off-by: Tony Luck <tony.luck@...el.com>
> ---
Reviewed-by: Reinette Chatre <reinette.chatre@...el.com>
Reinette
Powered by blists - more mailing lists