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

From: Jonathan Cameron

Date: Tue Jan 13 2026 - 09:55:45 EST


On Mon, 12 Jan 2026 16:58:51 +0000
Ben Horgan <ben.horgan@xxxxxxx> 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@xxxxxxx>
> Signed-off-by: Ben Horgan <ben.horgan@xxxxxxx>
Much easier to read. Thanks!

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