Re: [PATCH v7 02/11] arm_mpam: propagate MSC access errors for hw_probe functions

Gavin Shan <[email protected]> Tue, 4 Aug 2026 13:42:14 +1000
Newsgroups gmane.linux.kernel,gmane.linux.acpi.devel,gmane.linux.ports.arm.kernel
Message-ID <[email protected]>
On 8/1/26 3:03 AM, Andre Przywara wrote:
> Allow the functions probing for MSC hardware and features to return an
> error, and propagate read and write errors from the lower level up.
> This uses some "scoped cleanup" functions like scoped_guard() and
> ACQUIRE() to avoid the complexity of error handling when a lock has been
> taken. Since the mon_sel_lock is a bit special (even more so in an
> upcoming patch), we define a new GUARD type for it.
> 
> Signed-off-by: Andre Przywara <[email protected]>
> Reviewed-by: Jonathan Cameron <[email protected]>
> Reviewed-by: Ben Horgan <[email protected]>
> ---
>   drivers/resctrl/mpam_devices.c  | 126 +++++++++++++++++++++-----------
>   drivers/resctrl/mpam_internal.h |   4 +
>   2 files changed, 87 insertions(+), 43 deletions(-)
> 
Reviewed-by: Gavin Shan <[email protected]>