Re: [PATCH v2 36/45] arm_mpam: resctrl: Update the rmid reallocation limit

Jonathan Cameron
2026-01-06T14:47:03Z

On Fri, 19 Dec 2025 18:11:38 +0000
Ben Horgan <ben.horgan@arm.com> wrote:

> From: James Morse <james.morse@arm.com>
>
> 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@arm.com>
> Signed-off-by: Ben Horgan <ben.horgan@arm.com>
Reviewed-by: Jonathan Cameron <jonathan.cameron@huawei.com>