| 8b572859 | 11-Oct-2016 |
Etienne Carriere <etienne.carriere@linaro.org> |
plat-stm/plat-imx: fix SCR initialization
Secure Configuration Register shall be initialized for all cores.
Signed-off-by: Etienne Carriere <etienne.carriere@linaro.org> Reviewed-by: Jens Wiklander
plat-stm/plat-imx: fix SCR initialization
Secure Configuration Register shall be initialized for all cores.
Signed-off-by: Etienne Carriere <etienne.carriere@linaro.org> Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| 197e8aec | 17-Oct-2016 |
Jerome Forissier <jerome.forissier@linaro.org> |
travis: run "make check" with CFG_TEE_CORE_DEBUG=y to enable assertions
Signed-off-by: Jerome Forissier <jerome.forissier@linaro.org> Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org> |
| caabd5fe | 17-Oct-2016 |
Jerome Forissier <jerome.forissier@linaro.org> |
crypto: ltc: add missing CBC_MAC algorithms to cipher_final()
Make sure that all the code paths leading to cipher_final() are properly handled. Then, the 'default:' case cannot occur; add an assert(
crypto: ltc: add missing CBC_MAC algorithms to cipher_final()
Make sure that all the code paths leading to cipher_final() are properly handled. Then, the 'default:' case cannot occur; add an assert() there. Fixes an assertion failure with xtest 4002 when CFG_TEE_CORE_DEBUG=y.
Signed-off-by: Jerome Forissier <jerome.forissier@linaro.org> Reported-by: Zeng Tao <prime.zeng@hisilicon.com> Fixes: 287359f44187 ("crypto: fix incorrect algo passed to cipher.final()") Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org> Tested-by: Zeng Tao <prime.zeng@hisilicon.com>
show more ...
|
| 606f378c | 13-Oct-2016 |
Jerome Forissier <jerome.forissier@linaro.org> |
build: include submodule in name of per-library variables
Because a library may be built several times for different submodules (for example, libutils.a is built differently for kernel and user mode
build: include submodule in name of per-library variables
Because a library may be built several times for different submodules (for example, libutils.a is built differently for kernel and user mode), the names of the variables that hold library-specific flags have to uniquely identify the instance of the library that's being built.
Example use case: to build libutils with flag FOO for the core and flag BAR for the user mode, add this to lib/libutils/sub.mk:
ifeq ($(sm),core) cppflags-lib-y += -DFOO else cppflags-lib-y += -DBAR endif
Without this fix, the above would fail because all the flags would be added to all the builds of libutils.
Fixes: 3d34e125a253 ("Add support for $(cflags-lib-y)") Signed-off-by: Jerome Forissier <jerome.forissier@linaro.org> Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org> Reviewed-by: Etienne Carriere <etienne.carriere@linaro.org>
show more ...
|
| aee3c6d6 | 13-Oct-2016 |
Zeng Tao <prime.zeng@hisilicon.com> |
core: add unwind stack in panic
Reviewed-by: Jerome Forissier <jerome.forissier@linaro.org> Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org> Signed-off-by: Zeng Tao <prime.zeng@hisilicon.com> |
| cfea5e6f | 13-Oct-2016 |
Jerome Forissier <jerome.forissier@linaro.org> |
travis: prevent warning from code checking tool
The checkpatch.pl script uses a file called const_structs.checkpatch to check for correct usage of some kernel structures. We don't want those checks,
travis: prevent warning from code checking tool
The checkpatch.pl script uses a file called const_structs.checkpatch to check for correct usage of some kernel structures. We don't want those checks, which are linux-specific, but we still need the file to be present otherwise the tool will log a warning message [1].
[1] https://travis-ci.org/OP-TEE/optee_os/builds/167271505#L1720
Signed-off-by: Jerome Forissier <jerome.forissier@linaro.org> Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| 18e8c533 | 10-Oct-2016 |
Jerome Forissier <jerome.forissier@linaro.org> |
arm32: unwind: print_stack(): fix unwind_state
print_stack() must save r7 and r11 in the unwind_state structure. Not doing so will likely result in a crash dunring unwind. Register r7 is typically u
arm32: unwind: print_stack(): fix unwind_state
print_stack() must save r7 and r11 in the unwind_state structure. Not doing so will likely result in a crash dunring unwind. Register r7 is typically used as a frame pointer by GCC in Thumb2 mode, while r11 (a.k.a. fp) is the frame pointer in ARM mode.
Also, set PC to the beginning of print_stack() since there's no point in going further inside the function.
Fixes: https://github.com/OP-TEE/optee_os/issues/1069 Signed-off-by: Jerome Forissier <jerome.forissier@linaro.org> Tested-by: Jerome Forissier <jerome.forissier@linaro.org> (HiKey) Tested-by: Jerome Forissier <jerome.forissier@linaro.org> (QEMU) Reviewed-by: Etienne Carriere <etienne.carriere@linaro.org> Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| e386996c | 10-Oct-2016 |
Jerome Forissier <jerome.forissier@linaro.org> |
arm32: unwind: mark tee_svc_do_call() with .cantunwind
The assembly function tee_svc_do_call() manipulates the stack pointer but does not use the proper unwind directives when doing so. As a result,
arm32: unwind: mark tee_svc_do_call() with .cantunwind
The assembly function tee_svc_do_call() manipulates the stack pointer but does not use the proper unwind directives when doing so. As a result, the compiler can't generate proper unwind information. This can lead to crashes or infinite loops if unwinding is performed at runtime. Given that there is nothing of much interest below this function, we simply add a .cantundwind directive to stop unwinding here.
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 ...
|
| 9c5e2f87 | 10-Oct-2016 |
Jerome Forissier <jerome.forissier@linaro.org> |
arm32: unwind: convert int to bool
The return status of unwind_tab() is used as a boolean, so change its type.
Signed-off-by: Jerome Forissier <jerome.forissier@linaro.org> Reviewed-by: Etienne Car
arm32: unwind: convert int to bool
The return status of unwind_tab() is used as a boolean, so change its type.
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 ...
|
| 7cd43342 | 10-Oct-2016 |
Jerome Forissier <jerome.forissier@linaro.org> |
arm32: unwind: fix incorrect return status
After the unwind code was imported from FreeBSD sources, it was slightly modified to invert some logic. One return slipped through.
Signed-off-by: Jerome
arm32: unwind: fix incorrect return status
After the unwind code was imported from FreeBSD sources, it was slightly modified to invert some logic. One return slipped through.
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 ...
|
| 1ce2bb13 | 11-Oct-2016 |
Etienne Carriere <etienne.carriere@linaro.org> |
core: fix spinlock for ARMv7-A and AArch32
Failure to acquire exclusivity when storing locked value on a spinlock should not yield to wait for an event, just attempting 'strex' execution again.
Tes
core: fix spinlock for ARMv7-A and AArch32
Failure to acquire exclusivity when storing locked value on a spinlock should not yield to wait for an event, just attempting 'strex' execution again.
Tested-by: Etienne Carriere <etienne.carriere@linaro.org> (b2260/qemu) Signed-off-by: Etienne Carriere <etienne.carriere@linaro.org> Reviewed-by: Joakim Bech <joakim.bech@linaro.org> Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| 2e286522 | 29-Sep-2016 |
yanyan-wrs <yan.yan@windriver.com> |
core: arm: pad tee-pager.bin to the actual end of data section
Signed-off-by: Yan Yan <yan.yan@windriver.com> Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org> |
| 45b45259 | 11-Oct-2016 |
Etienne Carriere <etienne.carriere@linaro.org> |
core: fix TA memory reference parameters mapping
This change fixes the TA buffer parameter mapping that gets clobbered when a parameter of lower index relates to nonsecure memory while a parameter o
core: fix TA memory reference parameters mapping
This change fixes the TA buffer parameter mapping that gets clobbered when a parameter of lower index relates to nonsecure memory while a parameter of higher index relates to a secure memory area.
Signed-off-by: Etienne Carriere <etienne.carriere@linaro.org> Reviewed-by: Joakim Bech <joakim.bech@linaro.org> Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| 095a2999 | 10-Oct-2016 |
Zeng Tao <prime.zeng@hisilicon.com> |
mm: fix the user L1 mmu entries calculation
Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org> Reviewed-by: Joakim Bech <joakim.bech@linaro.org> Signed-off-by: Zeng Tao <prime.zeng@hisilicon.co
mm: fix the user L1 mmu entries calculation
Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org> Reviewed-by: Joakim Bech <joakim.bech@linaro.org> Signed-off-by: Zeng Tao <prime.zeng@hisilicon.com>
show more ...
|
| 497acca0 | 07-Oct-2016 |
Joakim Bech <joakim.bech@linaro.org> |
mtk: map entire MEM_AREA_NSEC_SHM area
Running MTK8173 panics in tee_entry_std just after mapping the arguments. The reason for this is because only 1MB out of 2MB has been mapped and therefore leav
mtk: map entire MEM_AREA_NSEC_SHM area
Running MTK8173 panics in tee_entry_std just after mapping the arguments. The reason for this is because only 1MB out of 2MB has been mapped and therefore leaving a gap between MEM_AREA_NSEC_SHM and MEM_AREA_TA_RAM. I.e.,
DEBUG: [0x0] TEE-CORE:init_mem_map:398: type va 4 0xbc000000..0xbc0fffff pa 0xbdf00000..0xbdffffff size 0x100000
DEBUG: [0x0] TEE-CORE:init_mem_map:398: type va 3 0xbc200000..0xbdffffff pa 0xbe200000..0xbfffffff size 0x1e00000
Signed-off-by: Joakim Bech <joakim.bech@linaro.org> Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| c0c5d399 | 01-Oct-2016 |
Jerome Forissier <jerome.forissier@linaro.org> |
Update CHANGELOG.md for 2.2.0
Signed-off-by: Jerome Forissier <jerome.forissier@linaro.org> Reviewed-by: Joakim Bech <joakim.bech@linaro.org> Tested-by: Jerome Forissier <jerome.forissier@linaro.org
Update CHANGELOG.md for 2.2.0
Signed-off-by: Jerome Forissier <jerome.forissier@linaro.org> Reviewed-by: Joakim Bech <joakim.bech@linaro.org> Tested-by: Jerome Forissier <jerome.forissier@linaro.org> (d02) Tested-by: Jerome Forissier <jerome.forissier@linaro.org> (hikey) Tested-by: Yan Yan <yan.yan@windriver.com> (imx-mx6qsabrelite) Tested-by: Yan Yan <yan.yan@windriver.com> (imx-mx6qsabresd) Tested-by: Volodymyr Babchuk <vlad.babchuk@gmail.com> (rcar-h3) Tested-by: Joakim Bech <joakim.bech@linaro.org> (rpi3) Tested-by: Etienne Carriere <etienne.carriere@linaro.org> (stm-b2260) Tested-by: Etienne Carriere <etienne.carriere@linaro.org> (stm-cannes) Tested-by: Harinarayan Bhatta <harinarayan@ti.com> (ti-dra7xx) Tested-by: Jens Wiklander <jens.wiklander@linaro.org> (vexpress-fvp) Tested-by: Jens Wiklander <jens.wiklander@linaro.org> (vexpress-juno) Tested-by: Jens Wiklander <jens.wiklander@linaro.org> (vexpress-qemu_armv8a) Tested-by: Jerome Forissier <jerome.forissier@linaro.org> (vexpress-qemu_virt) Tested-by: Joakim Bech <joakim.bech@linaro.org> (vexpress-qemu_virt) Tested-by: Sören Brinkmann <soren.brinkmann@xilinx.com> (zynqmp-zcu102)
show more ...
|
| 9a64946c | 07-Oct-2016 |
Etienne Carriere <etienne.carriere@linaro.org> |
plat-stm: introduce b2260 (96boards/cannes)
Flavored 'b2260'. Default no GDB boot, lock pl310, specific DDR size and UART instance.
Tested-by: Etienne Carriere <etienne.carriere@linaro.org> (b2120/
plat-stm: introduce b2260 (96boards/cannes)
Flavored 'b2260'. Default no GDB boot, lock pl310, specific DDR size and UART instance.
Tested-by: Etienne Carriere <etienne.carriere@linaro.org> (b2120/b2260) Signed-off-by: Etienne Carriere <etienne.carriere@linaro.org> Reviewed-by: Jerome Forissier <jerome.forissier@linaro.org> Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| 5c02c1b2 | 07-Oct-2016 |
Etienne Carriere <etienne.carriere@linaro.org> |
plat-stm: fix platform
fix PL310 iomem mapped unsecure. fix rng against nonflat mapping.
Tested-by: Etienne Carriere <etienne.carriere@linaro.org> (stm-b2120) Signed-off-by: Etienne Carriere <etien
plat-stm: fix platform
fix PL310 iomem mapped unsecure. fix rng against nonflat mapping.
Tested-by: Etienne Carriere <etienne.carriere@linaro.org> (stm-b2120) Signed-off-by: Etienne Carriere <etienne.carriere@linaro.org> Reviewed-by: Jerome Forissier <jerome.forissier@linaro.org> Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| dba1ae65 | 07-Oct-2016 |
Joakim Bech <joakim.bech@linaro.org> |
doc: Update repo xml matrix
- Add qemu_v8_stable.xml, hikey_debian_stable.xml. - Remove "experimental" part for HiKey running Debian, since we are now pointing to the official RPB Linux kernel bra
doc: Update repo xml matrix
- Add qemu_v8_stable.xml, hikey_debian_stable.xml. - Remove "experimental" part for HiKey running Debian, since we are now pointing to the official RPB Linux kernel branch.
Signed-off-by: Joakim Bech <joakim.bech@linaro.org> Reviewed-by: Jerome Forissier <jerome.forissier@linaro.org>
show more ...
|
| 68b7782a | 05-Oct-2016 |
Joakim Bech <joakim.bech@linaro.org> |
rpi3: refer to new xml-files in documentation
Signed-off-by: Joakim Bech <joakim.bech@linaro.org> Reviewed-by: Jerome Forissier <jerome.forissier@linaro.org> |
| f3b8897f | 01-Oct-2016 |
Jerome Forissier <jerome.forissier@linaro.org> |
Add maintainers for D02 and Raspberry Pi3
Signed-off-by: Jerome Forissier <jerome.forissier@linaro.org> Reviewed-by: Joakim Bech <joakim.bech@linaro.org> Reviewed-by: Jens Wiklander <jens.wiklander@
Add maintainers for D02 and Raspberry Pi3
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 ...
|
| 287359f4 | 22-Sep-2016 |
lackan <liang.guanchao@linaro.org> |
crypto: fix incorrect algo passed to cipher.final()
Fix an error in function tee_svc_cipher_update_helper, and add assert in function cipher_final to prevent it being called by an algorithm that is
crypto: fix incorrect algo passed to cipher.final()
Fix an error in function tee_svc_cipher_update_helper, and add assert in function cipher_final to prevent it being called by an algorithm that is not a symmetric cipher.
Signed-off-by: lackan <liang.guanchao@linaro.org> [Reword commit subject] Signed-off-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 ...
|
| a884c935 | 12-Sep-2016 |
Jens Wiklander <jens.wiklander@linaro.org> |
core: add support for paging of user TAs
Enables support for paging of user TAs if CFG_PAGED_USER_TA is y
Acked-by: David Brown <david.brown@linaro.org> Tested-by: Jerome Forissier <jerome.forissie
core: add support for paging of user TAs
Enables support for paging of user TAs if CFG_PAGED_USER_TA is y
Acked-by: David Brown <david.brown@linaro.org> Tested-by: Jerome Forissier <jerome.forissier@linaro.org> (HiKey) Tested-by: Jens Wiklander <jens.wiklander@linaro.org> (QEMU 7) Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| f0f7c8a6 | 12-Sep-2016 |
Jens Wiklander <jens.wiklander@linaro.org> |
core: arm: kern.ld.S: consistent 8 bytes alignment
Replace the last 4 bytes alignment statements with 8 bytes alignment to avoid implicit padding when linking the binary.
Implicit padding following
core: arm: kern.ld.S: consistent 8 bytes alignment
Replace the last 4 bytes alignment statements with 8 bytes alignment to avoid implicit padding when linking the binary.
Implicit padding following the .data section doesn't work with the pager.
Acked-by: David Brown <david.brown@linaro.org> Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| 96d96148 | 29-Jan-2016 |
Jerome Forissier <jerome.forissier@linaro.org> |
hikey: 32-bit: use -mcpu=cortex-a53 instead of cortex-a15
Use the proper CPU architecture when building 32-bit binaries for HiKey. Note: this triggers a compiler warning: CC out/arm-plat-hik
hikey: 32-bit: use -mcpu=cortex-a53 instead of cortex-a15
Use the proper CPU architecture when building 32-bit binaries for HiKey. Note: this triggers a compiler warning: CC out/arm-plat-hikey/core/tee/tee_svc_cryp.o {standard input}: Assembler messages: {standard input}:632: Warning: IT blocks containing 32-bit Thumb instructions are deprecated in ARMv8 (compiler is gcc-linaro-arm-linux-gnueabihf-4.9-2014.09_linux). This seems to be harmless and is registered as a compiler bug [1].
[1] https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67591
Signed-off-by: Jerome Forissier <jerome.forissier@linaro.org> Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|