Re: [PATCH v4 08/41] arm64: mpam: Add cpu_pm notifier to restore MPAM sysregs
From: Catalin Marinas
Date: Thu Feb 05 2026 - 11:59:45 EST
On Tue, Feb 03, 2026 at 09:43:09PM +0000, Ben Horgan wrote:
> From: James Morse <james.morse@xxxxxxx>
>
> The MPAM system registers will be lost if the CPU is reset during PSCI's
> CPU_SUSPEND.
>
> Add a PM notifier to restore them.
>
> mpam_thread_switch(current) can't be used as this won't make any changes if
> the in-memory copy says the register already has the correct value. In
> reality the system register is UNKNOWN out of reset.
>
> Tested-by: Gavin Shan <gshan@xxxxxxxxxx>
> Tested-by: Shaopeng Tan <tan.shaopeng@xxxxxxxxxxxxxx>
> Tested-by: Peter Newman <peternewman@xxxxxxxxxx>
> Reviewed-by: Jonathan Cameron <jonathan.cameron@xxxxxxxxxx>
> Reviewed-by: Gavin Shan <gshan@xxxxxxxxxx>
> Signed-off-by: James Morse <james.morse@xxxxxxx>
> Signed-off-by: Ben Horgan <ben.horgan@xxxxxxx>
Reviewed-by: Catalin Marinas <catalin.marinas@xxxxxxx>