Re: [PATCH v2 36/45] arm_mpam: resctrl: Update the rmid reallocation limit
From: Jonathan Cameron
Date: Tue Jan 06 2026 - 09:47:03 EST
On Fri, 19 Dec 2025 18:11:38 +0000
Ben Horgan <ben.horgan@xxxxxxx> wrote:
> From: James Morse <james.morse@xxxxxxx>
>
> resctrl's limbo code needs to be told when the data left in a cache is
> small enough for the partid+pmg value to be re-allocated.
>
> x86 uses the cache size divided by the number of rmid users the cache may
> have. Do the same, but for the smallest cache, and with the number of
> partid-and-pmg users.
>
> Querying the cache size can't happen until after cacheinfo_sysfs_init() has
> run, so mpam_resctrl_setup() must wait until then.
>
> Signed-off-by: James Morse <james.morse@xxxxxxx>
> Signed-off-by: Ben Horgan <ben.horgan@xxxxxxx>
Reviewed-by: Jonathan Cameron <jonathan.cameron@xxxxxxxxxx>