1. 30 Nov, 2020 1 commit
    • Alexei Fedorov's avatar
      Aarch64: Add support for FEAT_PANx extensions · a83103c8
      Alexei Fedorov authored
      
      
      This patch provides the changes listed below:
      - Adds new bit fields definitions for SCTLR_EL1/2 registers
      - Corrects the name of SCTLR_EL1/2.[20] bit field from
      SCTLR_UWXN_BIT to SCTLR_TSCXT_BIT
      - Adds FEAT_PANx bit field definitions and their possible
      values for ID_AA64MMFR1_EL1 register.
      - Adds setting of SCTLR_EL1.SPAN bit to preserve PSTATE.PAN
      on taking an exception to EL1 in spm_sp_setup() function
      (services\std_svc\spm_mm\spm_mm_setup.c)
      
      Change-Id: If51f20e7995c649126a7728a4d0867041fdade19
      Signed-off-by: Alexei Fedorov's avatarAlexei Fedorov <Alexei.Fedorov@arm.com>
      a83103c8
  2. 19 Nov, 2020 7 commits
    • Manish Pandey's avatar
      Merge changes from topic "mrvl_bootimage" into integration · 20c37892
      Manish Pandey authored
      * changes:
        docs: marvell: Update build documentation to reflect mrvl_bootimage and mrvl_flash changes
        plat: marvell: armada: Add new target mrvl_bootimage
        plat: marvell: armada: a3k: Add support for building $(DOIMAGETOOL)
      20c37892
    • Pali Rohár's avatar
      docs: marvell: Update build documentation to reflect mrvl_bootimage and mrvl_flash changes · f20cb7e5
      Pali Rohár authored
      
      
      Also add example how to build TF-A for A3720 Turris MOX board and also fix
      style/indentation issues and information about default values.
      Signed-off-by: default avatarPali Rohár <pali@kernel.org>
      Change-Id: I2dc957307b1b627b403a8d960e85f5ac9e15aee5
      f20cb7e5
    • Pali Rohár's avatar
      plat: marvell: armada: Add new target mrvl_bootimage · 91bc2da7
      Pali Rohár authored
      
      
      This new target builds boot-image.bin binary as described in documentation.
      This image does not contain WTMI image and therefore WTP repository is not
      required for building.
      
      Having ability to build just this boot-image.bin binary without full
      flash-image.bin is useful for A3720 Turris MOX board which does not use
      Marvell's WTP and a3700_utils.
      
      To reduce duplicity between a8k and a3k code, define this new target and
      also definitions for $(BUILD_PLAT)/$(BOOT_IMAGE) in common include file
      marvell_common.mk.
      
      For this purpose it is needed to include plat/marvell/marvell.mk file from
      a3700_common.mk unconditionally (and not only when WTP is defined). Now
      when common file plat/marvell/marvell.mk does not contain definition for
      building $(DOIMAGETOOL), it is possible to move its inclusion at the top of
      the a3700_common.mk file.
      Signed-off-by: default avatarPali Rohár <pali@kernel.org>
      Change-Id: Ic58303b37a1601be9a06ff83b7a279cb7cfc8280
      91bc2da7
    • Pali Rohár's avatar
      plat: marvell: armada: a3k: Add support for building $(DOIMAGETOOL) · c6a7ab77
      Pali Rohár authored
      Current binary wtptp/linux/tbb_linux which is specified in $(DOIMAGETOOL)
      variable points to external pre-compiled Marvell x86_64 ELF linux binary
      from A3700-utils-marvell WTP repository.
      
      It means that currently it is not possible to compile TF-A for A3720 on
      other host platform then linux x86_64.
      
      Part of the A3700-utils-marvell WTP repository is also source code of
      $(DOIMAGETOOL) TBB_Linux tool.
      
      This change adds support for building $(DOIMAGETOOL) also for a3k platform.
      
      After running $(MAKE) at appropriate subdirectory of A3700-utils-marvell
      WTP repository, compiled TBB_linux tool will appear in WTP subdirectory
      wtptp/src/TBB_Linux/release/. So update also $(DOIMAGETOOL) variable to
      point to the correct location where TBB_linux was built.
      
      To build TBB_linux it is required to compile external Crypto++ library
      which is available at: https://github.com/weidai11/cryptopp.git
      
      
      
      User needs to set CRYPTOPP_PATH option to specify path to that library.
      
      After this change it is now possible to build whole firmware for A3720
      platform without requirement to use pre-compiled/proprietary x86_64
      executable binaries from Marvell.
      Signed-off-by: default avatarPali Rohár <pali@kernel.org>
      Change-Id: I6f26bd4356778a2f8f730a223067a2e550e6c8e0
      c6a7ab77
    • Madhukar Pappireddy's avatar
    • Madhukar Pappireddy's avatar
    • Madhukar Pappireddy's avatar
  3. 18 Nov, 2020 1 commit
  4. 17 Nov, 2020 4 commits
  5. 13 Nov, 2020 1 commit
    • Alexei Fedorov's avatar
      TSP: Fix GCC 11.0.0 compilation error. · caff3c87
      Alexei Fedorov authored
      
      
      This patch fixes the following compilation error
      reported by aarch64-none-elf-gcc 11.0.0:
      
      bl32/tsp/tsp_main.c: In function 'tsp_smc_handler':
      bl32/tsp/tsp_main.c:393:9: error: 'tsp_get_magic'
       accessing 32 bytes in a region of size 16
       [-Werror=stringop-overflow=]
        393 |         tsp_get_magic(service_args);
            |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~
      bl32/tsp/tsp_main.c:393:9: note: referencing argument 1
       of type 'uint64_t *' {aka 'long long unsigned int *'}
      In file included from bl32/tsp/tsp_main.c:19:
      bl32/tsp/tsp_private.h:64:6: note: in a call to function 'tsp_get_magic'
         64 | void tsp_get_magic(uint64_t args[4]);
            |      ^~~~~~~~~~~~~
      
      by changing declaration of tsp_get_magic function from
      void tsp_get_magic(uint64_t args[4]);
      to
      uint128_t tsp_get_magic(void);
      which returns arguments directly in x0 and x1 registers.
      
      In bl32\tsp\tsp_main.c the current tsp_smc_handler()
      implementation calls tsp_get_magic(service_args);
      , where service_args array is declared as
      uint64_t service_args[2];
      and tsp_get_magic() in bl32\tsp\aarch64\tsp_request.S
      copies only 2 registers in output buffer:
      	/* Store returned arguments to the array */
      	stp	x0, x1, [x4, #0]
      
      Change-Id: Ib34759fc5d7bb803e6c734540d91ea278270b330
      Signed-off-by: Alexei Fedorov's avatarAlexei Fedorov <Alexei.Fedorov@arm.com>
      caff3c87
  6. 12 Nov, 2020 3 commits
  7. 09 Nov, 2020 2 commits
  8. 29 Oct, 2020 2 commits
    • Alexei Fedorov's avatar
    • Manish Pandey's avatar
      Merge changes from topic "mbox-patches" into integration · 271708e0
      Manish Pandey authored
      * changes:
        intel: common: Fix non-MISRA compliant code v2
        intel: mailbox: Fix non-MISRA compliant code
        intel: mailbox: Mailbox error recovery handling
        intel: mailbox: Enable sending large mailbox command
        intel: mailbox: Use retry count in mailbox poll
        intel: mailbox: Ensure time out duration is predictive
        intel: mailbox: Read mailbox response even there is an error
        intel: mailbox: Driver now handles larger response
        intel: common: Change how mailbox handles job id & buffer
        intel: common: Improve readability of mailbox read response
        intel: SIP: increase FPGA_CONFIG_SIZE to 32 MB
        intel: common: Remove urgent from mailbox async
        intel: common: Improve mailbox driver readability
      271708e0
  9. 28 Oct, 2020 7 commits
  10. 27 Oct, 2020 11 commits
  11. 26 Oct, 2020 1 commit