| 3235302e | 26-Apr-2018 |
Etienne Carriere <etienne.carriere@linaro.org> |
plat-ls: move some CFG_'s from platform_config.h to conf.mk
Remove CFG_DDR_TEETZ_RESERVED_START/_SIZE: internal to platform. Remove CFG_PUB_RAM_SIZE, use TEE_SHMEM_SIZE instead. Remove useless defin
plat-ls: move some CFG_'s from platform_config.h to conf.mk
Remove CFG_DDR_TEETZ_RESERVED_START/_SIZE: internal to platform. Remove CFG_PUB_RAM_SIZE, use TEE_SHMEM_SIZE instead. Remove useless definition of DDR_PHYS_START, DDR_SIZE, DRAM0_BASE/_SIZE, CFG_DDR_START/_SIZE.
Signed-off-by: Etienne Carriere <etienne.carriere@linaro.org> Reviewed-by: Sumit Garg <sumit.garg@nxp.com> Reviewed-by: Pankaj Gupta <pankaj.gupta@nxp.com>
show more ...
|
| 94cfc3ed | 25-Apr-2018 |
Etienne Carriere <etienne.carriere@linaro.org> |
porting guide: update mandated platform settings
Generic code expects platform sets TZDRAM_BASE, TZDRAM_SIZE, TEE_RAM_START, TEE_RAM_VA_SIZE, TA_RAM_START, TA_RAM_SIZE, TEE_SHMEM_START, TEE_SHMEM_SI
porting guide: update mandated platform settings
Generic code expects platform sets TZDRAM_BASE, TZDRAM_SIZE, TEE_RAM_START, TEE_RAM_VA_SIZE, TA_RAM_START, TA_RAM_SIZE, TEE_SHMEM_START, TEE_SHMEM_SIZE and TEE_LOAD_ADDR.
Generic code with pager enable expects also TZSRAM_BASE, TZSRAM_SIZE and TEE_RAM_PH_SIZE.
DRAM0_BASE/SIZE is not required by the generic code.
Signed-off-by: Etienne Carriere <etienne.carriere@linaro.org> Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| f6bbec8e | 24-Apr-2018 |
Etienne Carriere <etienne.carriere@linaro.org> |
core: remove CFG_ prefix from CFG_TEE_LOAD_ADDR
TEE_LOAD_ADDR is now local to source files. It is set to CFG_TEE_LOAD_ADDR value if defined only for the platforms that previously allowed build to ov
core: remove CFG_ prefix from CFG_TEE_LOAD_ADDR
TEE_LOAD_ADDR is now local to source files. It is set to CFG_TEE_LOAD_ADDR value if defined only for the platforms that previously allowed build to override the value. Few platform did hardcod CFG_TEE_LOAD_ADDR, this change preserve these configurations.
Signed-off-by: Etienne Carriere <etienne.carriere@linaro.org> Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| 6f4e40ab | 25-Apr-2018 |
Etienne Carriere <etienne.carriere@linaro.org> |
core: remove CFG_ prefix from CFG_SHMEM_START/_SIZE
Almost platform currently define these directives from within the source code, through platform_config.h. These values do not need to be configura
core: remove CFG_ prefix from CFG_SHMEM_START/_SIZE
Almost platform currently define these directives from within the source code, through platform_config.h. These values do not need to be configuration directive with the CFG_ prefix.
This change renames the CFG_SHMEM_xxx into TEE_SHMEM_xxx so that they do not mess with the platform configuration directives. Yet, the old CFG_SHMEM_START/SIZE directives can still be used by platform_config.h to set TEE_SHMEM_START/SIZE if the platform supports it (i.e plat-stm).
Signed-off-by: Etienne Carriere <etienne.carriere@linaro.org> Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| 247bea90 | 25-Apr-2018 |
Etienne Carriere <etienne.carriere@linaro.org> |
core: remove CFG_ prefix from TA_RAM_START/TA_RAM_SIZE
Almost platform currently define these directives from within the source code, through platform_config.h. These values do not need to be config
core: remove CFG_ prefix from TA_RAM_START/TA_RAM_SIZE
Almost platform currently define these directives from within the source code, through platform_config.h. These values do not need to be configuration directive with the CFG_ prefix.
This change renames these macros so that they do not mess with the platform configuration directives.
Old macro label New macro label CFG_TA_RAM_START TA_RAM_START CFG_TA_RAM_SIZE TA_RAM_SIZE
Signed-off-by: Etienne Carriere <etienne.carriere@linaro.org> Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| 446cc62a | 25-Apr-2018 |
Etienne Carriere <etienne.carriere@linaro.org> |
core: remove CFG_ prefix from TEE_RAM_START/VA_SIZE/PH_SIZE
Almost platform currently define these directives from within the source code, through platform_config.h. These values do not need to be c
core: remove CFG_ prefix from TEE_RAM_START/VA_SIZE/PH_SIZE
Almost platform currently define these directives from within the source code, through platform_config.h. These values do not need to be configuration directive with the CFG_ prefix.
This change renames these macros so that they do not mess with the platform configuration directives.
Old macro label New macro label CFG_TEE_RAM_START TEE_RAM_START CFG_TEE_RAM_VA_SIZE TEE_RAM_VA_SIZE CFG_TEE_RAM_PH_SIZE TEE_RAM_PH_SIZE
Signed-off-by: Etienne Carriere <etienne.carriere@linaro.org> Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| 847b6aa6 | 25-Apr-2018 |
Etienne Carriere <etienne.carriere@linaro.org> |
plat-poplar: fix comments layout that hurts checkpatch
Signed-off-by: Etienne Carriere <etienne.carriere@linaro.org> Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org> |
| d8dfc2d1 | 25-Apr-2018 |
Etienne Carriere <etienne.carriere@linaro.org> |
core: split SDP memory CFG_ and non-CFG_ configuration directives
This change aim at removing definition of CFG_ directive (here related to SDP) from the platform_config.h files.
CFG_TEE_SDP_MEM_BA
core: split SDP memory CFG_ and non-CFG_ configuration directives
This change aim at removing definition of CFG_ directive (here related to SDP) from the platform_config.h files.
CFG_TEE_SDP_MEM_BASE/_SIZE is a generic configuration directive to register a SDP memory.
Some platforms define a SDP test memory when SDP is enable. This SDP memory is located at the end of the TA_RAM. Introduce platform settings TEE_SDP_TEST_MEM_BASE/_SIZE to register a SDP test buffer, independently from the generic CFG_TEE_SDP_MEM_BASE/_SIZE.
Platforms marvel, stm, ti and vexpress updated.
Signed-off-by: Etienne Carriere <etienne.carriere@linaro.org> Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| f6eaffba | 24-Apr-2018 |
Jens Wiklander <jens.wiklander@linaro.org> |
libutee: remove redundant malloc() layers
Reviewed-by: Jerome Forissier <jerome.forissier@linaro.org> Reviewed-by: Etienne Carriere <etienne.carriere@linaro.org> Signed-off-by: Jens Wiklander <jens.
libutee: remove redundant malloc() layers
Reviewed-by: Jerome Forissier <jerome.forissier@linaro.org> Reviewed-by: Etienne Carriere <etienne.carriere@linaro.org> Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| 96c1d8c5 | 24-Apr-2018 |
Jens Wiklander <jens.wiklander@linaro.org> |
ta: TEE_Malloc() and friend: skips layers
Prior to this patch TEE_Malloc(), TEE_Realloc() and TEE_Free() were using two extra layers implemented on top of the well known malloc(), realloc(), calloc(
ta: TEE_Malloc() and friend: skips layers
Prior to this patch TEE_Malloc(), TEE_Realloc() and TEE_Free() were using two extra layers implemented on top of the well known malloc(), realloc(), calloc() and free() functions. With this patch the extra layers are skipped.
When compiled for user TAs realloc() clears all memory that otherwise would be uninitialized memory since it's required by the spec [1] if TEE_Malloc() is called with the hint TEE_MALLOC_FILL_ZERO. Since that's the only recognized hint in the spec realloc() assumes that it's always needed.
[1] GP TEE Internal Core API Specification v1.1
Reviewed-by: Jerome Forissier <jerome.forissier@linaro.org> Reviewed-by: Etienne Carriere <etienne.carriere@linaro.org> Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| c0ce02ed | 24-Apr-2018 |
Jens Wiklander <jens.wiklander@linaro.org> |
TEE_Realloc(): fix invalid declaration
Prior to this was TEE_Realloc() declared as:
void *TEE_Realloc(const void *buffer, uint32_t newSize);
This does not make sense as the argument buffer can and
TEE_Realloc(): fix invalid declaration
Prior to this was TEE_Realloc() declared as:
void *TEE_Realloc(const void *buffer, uint32_t newSize);
This does not make sense as the argument buffer can and will be changed as a result of calling this function. Instead fix the declaration to be:
void *TEE_Realloc(void *buffer, uint32_t newSize);
This is also more in line with realloc().
Reviewed-by: Jerome Forissier <jerome.forissier@linaro.org> Reviewed-by: Etienne Carriere <etienne.carriere@linaro.org> Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| 9a159b2f | 13-Apr-2018 |
Ken Liu <ken.liu@arm.com> |
core: mmu: lpae: copy table of actual primary core
SOC has configurable core settings (e.g., Juno) does not take core-0 as primary core. Copying mapping table of core-0 to other cores causes boot fa
core: mmu: lpae: copy table of actual primary core
SOC has configurable core settings (e.g., Juno) does not take core-0 as primary core. Copying mapping table of core-0 to other cores causes boot failure on such configured SOC. Fix this problem by taking mapping table of actual primary core as copy source.
Signed-off-by: Ken Liu <ken.liu@arm.com> Reviewed-by: Etienne Carriere <etienne.carriere@linaro.org> Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| 315415e6 | 23-Apr-2018 |
Jerome Forissier <jerome.forissier@linaro.org> |
core: ltc: DSA signature verification: fix return code
The GP TEE Internal Core specification mandates that TEE_AsymmetricVerifyDigest() must return TEE_SUCCESS if the signature is valid, TEE_ERROR_
core: ltc: DSA signature verification: fix return code
The GP TEE Internal Core specification mandates that TEE_AsymmetricVerifyDigest() must return TEE_SUCCESS if the signature is valid, TEE_ERROR_SIGNATURE_INVALID if it is invalid, or panic if any other error oocurs.
In the current implementation, TEE_ERROR_SIGNATURE_INVALID will never happen with the DSA algorithms. Fix that by properly checking the return code and signature status of the LibTomCrypt function.
Signed-off-by: Jerome Forissier <jerome.forissier@linaro.org> Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| 3018c8e0 | 23-Apr-2018 |
Jerome Forissier <jerome.forissier@linaro.org> |
core: ltc: ECC signature verification: fix return code
The GP TEE Internal Core specification mandates that TEE_AsymmetricVerifyDigest() must return TEE_SUCCESS if the signature is valid, TEE_ERROR_
core: ltc: ECC signature verification: fix return code
The GP TEE Internal Core specification mandates that TEE_AsymmetricVerifyDigest() must return TEE_SUCCESS if the signature is valid, TEE_ERROR_SIGNATURE_INVALID if it is invalid, or panic if any other error oocurs.
In the current implementation, TEE_ERROR_SIGNATURE_INVALID will never happen with the ECC algorithms. Fix that by properly checking the return code and signature status of the LibTomCrypt function.
Signed-off-by: Jerome Forissier <jerome.forissier@linaro.org> Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| a3f5668a | 23-Apr-2018 |
Jerome Forissier <jerome.forissier@linaro.org> |
core: ltc: RSA signature verification: fix return code
The GP TEE Internal Core specification mandates that TEE_AsymmetricVerifyDigest() must return TEE_SUCCESS if the signature is valid, TEE_ERROR_
core: ltc: RSA signature verification: fix return code
The GP TEE Internal Core specification mandates that TEE_AsymmetricVerifyDigest() must return TEE_SUCCESS if the signature is valid, TEE_ERROR_SIGNATURE_INVALID if it is invalid, or panic if any other error oocurs.
In the current implementation, all errors returned by the LibTomCrypt RSA signature verification function are translated to TEE_ERROR_SIGNATURE_INVALID. It is incorrect. Fix that by introducing a helper function to properly handle both the return code and the signature verification status.
Signed-off-by: Jerome Forissier <jerome.forissier@linaro.org> Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| bdc2df1e | 23-Apr-2018 |
Etienne Carriere <etienne.carriere@linaro.org> |
qemu: discard legacy bios mailbox and support arm-tf boot scheme
Replace the unused bios_qemu_tz_arm mailbox for waking secondary boot cores with the mailbox used by the Arm trusted firmware.
Signe
qemu: discard legacy bios mailbox and support arm-tf boot scheme
Replace the unused bios_qemu_tz_arm mailbox for waking secondary boot cores with the mailbox used by the Arm trusted firmware.
Signed-off-by: Etienne Carriere <etienne.carriere@linaro.org> Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org> Tested-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| 8aa2c8a2 | 20-Apr-2018 |
Etienne Carriere <etienne.carriere@linaro.org> |
qemu_virt: move core location to match qemu_armv8
Moving qemu_virt core to the same location as the core for qemu_armv8 allows to use the same arm-trusted-firmware configuration for ARMv7 and ARMv8
qemu_virt: move core location to match qemu_armv8
Moving qemu_virt core to the same location as the core for qemu_armv8 allows to use the same arm-trusted-firmware configuration for ARMv7 and ARMv8 Qemu support.
Qemu_virt Kasan offset is updated since new memory layout.
Signed-off-by: Etienne Carriere <etienne.carriere@linaro.org> Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| 4d763fc3 | 20-Apr-2018 |
Etienne Carriere <etienne.carriere@linaro.org> |
core: 32bit generic entry executes in cpu Supervisor mode.
This change aims at supporting some bootloaders as the Aarch32 Arm trusted firmware that may boot cores in Monitor mode.
Signed-off-by: Et
core: 32bit generic entry executes in cpu Supervisor mode.
This change aims at supporting some bootloaders as the Aarch32 Arm trusted firmware that may boot cores in Monitor mode.
Signed-off-by: Etienne Carriere <etienne.carriere@linaro.org> Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| c21bf051 | 20-Apr-2018 |
Jens Wiklander <jens.wiklander@linaro.org> |
ta: export CFG_CACHE_API and CFG_SECURE_DATA_PATH
Exports CFG_CACHE_API and CFG_SECURE_DATA_PATH to the dev kit conf.mk, making them available for compiled TAs.
Reviewed-by: Jerome Forissier <jerom
ta: export CFG_CACHE_API and CFG_SECURE_DATA_PATH
Exports CFG_CACHE_API and CFG_SECURE_DATA_PATH to the dev kit conf.mk, making them available for compiled TAs.
Reviewed-by: Jerome Forissier <jerome.forissier@linaro.org> Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| a62bf61e | 20-Apr-2018 |
Jens Wiklander <jens.wiklander@linaro.org> |
ta: pass CFG_ variables as defines
Pass all CFG_ variables as -D<varname>=<value> command line parameters for the C preprocessor. Variables set to "n" are not passed and variables set to "y" are sup
ta: pass CFG_ variables as defines
Pass all CFG_ variables as -D<varname>=<value> command line parameters for the C preprocessor. Variables set to "n" are not passed and variables set to "y" are supplied with the value "1" instead. This is the same translation as done for conf.h when compiling OP-TEE OS.
Reviewed-by: Jerome Forissier <jerome.forissier@linaro.org> Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| 1308459d | 20-Apr-2018 |
Jens Wiklander <jens.wiklander@linaro.org> |
ta: only export variables containing a value
Only exports variables containing a value to the dev kit conf.mk
Suggested-by: Jerome Forissier <jerome.forissier@linaro.org> Reviewed-by: Jerome Foriss
ta: only export variables containing a value
Only exports variables containing a value to the dev kit conf.mk
Suggested-by: Jerome Forissier <jerome.forissier@linaro.org> Reviewed-by: Jerome Forissier <jerome.forissier@linaro.org> Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| 28a6ae14 | 19-Apr-2018 |
Jens Wiklander <jens.wiklander@linaro.org> |
ta: rework how CFG_TA_FLOAT_SUPPORT is passed
Reworks how CFG_TA_FLOAT_SUPPORT is passed to the exported conf.mk
Reviewed-by: Jerome Forissier <jerome.forissier@linaro.org> Signed-off-by: Jens Wikl
ta: rework how CFG_TA_FLOAT_SUPPORT is passed
Reworks how CFG_TA_FLOAT_SUPPORT is passed to the exported conf.mk
Reviewed-by: Jerome Forissier <jerome.forissier@linaro.org> Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| 137eb244 | 19-Apr-2018 |
Jens Wiklander <jens.wiklander@linaro.org> |
ta: rework how ENABLE_MDBG=1 is passed
Reworks how ENABLE_MDBG=1 is passed when compiling the TA.
Reviewed-by: Jerome Forissier <jerome.forissier@linaro.org> Signed-off-by: Jens Wiklander <jens.wik
ta: rework how ENABLE_MDBG=1 is passed
Reworks how ENABLE_MDBG=1 is passed when compiling the TA.
Reviewed-by: Jerome Forissier <jerome.forissier@linaro.org> Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| a42a05af | 19-Apr-2018 |
Jens Wiklander <jens.wiklander@linaro.org> |
ta/ta.mk: make sure exported conf.mk is updated
Makes sure that conf.mk exported to TA dev kit is updated even if the change isn't due to a change in mk/config.mk
Reviewed-by: Jerome Forissier <jer
ta/ta.mk: make sure exported conf.mk is updated
Makes sure that conf.mk exported to TA dev kit is updated even if the change isn't due to a change in mk/config.mk
Reviewed-by: Jerome Forissier <jerome.forissier@linaro.org> Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| d2d2d58b | 19-Apr-2018 |
deebee-v2 <darren.broche@gmail.com> |
crypto: Make name and path of crypto library configurable
Allows for platform dependent implementations of exported crypto API
Signed-off-by: Darren Roche <darren.broche@gmail.com> Reviewed-by: Jen
crypto: Make name and path of crypto library configurable
Allows for platform dependent implementations of exported crypto API
Signed-off-by: Darren Roche <darren.broche@gmail.com> Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org> Acked-by: Jerome Forissier <jerome.forissier@linaro.org>
show more ...
|