Re: [PATCH v7 28/49] x86/resctrl: Handle throttle_mode for SMBA resources

Fenghua Yu
2025-03-06T21:37:57Z

On 2/28/25 11:58, James Morse wrote:
> Now that the visibility of throttle_mode is being managed by resctrl, it
> should consider resources other than MBA that may have a throttle_mode.
> SMBA is one such resource.
>
> Extend thread_throttle_mode_init() to check SMBA for a throttle_mode.
>
> Adding support for multiple resources means it is possible for a platform
> with both MBA and SMBA, but an undefined throttle_mode on one of them
> to make the file visible.
>
> Add the 'undefined' case to rdt_thread_throttle_mode_show().
>
> Signed-off-by: James Morse <james.morse@arm.com>
> Reviewed-by: Reinette Chatre <reinette.chatre@intel.com>
Reviewed-by: Fenghua Yu <fenghuay@nvidia.com>

Thanks.

-Fenghua