| 4d15551b | 24-May-2018 |
Etienne Carriere <etienne.carriere@linaro.org> |
plat-marvell: support generic RAM layout
Move default secure and non-secure OP-TEE memory locations from platform_config.h to conf.mk using the generic_ram_layout.
Marvell platforms memory location
plat-marvell: support generic RAM layout
Move default secure and non-secure OP-TEE memory locations from platform_config.h to conf.mk using the generic_ram_layout.
Marvell platforms memory location and cores number are not configurable.
Signed-off-by: Etienne Carriere <etienne.carriere@linaro.org> Acked-by: Joakim Bech <joakim.bech@linaro.org> Acked-by: Kevin Peng <kevinp@marvell.com>
show more ...
|
| 9752ac0e | 24-May-2018 |
Jerome Forissier <jerome.forissier@linaro.org> |
README.md: fix spelling mistake (mx7swarp7)
Signed-off-by: Jerome Forissier <jerome.forissier@linaro.org> |
| e771614f | 23-May-2018 |
Jerome Forissier <jerome.forissier@linaro.org> |
ci: .travis.yml: download GCC 4.9 toolchain
The legacy (GCC 4.9) toolchain has been deprecated in build.git [1]. As a result, 'make toolchain COMPILE_LEGACY=y' cannot be used anymore to download the
ci: .travis.yml: download GCC 4.9 toolchain
The legacy (GCC 4.9) toolchain has been deprecated in build.git [1]. As a result, 'make toolchain COMPILE_LEGACY=y' cannot be used anymore to download the 4.9 compiler, and the following error happens during the Travis CI build:
CC /home/travis/optee_repo/build/../out/bios-qemu/bios/entry.o gcc: warning: '-mcpu=' is deprecated; use '-mtune=' or '-march=' instead bios/entry.S:1:0: error: bad value (cortex-a15) for -mtune= switch /* ^
Fix the issue by downloading the toolchain manually and setting AARCH32_CROSS_COMPILE. buildroot still needs COMPILE_LEGACY=y to use the proper configuration file [2], and common.mk still needs LEGACY_AARCH32_CROSS_COMPILE when COMPILE_LEGACY=y so set it too.
Link: [1] https://github.com/OP-TEE/build/pull/263 Link: [2] https://github.com/OP-TEE/build/blob/master/br-ext/configs/toolchain-aarch32-legacy#L3 Signed-off-by: Jerome Forissier <jerome.forissier@linaro.org> Acked-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| 07ee1ef1 | 22-May-2018 |
Volodymyr Babchuk <vlad.babchuk@gmail.com> |
plat-vexpress: qemu v8: increase default core count
Increase CFG_TEE_CORE_NB_CORE to 4 for qemu_armv8a. This is to allow more extensive tests of multithreading.
Signed-off-by: Volodymyr Babchuk <vl
plat-vexpress: qemu v8: increase default core count
Increase CFG_TEE_CORE_NB_CORE to 4 for qemu_armv8a. This is to allow more extensive tests of multithreading.
Signed-off-by: Volodymyr Babchuk <vlad.babchuk@gmail.com> Tested-by: Volodymyr Babchuk <vlad.babchuk@gmail.com> (QEMU ARM v8) Acked-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| 45e286b0 | 18-May-2018 |
Volodymyr Babchuk <vlad.babchuk@gmail.com> |
tee_ree_fs: avoid race condition between fh usage/closing
It is possible that one core will call ree_fs_close_primitive() while another is calling ree_fs_read_primitive(). This patch prevents this b
tee_ree_fs: avoid race condition between fh usage/closing
It is possible that one core will call ree_fs_close_primitive() while another is calling ree_fs_read_primitive(). This patch prevents this by putting ree_fs_close_primitive under mutex.
Signed-off-by: Volodymyr Babchuk <vlad.babchuk@gmail.com> Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| a97bc4a0 | 18-May-2018 |
Jens Wiklander <jens.wiklander@linaro.org> |
libmbedtls: configure and compile mbedtls
Configures mbedtls with a minimal user mode TA configuration and makes it compile.
Adds dummy include/mbedtls_config_kernel.h to give a good error message
libmbedtls: configure and compile mbedtls
Configures mbedtls with a minimal user mode TA configuration and makes it compile.
Adds dummy include/mbedtls_config_kernel.h to give a good error message in case mbedTLS is compiled in for kernel mode.
mbedTLS is enabled for TAs with CFG_TA_MBEDTLS = y Builtin self tests are enabled with CFG_TA_MBEDTLS_SELF_TEST = y
Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| 817466cb | 22-May-2018 |
Jens Wiklander <jens.wiklander@linaro.org> |
Squashed commit importing mbedtls-2.6.1 source
Squash merging branch import/mbedtls-2.6.1
215609ae4d8c ("mbedtls: configure mbedtls to reach for config") 6916dcd9b9cd ("mbedtls: remove default incl
Squashed commit importing mbedtls-2.6.1 source
Squash merging branch import/mbedtls-2.6.1
215609ae4d8c ("mbedtls: configure mbedtls to reach for config") 6916dcd9b9cd ("mbedtls: remove default include/mbedtls/config.h") b60fc42a5cd5 ("Import mbedtls-2.6.1")
Acked-by: Joakim Bech <joakim.bech@linaro.org> Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| 66666258 | 17-May-2018 |
Jens Wiklander <jens.wiklander@linaro.org> |
checkpatch_inc.sh: ignore lib/libmbedtls
Acked-by: Etienne Carriere <etienne.carriere@linaro.org> Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org> |
| 19beec2d | 14-May-2018 |
Jens Wiklander <jens.wiklander@linaro.org> |
checkpatch_inc.sh: remove non-existent directories
Removes directories listed in checkpatch_inc.sh that doesn't exists any longer.
Reviewed-by: Joakim Bech <joakim.bech@linaro.org> Acked-by: Etienn
checkpatch_inc.sh: remove non-existent directories
Removes directories listed in checkpatch_inc.sh that doesn't exists any longer.
Reviewed-by: Joakim Bech <joakim.bech@linaro.org> Acked-by: Etienne Carriere <etienne.carriere@linaro.org> Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| 433c4257 | 07-May-2018 |
Jens Wiklander <jens.wiklander@linaro.org> |
Add rand() for TA usage
Adds rand() by declaring it in stdlib.h where it's expected to be found. Implementation is provided in libutee since it depends on TEE_GenerateRandom().
Reviewed-by: Joakim
Add rand() for TA usage
Adds rand() by declaring it in stdlib.h where it's expected to be found. Implementation is provided in libutee since it depends on TEE_GenerateRandom().
Reviewed-by: Joakim Bech <joakim.bech@linaro.org> Acked-by: Etienne Carriere <etienne.carriere@linaro.org> Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| a496e4c9 | 07-May-2018 |
Jens Wiklander <jens.wiklander@linaro.org> |
mpa_desc.c: rename rand() to mpa_rand()
In mpa_desc.c rename rand() to mpa_rand() to avoid conflict with the C99 function rand().
Reviewed-by: Joakim Bech <joakim.bech@linaro.org> Acked-by: Etienne
mpa_desc.c: rename rand() to mpa_rand()
In mpa_desc.c rename rand() to mpa_rand() to avoid conflict with the C99 function rand().
Reviewed-by: Joakim Bech <joakim.bech@linaro.org> Acked-by: Etienne Carriere <etienne.carriere@linaro.org> Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| 9668cb1e | 07-May-2018 |
Jens Wiklander <jens.wiklander@linaro.org> |
stdint.h: include limits.h
The define SIZE_MAX uses ULONG_MAX, which is provided in limits.h.
Reviewed-by: Joakim Bech <joakim.bech@linaro.org> Acked-by: Etienne Carriere <etienne.carriere@linaro.o
stdint.h: include limits.h
The define SIZE_MAX uses ULONG_MAX, which is provided in limits.h.
Reviewed-by: Joakim Bech <joakim.bech@linaro.org> Acked-by: Etienne Carriere <etienne.carriere@linaro.org> Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| 5b01430c | 07-May-2018 |
Jens Wiklander <jens.wiklander@linaro.org> |
libutils: import strcpy() and strncpy()
Imports strcpy() and strncpy() from newlib with license added
Reviewed-by: Joakim Bech <joakim.bech@linaro.org> Acked-by: Etienne Carriere <etienne.carriere@
libutils: import strcpy() and strncpy()
Imports strcpy() and strncpy() from newlib with license added
Reviewed-by: Joakim Bech <joakim.bech@linaro.org> Acked-by: Etienne Carriere <etienne.carriere@linaro.org> Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| 03368b7b | 07-May-2018 |
Jens Wiklander <jens.wiklander@linaro.org> |
libutils: import strstr() from newlib
Reviewed-by: Joakim Bech <joakim.bech@linaro.org> Acked-by: Etienne Carriere <etienne.carriere@linaro.org> Signed-off-by: Jens Wiklander <jens.wiklander@linaro.
libutils: import strstr() from newlib
Reviewed-by: Joakim Bech <joakim.bech@linaro.org> Acked-by: Etienne Carriere <etienne.carriere@linaro.org> Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| 5aa6e234 | 07-May-2018 |
Jens Wiklander <jens.wiklander@linaro.org> |
libutils: time.h: typedef time_t
Typedefs time_t as a int64_t
Reviewed-by: Joakim Bech <joakim.bech@linaro.org> Acked-by: Etienne Carriere <etienne.carriere@linaro.org> Signed-off-by: Jens Wiklande
libutils: time.h: typedef time_t
Typedefs time_t as a int64_t
Reviewed-by: Joakim Bech <joakim.bech@linaro.org> Acked-by: Etienne Carriere <etienne.carriere@linaro.org> Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| fb119393 | 21-May-2018 |
Volodymyr Babchuk <vlad.babchuk@gmail.com> |
user_ta: add helper function free_utc() for unified cleanup
Add helper function free_utc(). This function will be called both from error path in tee_ta_init_user_ta_session() and from user_ta_ctx_de
user_ta: add helper function free_utc() for unified cleanup
Add helper function free_utc(). This function will be called both from error path in tee_ta_init_user_ta_session() and from user_ta_ctx_destroy().
Suggested-by: Jerome Forissier <jerome.forissier@linaro.org> Signed-off-by: Volodymyr Babchuk <vlad.babchuk@gmail.com> Reviewed-by: Jerome Forissier <jerome.forissier@linaro.org> Tested-by: Jerome Forissier <jerome.forissier@linaro.org> (HiKey)
show more ...
|
| 82c4dc66 | 21-May-2018 |
Volodymyr Babchuk <vlad.babchuk@gmail.com> |
user_ta: tee_ta_init_user_ta_session(): return if calloc fails
There is no sense to do cleanup if user TA context can't be allocated. Return error immediately.
Signed-off-by: Volodymyr Babchuk <vla
user_ta: tee_ta_init_user_ta_session(): return if calloc fails
There is no sense to do cleanup if user TA context can't be allocated. Return error immediately.
Signed-off-by: Volodymyr Babchuk <vlad.babchuk@gmail.com> Reviewed-by: Jerome Forissier <jerome.forissier@linaro.org>
show more ...
|
| 7fa6fc0d | 21-May-2018 |
Volodymyr Babchuk <vlad.babchuk@gmail.com> |
user_ta: tee_ta_init_user_ta_session(): free mobj_exidx in error path
Fixes: b072193efb70 ("arm32: stack unwinding for dynamically linked TAs")
Suggested-by: Jerome Forissier <jerome.forissier@lina
user_ta: tee_ta_init_user_ta_session(): free mobj_exidx in error path
Fixes: b072193efb70 ("arm32: stack unwinding for dynamically linked TAs")
Suggested-by: Jerome Forissier <jerome.forissier@linaro.org> Signed-off-by: Volodymyr Babchuk <vlad.babchuk@gmail.com> Reviewed-by: Jerome Forissier <jerome.forissier@linaro.org>
show more ...
|
| bbabe0b9 | 21-May-2018 |
Volodymyr Babchuk <vlad.babchuk@gmail.com> |
user_ta: tee_ta_init_user_ta_session(): missing free_elfs() in error path
Fixes: c27907e1bc5a ("core: arm32: add support for dynamically linked TAs")
Suggested-by: Jerome Forissier <jerome.forissie
user_ta: tee_ta_init_user_ta_session(): missing free_elfs() in error path
Fixes: c27907e1bc5a ("core: arm32: add support for dynamically linked TAs")
Suggested-by: Jerome Forissier <jerome.forissier@linaro.org> Signed-off-by: Volodymyr Babchuk <vlad.babchuk@gmail.com> Reviewed-by: Jerome Forissier <jerome.forissier@linaro.org>
show more ...
|
| 98e8e233 | 16-May-2018 |
Etienne Carriere <etienne.carriere@linaro.org> |
plat-vexpress: qemu_*: no need to register non-secure DDR
Qemus force CFG_DT to y resulting in DTB to provide the REE system memory range(s). No need to register REE memory for dynamic SHM support.
plat-vexpress: qemu_*: no need to register non-secure DDR
Qemus force CFG_DT to y resulting in DTB to provide the REE system memory range(s). No need to register REE memory for dynamic SHM support.
Signed-off-by: Etienne Carriere <etienne.carriere@linaro.org> Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| 03314a3a | 22-May-2018 |
Etienne Carriere <etienne.carriere@linaro.org> |
plat-vexpress: move to generic RAM layout
FVP: - Secure RAM [0600.0000 0800.0000[ configurable. - Static SHM [8300.0000 8320.0000[ configurable.
Juno: - Secure RAM [ff00.0000 ffff.8000[ configurabl
plat-vexpress: move to generic RAM layout
FVP: - Secure RAM [0600.0000 0800.0000[ configurable. - Static SHM [8300.0000 8320.0000[ configurable.
Juno: - Secure RAM [ff00.0000 ffff.8000[ configurable. Note trailing 32kByte reserved by SCP for DDR retraining. - Static SHM [fee0.0000 ff00.0000[ configurable.
qemu_virt: - Secure RAM [0e10.0000 0f00.0000[ configurable. - Static SHM [7fe0.0000 8000.0000[ configurable.
qemu_armv8: - Secure RAM [0.0e10.0000 0.0f00.0000[ configurable. - Static SHM [0.ffe0.0000 1.0000.0000[ configurable.
Signed-off-by: Etienne Carriere <etienne.carriere@linaro.org> Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| 7e6afa92 | 16-May-2018 |
Etienne Carriere <etienne.carriere@linaro.org> |
plat-vexpress: qemu_virt: align DRAM0 end with qemu_armv8
Signed-off-by: Etienne Carriere <etienne.carriere@linaro.org> Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org> |
| 5de68249 | 16-May-2018 |
Etienne Carriere <etienne.carriere@linaro.org> |
plat-vexpress: Juno: don't waste about 2MB of Secure RAM
Only the last 32kByte of the DRAM is used by SCP. There are a bit less than 2MByte that could be used.
Actually this does not change a lot b
plat-vexpress: Juno: don't waste about 2MB of Secure RAM
Only the last 32kByte of the DRAM is used by SCP. There are a bit less than 2MByte that could be used.
Actually this does not change a lot but allow to remove a comment in the platform configuration file.
Signed-off-by: Etienne Carriere <etienne.carriere@linaro.org> Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| 32f97957 | 18-May-2018 |
Ying-Chun Liu (PaulLiu) <paulliu@debian.org> |
core: fixed gcc 7 format-truncation errors
gcc7 failed to build with -Werror=format-truncation. snprintf() with format "[%d]" can output 12 bytes maximum because the range of the argument are from 1
core: fixed gcc 7 format-truncation errors
gcc7 failed to build with -Werror=format-truncation. snprintf() with format "[%d]" can output 12 bytes maximum because the range of the argument are from 1 to 10 bytes. Thus we need to enlarge the desc buffer to 13 bytes to avoid this error.
Signed-off-by: Ying-Chun Liu (PaulLiu) <paulliu@debian.org> Acked-by: Jerome Forissier <jerome.forissier@linaro.org>
show more ...
|
| 655c204e | 18-May-2018 |
Jens Wiklander <jens.wiklander@linaro.org> |
core: htree: fix meta inclusion in root hash
Prior to this patch was the size of the meta data supplied as the size of the pointer to meta data. With this patch the size is corrected to be the size
core: htree: fix meta inclusion in root hash
Prior to this patch was the size of the meta data supplied as the size of the pointer to meta data. With this patch the size is corrected to be the size of meta data itself.
Reviewed-by: Jerome Forissier <jerome.forissier@linaro.org> Reviewed-by: Joakim Bech <joakim.bech@linaro.org> Fixes: https://github.com/OP-TEE/optee_os/issues/2330 Fixes: 94a72998bc1d ("core: fs_htree: include meta in root hash") Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|