From: Reinette Chatre <reinette.chatre@intel.com>
To: Babu Moger <babu.moger@amd.com>, <tony.luck@intel.com>, <bp@alien8.de>
Cc: <x86@kernel.org>, <Dave.Martin@arm.com>, <james.morse@arm.com>,
<corbet@lwn.net>, <skhan@linuxfoundation.org>,
<rdunlap@infradead.org>, <tglx@kernel.org>, <mingo@redhat.com>,
<dave.hansen@linux.intel.com>, <hpa@zytor.com>, <kas@kernel.org>,
<rick.p.edgecombe@intel.com>, <linux-kernel@vger.kernel.org>,
<linux-doc@vger.kernel.org>, <linux-coco@lists.linux.dev>,
<kvm@vger.kernel.org>
Subject: Re: [PATCH v5 2/2] x86,fs/resctrl: Keep mbm_assign_mode in default mode at boot
Date: Tue, 27 Oct 2026 09:36:03 -0700 [thread overview]
Message-ID: <98597562-0c2c-4b32-a0b0-77777b8076c8@intel.com> (raw)
In-Reply-To: <9778fb3e-f5f8-4137-be2a-598cd44fc6f4@amd.com>
Hi Babu,
On 10/27/26 7:48 AM, Babu Moger wrote:
> On 10/26/26 19:15, Reinette Chatre wrote:
>> On 10/21/26 4:58 PM, Babu Moger wrote:
...
>>
>>> + # cat /sys/fs/resctrl/info/L3_MON/mbm_assign_mode
>>> + [default]
>>> + mbm_event
>>> +
>>> +The "default" mode is enabled. "mbm_event" is supported but not enabled.
>>> +b. Enable "mbm_event" mode. Switching the mbm_assign_mode may
>>> +reset all the MBM counters (and thus all MBM events) of all the resctrl groups.
>>> +::
>>> +
>>> + # echo "mbm_event" > /sys/fs/resctrl/info/L3_MON/mbm_assign_mode
>>> # cat /sys/fs/resctrl/info/L3_MON/mbm_assign_mode
>>> [mbm_event]
>>> default
>>>
>>
>> The above changes could be merged together under a single step "a" that
>> will significantly reduce the churn when considering this is a stable patch.
>
> Yes. We can. But because of auto assign is not enabled on mode switch, we still have to touch few steps. Your choice.
Understood. The benefit here is that the patch will only change actual information.
Specifically, changes like the two below that just updates the letter
associated with the step:
>>> -b. Check how many assignable counters are supported.
>>> +c. Check how many assignable counters are supported.
>>> ::
>>> # cat /sys/fs/resctrl/info/L3_MON/num_mbm_cntrs
>>> 0=32;1=32
and
>>> -c. Check how many assignable counters are available for assignment in each domain.
>>> +d. Check how many assignable counters are available for assignment in each domain.
>>> ::
will be dropped from the patch. They distract from the core change and do not
seem appropriate for a patch headed to stable.
...
>>> -h. Read the events mbm_total_bytes and mbm_local_bytes of the default group. There is
>>> +i. Read the events mbm_total_bytes and mbm_local_bytes of the default group. There is
>>> no change in reading the events with the assignment.
>>> ::
>>
>> Could you please remind me if the first read after assignment returns
>> "Unavailable" or a valid count?
>
>
> As far as I have observed, mbm_event mode (ABMC) returns either 0
> when there is no activity or a valid count. I have not personally
> encountered an Unavailable value. However, the specification allows
> Unavailable to be returned when the count is not available.
Thank you for checking. I just wanted to confirm that the values shown
reasonably represents what a user may see.
Reinette
next prev parent reply other threads:[~2026-10-27 16:36 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-10-21 23:58 [PATCH v5 0/2] x86,fs/resctrl: Keep default MBM mode at boot and fix ABMC programming Babu Moger
2026-10-21 23:58 ` [PATCH v5 1/2] x86/resctrl: Fix ABMC counter programming Babu Moger
2026-10-21 23:58 ` [PATCH v5 2/2] x86,fs/resctrl: Keep mbm_assign_mode in default mode at boot Babu Moger
2026-10-27 0:15 ` Reinette Chatre
2026-10-27 14:48 ` Babu Moger
2026-10-27 16:36 ` Reinette Chatre [this message]
2026-10-27 19:12 ` Babu Moger
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=98597562-0c2c-4b32-a0b0-77777b8076c8@intel.com \
--to=reinette.chatre@intel.com \
--cc=Dave.Martin@arm.com \
--cc=babu.moger@amd.com \
--cc=bp@alien8.de \
--cc=corbet@lwn.net \
--cc=dave.hansen@linux.intel.com \
--cc=hpa@zytor.com \
--cc=james.morse@arm.com \
--cc=kas@kernel.org \
--cc=kvm@vger.kernel.org \
--cc=linux-coco@lists.linux.dev \
--cc=linux-doc@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@redhat.com \
--cc=rdunlap@infradead.org \
--cc=rick.p.edgecombe@intel.com \
--cc=skhan@linuxfoundation.org \
--cc=tglx@kernel.org \
--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
all inboxes | Powered by JetHome®