• David Cunado's avatar
    FVP: Fix function for translating MPIDR to linear index · 468bea41
    David Cunado authored
    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 39b21d19
    
    
    
    Change-Id: I72aea89d8f72f8b1fef54e2177a0fa6fef0f5513
    Signed-off-by: default avatarDavid Cunado <david.cunado@arm.com>
    468bea41
fvp_helpers.S 4.34 KB