From: Reinette Chatre <reinette.chatre@intel.com>
To: Chen Yu <yu.c.chen@intel.com>
Cc: Chen Yu <chen.yu@linux.dev>, <tony.luck@intel.com>,
<ben.horgan@arm.com>, <james.morse@arm.com>,
<Dave.Martin@arm.com>, <babu.moger@amd.com>, <bp@alien8.de>,
<tglx@linutronix.de>, <dave.hansen@linux.intel.com>,
<x86@kernel.org>, <hpa@zytor.com>, <fustini@kernel.org>,
<fenghuay@nvidia.com>, <peternewman@google.com>,
<linux-kernel@vger.kernel.org>, <patches@lists.linux.dev>
Subject: Re: [PATCH v2 3/5] x86,fs/resctrl: Move MSR_IA32_L{2,3}_QOS_CFG scope property to x86 resource
Date: Tue, 20 Oct 2026 14:01:32 -0700 [thread overview]
Message-ID: <fc6d7f3e-1f14-4387-8c48-f3c065aec4da@intel.com> (raw)
In-Reply-To: <atcEoIz4kkQFyEgx@chenyu-dev>
Hi Chenyu,
On 10/19/26 11:05 PM, Chen Yu wrote:
> On Mon, Oct 19, 2026 at 04:06:35PM -0700, Reinette Chatre wrote:
>> On 10/18/26 10:40 AM, Chen Yu wrote:
>>> On Wed, Oct 07, 2026 at 02:06:45PM -0700, Reinette Chatre wrote:
...
>>>> @@ -140,6 +143,7 @@ struct rdt_hw_resource {
>>>> unsigned int mon_scale;
>>>> unsigned int mbm_width;
>>>> bool cdp_enabled;
>>>> + bool qos_cfg_has_cpu_scope;
>>>> bool mbm_cntr_assign_enabled;
>>>> bool sdciae_enabled;
>>>> };
>>>
>>> It seems that some flags are in resource scope, while others are in the controller's scope,
>>> cache's flags are in the resource scope, MB's flags are in controller's scope, for example "linear".
>>
>> The goal of this change is to move this information into the only (x86) architectural driver where it
>> is relevant.
>>
>> These "flags" are different in a couple of ways:
>> a) qos_cfg_has_cpu_scope is specific to x86 architecture (thus located in struct rdt_hw_resource of
>> x86 driver, not struct rdt_resource belonging to resctrl fs) - this information is not exposed
>> to user space nor is it of use to resctrl filesystem. This is just information internal to
>> architecture whether the x86 MSR has CPU or domain scope to accommodate this difference between
>> AMD and Intel.
>> b) the MB controller flags like scalar and linear are associated with the controller,
>> exposed to user space, and managed by resctrl filesystem.
>>
>
> I see, the hardware-specific attributes/indicators could be in the hardware resource
> scope(and usually they are global settings), while the MB controller's flag is not hardware
> specific, and they are not global settings.
>
>> To me this qos_cfg_has_cpu_scope flag is closer to the architectural support you are working on
>> that contains within x86 architecture driver the decision whether it should use ACPI or MSR than
>> it is to control flags.
>>
>
> It seems to be a little different in the control_mode case, currently control_mode is in the
> struct rdt_resource, but its callback resctrl_arch_control_mode_set() is x86 architecture driver
> specific.
Yes, this is different from control mode. I was actually referring to the CMT ERDT enabling
you are working on where the decision whether to use MMIO as discovered via ACPI or MSR is internal
to x86 driver.
...
>>
>>> Review-by: Chen Yu <yu.c.chen@intel.com>
>> Thanks, but I do not think we have the same view of this change. Please let me know if you
>> still feel this patch is ok after this discussion.
>>
>
> Yes, thanks for the detailed explanation. This patch is OK with me.
Thank you very much.
Reinette
next prev parent reply other threads:[~2026-10-20 21:01 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-10-07 21:06 [PATCH v2 0/5] x86,fs/resctrl: Cleanups in preparation for multiple controls support Reinette Chatre
2026-10-07 21:06 ` [PATCH v2 1/5] x86,fs/resctrl: Remove unused non-linear bandwidth delay mapping Reinette Chatre
2026-10-07 21:06 ` [PATCH v2 2/5] x86,fs/resctrl: Remove unnecessary non-linear MBA configuration check Reinette Chatre
2026-10-08 7:14 ` Chen Yu
2026-10-07 21:06 ` [PATCH v2 3/5] x86,fs/resctrl: Move MSR_IA32_L{2,3}_QOS_CFG scope property to x86 resource Reinette Chatre
2026-10-18 17:40 ` Chen Yu
2026-10-19 23:06 ` Reinette Chatre
2026-10-20 6:05 ` Chen Yu
2026-10-20 21:01 ` Reinette Chatre [this message]
2026-10-07 21:06 ` [PATCH v2 4/5] fs/resctrl: Drop unnecessary is_mba_linear() helper Reinette Chatre
2026-10-07 21:06 ` [PATCH v2 5/5] fs/resctrl: Drop unnecessary parameter from resctrl_io_alloc_parse_line() Reinette Chatre
2026-10-18 17:44 ` Chen Yu
2026-10-08 16:12 ` [PATCH v2 0/5] x86,fs/resctrl: Cleanups in preparation for multiple controls support Luck, Tony
2026-10-08 22:48 ` 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=fc6d7f3e-1f14-4387-8c48-f3c065aec4da@intel.com \
--to=reinette.chatre@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=hpa@zytor.com \
--cc=james.morse@arm.com \
--cc=linux-kernel@vger.kernel.org \
--cc=patches@lists.linux.dev \
--cc=peternewman@google.com \
--cc=tglx@linutronix.de \
--cc=tony.luck@intel.com \
--cc=x86@kernel.org \
--cc=yu.c.chen@intel.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®