From: Ben Horgan <ben.horgan@arm.com>
To: Reinette Chatre <reinette.chatre@intel.com>,
linux-kernel@vger.kernel.org
Cc: tony.luck@intel.com, Dave.Martin@arm.com, james.morse@arm.com,
babu.moger@amd.com, bp@alien8.de
Subject: Re: [PATCH v1] fs/resctrl: Add missing kconfig entry for CONFIG_RESCTRL_ASSIGN_FIXED
Date: Fri, 16 Jan 2026 09:51:19 +0000 [thread overview]
Message-ID: <9e60cc0d-43d1-4110-9299-cc7348fd8295@arm.com> (raw)
In-Reply-To: <09528aec-04d8-41ab-b997-75d7e97b9916@intel.com>
Hi Reinette,
On 1/15/26 17:19, Reinette Chatre wrote:
> Hi Ben,
>
> On 1/15/26 7:46 AM, Ben Horgan wrote:
>> Hi Reinette,
>>
>> On 1/15/26 15:37, Reinette Chatre wrote:
>>> Hi Ben,
>>>
>>> On 1/15/26 2:32 AM, Ben Horgan wrote:
>>>> On 1/14/26 19:09, Reinette Chatre wrote:
>>>>> On 1/13/26 6:49 AM, Ben Horgan wrote:
>>>>>> The commit 3b497c3f4f04 ("fs/resctrl: Introduce the interface to display
>>>>>> monitoring modes") introduced CONFIG_RESCTRL_ASSIGN_FIXED but did not add
>>>>>> the kconfig entry. Add this.
>>>>>>
>>>>>> Also, take the opportunity ensure that any user attempt to change the
>>>>>> assign mode fails from the resctrl code rather than delegating to the arch
>>>>>> specific code and let the user know by adding a message in last_cmd_status.
>>>>>
>>>>> Why *any* attempt? Avoiding delegating to arch seems ok as a goal but this change
>>>>> additionally changes interface with user space. Current behavior when user writes
>>>>> existing mode to the file is to just return success. For example, if current mode
>>>>> is "default" and user writes "default". This patch changes this behavior to fail
>>>>> instead. Is this intended?
>>>>
>>>> Intended but as you point out, it would be best to accept the current
>>>> value without error for maximum compatibility between architectures.
>>>> I'll update the config option help text to reflect this. Was the help
>>>> text also discussed previously?
>>>
>>> It is not clear to me which help text you are referring to. Could you
>>> please point me to it?
>>
>> I just mean the description in Kconfig. Maybe I'm using the wrong
>> terminology?
>
> Counter assignment mode is the right terminology and used throughout the resctrl
> documentation.
Ack.
>
>>
>> From this patch:
>> help
>> Enabled by the architecture when the counter assignment mode is not
>> configurable. This ensures that counter assignment is not
>
> nit: I recommend above "counter assignment" be "counter assignment mode" to be specific
> that this is about the *mode* being configurable and not talking about the actual counter
> assignment.
>
> Also please ensure that the formatting adheres to the guidance in "Kconfig configuration
> files" in Documentation/process/coding-style.rst. Specifically, "help text is indented an
> additional two spaces".
Will do.
>
>> advertised as
>> configurable and configuration attempts fail.
>
> "configuration attempts" -> "attempts to change counter assignment mode"?
Sure.
>
> As a sidenote, if I understand correctly, MPAM can actually support changing the mode
> when it is in "free running" mode (when there are enough counters/monitors available). It
> seems to me these systems *could* advertise something like:
>
> # cat /sys/fs/resctrl/info/L3_MON/mbm_assign_mode
> [default]
> mbm_event
>
> It is not clear to me if there is a scenario that would benefit from such capability though.
> I just bring this up to confirm whether CONFIG_RESCTRL_ASSIGN_FIXED is something that
> MPAM enabling wants to enforce for all platforms?
On a platform with sufficient monitors to have one per rmid idx
(num_partid * num_pmg) it would be architecturally possible to use
either mode but the policy decision is that the driver will always
decides which mode to use at probe based on whether there are
sufficient monitors or not. Hence, we want to enforce
CONFIG_RESCTRL_ASSIGN_FIXED for all platforms.
>
> Reinette
Thanks,
Ben
prev parent reply other threads:[~2026-01-16 9:51 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-01-13 14:49 [PATCH v1] fs/resctrl: Add missing kconfig entry for CONFIG_RESCTRL_ASSIGN_FIXED Ben Horgan
2026-01-13 19:10 ` Babu Moger
2026-01-15 11:41 ` Ben Horgan
2026-01-14 19:09 ` Reinette Chatre
2026-01-15 10:32 ` Ben Horgan
2026-01-15 15:37 ` Reinette Chatre
2026-01-15 15:46 ` Ben Horgan
2026-01-15 17:19 ` Reinette Chatre
2026-01-16 9:51 ` Ben Horgan [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=9e60cc0d-43d1-4110-9299-cc7348fd8295@arm.com \
--to=ben.horgan@arm.com \
--cc=Dave.Martin@arm.com \
--cc=babu.moger@amd.com \
--cc=bp@alien8.de \
--cc=james.morse@arm.com \
--cc=linux-kernel@vger.kernel.org \
--cc=reinette.chatre@intel.com \
--cc=tony.luck@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.