Re: [PATCH v7 05/11] arm_mpam: propagate MSC access errors for __ris_msmon_read()

From: Gavin Shan

Date: Mon Aug 03 2026 - 23:51:36 EST


On 8/1/26 3:03 AM, Andre Przywara wrote:
Allow the function for RIS accesses to return an error, and propagate
read and write errors from the lower level up.
This function is a bit special, since it can be called via an SMP
helper, so the prototype must stay as void. So propagate any errors
using the "err" field in the struct passed in as the sole argument to
that function.

Signed-off-by: Andre Przywara <andre.przywara@xxxxxxx>
Reviewed-by: Jonathan Cameron <jonathan.cameron@xxxxxxxxxxxxxxxx>
---
drivers/resctrl/mpam_devices.c | 36 +++++++++++++++++++++++++---------
1 file changed, 27 insertions(+), 9 deletions(-)

Reviewed-by: Gavin Shan <gshan@xxxxxxxxxx>