Re: [RFC PATCH 27/38] arm_mpam: resctrl: Add empty definitions for assorted resctrl functions

Ben Horgan
2025-12-09T16:31:05Z

Hi James,

On 12/5/25 21:58, James Morse wrote:
> A few resctrl features and hooks need to be provided, but aren't needed
> or supported on MPAM platforms.
>
> resctrl has individual hooks to separately enable and disable the
> closid/partid and rmid/pmg context switching code. For MPAM this is all
> the same thing, as the value in struct task_struct is used to cache the
> value that should be written to hardware. arm64's context switching code
> is enabled once MPAM is usable, but doesn't touch the hardware unless
> the value has changed.
>
> For now event configuration is not supported, and can be turned off
> by returning 'false' from resctrl_arch_is_evt_configurable().
>
> Add this, and empty definitions for the other hooks.
>
> Signed-off-by: James Morse <james.morse@arm.com>

The newly added io_alloc support means we need a couple more dummy
resctrl arch functions in here, resctrl_arch_io_alloc_enable() and
resctrl_arch_io_alloc_enabled().

Thanks,

Ben