From: "Chen, Yu C" <yu.c.chen@intel.com>
To: Reinette Chatre <reinette.chatre@intel.com>
Cc: Tony Luck <tony.luck@intel.com>, Borislav Petkov <bp@alien8.de>,
"Thomas Gleixner" <tglx@linutronix.de>,
Dave Hansen <dave.hansen@linux.intel.com>,
Peter Newman <peternewman@google.com>,
"x86@kernel.org" <x86@kernel.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
Dave Martin <Dave.Martin@arm.com>,
Ben Horgan <ben.horgan@arm.com>,
James Morse <james.morse@arm.com>,
Babu Moger <babu.moger@amd.com>,
Drew Fustini <fustini@kernel.org>,
Fenghua Yu <fenghuay@nvidia.com>,
"chen.yu@linux.dev" <chen.yu@linux.dev>
Subject: Re: [RFC v2] arm,x86,fs/resctrl: Generic schema description Proof of Concept
Date: Tue, 11 Aug 2026 11:49:12 +0800 [thread overview]
Message-ID: <5ecbbe3d-aa8c-409b-8963-0ee50b456814@intel.com> (raw)
In-Reply-To: <ef14b978-1b58-446f-b07a-691422220cb8@intel.com>
Hi Reinette,
On 8/11/2026 2:09 AM, Reinette Chatre wrote:
> Hi Chenyu,
>> I think "legacy" now refers to "MSR" in the context of region-aware RDT,
>> due to lack of mapping between MSR-based and MMIO-based values.
>
> From user space view "legacy" is the existing percentage based MB control
> that user space has been using until now. The only way to support this "legacy"
> user interface with region-aware hardware is to use the MSR interface, no?
Yes, agreed.
>> Then for the current region-aware MBA, should we add region-aware controllers
>> as the same level as legacy controller, instead of adding them in legacy
>> controllers' emulated_by list, since the legacy controller is not
>> emulated by region-aware controllers? And we might need to introduce enable/disable
>> flag per controller, which could be switched on/off when switching between
>> legacy and native.
> Please consider what will be required to support per-controller dynamic ("enable" vs "disable")
> state: resctrl fs needs to expose interfaces that accept control changes from user space after
> initialization that needs to be supported by architecture. In the current design resctrl fs expects
> controllers to be set and configured at the time it starts so such change would require new locking
> between resctrl fs and architecture. This complexity does not seem necessary to me since switching
> between legacy and native accomplishes the same, no?
>
OK, agreed.
> I find "region-aware controllers at the same level as legacy controller" together with
> "per controller enable/disable" conflicting since it creates impression that user space can
> enable/disable the controllers independently while there is a required dependency among the
> different controllers based on whether hardware has region-aware MBA enabled or not. Even
> here there would be a requirement to communicate to userspace which controllers could be
> enabled/disabled together ... which is the same as the emulated list, no?
I see. So we actually need a single option (control_mode) to switch
between modes (legacy vs.
native, mutually exclusive), rather than giving each controller its own
independent enable/disable
toggle. The emulated list is one way to implement control_mode, ensuring
"legacy" and "native"
are mutually exclusive.
>
> Also consider the future:
> (a) Would it be possible to map legacy control value to region aware control value in the future?
> I believe the answer is "yes". If resctrl starts by displaying the region-aware controllers
> as emulating the legacy controller in info/ then the transition to support this will
> be smooth.
>
> (b) Would MSR interface always be available?
> I do not think resctrl should always assume this to be the case. Here I also find that starting
> with exposing region aware controllers as emulating the legacy controller in info/ to support
> a smooth transition.
>
> What problem(s) do you envision?
>
Based on this design, I don’t see any issues. So putting native
controllers under the legacy
controller could be a viable approach that can be extended in the future.
thanks,
Chenyu
next prev parent reply other threads:[~2026-08-11 3:49 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-08-04 5:26 [RFC v2] arm,x86,fs/resctrl: Generic schema description Proof of Concept Reinette Chatre
2026-08-05 16:59 ` Ben Horgan
2026-08-05 23:57 ` Reinette Chatre
2026-08-06 17:04 ` Luck, Tony
2026-08-06 17:11 ` Reinette Chatre
2026-08-07 14:14 ` Moger, Babu
2026-08-07 15:35 ` Reinette Chatre
2026-08-07 18:33 ` Moger, Babu
2026-08-07 22:53 ` Reinette Chatre
2026-08-10 18:52 ` Babu Moger
2026-08-11 4:06 ` Reinette Chatre
2026-08-07 15:35 ` Chen, Yu C
2026-08-07 17:57 ` Moger, Babu
2026-08-10 2:05 ` Chen, Yu C
2026-08-10 15:53 ` Reinette Chatre
2026-08-10 17:23 ` Chen, Yu C
2026-08-10 18:09 ` Reinette Chatre
2026-08-11 3:49 ` Chen, Yu C [this message]
2026-08-10 2:55 ` Fenghua Yu
2026-08-10 3:02 ` Chen, Yu C
2026-08-10 3:25 ` Fenghua Yu
2026-08-10 5:24 ` Chen, Yu C
2026-08-10 15:53 ` Reinette Chatre
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=5ecbbe3d-aa8c-409b-8963-0ee50b456814@intel.com \
--to=yu.c.chen@intel.com \
--cc=Dave.Martin@arm.com \
--cc=babu.moger@amd.com \
--cc=ben.horgan@arm.com \
--cc=bp@alien8.de \
--cc=chen.yu@linux.dev \
--cc=dave.hansen@linux.intel.com \
--cc=fenghuay@nvidia.com \
--cc=fustini@kernel.org \
--cc=james.morse@arm.com \
--cc=linux-kernel@vger.kernel.org \
--cc=peternewman@google.com \
--cc=reinette.chatre@intel.com \
--cc=tglx@linutronix.de \
--cc=tony.luck@intel.com \
--cc=x86@kernel.org \
/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