plat/arm: css: Set MT bit in incoming mpidr arugments

Change-Id: I278d6876508800abff7aa2480910306a24de5378
Signed-off-by: Nariman Poushin <nariman.poushin@linaro.org>
This commit is contained in:
Nariman Poushin 2018-06-25 17:04:51 +01:00
parent 60e27d5644
commit 58192800e0
1 changed files with 6 additions and 0 deletions

View File

@ -23,6 +23,12 @@ int plat_core_pos_by_mpidr(u_register_t mpidr)
if (arm_check_mpidr(mpidr) == 0) {
#if ARM_PLAT_MT
assert((read_mpidr_el1() & MPIDR_MT_MASK) != 0);
/*
* The DTB files don't provide the MT bit in the mpidr argument
* so set it manually before calculating core position
*/
mpidr |= MPIDR_MT_MASK;
#endif
return plat_arm_calc_core_pos(mpidr);
}