Commit 4a5524eb authored by Varun Wadekar's avatar Varun Wadekar
Browse files

Tegra194: sanity check target cluster during core power on



This patch sanity checks the target cluster value, during core power on,
by comparing it against the maximum number of clusters supported by the
platform.

Reported by: Rohit Khanna <rokhanna@nvidia.com>

Change-Id: I556ce17a58271cc119c86fae0a4d34267f08b338
Signed-off-by: default avatarVarun Wadekar <vwadekar@nvidia.com>
parent b6533b56
......@@ -312,7 +312,7 @@ int32_t tegra_soc_pwr_domain_on(u_register_t mpidr)
MPIDR_AFFINITY_BITS;
int32_t ret = 0;
if (target_cluster > MPIDR_AFFLVL1) {
if (target_cluster > ((uint32_t)PLATFORM_CLUSTER_COUNT - 1U)) {
ERROR("%s: unsupported CPU (0x%lx)\n", __func__ , mpidr);
return PSCI_E_NOT_PRESENT;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment