Commit afb33432 authored by davidcunado-arm's avatar davidcunado-arm Committed by GitHub
Browse files

Merge pull request #1064 from islmit01/im/shifted_afinity

FVP: Always assume shifted affinity with MT bit
parents 01ebe3d2 8431635b
...@@ -219,8 +219,7 @@ void fvp_config_setup(void) ...@@ -219,8 +219,7 @@ void fvp_config_setup(void)
arm_config.flags |= ARM_CONFIG_FVP_HAS_CCI400; arm_config.flags |= ARM_CONFIG_FVP_HAS_CCI400;
break; break;
case REV_BASE_FVP_REVC: case REV_BASE_FVP_REVC:
arm_config.flags |= (ARM_CONFIG_FVP_SHIFTED_AFF | arm_config.flags |= (ARM_CONFIG_FVP_HAS_SMMUV3 |
ARM_CONFIG_FVP_HAS_SMMUV3 |
ARM_CONFIG_FVP_HAS_CCI5XX); ARM_CONFIG_FVP_HAS_CCI5XX);
break; break;
default: default:
...@@ -232,6 +231,14 @@ void fvp_config_setup(void) ...@@ -232,6 +231,14 @@ void fvp_config_setup(void)
ERROR("Unsupported board HBI number 0x%x\n", hbi); ERROR("Unsupported board HBI number 0x%x\n", hbi);
panic(); panic();
} }
/*
* We assume that the presence of MT bit, and therefore shifted
* affinities, is uniform across the platform: either all CPUs, or no
* CPUs implement it.
*/
if (read_mpidr_el1() & MPIDR_MT_MASK)
arm_config.flags |= ARM_CONFIG_FVP_SHIFTED_AFF;
} }
......
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