• Sandrine Bailleux's avatar
    Introduce COLD_BOOT_SINGLE_CPU build option · a9bec67d
    Sandrine Bailleux authored
    This patch introduces a new build option named COLD_BOOT_SINGLE_CPU,
    which allows platforms that only release a single CPU out of reset to
    slightly optimise their cold boot code, both in terms of code size
    and performance.
    
    COLD_BOOT_SINGLE_CPU defaults to 0, which assumes that the platform
    may release several CPUs out of reset. In this case, the cold reset
    code needs to coordinate all CPUs via the usual primary/secondary
    CPU distinction.
    
    If a platform guarantees that only a single CPU will ever be released
    out of reset, there is no need to arbitrate execution ; the notion of
    primary and secondary CPUs itself no longer exists. Such platforms
    may set COLD_BOOT_SINGLE_CPU to 1 in order to compile out the
    primary/secondary CPU identification in the cold reset code.
    
    All ARM standard platforms can release several CPUs out of reset
    so they use COLD_BOOT_SINGLE_CPU=0. However, on CSS platforms like
    Juno, bringing up more than one CPU at reset should only be attempted
    when booting an EL3 payload, as it is not fully supported in the
    normal boot flow.
    
    For platforms using COLD_BOOT_SINGLE_CPU=1, the following 2 platform
    APIs become optional:
      - plat_secondary_cold_boot_setup();
      - plat_is_my_cpu_primary().
    The Porting Guide has been updated to reflect that.
    
    User Guide updated as well.
    
    Change-Id: Ic5b474e61b7aec1377d1e0b6925d17dfc376c46b
    a9bec67d
user-guide.md 54.9 KB