From: Babu Moger <babu.moger@amd.com>
To: Reinette Chatre <reinette.chatre@intel.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 14:12:24 -0500 [thread overview]
Message-ID: <5135e588-0a73-4d1d-8e1e-7894e8b7089f@amd.com> (raw)
In-Reply-To: <98597562-0c2c-4b32-a0b0-77777b8076c8@intel.com>
Hi Reinette,
On 10/27/26 11:36, Reinette Chatre wrote:
> 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
Yea. This will be dropped.>
> 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.
Actually, the step (d) will be partially dropped as assignable counters
changed from 30 to 32 without auto-assignment.
# cat /sys/fs/resctrl/info/L3_MON/available_mbm_cntrs
- 0=30;1=30
+ 0=32;1=32
Will send the updated series later this week.
Also, noticed a minor typo:
- # cat /sys/fs/resctrl/mbm_L3_assignment
+ # cat /sys/fs/resctrl/mbm_L3_assignments
Thanks
Babu
prev parent reply other threads:[~2026-10-27 19:12 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
2026-10-27 19:12 ` Babu Moger [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=5135e588-0a73-4d1d-8e1e-7894e8b7089f@amd.com \
--to=babu.moger@amd.com \
--cc=Dave.Martin@arm.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=reinette.chatre@intel.com \
--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®