ArmPkg/ArmPsciMpServices: Add EFI_NOT_READY return

Add EFI_NOT_READY return if the CPU can not be enabled because the
processor is already on.

This can occur in normal use if the CPU is still being turned off from
a previous call when this is called again.

Signed-off-by: Jeff Brasen <jbrasen@nvidia.com>
Reviewed-by: Rebecca Cran <rebecca@bsdio.com>
This commit is contained in:
Jeff Brasen via groups.io 2023-06-29 20:46:48 +00:00 committed by mergify[bot]
parent 772ec92577
commit 01e1bc2894
1 changed files with 3 additions and 1 deletions

View File

@ -103,7 +103,9 @@ DispatchCpu (
ArmCallSmc (&Args);
if (Args.Arg0 != ARM_SMC_PSCI_RET_SUCCESS) {
if (Args.Arg0 == ARM_SMC_PSCI_RET_ALREADY_ON) {
Status = EFI_NOT_READY;
} else if (Args.Arg0 != ARM_SMC_PSCI_RET_SUCCESS) {
DEBUG ((DEBUG_ERROR, "PSCI_CPU_ON call failed: %d\n", Args.Arg0));
Status = EFI_DEVICE_ERROR;
}