From: Ben Horgan <ben.horgan@arm.com>
To: Reinette Chatre <reinette.chatre@intel.com>
Cc: linux-kernel@vger.kernel.org, tony.luck@intel.com,
Dave.Martin@arm.com, james.morse@arm.com, babu.moger@amd.com,
tglx@kernel.org, mingo@redhat.com, bp@alien8.de,
dave.hansen@linux.intel.com, x86@kernel.org, hpa@zytor.com,
fenghuay@nvidia.com, tan.shaopeng@fujitsu.com
Subject: Re: [PATCH v1 2/4] fs/resctrl: Only show 'event_filter' files if events are configurable
Date: Tue, 3 Mar 2026 14:00:35 +0000 [thread overview]
Message-ID: <aabpg5Ws-JYYpI9-@e134344.arm.com> (raw)
In-Reply-To: <7c043aae-7495-4fa9-a630-ec9e1606cee5@intel.com>
Hi Reinette,
On Mon, Mar 02, 2026 at 03:12:52PM -0800, Reinette Chatre wrote:
> Hi Ben,
>
> On 2/25/26 12:19 PM, Ben Horgan wrote:
> > When the counter assignment mode is mbm_event resctrl assumes the mbm
> > events are configurable and exposes the 'event_filter' files. These files
> > live at info/L3_MON/event_configs/<event>/event_filter and are used to
> > display and set the event configuration.
> >
> > ABMC always supports event configuration but for MPAM they are
> > independent. Decouple event configuration from counter assignment by only
>
> Could you please elaborate what you mean with "independent" here? If event
> configuration is still supported when assignable counter mode is enabled, why
> can event configuration interface not just remain as-is? Could resctrl not
The two features of ABMC that I'm claiming are independent are: firstly,
requiring assignment of a hardware counter to to CTRL_MON/MON group in order to
allow using bandwidth monitoring when there are fewer hardware counters than
possible CTRL_MON/MON groups (num_rmid) and secondly bandwidth type
configuration for the counters.
The first is concerned with which, if any, hardware counter is used per group
and the second with what the counters are counting. To me these as appear as two
things that should be considered separatedly. Is this clearer?
I'm first trying to address the case where event configuration isn't supported
as we haven't currently got support for that in the MPAM driver and supporting
systems with fewer hardware counters than (PARTID, PMG) without unnecessary
limiting the exposed PARTID/PMG. Some MPAM hardware systems only have a single
bandwidth counter.
> display the existing event configuration and if user cannot modify it return
> a failure when user attempts to do so?
I guess it could. Currently in MPAM we just support mbm_total_bytes and so it
would always be 0x1F. Would we want some other way to indicate that it is fixed
rather than trying to change it? However, if we just remove the configuration
files then it seems natural for mbm_total_bytes to just have the same meaning as
it has when BMEC and ABMC are not enabled.
>
> Reinette
>
Thanks,
Ben
next prev parent reply other threads:[~2026-03-03 14:00 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-02-25 20:19 [PATCH v1 0/4] x86,fs/resctrl: Pave the way for MPAM counter assignment Ben Horgan
2026-02-25 20:19 ` [PATCH v1 1/4] x86,fs/resctrl: Make resctrl_arch_is_evt_configurable() aware of mbm_assign_mode Ben Horgan
2026-03-02 23:11 ` Reinette Chatre
2026-03-03 12:29 ` Ben Horgan
2026-03-03 18:09 ` Reinette Chatre
2026-03-04 11:07 ` Ben Horgan
2026-03-04 17:02 ` Reinette Chatre
2026-03-04 17:37 ` Ben Horgan
2026-03-04 19:23 ` Reinette Chatre
2026-03-04 21:01 ` Ben Horgan
2026-03-04 22:50 ` Reinette Chatre
2026-03-05 10:01 ` Ben Horgan
2026-03-05 17:22 ` Reinette Chatre
2026-03-05 17:34 ` Ben Horgan
2026-02-25 20:19 ` [PATCH v1 2/4] fs/resctrl: Only show 'event_filter' files if events are configurable Ben Horgan
2026-03-02 23:12 ` Reinette Chatre
2026-03-03 14:00 ` Ben Horgan [this message]
2026-03-03 18:14 ` Reinette Chatre
2026-03-04 11:31 ` Ben Horgan
2026-03-04 17:03 ` Reinette Chatre
2026-03-04 17:53 ` Ben Horgan
2026-02-25 20:19 ` [PATCH v1 3/4] fs/resctrl: Disallow the software controller when mbm counters are assignable Ben Horgan
2026-02-25 20:19 ` [PATCH v1 4/4] arm_mpam: resctrl: Use new signature for resctrl_arch_is_evt_configurable() Ben Horgan
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=aabpg5Ws-JYYpI9-@e134344.arm.com \
--to=ben.horgan@arm.com \
--cc=Dave.Martin@arm.com \
--cc=babu.moger@amd.com \
--cc=bp@alien8.de \
--cc=dave.hansen@linux.intel.com \
--cc=fenghuay@nvidia.com \
--cc=hpa@zytor.com \
--cc=james.morse@arm.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@redhat.com \
--cc=reinette.chatre@intel.com \
--cc=tan.shaopeng@fujitsu.com \
--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