Thread (200 messages) 200 messages, 10 authors, 2025-09-10

Re: [PATCH 18/33] arm_mpam: Merge supported features during mpam_enable() into mpam_class

From: Ben Horgan <ben.horgan@arm.com>
Date: 2025-08-29 13:54:41
Also in: linux-acpi, linux-devicetree, lkml

Hi James,

On 8/22/25 16:29, James Morse wrote:
To make a decision about whether to expose an mpam class as
a resctrl resource we need to know its overall supported
features and properties.

Once we've probed all the resources, we can walk the tree
and produce overall values by merging the bitmaps. This
eliminates features that are only supported by some MSC
that make up a component or class.

If bitmap properties are mismatched within a component we
cannot support the mismatched feature.

Care has to be taken as vMSC may hold mismatched RIS.

Signed-off-by: James Morse <james.morse@arm.com>
---
 drivers/resctrl/mpam_devices.c  | 215 ++++++++++++++++++++++++++++++++
 drivers/resctrl/mpam_internal.h |   8 ++
 2 files changed, 223 insertions(+)
Intricate but, as far as I can tell, all correct.

Reviewed-by: Ben Horgan <ben.horgan@arm.com>

Thanks,

Ben

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help