History log of /optee_os/core/ (Results 5476 – 5500 of 6456)
Revision Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
3d03970703-Apr-2017 Etienne Carriere <etienne.carriere@linaro.org>

core: fix typo in pager mapping setup

This change fixes a typo in the core mapping setup when pager is enabled.
Looking back in OP-TEE history shows this typo has been there since quite
a while howe

core: fix typo in pager mapping setup

This change fixes a typo in the core mapping setup when pager is enabled.
Looking back in OP-TEE history shows this typo has been there since quite
a while however various build tests based on old code showed the previous
buggy implementation luckily gave valid settings. Yet, it looks far
better once fixed.

Signed-off-by: Etienne Carriere <etienne.carriere@linaro.org>
Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org>

show more ...

0cb71d1503-Apr-2017 Etienne Carriere <etienne.carriere@st.com>

core: move plat-stm consoles to generic console framework

Signed-off-by: Etienne Carriere <etienne.carriere@st.com>
Reviewed-by: Jerome Forissier <jerome.forissier@linaro.org>

39e661bc03-Apr-2017 Etienne Carriere <etienne.carriere@st.com>

core: move stih UART driver to the drivers/ directory

Signed-off-by: Etienne Carriere <etienne.carriere@st.com>
Reviewed-by: Jerome Forissier <jerome.forissier@linaro.org>

5bf73be331-Mar-2017 Peng Fan <peng.fan@nxp.com>

core: arm: imx use early bss attribute for static variable

Use __early_bss attribute for the static variable.

Signed-off-by: Peng Fan <peng.fan@nxp.com>
Reviewed-by: Jerome Forissier <jerome.foriss

core: arm: imx use early bss attribute for static variable

Use __early_bss attribute for the static variable.

Signed-off-by: Peng Fan <peng.fan@nxp.com>
Reviewed-by: Jerome Forissier <jerome.forissier@linaro.org>
Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org>
Signed-off-by: Jerome Forissier <jerome.forissier@linaro.org>

show more ...

8d94060a31-Mar-2017 Etienne Carriere <etienne.carriere@linaro.org>

core: fix console drivers against pager

Console operations structures must be kept in the unpaged sections
when pager is enable.

Signed-off-by: Etienne Carriere <etienne.carriere@linaro.org>
Review

core: fix console drivers against pager

Console operations structures must be kept in the unpaged sections
when pager is enable.

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>
Tested-by: Etienne Carriere <etienne.carriere@linaro.org> (qemu_virt)

show more ...

68f38a1e30-Mar-2017 Etienne Carriere <etienne.carriere@st.com>

plat-vexpress: move QEMU SDP test memory to end of the secure RAM

This change restores qemu_armv8 OP-TEE base address to 1Mbyte after
secure RAM base address and moves the qemu_virt and qemu_armv8 S

plat-vexpress: move QEMU SDP test memory to end of the secure RAM

This change restores qemu_armv8 OP-TEE base address to 1Mbyte after
secure RAM base address and moves the qemu_virt and qemu_armv8 SDP
test memory pool to the end of the secure RAM. SDP memory pool
size is increased to 4MByte. TA RAM size is decreased according
to these changes.

Qemu_armv8 reserves the first 1Mbyte of secure RAM to the ARM-TF.
This change fixes the regression introduced by commit df05d4ea7d58
("plat-vexpress: define SDP memory") that assigned back this 1Mbyte
to OP-TEE or SDP memory.

Fixes: df05d4ea7d58 ("plat-vexpress: define SDP memory")
Reported-by: Jens Wiklander <jens.wiklander@linaro.org>
Signed-off-by: Etienne Carriere <etienne.carriere@linaro.org>
Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org>
Tested-by: Etienne Carriere <etienne.carriere@linaro.org> (qemu_virt/_armv8)

show more ...

4cd864c027-Mar-2017 Peng Fan <peng.fan@nxp.com>

core: arm: imx: correct PCR settings

According to Cortex A9 TRM, bit[10:8] of PCR is max_clk_latency:
Samples the value present on the MAXCLKLATENCY pins on exit from reset.
This value reflects an i

core: arm: imx: correct PCR settings

According to Cortex A9 TRM, bit[10:8] of PCR is max_clk_latency:
Samples the value present on the MAXCLKLATENCY pins on exit from reset.
This value reflects an implementation-specific parameter.
ARM strongly recommends that the software does not modify it.

So change the value to 0 is not wise, correct it.

Signed-off-by: Peng Fan <peng.fan@nxp.com>
Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org>

show more ...

e888973b16-Feb-2017 Mathieu Briand <mbriand@witekio.com>

core: arm: add support for i.MX6 Dual Lite SabreSD

Signed-off-by: Mathieu Briand <mbriand@witekio.com>
Acked-by: Jens Wiklander <jens.wiklander@linaro.org>
Reviewed-by: Etienne Carriere <etienne.car

core: arm: add support for i.MX6 Dual Lite SabreSD

Signed-off-by: Mathieu Briand <mbriand@witekio.com>
Acked-by: Jens Wiklander <jens.wiklander@linaro.org>
Reviewed-by: Etienne Carriere <etienne.carriere@linaro.org>
Reviewed-by: Peng Fan <peng.fan@nxp.com>

show more ...

1d8a391c23-Mar-2017 Peng Fan <peng.fan@nxp.com>

core: arm: trace: make the trace output atomic

Use spinlock to make the trace output atomic.
On SMP cores, different cores may puts out log
to uart. If there is no lock, the log will be a mess.

Whe

core: arm: trace: make the trace output atomic

Use spinlock to make the trace output atomic.
On SMP cores, different cores may puts out log
to uart. If there is no lock, the log will be a mess.

When there is a contention, print out a '*'.

Need to disable interrupt, because cpu_spin_lock/unlock/trylock
will invoke assert with CFG_TEE_CORE_DEBUG=y. So
mask interrupt before lock, then un-mask interrupt after unlock.

Signed-off-by: Peng Fan <peng.fan@nxp.com>
Tested-by: Jens Wiklander <jens.wiklander@linaro.org> (HiKey)
Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org>
Reviewed-by: Etienne Carriere <etienne.carriere@linaro.org>

show more ...

ef53fb0614-Mar-2017 Jerome Forissier <jerome.forissier@linaro.org>

core: arm64: support relocation type R_AARCH64_ABS64 (257)

If a 64-bit TA contains relocations of type R_AARCH64_ABS64, OP-TEE
refuses to load it and logs the following error:

ERROR: TEE-CORE:

core: arm64: support relocation type R_AARCH64_ABS64 (257)

If a 64-bit TA contains relocations of type R_AARCH64_ABS64, OP-TEE
refuses to load it and logs the following error:

ERROR: TEE-CORE: Unknown relocation type 257

This relocation type does not seem to happen in our test applications,
but someone has experienced the issue after linking a TA against a
third-party static library [1]. I could reproduce the issue by
compiling the hello_world TA with -fPIC instead of -fpie. This simple
change generates *one* R_AARCH64_ABS64 in the TA ELF file.

This commit adds the necessary code to support R_AARCH64_ABS64.

[1] https://github.com/OP-TEE/optee_os/issues/1399

Signed-off-by: Jerome Forissier <jerome.forissier@linaro.org>
Tested-by: Jerome Forissier <jerome.forissier@linaro.org> (qemu_v8)
Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org>

show more ...

620e4edf21-Mar-2017 Etienne Carriere <etienne.carriere@linaro.org>

core: export pTA invoke_tests API to ease tests integration

Suggested-by: Jens Wiklander <jens.wiklander@linaro.org>
Signed-off-by: Etienne Carriere <etienne.carriere@linaro.org>
Reviewed-by: Jerome

core: export pTA invoke_tests API to ease tests integration

Suggested-by: Jens Wiklander <jens.wiklander@linaro.org>
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 ...

e17a063021-Mar-2017 Etienne Carriere <etienne.carriere@linaro.org>

core: pTA SDP memref parameters are reserved to secure clients

Accessing SDP memory from a pseudo TA is a secure service reserved
to the secure clients. pseudo TAs involved in Secure Data Path setup

core: pTA SDP memref parameters are reserved to secure clients

Accessing SDP memory from a pseudo TA is a secure service reserved
to the secure clients. pseudo TAs involved in Secure Data Path setups
are expected to provide services for secure clients only: SDP TAs.

SDP memory are default not mapped in the core virtual mapping. When
a pTA is invoked from a TA, the pTA uses the TA virtual mapping to
access memref parameter buffers. When a pTA is invoked from the non
secure world, the sequence relies on core virtual mapping. such SDP
references would needed to be mapped. This is NOT supported in
current implementation. Mapping SDP memref in the core will be
implemented only once contributors really claim for such a support.

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 ...

42a1b20121-Mar-2017 Etienne Carriere <etienne.carriere@linaro.org>

core: add cache maintenance to invocation test pseudo TA

Invocation test pseudo TA can be used to test SDP memory accesses
from pseudo TAs. As SDP memory access may need cache maintenance,
such main

core: add cache maintenance to invocation test pseudo TA

Invocation test pseudo TA can be used to test SDP memory accesses
from pseudo TAs. As SDP memory access may need cache maintenance,
such maintenance support is added to this test pseudo TA.

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 ...

f281425c21-Mar-2017 Etienne Carriere <etienne.carriere@linaro.org>

core: rename pseudo TA used for invocation tests

Pseudo TA "selftest" is mainly used to test invocation of pseudo
TAs. Hence rename it 'invocation tests' pseudo TA.

Signed-off-by: Etienne Carriere

core: rename pseudo TA used for invocation tests

Pseudo TA "selftest" is mainly used to test invocation of pseudo
TAs. Hence rename it 'invocation tests' pseudo TA.

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 ...

5d01ee0c21-Mar-2017 Etienne Carriere <etienne.carriere@linaro.org>

core: invocation test pseudo TA participates in SDP tests

Add inject/transform/dump commands support to the invocation test
pseudo TA based on the "SDP basic test" setup from xtest. This change
allo

core: invocation test pseudo TA participates in SDP tests

Add inject/transform/dump commands support to the invocation test
pseudo TA based on the "SDP basic test" setup from xtest. This change
allows to test invocation of a pseudo TA with SDP memory references
from a user TA.

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 ...

5cf45d4421-Mar-2017 Etienne Carriere <etienne.carriere@linaro.org>

core: allow pseudo TA to access SDP memory references

This change also enables the SDP property for the pseudo TA used
to test invocation of pseudo TAs in non-regression tests infrastructure.

Signe

core: allow pseudo TA to access SDP memory references

This change also enables the SDP property for the pseudo TA used
to test invocation of pseudo TAs in non-regression tests infrastructure.

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 ...

28ad73f921-Mar-2017 Jerome Forissier <jerome.forissier@linaro.org>

core: syscall_storage_reset_enum() must check e->fops before using it

An object enumerator that has just been allocated or reset has its fops
field set to NULL. So, syscall_storage_reset_enum() must

core: syscall_storage_reset_enum() must check e->fops before using it

An object enumerator that has just been allocated or reset has its fops
field set to NULL. So, syscall_storage_reset_enum() must take care of
this.

Fixes: https://github.com/OP-TEE/optee_os/issues/1417
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 ...

b5acd53220-Mar-2017 Etienne Carriere <etienne.carriere@linaro.org>

core: rename mem_param into param_mem for consistency

Reported-by: Jerome Forissier <jerome.forissier@linaro.org>
Signed-off-by: Etienne Carriere <etienne.carriere@linaro.org>
Reviewed-by: Jerome Fo

core: rename mem_param into param_mem for consistency

Reported-by: Jerome Forissier <jerome.forissier@linaro.org>
Signed-off-by: Etienne Carriere <etienne.carriere@linaro.org>
Reviewed-by: Jerome Forissier <jerome.forissier@linaro.org>

show more ...

0e247a3f20-Mar-2017 Etienne Carriere <etienne.carriere@linaro.org>

plat-stm: add a default test support for SDP

If SDP is enabled and no SDP memory is defined, a default SDP memory
area of 3Mbyte is defined between the TA_RAM and the NS_SHM. This
change allows to e

plat-stm: add a default test support for SDP

If SDP is enabled and no SDP memory is defined, a default SDP memory
area of 3Mbyte is defined between the TA_RAM and the NS_SHM. This
change allows to ease test of the SDP feature on the ST platforms.

Signed-off-by: Etienne Carriere <etienne.carriere@st.com>
Reviewed-by: Jerome Forissier <jerome.forissier@linaro.org>

show more ...

f1fba2e410-Mar-2017 Zhizhou Zhang <zhizhouzhang@asrmicro.com>

core: fix core_mmu_find_table() failure

If va is larger than 0xffffffff, a unsigned n left shift by
level_size_shift results undefined behavior. Lead
core_mmu_find_table() return false mistakenly.

core: fix core_mmu_find_table() failure

If va is larger than 0xffffffff, a unsigned n left shift by
level_size_shift results undefined behavior. Lead
core_mmu_find_table() return false mistakenly.

Signed-off-by: Zhizhou Zhang <zhizhouzhang@asrmicro.com>
Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org>
[jf: rebase]
Signed-off-by: Jerome Forissier <jerome.forissier@linaro.org>

show more ...

0ea8146317-Mar-2017 Jerome Forissier <jerome.forissier@linaro.org>

plat-sunxi: remove console.c

With the simplification of the console/UART code, we're left with only
one function in console.c. Move it to main.c.

Signed-off-by: Jerome Forissier <jerome.forissier@l

plat-sunxi: remove console.c

With the simplification of the console/UART code, we're left with only
one function in console.c. Move it to main.c.

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 ...

62c0a2c316-Mar-2017 Jerome Forissier <jerome.forissier@linaro.org>

plat-ti: remove console.c

With the simplification of the console/UART code, we're left with only
one function in console.c. Move it to main.c.

Signed-off-by: Jerome Forissier <jerome.forissier@lina

plat-ti: remove console.c

With the simplification of the console/UART code, we're left with only
one function in console.c. Move it to main.c.

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 ...

756aea5917-Feb-2017 Jerome Forissier <jerome.forissier@linaro.org>

core: add common implementation for console_putc() and console_flush()

Since most platforms now use the same console_putc() and
console_flush(), move them to core/kernel/console.c. Make them __weak

core: add common implementation for console_putc() and console_flush()

Since most platforms now use the same console_putc() and
console_flush(), move them to core/kernel/console.c. Make them __weak
so that platforms may still provide their own.
The common code expects the platforms to initialize whatever serial
device from console_init() and call register_console().

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 ...

0abbda6e17-Feb-2017 Jerome Forissier <jerome.forissier@linaro.org>

drivers: convert scif_uart driver to use struct serial_chip

Signed-off-by: Jerome Forissier <jerome.forissier@linaro.org>
Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org>
Reviewed-by: Etienne

drivers: convert scif_uart driver to use struct serial_chip

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 ...

2e5aa31b17-Feb-2017 Jerome Forissier <jerome.forissier@linaro.org>

drivers: convert ns16550 driver to use struct serial_chip

Signed-off-by: Jerome Forissier <jerome.forissier@linaro.org>
Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org>
Reviewed-by: Etienne C

drivers: convert ns16550 driver to use struct serial_chip

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 ...

1...<<211212213214215216217218219220>>...259