| 0dcfa568 | 19-Jan-2017 |
Jens Wiklander <jens.wiklander@linaro.org> |
core: introduce MOBJ abstraction
Introduces MOBJ for memory objects, no changes in features except breaking unsafe-nw-param/mem-multipurpose.
Reviewed-by: Etienne Carriere <etienne.carriere@linaro.
core: introduce MOBJ abstraction
Introduces MOBJ for memory objects, no changes in features except breaking unsafe-nw-param/mem-multipurpose.
Reviewed-by: Etienne Carriere <etienne.carriere@linaro.org> Reviewed-by Volodymyr Babchuk <vlad.babchuk@gmail.com> Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| b0bf72b2 | 12-Jan-2017 |
Andy Green <andy@warmcat.com> |
cruft: remove unreferenced HEAP_SIZE
There are no consumers of this and it just confuses the issue of how to set the heap size.
Signed-off-by: Andy Green <andy@warmcat.com> Acked-by: Jerome Forissi
cruft: remove unreferenced HEAP_SIZE
There are no consumers of this and it just confuses the issue of how to set the heap size.
Signed-off-by: Andy Green <andy@warmcat.com> Acked-by: Jerome Forissier <jerome.forissier@linaro.org> Reviewed-by: Etienne Carriere <etienne.carriere@linaro.org> [Wrap commit description. Rebase on top of master.] Signed-off-by: Jerome Forissier <jerome.forissier@linaro.org>
show more ...
|
| 192cd568 | 28-Dec-2016 |
Peng Fan <peng.fan@nxp.com> |
core: arm: imx: add PSCI on
Add PSCI on for plat-imx.
Note: The CFG_BOOT_SECONDARY_REQUEST includes spin_table which is not required by PSCI.
Signed-off-by: Peng Fan <peng.fan@nxp.com> Reviewed-
core: arm: imx: add PSCI on
Add PSCI on for plat-imx.
Note: The CFG_BOOT_SECONDARY_REQUEST includes spin_table which is not required by PSCI.
Signed-off-by: Peng Fan <peng.fan@nxp.com> Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org> [s/psci/PSCI/ in commit log. Rebase on top of master.] Signed-off-by: Jerome Forissier <jerome.forissier@linaro.org>
show more ...
|
| 319556cd | 11-Jan-2017 |
Peng Fan <peng.fan@nxp.com> |
core: arm: add PSCI support
Introduce basic PSCI support. When CFG_PSCI_ARM32 is defined, PSCI functions will be enabled. Add __weak property for the PSCI functions, developers could have their own
core: arm: add PSCI support
Introduce basic PSCI support. When CFG_PSCI_ARM32 is defined, PSCI functions will be enabled. Add __weak property for the PSCI functions, developers could have their own implementation.
PSCI is handled in monitor mode, and when finished, directly returns to nsec world.
Signed-off-by: Peng Fan <peng.fan@nxp.com> Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org> [s/psci/PSCI/ in commit log. Rebase on top of master.] Signed-off-by: Jerome Forissier <jerome.forissier@linaro.org>
show more ...
|
| 9ac870c9 | 06-Jan-2017 |
Jerome Forissier <jerome.forissier@linaro.org> |
Make sure "make clean" removes everything "make" has created under $(O)
"make clean" would leave behind some files and many directories. Fix this by correctly tracking the files and directories crea
Make sure "make clean" removes everything "make" has created under $(O)
"make clean" would leave behind some files and many directories. Fix this by correctly tracking the files and directories created under $(O) during the build process: - Fix incorrect file names in $(cleanfiles) and add a few missing ones. - Introduce a makefile macro: $(cleandirs-for-rmdir), defined in a new file: mk/cleandirs.mk. It returns the list of directories that should be removed, given a list of files. The clean target removes the files, then all the directories in depth- first order. $(O) is also removed, if found to be empty.
Note that a more straightforward approach was discussed in [1]: use "rm -rf $(O)/some_dir" and get rid of the whole file and directory tracking via $(cleanfiles) and $(cleandirs). Although it was agreed it would be safe, doing so would necessarily break the backward compatibility for build scripts relying on "make O=<some path>", due to the additional level ($(O)/some_dir).
Finally, mk/cleandirs.mk is exported to the TA dev kit and the clean rule for the TAs is updated.
[1] https://github.com/OP-TEE/optee_os/pull/1270
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> Acked-by: Andy Green <andy@warmcat.com>
show more ...
|
| 608bd28c | 04-Jan-2017 |
Jens Wiklander <jens.wiklander@linaro.org> |
core: plat-vexpress: qemu_armv8a: correct DRAM config
The previous fix for DRAM configuration wasn't correct for QEMU virt ARMv8A. This patch fixes that.
Acked-by: Jerome Forissier <jerome.forissie
core: plat-vexpress: qemu_armv8a: correct DRAM config
The previous fix for DRAM configuration wasn't correct for QEMU virt ARMv8A. This patch fixes that.
Acked-by: Jerome Forissier <jerome.forissier@linaro.org> Tested-by: Jens Wiklander <jens.wiklander@linaro.org> (QEMU ARMv8-A) Fixes: 0f8333b888f1 ("plat-vexpress/qemu: correct DRAM layout") Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| 070bca9b | 06-Jan-2017 |
Etienne Carriere <etienne.carriere@linaro.org> |
core: fix cpu_spin_trylock() against debug lock counting
To avoid confusion in cpu_spin_trylock() it now returns a boolean value: true on success, false on failure.
Signed-off-by: Etienne Carriere
core: fix cpu_spin_trylock() against debug lock counting
To avoid confusion in cpu_spin_trylock() it now returns a boolean value: true on success, false on failure.
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> [Rebase on top of master] Signed-off-by: Jerome Forissier <jerome.forissier@linaro.org>
show more ...
|
| eacb3524 | 06-Jan-2017 |
Etienne Carriere <etienne.carriere@linaro.org> |
core: fix AArch64 __cpu_spin_trylock() return value
Before this change __cpu_spin_trylock() return value was always the lock address, not the trylock status.
Signed-off-by: Jens Wiklander <jens.wik
core: fix AArch64 __cpu_spin_trylock() return value
Before this change __cpu_spin_trylock() return value was always the lock address, not the trylock status.
Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org> Reviewed-by: Jerome Forissier <jerome.forissier@linaro.org> Reviewed-by: Etienne Carriere <etienne.carriere@linaro.org> [Rebase on top of master] Signed-off-by: Jerome Forissier <jerome.forissier@linaro.org>
show more ...
|
| ed758d67 | 28-Dec-2016 |
Peng Fan <peng.fan@nxp.com> |
core: imx: imx6ulevk: handle gic and csu
we use uboot to initialize gic and csu before. Now switch to let OP-TEE handle them.
Signed-off-by: Peng Fan <peng.fan@nxp.com> Reviewed-by: Igor Opaniuk <i
core: imx: imx6ulevk: handle gic and csu
we use uboot to initialize gic and csu before. Now switch to let OP-TEE handle them.
Signed-off-by: Peng Fan <peng.fan@nxp.com> Reviewed-by: Igor Opaniuk <igor.opaniuk@linaro.org> Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org> [Rebase on top of master] Signed-off-by: Jerome Forissier <jerome.forissier@linaro.org>
show more ...
|
| 00d3223d | 04-Jan-2017 |
Peng Fan <peng.fan@nxp.com> |
core: arm: imx: Drop CONSOLE_UART_PA_BASE
Drop CONSOLE_UART_PA_BASE
Signed-off-by: Peng Fan <peng.fan@nxp.com> Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org> [Rebase on top of master] Sign
core: arm: imx: Drop CONSOLE_UART_PA_BASE
Drop CONSOLE_UART_PA_BASE
Signed-off-by: Peng Fan <peng.fan@nxp.com> Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org> [Rebase on top of master] Signed-off-by: Jerome Forissier <jerome.forissier@linaro.org>
show more ...
|
| 5d962b9a | 28-Dec-2016 |
Peng Fan <peng.fan@nxp.com> |
core: imx: mx6ulevk: fix CONSOLE_UART_BASE
Fix CONSOLE_UART_BASE, otherwise we will met panic.
Signed-off-by: Peng Fan <peng.fan@nxp.com> Reviewed-by: Igor Opaniuk <igor.opaniuk@linaro.org> Reviewe
core: imx: mx6ulevk: fix CONSOLE_UART_BASE
Fix CONSOLE_UART_BASE, otherwise we will met panic.
Signed-off-by: Peng Fan <peng.fan@nxp.com> Reviewed-by: Igor Opaniuk <igor.opaniuk@linaro.org> Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org> [Rebase on top of master] Signed-off-by: Jerome Forissier <jerome.forissier@linaro.org>
show more ...
|
| c7743970 | 28-Dec-2016 |
Jens Wiklander <jens.wiklander@linaro.org> |
core: lpae: deal with unaligned regions
Fixes problem in defined memory regions where physical address isn't pgdir aligned.
Reviewed-by: Igor Opaniuk <igor.opaniuk@linaro.org> Fixes: 0f8333b888f1 (
core: lpae: deal with unaligned regions
Fixes problem in defined memory regions where physical address isn't pgdir aligned.
Reviewed-by: Igor Opaniuk <igor.opaniuk@linaro.org> Fixes: 0f8333b888f1 ("plat-vexpress/qemu: correct DRAM layout") Tested-by: Jens Wiklander <jens.wiklander@linaro.org> (QEMU, FVP) Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| ae3ca140 | 06-Dec-2016 |
Volodymyr Babchuk <vlad.babchuk@gmail.com> |
core_mmu: add core_mmu_divide_block() function
This function divides L1/L2 translation table entry to L2/L3 entries. It can be used when we need finer mapping than currently possible.
Signed-off-by
core_mmu: add core_mmu_divide_block() function
This function divides L1/L2 translation table entry to L2/L3 entries. It can be used when we need finer mapping than currently possible.
Signed-off-by: Volodymyr Babchuk <vlad.babchuk@gmail.com> Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| 299de6b6 | 14-Dec-2016 |
Volodymyr Babchuk <vlad.babchuk@gmail.com> |
core_mmu_v7: slight refactoring to look like core_mmu_lpae
This patch makes core_mmu_v7.c to look simmilar to core_mmu_lpae.c - ARMv7-specific definitions was moved from core_mmu_defs.h to .c file
core_mmu_v7: slight refactoring to look like core_mmu_lpae
This patch makes core_mmu_v7.c to look simmilar to core_mmu_lpae.c - ARMv7-specific definitions was moved from core_mmu_defs.h to .c file - core_mmu_defs.h was removed, because it stored definitions only for v7 - core_mmu_alloc_l2() now really allocates l2 pages
Signed-off-by: Volodymyr Babchuk <vlad.babchuk@gmail.com> Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| 748b6415 | 06-Dec-2016 |
Volodymyr Babchuk <vlad.babchuk@gmail.com> |
core_mmu: make type_to_attr() function available globally
This function will be used by shared memory subsystem.
Signed-off-by: Volodymyr Babchuk <vlad.babchuk@gmail.com> Reviewed-by: Jens Wiklande
core_mmu: make type_to_attr() function available globally
This function will be used by shared memory subsystem.
Signed-off-by: Volodymyr Babchuk <vlad.babchuk@gmail.com> Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| 24b59bad | 06-Dec-2016 |
Volodymyr Babchuk <vlad.babchuk@gmail.com> |
core_mmu.c: introduce add_va_space function
There can be more that one VA space. But old approach does not support this because there can't be two VA spaces that begin at PA 0x0.
Signed-off-by: Vol
core_mmu.c: introduce add_va_space function
There can be more that one VA space. But old approach does not support this because there can't be two VA spaces that begin at PA 0x0.
Signed-off-by: Volodymyr Babchuk <vlad.babchuk@gmail.com> Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| 0f8333b8 | 06-Dec-2016 |
Volodymyr Babchuk <vlad.babchuk@gmail.com> |
plat-vexpress/qemu: correct DRAM layout.
There are really more memory in qemu config, than configured in platform_config.h Invalid DRAM layout causes core_pbuf_is(CORE_MEM_EXTRAM) to fail when it sh
plat-vexpress/qemu: correct DRAM layout.
There are really more memory in qemu config, than configured in platform_config.h Invalid DRAM layout causes core_pbuf_is(CORE_MEM_EXTRAM) to fail when it should not.
Signed-off-by: Volodymyr Babchuk <vlad.babchuk@gmail.com> Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| 5744ef7a | 09-Sep-2016 |
Andrew F. Davis <afd@ti.com> |
plat-ti: Move load address and increase SHMEM
Move and expand the shared memory allocation as suggested by the comment above the definition. This should be a safe place and size for all DRA7 based p
plat-ti: Move load address and increase SHMEM
Move and expand the shared memory allocation as suggested by the comment above the definition. This should be a safe place and size for all DRA7 based platforms.
Signed-off-by: Andrew F. Davis <afd@ti.com> Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org> Reviewed-by: Igor Opaniuk <igor.opaniuk@linaro.org> [Rebase on top of master] Signed-off-by: Jerome Forissier <jerome.forissier@linaro.org>
show more ...
|
| 993a1d54 | 14-Nov-2016 |
Andrew F. Davis <afd@ti.com> |
plat-ti: Move console related functions to a separate file
Signed-off-by: Andrew F. Davis <afd@ti.com> Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org> Reviewed-by: Igor Opaniuk <igor.opaniuk
plat-ti: Move console related functions to a separate file
Signed-off-by: Andrew F. Davis <afd@ti.com> Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org> Reviewed-by: Igor Opaniuk <igor.opaniuk@linaro.org> [Rebase on top of master] Signed-off-by: Jerome Forissier <jerome.forissier@linaro.org>
show more ...
|
| c8d1d420 | 10-Aug-2016 |
Harinarayan Bhatta <harinarayan@ti.com> |
plat-ti: Fixed issues with MMU mapping
The UART is in non-secure IO mem, mark it as such. Also map the non-secure context in-case we are started with the MMU enabled.
Signed-off-by: Harinarayan Bha
plat-ti: Fixed issues with MMU mapping
The UART is in non-secure IO mem, mark it as such. Also map the non-secure context in-case we are started with the MMU enabled.
Signed-off-by: Harinarayan Bhatta <harinarayan@ti.com> Signed-off-by: Andrew F. Davis <afd@ti.com> Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org> Reviewed-by: Igor Opaniuk <igor.opaniuk@linaro.org>
show more ...
|
| 57f3d625 | 09-Nov-2016 |
yanyan-wrs <yan.yan@windriver.com> |
core: arm: support Xilinx ZYNQ7000 ZC702 (plat-zynq7k)
Signed-off-by: Yan Yan <yan.yan@windriver.com> Reviewed-by: Etienne Carriere <etienne.carriere@linaro.org> Reviewed-by: Jens Wiklander <jens.wi
core: arm: support Xilinx ZYNQ7000 ZC702 (plat-zynq7k)
Signed-off-by: Yan Yan <yan.yan@windriver.com> Reviewed-by: Etienne Carriere <etienne.carriere@linaro.org> Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org> Reviewed-by: Jerome Forissier <jerome.forissier@linaro.org>
show more ...
|
| cd629100 | 09-Nov-2016 |
yanyan-wrs <yan.yan@windriver.com> |
core: arm: update plat-ls to support secondary core boot
Signed-off-by: Yan Yan <yan.yan@windriver.com> Reviewed-by: Etienne Carriere <etienne.carriere@linaro.org> Reviewed-by: Jens Wiklander <jens.
core: arm: update plat-ls to support secondary core boot
Signed-off-by: Yan Yan <yan.yan@windriver.com> Reviewed-by: Etienne Carriere <etienne.carriere@linaro.org> Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| 240e7809 | 09-Nov-2016 |
yanyan-wrs <yan.yan@windriver.com> |
core: arm: re-factor plat-imx6
Signed-off-by: Yan Yan <yan.yan@windriver.com> Reviewed-by: Etienne Carriere <etienne.carriere@linaro.org> Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org> |
| cee96842 | 09-Nov-2016 |
yanyan-wrs <yan.yan@windriver.com> |
core: arm: add generic secondary core boot function
Signed-off-by: Yan Yan <yan.yan@windriver.com> Reviewed-by: Etienne Carriere <etienne.carriere@linaro.org> Reviewed-by: Jens Wiklander <jens.wikla
core: arm: add generic secondary core boot function
Signed-off-by: Yan Yan <yan.yan@windriver.com> Reviewed-by: Etienne Carriere <etienne.carriere@linaro.org> Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| 9a8a19cd | 08-Dec-2016 |
Jens Wiklander <jens.wiklander@linaro.org> |
core: encode UUID big endian
When encoding a UUID as a sequence of bytes, the spec (https://www.ietf.org/rfc/rfc4122.txt) says that the u32, and two u16s should be represented big endian.
Before th
core: encode UUID big endian
When encoding a UUID as a sequence of bytes, the spec (https://www.ietf.org/rfc/rfc4122.txt) says that the u32, and two u16s should be represented big endian.
Before this patch OPTEE always treated them natively. With this patch UUIDs are always converted to/from big endian when communicating with normal world.
Reviewed-by: Jerome Forissier <jerome.forissier@linaro.org> Fixes: https://github.com/OP-TEE/optee_os/issues/858 Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|