[PATCH RFC v3 16/21] arm64: psci: Ignore DENIED CPUs

Jonathan Cameron Jonathan.Cameron at Huawei.com
Fri Dec 15 08:40:27 PST 2023


On Wed, 13 Dec 2023 12:50:33 +0000
Russell King (Oracle) <rmk+kernel at armlinux.org.uk> wrote:

> From: Jean-Philippe Brucker <jean-philippe at linaro.org>
> 
> When a CPU is marked as disabled, but online capable in the MADT, PSCI
> applies some firmware policy to control when it can be brought online.
> PSCI returns DENIED to a CPU_ON request if this is not currently
> permitted. The OS can learn the current policy from the _STA enabled bit.
> 
> Handle the PSCI DENIED return code gracefully instead of printing an
> error.
> 
> See https://developer.arm.com/documentation/den0022/f/?lang=en page 58.
> 
> Signed-off-by: Jean-Philippe Brucker <jean-philippe at linaro.org>
> [ morse: Rewrote commit message ]
> Signed-off-by: James Morse <james.morse at arm.com>
> Tested-by: Miguel Luis <miguel.luis at oracle.com>
> Tested-by: Vishnu Pajjuri <vishnu at os.amperecomputing.com>
> Tested-by: Jianyong Wu <jianyong.wu at arm.com>
> Signed-off-by: Russell King (Oracle) <rmk+kernel at armlinux.org.uk>
Reviewed-by: Jonathan Cameron <Jonathan.Cameron at huawei.com>



More information about the linux-riscv mailing list