| ae9fdf98 | 11-Oct-2017 |
Etienne Carriere <etienne.carriere@linaro.org> |
plat-stm: support registered shm buffers
CFG_DDR_SECURE_BASE/_SIZE can be used to define the DDR range reserved to secure side. This can be larger than the TEETZ reserved memory. If CFG_DDR_SECURE_B
plat-stm: support registered shm buffers
CFG_DDR_SECURE_BASE/_SIZE can be used to define the DDR range reserved to secure side. This can be larger than the TEETZ reserved memory. If CFG_DDR_SECURE_BASE/_SIZE is defined, plat-stm registers the non-secure external memory to support dynamic shm registering.
Signed-off-by: Etienne Carriere <etienne.carriere@linaro.org> Acked-by: Jerome Forissier <jerome.forissier@linaro.org>
show more ...
|
| ae194216 | 12-Oct-2017 |
Etienne Carriere <etienne.carriere@linaro.org> |
core:sdp: fix SDP test pseudo-TA against dynamic shm
Physical memory typed CORE_MEM_NSEC_SHM belong to the default contiguous shm memory. Since dynamic SHM, now non secure memory reference can be ou
core:sdp: fix SDP test pseudo-TA against dynamic shm
Physical memory typed CORE_MEM_NSEC_SHM belong to the default contiguous shm memory. Since dynamic SHM, now non secure memory reference can be outside the default NSEC_SHM, hence check non secure reference using CORE_MEM_NON_SEC type instead of CORE_MEM_NSEC_SHM.
Signed-off-by: Etienne Carriere <etienne.carriere@linaro.org> Acked-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| c5d84b72 | 10-Oct-2017 |
Volodymyr Babchuk <vlad.babchuk@gmail.com> |
plat-rcar: add non-secure DDR configuration
This patch adds non-secure DDR ranges for salvator-h3 and salvator-m3 boards.
Signed-off-by: Volodymyr Babchuk <vlad.babchuk@gmail.com> Acked-by: Jens Wi
plat-rcar: add non-secure DDR configuration
This patch adds non-secure DDR ranges for salvator-h3 and salvator-m3 boards.
Signed-off-by: Volodymyr Babchuk <vlad.babchuk@gmail.com> Acked-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| d7269ccc | 10-Oct-2017 |
Volodymyr Babchuk <vlad.babchuk@gmail.com> |
plat-rcar: add initial support for salvator-m3 board
Prior to this patch OP-TEE was able to run only at salvator-h3 board (but it worked on salvator-m3 too, only by coincidence).
Signed-off-by: Vol
plat-rcar: add initial support for salvator-m3 board
Prior to this patch OP-TEE was able to run only at salvator-h3 board (but it worked on salvator-m3 too, only by coincidence).
Signed-off-by: Volodymyr Babchuk <vlad.babchuk@gmail.com> Acked-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| b369a932 | 12-Oct-2017 |
Volodymyr Babchuk <vlad.babchuk@gmail.com> |
plat-rcar: force CFG_CORE_LARGE_PHYS_ADDR
On RCAR3 platform most of the DRAM is mapped over 4GB, so it needs LPE enabled with 32-bit builds.
Signed-off-by: Volodymyr Babchuk <vlad.babchuk@gmail.com
plat-rcar: force CFG_CORE_LARGE_PHYS_ADDR
On RCAR3 platform most of the DRAM is mapped over 4GB, so it needs LPE enabled with 32-bit builds.
Signed-off-by: Volodymyr Babchuk <vlad.babchuk@gmail.com> Acked-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| ae841edf | 12-Oct-2017 |
Jerome Forissier <jerome.forissier@linaro.org> |
pager: allow TA unwind when cause of unwind is not abort
It is perfectly safe to run the call stack unwinding code on a paged TA as long as we're not processing an abort. Adjust __abort_print() acco
pager: allow TA unwind when cause of unwind is not abort
It is perfectly safe to run the call stack unwinding code on a paged TA as long as we're not processing an abort. Adjust __abort_print() accordingly. Prior to this patch, the call stack was missing from TA panics if pager was enabled.
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 ...
|
| 785be2ee | 11-Oct-2017 |
Jens Wiklander <jens.wiklander@linaro.org> |
plat-vexpress: juno: add missing DRAM1
Defines missing DRAM1 base 0x880000000 size 0x180000000 for Juno.
Acked-by: Jerome Forissier <jerome.forissier@linaro.org> Tested-by: Jens Wiklander <jens.wik
plat-vexpress: juno: add missing DRAM1
Defines missing DRAM1 base 0x880000000 size 0x180000000 for Juno.
Acked-by: Jerome Forissier <jerome.forissier@linaro.org> Tested-by: Jens Wiklander <jens.wiklander@linaro.org> (Juno) Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| 3ff067c4 | 05-Oct-2017 |
Jens Wiklander <jens.wiklander@linaro.org> |
plat-vexpress: fvp: add missing DRAM1
Defines missing DRAM1 base 0x880000000 size 0xa00000000 for FVP.
Reviewed-by: Etienne Carriere <etienne.carriere@linaro.org> Tested-by: Jens Wiklander <jens.wi
plat-vexpress: fvp: add missing DRAM1
Defines missing DRAM1 base 0x880000000 size 0xa00000000 for FVP.
Reviewed-by: Etienne Carriere <etienne.carriere@linaro.org> Tested-by: Jens Wiklander <jens.wiklander@linaro.org> (FVP) Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| cbe4eaec | 05-Oct-2017 |
Jens Wiklander <jens.wiklander@linaro.org> |
core: add register_phys_mem_ul()
Adds register_phys_mem_ul() which must be used (for compatibility with CFG_CORE_LARGE_PHYS_ADDR=y) when input address and size is based on symbols generated in the l
core: add register_phys_mem_ul()
Adds register_phys_mem_ul() which must be used (for compatibility with CFG_CORE_LARGE_PHYS_ADDR=y) when input address and size is based on symbols generated in the link script.
Acked-by: Etienne Carriere <etienne.carriere@linaro.org> Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| 29ba2e7c | 05-Oct-2017 |
Jens Wiklander <jens.wiklander@linaro.org> |
core: trivial large paddr_t fixes
Reviewed-by: Etienne Carriere <etienne.carriere@linaro.org> Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org> |
| dd3afbac | 05-Oct-2017 |
Jens Wiklander <jens.wiklander@linaro.org> |
Add CFG_CORE_LARGE_PHYS_ADDR for 64bit paddr_t
Reviewed-by: Etienne Carriere <etienne.carriere@linaro.org> Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org> |
| 1c6a2dc7 | 05-Oct-2017 |
Jens Wiklander <jens.wiklander@linaro.org> |
core: lpae: take nsec DDR ranges into account
Takes nsec DDR ranges into account when setting TCR.PS field.
Reviewed-by: Etienne Carriere <etienne.carriere@linaro.org> Signed-off-by: Jens Wiklander
core: lpae: take nsec DDR ranges into account
Takes nsec DDR ranges into account when setting TCR.PS field.
Reviewed-by: Etienne Carriere <etienne.carriere@linaro.org> Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| 71315c30 | 10-Oct-2017 |
Andrew F. Davis <afd@ti.com> |
core: core.mk: make platform specific link.mk optional
Most platform do not need any special linker targets and so most just link back to the default. Lets just have core.mk use the default when a p
core: core.mk: make platform specific link.mk optional
Most platform do not need any special linker targets and so most just link back to the default. Lets just have core.mk use the default when a platform does not have this file. Also remove this from the porting guidelines as it is now optional and only needed for advanced use.
Signed-off-by: Andrew F. Davis <afd@ti.com> Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org> Acked-by: Jerome Forissier <jerome.forissier@linaro.org>
show more ...
|
| 6afb8533 | 10-Oct-2017 |
Andrew F. Davis <afd@ti.com> |
core: link.mk: make platform specific kern.ld.S optional
Most platform do not need any special linker scripting and so most just link back to the default. Lets just have link.mk use the default when
core: link.mk: make platform specific kern.ld.S optional
Most platform do not need any special linker scripting and so most just link back to the default. Lets just have link.mk use the default when a platform does not have this file. Also remove this from the porting guidelines as it is now optional and only needed for advanced use.
Signed-off-by: Andrew F. Davis <afd@ti.com> Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org> Acked-by: Jerome Forissier <jerome.forissier@linaro.org>
show more ...
|
| d81f93a7 | 10-Oct-2017 |
Volodymyr Babchuk <vlad.babchuk@gmail.com> |
build: add CFG_DYN_SHM_CAP config variable
This variable can disable reported capability OPTEE_SMC_SEC_CAP_DYNAMIC_SHM.
But dynamic SHM remains fully operational, though. This can be used for testi
build: add CFG_DYN_SHM_CAP config variable
This variable can disable reported capability OPTEE_SMC_SEC_CAP_DYNAMIC_SHM.
But dynamic SHM remains fully operational, though. This can be used for testing and debugging to emulate system, where dynamic SHM is not supported.
Signed-off-by: Volodymyr Babchuk <vlad.babchuk@gmail.com> Acked-by: Jerome Forissier <jerome.forissier@linaro.org>
show more ...
|
| bea839df | 04-Jul-2017 |
Volodymyr Babchuk <vlad.babchuk@gmail.com> |
entry_std.c: comment fixes in assign_mobj_to_param_mem()
- removed spaces before "?" in comments - Capitalized first letter in first words
Signed-off-by: Volodymyr Babchuk <vlad.babchuk@gmail.com
entry_std.c: comment fixes in assign_mobj_to_param_mem()
- removed spaces before "?" in comments - Capitalized first letter in first words
Signed-off-by: Volodymyr Babchuk <vlad.babchuk@gmail.com> Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org> Reviewed-by: Etienne Carriere <etienne.carriere@linaro.org>
show more ...
|
| b05cd886 | 15-Jun-2017 |
Volodymyr Babchuk <vlad.babchuk@gmail.com> |
core: enable non-contiguous temporary reference parameters
Now, when we can pass list of pages between REE and TEE it is possible to use temporary memory references that are not located in a preallo
core: enable non-contiguous temporary reference parameters
Now, when we can pass list of pages between REE and TEE it is possible to use temporary memory references that are not located in a preallocated shared memory area. By employing OPTEE_MSG_ATTR_NONCONTIG parameter attribute, REE can provide own buffer as a temporary memory reference.
Actually, such parameters are indistinguishable from registered shared memory references. So, when OP-TEE spots temporary memory reference with OPTEE_MSG_ATTR_NONCONTIG attribute, it will create `mobj_reg_shm` for it. After call was handled, it will free that mobj.
Signed-off-by: Volodymyr Babchuk <vlad.babchuk@gmail.com> Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org> Tested-by: Jerome Forissier <jerome.forissier@linaro.org> (HiKey) Tested-by: Jens Wiklander <jens.wiklander@linaro.org> (FVP, QEMU v7/v8) Tested-by: Jens Wiklander <jens.wiklander@linaro.org> (Juno with and without pager) Tested-by: Volodymyr Babchuk <vlad.babchuk@gmail.com> (Rcar M3)
show more ...
|
| 55d6853c | 15-Jun-2017 |
Volodymyr Babchuk <vlad.babchuk@gmail.com> |
core: add registered shared memory support
Normal world now can call OPTEE_MSG_CMD_REGISTER_SHM and OPTEE_MSG_CMD_UNREGISTER_SHM functions to register/unregister shared memory.
After that, it can u
core: add registered shared memory support
Normal world now can call OPTEE_MSG_CMD_REGISTER_SHM and OPTEE_MSG_CMD_UNREGISTER_SHM functions to register/unregister shared memory.
After that, it can use OPTEE_MSG_ATTR_TYPE_RMEM_* to reference to that registered shared buffers.
Signed-off-by: Volodymyr Babchuk <vlad.babchuk@gmail.com> Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org> Reviewed-by: Etienne Carriere <etienne.carriere@linaro.org>
show more ...
|
| 5f4ccb31 | 22-Jun-2017 |
Volodymyr Babchuk <vlad.babchuk@gmail.com> |
entry_std: save parameters attributes into local memory
Normal World can change contents of shared memory at any time. Right now it does not pose any threat. But next patches will rely on attribute
entry_std: save parameters attributes into local memory
Normal World can change contents of shared memory at any time. Right now it does not pose any threat. But next patches will rely on attribute values. Thus, we need to read parameter attributes only once and then use this saved value.
Signed-off-by: Volodymyr Babchuk <vlad.babchuk@gmail.com> Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org> Reviewed-by: Etienne Carriere <etienne.carriere@linaro.org>
show more ...
|
| e34f3081 | 10-Oct-2017 |
Jerome Forissier <jerome.forissier@linaro.org> |
Revert "core: core_mmu_v7: core_mmu_get_user_pgdir: remove duplicated code"
This reverts commit 3eb2ba74961b. core_mmu_set_info_table() sets tbl_info->num_entries to NUM_L1_ENTRIES, not NUM_UL1_ENTR
Revert "core: core_mmu_v7: core_mmu_get_user_pgdir: remove duplicated code"
This reverts commit 3eb2ba74961b. core_mmu_set_info_table() sets tbl_info->num_entries to NUM_L1_ENTRIES, not NUM_UL1_ENTRIES. So the removed code was actually not duplicate.
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 ...
|
| 093fb9c7 | 28-Sep-2017 |
Peng Fan <peng.fan@nxp.com> |
core: imx: implement psci reset
Implement psci reset support.
Signed-off-by: Peng Fan <peng.fan@nxp.com> Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org> |
| 673673db | 28-Sep-2017 |
Peng Fan <peng.fan@nxp.com> |
core: arm: imx set CFG_MMAP_REGIONS
Set CFG_MMAP_REGIONS to 24.
Signed-off-by: Peng Fan <peng.fan@nxp.com> |
| 75fddfb8 | 03-Oct-2017 |
Peng Fan <peng.fan@nxp.com> |
core: mmu: introduce CFG_MMAP_REGIONS
Introduce CFG_MMAP_REGIONS to replace MAX_MMAP_REGIONS to allow platform specific value.
Signed-off-by: Peng Fan <peng.fan@nxp.com> Reviewed-by: Jens Wiklander
core: mmu: introduce CFG_MMAP_REGIONS
Introduce CFG_MMAP_REGIONS to replace MAX_MMAP_REGIONS to allow platform specific value.
Signed-off-by: Peng Fan <peng.fan@nxp.com> Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| fe264890 | 04-Oct-2017 |
Peng Fan <peng.fan@nxp.com> |
core: arm: introduce get_dt_blob
Introduce get_dt_blob. This could allow drivers to use device tree.
Signed-off-by: Peng Fan <peng.fan@nxp.com> Reviewed-by: Jens Wiklander <jens.wiklander@linaro.or
core: arm: introduce get_dt_blob
Introduce get_dt_blob. This could allow drivers to use device tree.
Signed-off-by: Peng Fan <peng.fan@nxp.com> Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| af397f92 | 27-Sep-2017 |
Peng Fan <peng.fan@nxp.com> |
core: mmu: typo fix
Typo fix: inseart -> insert
Signed-off-by: Peng Fan <peng.fan@nxp.com> Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org> |