Re: [PATCH v3 24/47] arm_mpam: resctrl: Add rmid index helpers

Jonathan Cameron
2026-01-13T14:55:45Z

On Mon, 12 Jan 2026 16:58:51 +0000
Ben Horgan <ben.horgan@arm.com> wrote:

> Because MPAM's pmg aren't identical to RDT's rmid, resctrl handles some
> data structures by index. This allows x86 to map indexes to RMID, and MPAM
> to map them to partid-and-pmg.
>
> Add the helpers to do this.
>
> Suggested-by: James Morse <james.morse@arm.com>
> Signed-off-by: Ben Horgan <ben.horgan@arm.com>
Much easier to read. Thanks!

Reviewed-by: Jonathan Cameron <jonathan.cameron@huawei.com>