[EXT] Re: [RFC 00/12] ARM: MPAM: add support for priority partitioning control
Tony Luck
tony.luck at intel.com
Thu Jan 11 13:40:32 PST 2024
On Thu, Jan 11, 2024 at 12:56:34PM -0800, Peter Newman wrote:
> Hi Amit,
>
> On Thu, Aug 24, 2023 at 1:52 AM Amit Singh Tomar <amitsinght at marvell.com> wrote:
>
> > 2) Second approach that we discussed internally is to have schemata for CPOR, and PPART separated by new line as mentioned/suggested by Peter, But it may require to tweak
> > the ARM MPAM device driver a bit. It was kind of toss-up between 2nd and 3nd approach :), and we went with the 3rd one.
> >
> > L3:0=XXXX
> > L3:0=PPART=X
I'm not sure having multiple lines for the same resource makes anything
clearer. I preferred one of the earlier proposals like this one:
L3:0=XXXX,PPART=X,CCAP=X;1=YYYY,CCAP=Y
This makes the schemata file self enumerate which optional capabilities
are present for each L3 instance (in the above example the second
instance doesn't support PPART, but does support CCAP).
Writes to the schemata file already accept partial information, so
the resctrl schemata_write() function should be coded to allow any of:
Just update CCAP for L3 instance 1":
# echo "L3:1=CCAP=Z" > schemata
Update mask and CCAP for instance 0:
# echo "L3:0=ABCD,CCAP=Q" > schemata
Update PPART on all instances:
# echo "L3:0=PPART=M;1=PPART=N" > schemata
Legacy app that only comprehends partioning updates instance 1:
# echo "L3:1=FFFF" > schemata
-Tony
More information about the linux-arm-kernel
mailing list