feat(drtm): update return code if secondary PE is not off

DRTM 1.0 specifies that if any secondary PEs are not off
during a dynamic launch the return code must be
SECONDARY_PE_NOT_OFF.

Signed-off-by: Stuart Yoder <stuart.yoder@arm.com>
Change-Id: Idcb1f3c60daa63a5bc994bdeacca8aab7066f628
This commit is contained in:
Stuart Yoder 2024-01-10 14:03:03 -06:00
parent 89f5c753af
commit bc9064ae5c

View file

@ -1,5 +1,5 @@
/*
* Copyright (c) 2022 Arm Limited. All rights reserved.
* Copyright (c) 2022-2024 Arm Limited. All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*
@ -211,7 +211,7 @@ static enum drtm_retc drtm_dl_check_cores(void)
running_on_single_core = psci_is_last_on_cpu_safe();
if (!running_on_single_core) {
ERROR("DRTM: invalid launch due to non-boot PE not being turned off\n");
return DENIED;
return SECONDARY_PE_NOT_OFF;
}
return SUCCESS;