Re: [PATCH 01/18] x86/resctrl: Track the closid with the rmid

From: Peter Newman
Date: Mon Oct 31 2022 - 10:43:07 EST


Hi James,

On Fri, Oct 21, 2022 at 3:12 PM James Morse <james.morse@xxxxxxx> wrote:
>
> x86's RMID are independent of the CLOSID. An RMID can be allocated,
> used and freed without considering the CLOSID.
>
> MPAM's equivalent feature is PMG, which is not an independent number,
> it extends the CLOSID/PARTID space. For MPAM, only PMG-bits worth of
> 'RMID' can be allocated for a single CLOSID.
> i.e. if there is 1 bit of PMG space, then each CLOSID can have two
> monitor groups.
>
> To allow rescrl to disambiguate RMID values for different CLOSID,
> everything in resctrl that keeps an RMID value needs to know the CLOSID
> too. This will always be ignored on x86.

I recall that the allocation of RMIDs on MPAM was an open topic of
discussion on the other thread. Can we finish that discussion first?

https://lore.kernel.org/lkml/14df28f0-90b1-9c43-add5-08947165596d@xxxxxxxxx/

Thanks!
-Peter