diff options
author | David Cunado <david.cunado@arm.com> | 2018-04-05 17:40:13 +0100 |
---|---|---|
committer | David Cunado <david.cunado@arm.com> | 2018-04-06 18:07:12 +0100 |
commit | 468bea41283206f1976292bb49cfcd9f5767e152 (patch) | |
tree | 9215d673e3d5ea68694b6b48fb0cd345624f5a52 /lib/psci/psci_private.h | |
parent | 93883a293145f6c85b3fc8c219f400e28b7d1491 (diff) |
FVP: Fix function for translating MPIDR to linear index
The current AArch32 version of plat_arm_calc_core_pos uses an incorrect
algorithm to calculate the linear position of a core / PE from its
MPIDR.
This patch corrects the algorithm to:
(ClusterId * FVP_MAX_CPUS_PER_CLUSTER) * FVP_MAX_PE_PER_CPU
+ (CPUId * FVP_MAX_PE_PER_CPU)
+ ThreadId
which supports cores where there are more than 1 PE per CPU.
NOTE: the AArch64 version was fixed in 39b21d1
Change-Id: I72aea89d8f72f8b1fef54e2177a0fa6fef0f5513
Signed-off-by: David Cunado <david.cunado@arm.com>
Diffstat (limited to 'lib/psci/psci_private.h')
0 files changed, 0 insertions, 0 deletions