arm-trusted-firmware/plat
David Cunado 468bea4128 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>
2018-04-06 18:07:12 +01:00
..
arm FVP: Fix function for translating MPIDR to linear index 2018-04-06 18:07:12 +01:00
common plat: fix switch statements to comply with MISRA rules 2018-03-26 12:43:05 +01:00
compat Do not enable SVE on pre-v8.2 platforms 2017-11-30 17:45:23 +00:00
hisilicon Merge pull request #1313 from jonathanwright-ARM/jw/MISRA-switch-statements 2018-03-29 13:20:05 +01:00
mediatek Merge pull request #1313 from jonathanwright-ARM/jw/MISRA-switch-statements 2018-03-29 13:20:05 +01:00
nvidia/tegra Clean usage of void pointers to access symbols 2018-03-27 13:20:27 +01:00
qemu Merge pull request #1334 from michpappas/tf-issues#572_qemu_dont_use_C_for_crash_console 2018-04-03 11:59:55 +01:00
rockchip Merge pull request #1313 from jonathanwright-ARM/jw/MISRA-switch-statements 2018-03-29 13:20:05 +01:00
rpi3 Merge pull request #1313 from jonathanwright-ARM/jw/MISRA-switch-statements 2018-03-29 13:20:05 +01:00
socionext/uniphier plat: fix switch statements to comply with MISRA rules 2018-03-26 12:43:05 +01:00
xilinx/zynqmp plat: fix switch statements to comply with MISRA rules 2018-03-26 12:43:05 +01:00