1. 16 Apr, 2019 1 commit
  2. 12 Apr, 2019 9 commits
  3. 11 Apr, 2019 11 commits
  4. 10 Apr, 2019 3 commits
    • Wei Yu's avatar
      hikey960: Fix race condition between hotplug and idles · 7d76df7d
      Wei Yu authored
      
      
      From the hotplug testing on Hikey960, in some case cores fail to become
      online in the system. When some cores are hotplugged off, if other
      cores in the same cluster enter into CPU idle states at the meantime,
      the cluster will be powered off. This introduces the state machine
      malfunction in the power controller, thus when hotplug on the core
      afterwards, it fails to boot up the core because the power controller
      thinks the cluster is powered on.
      
      This patch is to avoid race condition between hotplug and idles by
      preventing cluster power off when some of cores in the cluster are
      hotplugged off, if all cores in the same cluster are hotplugged off,
      the cluster can be powered off.
      
      Change-Id: Ib2feeb093357c70409a3536cb4f9da9b504fdcbe
      Signed-off-by: default avatarWei Yu <yuwei3@hisilicon.com>
      Signed-off-by: default avatarLeo Yan <leo.yan@linaro.org>
      7d76df7d
    • Joel Hutton's avatar
      cache_helpers.s:fix mixed tabs and spaces · c554e1ad
      Joel Hutton authored
      
      
      Change-Id: I8b7c7888d09200410e1a1c11a070c94dd8013ea7
      Signed-off-by: default avatarJoel Hutton <Joel.Hutton@Arm.com>
      c554e1ad
    • Joel Hutton's avatar
      Add note about erratum 814220 for A7 · f999faca
      Joel Hutton authored
      
      
      On Cortex-A7 an L2 set/way cache maintenance operation can overtake
      an L1 set/way cache maintenance operation. The mitigation for this is
      to use a `DSB` instruction before changing cache. The cache cleaning
      code happens to already be doing this, so only a comment was added.
      
      Change-Id: Ia1ffb8ca8b6bbbba422ed6f6818671ef9fe02d90
      Signed-off-by: default avatarJoel Hutton <Joel.Hutton@Arm.com>
      f999faca
  5. 09 Apr, 2019 6 commits
  6. 08 Apr, 2019 8 commits
    • Antonio Niño Díaz's avatar
      Merge changes from topic "jh/cotdesc" into integration · 999adb94
      Antonio Niño Díaz authored
      * changes:
        Document changes to auth-framework
        cot-desc: optimise memory further
        Reduce memory needed for CoT description
      999adb94
    • Alexei Fedorov's avatar
      Add support for Cortex-A76AE CPU · 9ccc5a57
      Alexei Fedorov authored
      
      
      Change-Id: I0a81f4ea94d41245cd5150de341b51fc70babffe
      Signed-off-by: default avatarAlexei Fedorov <Alexei.Fedorov@arm.com>
      9ccc5a57
    • Joel Hutton's avatar
      Document changes to auth-framework · 699475ac
      Joel Hutton authored
      
      
      The data structures in the auth-framework were changed by the previous
      patch, and need to be updated.
      
      Change-Id: Icfad2ac688d03d32aa93e45f930a375abbc164a9
      Signed-off-by: default avatarJoel Hutton <Joel.Hutton@Arm.com>
      699475ac
    • Joel Hutton's avatar
      cot-desc: optimise memory further · 30070427
      Joel Hutton authored
      
      
      This changes the auth_img_desc_t struct to have pointers to struct
      arrays instead of struct arrays. This saves memory as many of these
      were never used, and can be NULL pointers. Note the memory savings are
      only when these arrays are not initialised, as it is assumed these
      arrays are fixed length. A possible future optimisation could allow for
      variable length.
      
      memory diff:
      bl1:        bl2:
          text        text
            -12         -12
          bss         bss
            -1463       0
          data        data
            -56         -48
          rodata      rodata
            -5688       -2592
          total       total
            -7419       -2652
      
      Change-Id: I8f9bdedf75048b8867f40c56381e3a6dc6402bcc
      Signed-off-by: default avatarJoel Hutton <Joel.Hutton@Arm.com>
      30070427
    • Joel Hutton's avatar
      Reduce memory needed for CoT description · 0b6377d1
      Joel Hutton authored
      
      
      When Trusted Board Boot is enabled, we need to specify the Chain of
      Trust (CoT) of the BL1 and BL2 images. A CoT consists of an array
      of image descriptors. The authentication module assumes that each
      image descriptor in this array is indexed by its unique image
      identifier. For example, the Trusted Boot Firmware Certificate has to
      be at index [TRUSTED_BOOT_FW_CERT_ID].
      
      Unique image identifiers may not necessarily be consecutive. Also,
      a given BL image might not use all image descriptors. For example, BL1
      does not need any of the descriptors related to BL31. As a result, the
      CoT array might contain holes, which unnecessarily takes up space in
      the BL binary.
      
      Using pointers to auth_img_desc_t structs (rather than structs
      themselves) means these unused elements only use 1 pointer worth of
      space, rather than one struct worth of space. This patch also changes
      the code which accesses this array to reflect the change to pointers.
      
      Image descriptors not needed in BL1 or BL2 respectively are also
      ifdef'd out in this patch. For example, verifying the BL31 image is
      the responsibility of BL2 so BL1 does not need any of the data
      structures describing BL31.
      
      memory diff:
      bl1:        bl2:
          text        text
            -20         -20
          bss         bss
            -1463       0
          data        data
            -256        -48
          rodata      rodata
            -5240       -1952
          total       total
            -6979       -2020
      
      Change-Id: I163668b174dc2b9bbb183acec817f2126864aaad
      Signed-off-by: default avatarJoel Hutton <Joel.Hutton@Arm.com>
      0b6377d1
    • Antonio Niño Díaz's avatar
    • Heiko Stuebner's avatar
      cpus: Fix Cortex-A12 MIDR mask · 8785a7cf
      Heiko Stuebner authored
      
      
      The Cortex-A12's primary part number is 0xC0D not 0xC0C, so
      fix that to make the A12's cpu operations findable.
      
      Change-Id: I4440a039cd57a2fe425fd8a8ec5499ca8e895e31
      Signed-off-by: default avatarHeiko Stuebner <heiko@sntech.de>
      8785a7cf
    • Jacky Bai's avatar
      plat: imx8m: remove deprecated code include · 43c733b1
      Jacky Bai authored
      
      
      The 'drivers/console/aarch64/console.S' is not needed,
      so remove it from build to fix the build error when
      'ERROR_DEPRECATED'set.
      
      Change-Id: Id047a355f82fd33298b7e2b49eff289d28eb5b56
      Signed-off-by: default avatarJacky Bai <ping.bai@nxp.com>
      43c733b1
  7. 05 Apr, 2019 2 commits
    • Alexei Fedorov's avatar
      Fix restoration of PAuth context · 050136d4
      Alexei Fedorov authored
      
      
      Replace call to pauth_context_save() with pauth_context_restore()
      in case of unknown SMC call.
      
      Change-Id: Ib863d979faa7831052b33e8ac73913e2f661f9a0
      Signed-off-by: default avatarAlexei Fedorov <Alexei.Fedorov@arm.com>
      050136d4
    • Manish Pandey's avatar
      aarch32: Allow compiling with soft-float toolchain · fbd8f6c8
      Manish Pandey authored
      
      
      ARMv7 and Cortex-A32(ARMv8/aarch32) uses "arm-linux-gnueabi" toolchain which
      has both soft-float and hard-float variants and so there could be scenarios
      where soft-float toolchain is used.Even though TF-A documentation recommends
      to use hard-float toolchain for aarch32 but there are external projects where
      we cannot mandate the selection of toolchain and for those projects at least
      the build should not fail.
      
      Current TF-A source fails to build with soft-float toolchain because assembler
      does not recognizes "vmsr" instruction which is required to enable floating
      point unit.
      
      To avoid this piece of code being compiled with soft-float toolchain add
      predefined macro guard " __SOFTFP__" exposed by soft-float toolchain.
      
      Change-Id: I76ba40906a8d622dcd476dd36ab4d277a925996c
      Signed-off-by: default avatarManish Pandey <manish.pandey2@arm.com>
      fbd8f6c8