| 79a90f9b | 27-Sep-2016 |
Jens Wiklander <jens.wiklander@linaro.org> |
core: add default CFG_CORE_TZSRAM_EMUL_SIZE
Adds a CFG_CORE_TZSRAM_EMUL_SIZE replacing the previous value directly defined in TZSRAM_SIZE in each platform_config.h. Default value is defined in core/
core: add default CFG_CORE_TZSRAM_EMUL_SIZE
Adds a CFG_CORE_TZSRAM_EMUL_SIZE replacing the previous value directly defined in TZSRAM_SIZE in each platform_config.h. Default value is defined in core/arch/arm/arm.mk as 300 kB. This is larger than most of the previous values.
Platforms with TZSRAM_SIZE defined larger than 200 kB overrides the core/arch/arm/arm.mk setting with a $(platform-dir)/conf.mk setting using the previous value.
Reviewed-by: Jerome Forissier <jerome.forissier@linaro.org> Reviewed-by: Joakim Bech <joakim.bech@linaro.org> Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| 6d96f208 | 19-Aug-2016 |
yanyan-wrs <yan.yan@windriver.com> |
Add the i.MX6 Quad SABRE board support (PLATFORM=imx)
Signed-off-by: Yan Yan <yan.yan@windriver.com> Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org> Reviewed-by: Jerome Forissier <jerome.for
Add the i.MX6 Quad SABRE board support (PLATFORM=imx)
Signed-off-by: Yan Yan <yan.yan@windriver.com> Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org> Reviewed-by: Jerome Forissier <jerome.forissier@linaro.org> Reviewed-by: Peng Fan <peng.fan@nxp.com>
show more ...
|
| 66d9cacf | 10-Jul-2016 |
Philip Attfield <opensource@sequiturlabs.com> |
plat-rpi3: Initial support for RPi3
Signed-off-by: Joakim Bech <joakim.bech@linaro.org> Reviewed-by: Jerome Forissier <jerome.forissier@linaro.org> Reviewed-by: Jens Wiklander <jens.wiklander@linaro
plat-rpi3: Initial support for RPi3
Signed-off-by: Joakim Bech <joakim.bech@linaro.org> Reviewed-by: Jerome Forissier <jerome.forissier@linaro.org> Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org> Reviewed-by: Joakim Bech <joakim.bech@linaro.org> Tested-by: Joakim Bech <joakim.bech@linaro.org>
show more ...
|
| bfdfbe74 | 08-Sep-2016 |
Jens Wiklander <jens.wiklander@linaro.org> |
core: arm: add no-map property to res mem
Adds a "no-map" property to the optee@xxx node. Before this patch the node looked like: optee@78000000 { reg = <0x78000000 0x800000>; }; With this patch
core: arm: add no-map property to res mem
Adds a "no-map" property to the optee@xxx node. Before this patch the node looked like: optee@78000000 { reg = <0x78000000 0x800000>; }; With this patch it becomes: optee@78000000 { reg = <0x78000000 0x800000>; no-map; };
This makes it clear to the Linux kernel that it must leave it to the OP-TEE driver to map the reserved memory.
Reviewed-by: Joakim Bech <joakim.bech@linaro.org> Tested-by: Jens Wiklander <jens.wiklander@linaro.org> (QEMU) Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| 6bb8d499 | 31-Aug-2016 |
Jerome Forissier <jerome.forissier@linaro.org> |
hikey: increase heap size from 24 KiB to 32 KiB
The current heap size is not enough to run `xtest` when the newly added SQLite FS is enabled (CFG_SQL_FS=y). Let's increase it a bit.
Signed-off-by:
hikey: increase heap size from 24 KiB to 32 KiB
The current heap size is not enough to run `xtest` when the newly added SQLite FS is enabled (CFG_SQL_FS=y). Let's increase it a bit.
Signed-off-by: Jerome Forissier <jerome.forissier@linaro.org> Reviewed-by: Joakim Bech <joakim.bech@linaro.org>
show more ...
|
| 93d4bae9 | 02-Sep-2016 |
Jerome Forissier <jerome.forissier@linaro.org> |
tee_mm_get_pool_stats(): fix reset of max_allocated
Signed-off-by: Jerome Forissier <jerome.forissier@linaro.org> Reviewed-by: Etienne Carriere <etienne.carriere@linaro.org> Reviewed-by: Jens Wiklan
tee_mm_get_pool_stats(): fix reset of max_allocated
Signed-off-by: Jerome Forissier <jerome.forissier@linaro.org> Reviewed-by: Etienne Carriere <etienne.carriere@linaro.org> Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| 52f8b816 | 01-Sep-2016 |
Jerome Forissier <jerome.forissier@linaro.org> |
core: add heap allocation failure statistics
Adds the following statistics to the heap allocator and export then via the static TA `core/arch/arm/sta/stats.c` (all of them can be reset):
- num_all
core: add heap allocation failure statistics
Adds the following statistics to the heap allocator and export then via the static TA `core/arch/arm/sta/stats.c` (all of them can be reset):
- num_alloc_fail: number of calls to malloc()/calloc()/realloc() that returned NULL - biggest_alloc_fail: the size in bytes of the largest allocation request that resulted in a failure - biggest_alloc_fail_used: the number of bytes that were allocated at that time
Depends on CFG_WITH_STATS=y.
Signed-off-by: Jerome Forissier <jerome.forissier@linaro.org> Reviewed-by: Joakim Bech <joakim.bech@linaro.org> Reviewed-by: Etienne Carriere <etienne.carriere@linaro.org> Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| 1d171f95 | 30-Aug-2016 |
Jens Wiklander <jens.wiklander@linaro.org> |
core: add support for kernel address sanitizer
Adds support for kernel address sanitizer. Currently only for plat-vexpress-qemu_virt.
Reviewed-by: Etienne Carriere <etienne.carriere@linaro.org> Tes
core: add support for kernel address sanitizer
Adds support for kernel address sanitizer. Currently only for plat-vexpress-qemu_virt.
Reviewed-by: Etienne Carriere <etienne.carriere@linaro.org> Tested-by: Jens Wiklander <jens.wiklander@linaro.org> (QEMU v7) Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| b18dfc62 | 30-Aug-2016 |
Jens Wiklander <jens.wiklander@linaro.org> |
core: add .early_bss section
Adds .early_bss to be used for variables that would normally land in .bss, but must not since they are updated before .bss is cleared. This section replaces earlier work
core: add .early_bss section
Adds .early_bss to be used for variables that would normally land in .bss, but must not since they are updated before .bss is cleared. This section replaces earlier workarounds using __data for such variables.
Reviewed-by: Etienne Carriere <etienne.carriere@linaro.org> Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| 80637c4f | 30-Aug-2016 |
Jens Wiklander <jens.wiklander@linaro.org> |
core: arm: rename _end symbol to __end
Renames the _end symbol to __end for consistency with other linker symbols.
Reviewed-by: Etienne Carriere <etienne.carriere@linaro.org> Signed-off-by: Jens Wi
core: arm: rename _end symbol to __end
Renames the _end symbol to __end for consistency with other linker symbols.
Reviewed-by: Etienne Carriere <etienne.carriere@linaro.org> Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| a681faba | 02-Sep-2016 |
Jerome Forissier <jerome.forissier@linaro.org> |
trace.h: add macros to unwind and print the call stack (kernel only)
Adds [EIDF]PRINT_STACK() for debugging purposes. Depends on CFG_CORE_UNWIND=y. As a side-effect, also adds a few things that may
trace.h: add macros to unwind and print the call stack (kernel only)
Adds [EIDF]PRINT_STACK() for debugging purposes. Depends on CFG_CORE_UNWIND=y. As a side-effect, also adds a few things that may be useful on their own: __always_inline, read_pc(), read_fp(), read_lr().
Signed-off-by: Jerome Forissier <jerome.forissier@linaro.org> Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| 0722881d | 02-Sep-2016 |
Jerome Forissier <jerome.forissier@linaro.org> |
core: arm64: SMC handler: initialize frame pointer to 0
init_regs() should set the frame pointer (x29) to zero to indicate the end of the frame record chain, as required by the Aarch64 AAPCS. Withou
core: arm64: SMC handler: initialize frame pointer to 0
init_regs() should set the frame pointer (x29) to zero to indicate the end of the frame record chain, as required by the Aarch64 AAPCS. Without this, there is no guarantee that unwind_stack() will terminate.
Signed-off-by: Jerome Forissier <jerome.forissier@linaro.org> Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| db65742a | 01-Aug-2016 |
Pengguang Zhu <zpghao@163.com> |
core: add memory type MEM_AREA_RAM_SEC, MEM_AREA_RAM_NSEC
replace memory type MEM_AREA_KEYVAULT with MEM_AREA_RAM_SEC MEM_AREA_RAM_SEC: for cached, secure memory MEM_AREA_RAM_NSEC: for cached, nonse
core: add memory type MEM_AREA_RAM_SEC, MEM_AREA_RAM_NSEC
replace memory type MEM_AREA_KEYVAULT with MEM_AREA_RAM_SEC MEM_AREA_RAM_SEC: for cached, secure memory MEM_AREA_RAM_NSEC: for cached, nonsecure memory
Signed-off-by: Pengguang Zhu <zpghao@163.com> Reviewed-by: etienne carriere <etienne.carriere@linaro.org> Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| a4f26dfb | 22-Aug-2016 |
Volodymyr Babchuk <volodymyr.babchuk@globallogic.com> |
Add RCAR H3 platform support
Added support for Renesas RCAR devices. Initially RCAR H3 is supported.
Signed-off-by: Volodymyr Babchuk <volodymyr.babchuk@globallogic.com> Reviewed-by: Jens Wiklander
Add RCAR H3 platform support
Added support for Renesas RCAR devices. Initially RCAR H3 is supported.
Signed-off-by: Volodymyr Babchuk <volodymyr.babchuk@globallogic.com> Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org> Reviewed-by: Jerome Forissier <jerome.forissier@linaro.org>
show more ...
|
| 9fc53171 | 23-Aug-2016 |
Jerome Forissier <jerome.forissier@linaro.org> |
Fix invalid default value of $(PLATFORM_FLAVOR)
Fixes the following error:
$ make -s PLATFORM=stm core/arch/arm/plat-stm/system_config.mk:20: *** PLATFORM_FLAVOR=qemu_virt is not supporte
Fix invalid default value of $(PLATFORM_FLAVOR)
Fixes the following error:
$ make -s PLATFORM=stm core/arch/arm/plat-stm/system_config.mk:20: *** PLATFORM_FLAVOR=qemu_virt is not supported. Stop.
(one would expect PLATFORM_FLAVOR to default to 'orly2'). This patch does the following:
- Do not set "PLATFORM_FLAVOR ?= qemu_virt" in the main Makefile. The default value for PLATFORM_FLAVOR has to be defined by each platform in plat-*/conf.mk. - Consistent with the above, "PLATFORM_FLAVOR_$(PLATFORM_FLAVOR) := y" is moved to core/core.mk, after $(platform-dir)/conf.mk has been included, i.e., where $(PLATFORM_FLAVOR) can be relied upon. - All definitions of "PLATFORM_FLAVOR_$(PLATFORM_FLAVOR) := y" are removed from platform files, since it is already taken care of in core/core.mk.
Signed-off-by: Jerome Forissier <jerome.forissier@linaro.org> Reviewed-by: Joakim Bech <joakim.bech@linaro.org> Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| d04ddd03 | 22-Aug-2016 |
Jerome Forissier <jerome.forissier@linaro.org> |
Fix static TA memory leak
The static TA context allocated in tee_ta_init_static_ta_session() is never freed. Do it in static_ta_destroy().
Test case: while [ true ]; do \ xtest 1001 >/dev/nul
Fix static TA memory leak
The static TA context allocated in tee_ta_init_static_ta_session() is never freed. Do it in static_ta_destroy().
Test case: while [ true ]; do \ xtest 1001 >/dev/null 2>&1 || break; \ i=$(($i+1)); \ if [ $(($i % 10)) -eq 0 ]; then echo $i; fi; \ done
Signed-off-by: Jerome Forissier <jerome.forissier@linaro.org> Reported-by: JunLin Quan <junlin.quan@linaro.org> Tested-by: Jerome Forissier <jerome.forissier@linaro.org> (HiKey) Reviewed-by: Joakim Bech <joakim.bech@linaro.org> Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org>
[Review] Oops, stc might still be used after free
Signed-off-by: Jerome Forissier <jerome.forissier@linaro.org>
show more ...
|
| f6b21191 | 18-Aug-2016 |
Jens Wiklander <jens.wiklander@linaro.org> |
core: arm64: fix masking exceptions on normal exit
Before this patch debug and asynchronous abort wasn't masked when doing a normal return from call. This patch fixes that.
Reviewed-by: Etienne Car
core: arm64: fix masking exceptions on normal exit
Before this patch debug and asynchronous abort wasn't masked when doing a normal return from call. This patch fixes that.
Reviewed-by: Etienne Carriere <etienne.carriere@linaro.org> Tested-by: Jens Wiklander <jens.wiklander@linaro.org> (QEMUv8) Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| ca70d0b5 | 19-Aug-2016 |
Jens Wiklander <jens.wiklander@linaro.org> |
core: add late service_init and driver_init
Adds service_init_late() for init calls that depends on other services. Adds driver_init_late() for init calls that depends on other drivers.
Reviewed-by
core: add late service_init and driver_init
Adds service_init_late() for init calls that depends on other services. Adds driver_init_late() for init calls that depends on other drivers.
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 ...
|
| 3f17b838 | 16-Aug-2016 |
Etienne Carriere <etienne.carriere@linaro.org> |
core debug: cleanup CFG_TEE_CORE_DEBUG
Fix inconsistencies in CFG_TEE_CORE_DEBUG. This change proposes to define CFG_TEE_CORE_DEBUG as a y/n directive.
This change also fixes the comment describing
core debug: cleanup CFG_TEE_CORE_DEBUG
Fix inconsistencies in CFG_TEE_CORE_DEBUG. This change proposes to define CFG_TEE_CORE_DEBUG as a y/n directive.
This change also fixes the comment describing DEBUG directive.
Signed-off-by: Etienne Carriere <etienne.carriere@linaro.org> Tested-by: Etienne Carriere <etienne.carriere@linaro.org> (qemu_v7/v8) Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| 4d62e91a | 16-Aug-2016 |
Victor Chong <victor.chong@linaro.org> |
Enable static TA and core self tests..
..for all platforms by setting
CFG_TEE_CORE_EMBED_INTERNAL_TESTS ?= y
in mk/config.mk.
Signed-off-by: Victor Chong <victor.chong@linaro.org> Suggested-by: J
Enable static TA and core self tests..
..for all platforms by setting
CFG_TEE_CORE_EMBED_INTERNAL_TESTS ?= y
in mk/config.mk.
Signed-off-by: Victor Chong <victor.chong@linaro.org> Suggested-by: Jerome Forissier <jerome.forissier@linaro.org> Reviewed-by: Jerome Forissier <jerome.forissier@linaro.org> Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| 9fa2c2f1 | 12-Aug-2016 |
Zeng Tao <prime.zeng@huawei.com> |
Change the access right from w to r in virt_to_phy
Currently we are using the write_ats1cpw to do the virt_to_phys translation, but when the input address is readonly, the translation will fail, fix
Change the access right from w to r in virt_to_phy
Currently we are using the write_ats1cpw to do the virt_to_phys translation, but when the input address is readonly, the translation will fail, fix it using write_ats1cpr.
Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org> Signed-off-by: Zeng Tao <prime.zeng@huawei.com>
show more ...
|
| 9c015280 | 26-Apr-2016 |
Jens Wiklander <jens.wiklander@linaro.org> |
plat-vexpress: configure tzc400 driver if enabled
Configures the tzc400 driver if CFG_TZC400 is y.
Reviewed-by: etienne carriere <etienne.carriere@linaro.org> Reviewed-by: David Brown <david.brown@
plat-vexpress: configure tzc400 driver if enabled
Configures the tzc400 driver if CFG_TZC400 is y.
Reviewed-by: etienne carriere <etienne.carriere@linaro.org> Reviewed-by: David Brown <david.brown@linaro.org> Tested-by: Jens Wiklander <jens.wiklander@linaro.org> (QEMU, FVP) Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| f1cae20e | 10-Aug-2016 |
Jerome Forissier <jerome.forissier@linaro.org> |
plat-d02: enable hardware RNG
Signed-off-by: Jerome Forissier <jerome.forissier@linaro.org> Reviewed-by: David Brown <david.brown@linaro.org> Reviewed-by: etienne carriere <etienne.carriere@linaro.o
plat-d02: enable hardware RNG
Signed-off-by: Jerome Forissier <jerome.forissier@linaro.org> Reviewed-by: David Brown <david.brown@linaro.org> Reviewed-by: etienne carriere <etienne.carriere@linaro.org>
show more ...
|
| 8c9d9445 | 23-Jul-2016 |
Etienne Carriere <etienne.carriere@linaro.org> |
core: review assert and panic traces
Replace few "{ EMSG(...); panic(); }" with "panic(...);".
Disable file/line/func debug traces in panic() logs when CFG_TEE_CORE_DEBUG is disable.
Change __asse
core: review assert and panic traces
Replace few "{ EMSG(...); panic(); }" with "panic(...);".
Disable file/line/func debug traces in panic() logs when CFG_TEE_CORE_DEBUG is disable.
Change __assert_log() uses EMSG_RAW() to no pollute trace with __assert_log() internals (duplicated file/line/func traces).
Change assert() to use a low/high verbosity mode upon CFG_TEE_CORE_DEBUG as panic() does.
Change assert() to also trace the C function where assertion failed.
Signed-off-by: Etienne Carriere <etienne.carriere@linaro.org> Reviewed-by: Jens Wiklander <jen.wiklander@linaro.org> Reviewed-by: Jerome Forissier <jerome.forissier@linaro.org> Tested-by: Etienne Carriere <etienne.carriere@linaro.org> (QEMU)
show more ...
|
| d13278b8 | 23-Jul-2016 |
Etienne Carriere <etienne.carriere@linaro.org> |
core: remove TEE_ASSERT()
TEE_ASSERT() can be confusing regarding assert() as assert() can be disabled through NDEBUG while TEE_ASSERT() can't. Instead one should explicitly implement "if (cond) { p
core: remove TEE_ASSERT()
TEE_ASSERT() can be confusing regarding assert() as assert() can be disabled through NDEBUG while TEE_ASSERT() can't. Instead one should explicitly implement "if (cond) { panic(); }"
This patch removes several inclusions on tee_common_unpg.h as it used to define TEE_ASSERT() that has been removed.
Signed-off-by: Etienne Carriere <etienne.carriere@linaro.org> Reviewed-by: Jens Wiklander <jen.wiklander@linaro.org> Reviewed-by: Jerome Forissier <jerome.forissier@linaro.org> Tested-by: Etienne Carriere <etienne.carriere@linaro.org> (QEMU)
show more ...
|