From: "Shaopeng Tan (Fujitsu)" <tan.shaopeng@fujitsu.com>
To: Zeng Heng <zengheng@picoheart.com>,
"Jinjie Ruan <ruanjinjie@huawei.com>" <ruanjinjie@huawei.com>,
"tony.luck@intel.com" <tony.luck@intel.com>,
"reinette.chatre@intel.com" <reinette.chatre@intel.com>,
"Dave.Martin@arm.com" <Dave.Martin@arm.com>,
"james.morse@arm.com" <james.morse@arm.com>,
"babu.moger@amd.com" <babu.moger@amd.com>,
"tglx@kernel.org" <tglx@kernel.org>,
"mingo@redhat.com" <mingo@redhat.com>,
"bp@alien8.de" <bp@alien8.de>,
"dave.hansen@linux.intel.com" <dave.hansen@linux.intel.com>,
"hpa@zytor.com" <hpa@zytor.com>,
"ben.horgan@arm.com" <ben.horgan@arm.com>,
"fenghuay@nvidia.com" <fenghuay@nvidia.com>,
"x86@kernel.org" <x86@kernel.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH v9 0/9] arm_mpam: Introduce Narrow-PARTID feature
Date: Fri, 23 Oct 2026 02:53:24 +0000 [thread overview]
Message-ID: <TY4PR01MB16930C19CEFB050B742F74AF68B642@TY4PR01MB16930.jpnprd01.prod.outlook.com> (raw)
In-Reply-To: <88c6c8cd-5da7-4c28-8d5c-7d6489e5913f@picoheart.com>
Hello Jinjie, ZengHeng,
> >
> > I would like to confirm the following points.
> >
> > - Is the number of reqPARTIDs per intPARTID dependent on the total number of intPARTIDs and reqPARTIDs?
>
> Hi Shaopeng,
>
> You are right,
>
> reqPARTID % mpam_num_closid(the total number of intPARTIDs) -> intPARTID
>
> so reqPARTIDs per intPARTID = Total number of reqPARTIDs / Total number
> of intPARTIDs
>
> > - Given that requirements for the number of control and monitoring groups vary by user,
> > would dynamic configuration of the mapping ratio between intPARTID and reqPARTID be a more suitable approach?
>
> No, in v8 James has suggested "static first" and avoid exposing user ABI
> in multiple places below:
>
> "I think we should leave anything dynamic here for the further future,
> lets get static partitioning working first"
>
> "I'd prefer we get the static grouping working first, before we work out
> what needs changing in resctrl to do it dynamically"
>
> "I'd like to avoid exposing user ABI to control this until we get it
> working, then we can talk about whether to try making the grouping
> dynamically managed by resctrl."
>
> Link:
> https://lore.kernel.org/all/2944b506-a462-42f8-95cf-404241fb27f0@arm.com/
> Link:
> https://lore.kernel.org/all/ec8bc617-9e74-4749-ab33-39d1079415cc@arm.com/
>
>
> > - Regarding the mapping logic, some reqPARTIDs may remain unused. Is this the expected behavior?
>
> As mentioned above, we are implementing the static solution first, so it
> is expected behavior that some of the reqpartids are not used.
>
> > - Considering that Arm has previously implemented this,
> > are there any gaps between their implementation and Huawei’s requirements?
> > https://lore.kernel.org/linux-arm-kernel/20241212154000.330467-1-Dave.Martin@arm.com/
>
> I haven't looked at the ARM implementation yet (I'll refer to it later),
> but currently the code is being gradually aligned with the maintainer's
> review comments.
My understanding is that if hardware supports PARTID Narrowing,
the feature is automatically enabled in the current driver implementation.
This implies that users cannot disable it even if they wish to do so.
Could you please confirm if my understanding is correct?
If so, I believe we need a mechanism to explicitly enable or disable this feature. In Dave Martin's proposal,
a partid_per_closid switch was introduced, where partid_per_closid = 1 effectively disables the feature,
while setting it to `N` allows for customization to meet individual user requirements.
It would be ideal if we could configure the partid_per_closid value during the MPAM driver load time,
avoiding the need for dynamic changes while the driver is in use. What are your thoughts on this approach?
Additionally, could you please let me know which branch this patch series is based on?
Best regards,
Shaopeng TAN
next prev parent reply other threads:[~2026-10-23 2:53 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-10-12 8:23 Jinjie Ruan
2026-10-12 8:23 ` [PATCH v9 1/9] fs/resctrl: Unmount resctrl with the CDP state it was mounted with Jinjie Ruan
2026-10-12 8:23 ` [PATCH v9 2/9] fs/resctrl: Add resctrl_arch_rmid_idx_match() helper Jinjie Ruan
2026-10-26 12:12 ` Ben Horgan
2026-10-27 3:56 ` Jinjie Ruan
2026-10-12 8:23 ` [PATCH v9 3/9] arm_mpam: resctrl: Add resctrl_closid_rmid_to_partid_pmg() helper Jinjie Ruan
2026-10-12 8:23 ` [PATCH v9 4/9] arm_mpam: Add a helper to check a PARTID is in a CLOSID Jinjie Ruan
2026-10-12 8:23 ` [PATCH v9 5/9] arm_mpam: Track the PARTID and internal PARTID limits per class Jinjie Ruan
2026-10-12 8:23 ` [PATCH v9 6/9] arm_mpam: Divide the PARTIDs between the control groups Jinjie Ruan
2026-10-12 8:23 ` [PATCH v9 7/9] arm_mpam: Map resctrl RMIDs onto the request PARTIDs Jinjie Ruan
2026-10-12 8:23 ` [PATCH v9 8/9] arm_mpam: Identify the non-aliasing controls Jinjie Ruan
2026-10-12 8:23 ` [PATCH v9 9/9] arm_mpam: Use the request PARTIDs beyond the internal range Jinjie Ruan
2026-10-22 0:02 ` [PATCH v9 0/9] arm_mpam: Introduce Narrow-PARTID feature Shaopeng Tan (Fujitsu)
2026-10-22 1:51 ` Jinjie Ruan
2026-10-22 13:20 ` Zeng Heng
2026-10-23 2:53 ` Shaopeng Tan (Fujitsu) [this message]
2026-10-23 3:24 ` Jinjie Ruan
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=TY4PR01MB16930C19CEFB050B742F74AF68B642@TY4PR01MB16930.jpnprd01.prod.outlook.com \
--to=tan.shaopeng@fujitsu.com \
--cc=Dave.Martin@arm.com \
--cc=babu.moger@amd.com \
--cc=ben.horgan@arm.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=ruanjinjie@huawei.com \
--cc=tglx@kernel.org \
--cc=tony.luck@intel.com \
--cc=x86@kernel.org \
--cc=zengheng@picoheart.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®