| 2579b45c | 20-Apr-2017 |
Andrew F. Davis <afd@ti.com> |
plat-ti: Remove duplicate SECRAM memory definition
After removing DEVICEx_TYPE/_PA_BASE/_SIZE support the definition for SECRAM was moved to main.c, but we had already made this move, remove the dup
plat-ti: Remove duplicate SECRAM memory definition
After removing DEVICEx_TYPE/_PA_BASE/_SIZE support the definition for SECRAM was moved to main.c, but we had already made this move, remove the duplicate definition.
Signed-off-by: Andrew F. Davis <afd@ti.com> Acked-by: Jerome Forissier <jerome.forissier@linaro.org> Acked-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| e3e468b3 | 20-Dec-2016 |
Volodymyr Babchuk <vlad.babchuk@gmail.com> |
core_mmu: add page map/unmap functions
This function allows to map list of physical pages to specified virtual memory address.
Signed-off-by: Volodymyr Babchuk <vlad.babchuk@gmail.com> Reviewed-by:
core_mmu: add page map/unmap functions
This function allows to map list of physical pages to specified virtual memory address.
Signed-off-by: Volodymyr Babchuk <vlad.babchuk@gmail.com> Reviewed-by: Etienne Carriere <etienne.carriere@linaro.org> Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org> [jf: remove braces {} around single statement block] Signed-off-by: Jerome Forissier <jerome.forissier@linaro.org>
show more ...
|
| c6c69797 | 14-Apr-2017 |
Volodymyr Babchuk <vlad.babchuk@gmail.com> |
mm: add new VA region for dynamic shared buffers
This region will be used later to dynamically map shared buffers provided by Normal World.
Signed-off-by: Volodymyr Babchuk <vlad.babchuk@gmail.com>
mm: add new VA region for dynamic shared buffers
This region will be used later to dynamically map shared buffers provided by Normal World.
Signed-off-by: Volodymyr Babchuk <vlad.babchuk@gmail.com> Reviewed-by: Etienne Carriere <etienne.carriere@linaro.org> Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| d246df92 | 28-Apr-2017 |
Etienne Carriere <etienne.carriere@linaro.org> |
core: fix build with DEBUG=y and LOG_LEVEL=0
Fix build issue with CFG_TEE_CORE_DEBUG=y and CFG_TEE_CORE_LOG_LEVEL=0.
Signed-off-by: Etienne Carriere <etienne.carriere@st.com> Reviewed-by: Jens Wikl
core: fix build with DEBUG=y and LOG_LEVEL=0
Fix build issue with CFG_TEE_CORE_DEBUG=y and CFG_TEE_CORE_LOG_LEVEL=0.
Signed-off-by: Etienne Carriere <etienne.carriere@st.com> Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org> Reviewed-by: Jerome Forissier <jerome.forissier@linaro.org>
show more ...
|
| 4dc31c52 | 02-Mar-2017 |
Jerome Forissier <jerome.forissier@linaro.org> |
core: arm: generic boot: dt: switch console to /secure-chosen/stdout-path
If CFG_DT=y, check the Device Tree's /secure-chosen node and look for the stdout-path property. Adjust the console output ac
core: arm: generic boot: dt: switch console to /secure-chosen/stdout-path
If CFG_DT=y, check the Device Tree's /secure-chosen node and look for the stdout-path property. Adjust the console output accordingly. The DT bindings for this property have been proposed on the LKML [1].
[1] https://www.spinics.net/lists/arm-kernel/msg566034.html
Signed-off-by: Jerome Forissier <jerome.forissier@linaro.org> 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 ...
|
| a4f139d7 | 04-Mar-2016 |
Jerome Forissier <jerome.forissier@linaro.org> |
core: introduce struct dt_driver
When CFG_DT=y, a linker section is created (.rodata.dtdrv) to hold all the DT-compatible drivers. The table can later be queried at runtime. Some manipulation functi
core: introduce struct dt_driver
When CFG_DT=y, a linker section is created (.rodata.dtdrv) to hold all the DT-compatible drivers. The table can later be queried at runtime. Some manipulation functions are exported in <kernel/dt.h>.
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 ...
|
| f4cfdeba | 27-Feb-2017 |
Jerome Forissier <jerome.forissier@linaro.org> |
core: dt: use fdt_address_cells() and fdt_size_cells()
Use the functions provided by libfdt instead of our own.
Signed-off-by: Jerome Forissier <jerome.forissier@linaro.org> Reviewed-by: Etienne Ca
core: dt: use fdt_address_cells() and fdt_size_cells()
Use the functions provided by libfdt instead of our own.
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 ...
|
| 2c39ee19 | 27-Apr-2017 |
Etienne Carriere <etienne.carriere@linaro.org> |
core: fix non-LPAE page mapped static mapping
Signed-off-by: Etienne Carriere <etienne.carriere@linaro.org> Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org> |
| 2dd446e9 | 27-Apr-2017 |
Etienne Carriere <etienne.carriere@linaro.org> |
core: fix test against end address of core virtual memory
Fix the first argument of the ROUNDUP() that should be 'map->va' instead of 'va' which is the lowest virtual address mapped.
'va_max' is re
core: fix test against end address of core virtual memory
Fix the first argument of the ROUNDUP() that should be 'map->va' instead of 'va' which is the lowest virtual address mapped.
'va_max' is renamed 'end' to help code fitting in 80 char lines.
Fixes: aa2ab38be0aa (core: more flexible static memory mapping) Signed-off-by: Etienne Carriere <etienne.carriere@linaro.org> Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| 03b03fae | 24-Apr-2017 |
Jerome Forissier <jerome.forissier@linaro.org> |
plat-imx: use the mov_imm macro instead of movw/movt
Signed-off-by: Jerome Forissier <jerome.forissier@linaro.org> Reviewed-by: Etienne Carriere <etienne.carriere@linaro.org> Reviewed-by: Jens Wikla
plat-imx: use the mov_imm macro instead of movw/movt
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 ...
|
| 420d7db5 | 23-Apr-2017 |
Igor Opaniuk <igor.opaniuk@linaro.org> |
am57xx: fix build error
Fix "#elif with no expression" error when building with ti-am57xx flavor Add am57xx to .travic.yml as supported platform
Reviewed-by: Jerome Forissier <jerome.forissier@lina
am57xx: fix build error
Fix "#elif with no expression" error when building with ti-am57xx flavor Add am57xx to .travic.yml as supported platform
Reviewed-by: Jerome Forissier <jerome.forissier@linaro.org> Reviewed-by: Andrew F. Davis <afd@ti.com> Signed-off-by: Igor Opaniuk <igor.opaniuk@linaro.org>
show more ...
|
| 330bdcbb | 16-Mar-2017 |
Jens Wiklander <jens.wiklander@linaro.org> |
core: thread: allocate RPC arg data on demand
Delays the RPC arg data allocation until it's needed to avoid doing RPC when the caller in normal world isn't prepared to handle it.
Reviewed-by: Jerom
core: thread: allocate RPC arg data on demand
Delays the RPC arg data allocation until it's needed to avoid doing RPC when the caller in normal world isn't prepared to handle it.
Reviewed-by: Jerome Forissier <jerome.forissier@linaro.org> Tested-by: Jerome Forissier <jerome.forissier@linaro.org> (HiKey) Reviewed-by: Etienne Carriere <etienne.carriere@linaro.org> Tested-by: Jens Wiklander <jens.wiklander@linaro.org> (QEMU) Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| 75c6da9d | 20-Apr-2017 |
Andrew F. Davis <afd@ti.com> |
plat-ti: Add support for using HUK on DRA7xx/AM57xx
On DRA7xx/AM57xx the initial secure software will pass OP-TEE a Hardware Unique Key (HUK), use this key when requested.
Signed-off-by: Andrew F.
plat-ti: Add support for using HUK on DRA7xx/AM57xx
On DRA7xx/AM57xx the initial secure software will pass OP-TEE a Hardware Unique Key (HUK), use this key when requested.
Signed-off-by: Andrew F. Davis <afd@ti.com> Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org> Reviewed-by: Jerome Forissier <jerome.forissier@linaro.org>
show more ...
|
| d5e5a05b | 20-Apr-2017 |
Andrew F. Davis <afd@ti.com> |
plat-ti: Read and store HUK sent by initial secure software
Some TI platforms pass the HUK to OP-TEE via a secure memory stack. Read and store this key for later use. On platforms without CFG_OTP_SU
plat-ti: Read and store HUK sent by initial secure software
Some TI platforms pass the HUK to OP-TEE via a secure memory stack. Read and store this key for later use. On platforms without CFG_OTP_SUPPORT this key is ignored.
Signed-off-by: Andrew F. Davis <afd@ti.com> Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org> Reviewed-by: Jerome Forissier <jerome.forissier@linaro.org>
show more ...
|
| 9a8dd03d | 20-Apr-2017 |
Andrew F. Davis <afd@ti.com> |
plat-ti: Rename platform context to platform boot arguments
Currently the non-secure context is passed in from our initial secure software as part of the OP-TEE load process. This passed-in data wil
plat-ti: Rename platform context to platform boot arguments
Currently the non-secure context is passed in from our initial secure software as part of the OP-TEE load process. This passed-in data will not only contain the non-secure context but also any additional data we may need to give to OP-TEE. Rename these structures and group the context data into a struct for future expansion.
Signed-off-by: Andrew F. Davis <afd@ti.com> Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org> Reviewed-by: Jerome Forissier <jerome.forissier@linaro.org>
show more ...
|
| 18901324 | 05-Apr-2017 |
David Wang <david.wang@arm.com> |
Support ARM GICv3 mode
In ARM GICv3 mode, the interrupts are used as below for optee_os. * FIQ - Foreign interrupts not handled by optee_os. This includes the non-secure interrupts that should be ha
Support ARM GICv3 mode
In ARM GICv3 mode, the interrupts are used as below for optee_os. * FIQ - Foreign interrupts not handled by optee_os. This includes the non-secure interrupts that should be handled by the REE and the secure interrupts assigned to the monitor (aarch32 Monitor mode or aarch64 EL3). * IRQ - Native interrupts for optee_os.
And optee_os should use the system register interface to access the GICC registers in GICv3 mode.
A new build flag `CFG_ARM_GICV3=y` should be set to support GICv3 mode.
Signed-off-by: David Wang <david.wang@arm.com> Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| 3361bca8 | 30-Mar-2017 |
David Wang <david.wang@arm.com> |
Refine the interrupt handlers
The handlers of native and foreign interrupts are hardcoded in FIQ and IRQ handlers. This patch generalizes these handlers in macros. For ARM GICv2 mode, FIQ handler ca
Refine the interrupt handlers
The handlers of native and foreign interrupts are hardcoded in FIQ and IRQ handlers. This patch generalizes these handlers in macros. For ARM GICv2 mode, FIQ handler calls native interrupt handler and IRQ handler calls foreign interrupt handler.
Signed-off-by: David Wang <david.wang@arm.com> Tested-by: David Wang <david.wang@arm.com> (juno arm32 and arm64) Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| d9331767 | 30-Jan-2017 |
Andy Green <andy@warmcat.com> |
otp: convert to use weak default
There is no longer any point in having CFG_OTP_SUPPORT.
It's always supported either by the weak implementation or any platform override.
Since there exists a plat
otp: convert to use weak default
There is no longer any point in having CFG_OTP_SUPPORT.
It's always supported either by the weak implementation or any platform override.
Since there exists a platform 'sunxi' that does not have CFG_GENERIC_BOOT and doesn't build generic_boot.c, this is plaved in a new file 'otp_stubs.c'. Since this is just copied Linaro code at this point, keep Linaro copyright message on the new file.
Signed-off-by: Andy Green <andy@warmcat.com> Reviewed-by: Jerome Forissier <jerome.forissier@linaro.org>
show more ...
|
| 32f31bf3 | 30-Jan-2017 |
Andy Green <andy@warmcat.com> |
dtb: no need to print trace with an ! if we were given a dtb with expected nodes
Signed-off-by: Andy Green <andy@warmcat.com> Reviewed-by: Jerome Forissier <jerome.forissier@linaro.org> |
| afd58d7f | 30-Jan-2017 |
Andy Green <andy@warmcat.com> |
Add one IMSG line before OP-TEE init message
Otherwise at least on Hikey, it comes partway through an ARM TF message and is hard to parse.
Signed-off-by: Andy Green <andy@warmcat.com> [jf: s/a-t-f/
Add one IMSG line before OP-TEE init message
Otherwise at least on Hikey, it comes partway through an ARM TF message and is hard to parse.
Signed-off-by: Andy Green <andy@warmcat.com> [jf: s/a-t-f/ARM TF/ in commit log] Reviewed-by: Jerome Forissier <jerome.forissier@linaro.org>
show more ...
|
| 0c4e1284 | 13-Apr-2017 |
Jens Wiklander <jens.wiklander@linaro.org> |
core: FS: key manager takes supplied UUID
The FS key manager takes a supplied UUID instead of extracting it from current session in order to be more flexible.
Reviewed-by: Jerome Forissier <jerome.
core: FS: key manager takes supplied UUID
The FS key manager takes a supplied UUID instead of extracting it from current session in order to be more flexible.
Reviewed-by: Jerome Forissier <jerome.forissier@linaro.org> Acked-by: Etienne Carriere <etienne.carriere@linaro.org> Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| f28e5060 | 13-Apr-2017 |
Jens Wiklander <jens.wiklander@linaro.org> |
core: htree: export/import hash of object
The hash-tree can be verified based on a known hash of the root node of a secure storage object. When syncing the hash tree the hash of the root node is sto
core: htree: export/import hash of object
The hash-tree can be verified based on a known hash of the root node of a secure storage object. When syncing the hash tree the hash of the root node is stored in an external location for further protection.
Reviewed-by: Jerome Forissier <jerome.forissier@linaro.org> Acked-by: Etienne Carriere <etienne.carriere@linaro.org> Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| 38f23772 | 21-Feb-2017 |
Andrew F. Davis <afd@ti.com> |
plat-ti: Add AM43xx platform services
The AM43xx ROM has a different monitor API set than DRA7xx/AM57xx devices, implement these services here.
Signed-off-by: Andrew F. Davis <afd@ti.com> Reviewed-
plat-ti: Add AM43xx platform services
The AM43xx ROM has a different monitor API set than DRA7xx/AM57xx devices, implement these services here.
Signed-off-by: Andrew F. Davis <afd@ti.com> Reviewed-by: Joakim Bech <joakim.bech@linaro.org>
show more ...
|
| 19d8ffe4 | 29-Mar-2017 |
Andrew F. Davis <afd@ti.com> |
plat-ti: Add support for PL310 in AM43xx
AM43xx family devices use the ARM PL310 Cache Controller, add support for this here.
Signed-off-by: Andrew F. Davis <afd@ti.com> Reviewed-by: Joakim Bech <j
plat-ti: Add support for PL310 in AM43xx
AM43xx family devices use the ARM PL310 Cache Controller, add support for this here.
Signed-off-by: Andrew F. Davis <afd@ti.com> Reviewed-by: Joakim Bech <joakim.bech@linaro.org>
show more ...
|
| 1c0b8da6 | 21-Feb-2017 |
Andrew F. Davis <afd@ti.com> |
plat-ti: Add AM43xx platform flavor
Signed-off-by: Andrew F. Davis <afd@ti.com> Reviewed-by: Joakim Bech <joakim.bech@linaro.org> |