History log of /optee_os/core/ (Results 1901 – 1925 of 6495)
Revision Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
b6bdf69413-Apr-2023 Clement Faure <clement.faure@nxp.com>

drivers: caam: remove CFG_NXP_CAAM_ACIPHER compilation flag

Remove useless CFG_NXP_CAAM_ACIPHER compilation flag. This flag acts as
a duplicate of CFG_CRYPTO_DRV_ACIPHER compilation flag.

Signed-of

drivers: caam: remove CFG_NXP_CAAM_ACIPHER compilation flag

Remove useless CFG_NXP_CAAM_ACIPHER compilation flag. This flag acts as
a duplicate of CFG_CRYPTO_DRV_ACIPHER compilation flag.

Signed-off-by: Clement Faure <clement.faure@nxp.com>
Acked-by: Jens Wiklander <jens.wiklander@linaro.org>

show more ...

c11218eb28-Apr-2023 Clement Faure <clement.faure@nxp.com>

pta: stats: fix compilation incompatible pointer warning

To reproduce the issue:
$ make PLATFORM=imx-mx8mmevk CFG_WITH_STATS=y CFG_TA_STATS=y

core/pta/stats.c: In function ‘get_user_ta_stats’:
core

pta: stats: fix compilation incompatible pointer warning

To reproduce the issue:
$ make PLATFORM=imx-mx8mmevk CFG_WITH_STATS=y CFG_TA_STATS=y

core/pta/stats.c: In function ‘get_user_ta_stats’:
core/pta/stats.c:169:37: warning: passing argument 2 of ‘tee_ta_instance_stats’ from incompatible pointer type [-Wincompatible-pointer-types]
169 | &p[0].memref.size);
| ^~~~~~~~~~~~~~~~~
| |
| size_t * {aka long unsigned int *}
In file included from core/include/kernel/pseudo_ta.h:10,
from core/pta/stats.c:8:
core/include/kernel/tee_ta_manager.h:171:56: note: expected ‘uint32_t *’ {aka ‘unsigned int *’} but argument is of type ‘size_t *’ {aka ‘long unsigned int *’}
171 | TEE_Result tee_ta_instance_stats(void *buff, uint32_t *buff_size);
| ~~~~~~~~~~^~~~~~~~~
core/pta/stats.c: At top level:
cc1: note: unrecognized command-line option ‘-Wno-c2x-extensions’ may have been intended to silence earlier diagnostics

Fixes: 7509620b8b95 ("GP131: Update TEE_Param")
Signed-off-by: Clement Faure <clement.faure@nxp.com>
Reviewed-by: Etienne Carriere <etienne.carriere@linaro.org>
Acked-by: Jerome Forissier <jerome.forissier@linaro.org>

show more ...

83ee3b4d28-Apr-2023 Clement Faure <clement.faure@nxp.com>

core: imx: remove drivers directory

Remove drivers directory from plat-imx/ since all drivers should go to
core/drivers/.
Move tzc380.c to plat-imx/

Signed-off-by: Clement Faure <clement.faure@nxp.

core: imx: remove drivers directory

Remove drivers directory from plat-imx/ since all drivers should go to
core/drivers/.
Move tzc380.c to plat-imx/

Signed-off-by: Clement Faure <clement.faure@nxp.com>
Reviewed-by: Jerome Forissier <jerome.forissier@linaro.org>

show more ...

92b64e4f28-Apr-2023 Clement Faure <clement.faure@nxp.com>

drivers: imx_csu: move imx_csu driver source file

Move imx_csu driver from plat-imx/ to core/drivers/
Rename CFG_CSU to CFG_IMX_CSU compilation flag.

Signed-off-by: Clement Faure <clement.faure@nxp

drivers: imx_csu: move imx_csu driver source file

Move imx_csu driver from plat-imx/ to core/drivers/
Rename CFG_CSU to CFG_IMX_CSU compilation flag.

Signed-off-by: Clement Faure <clement.faure@nxp.com>
Reviewed-by: Jerome Forissier <jerome.forissier@linaro.org>

show more ...

40c3f16e28-Apr-2023 Clement Faure <clement.faure@nxp.com>

drivers: imx_scu: move imx_scu driver source file

Move imx_scu driver from plat-imx/ to core/drivers/
Rename CFG_SCU to CFG_IMX_SCU compilation flag.

Signed-off-by: Clement Faure <clement.faure@nxp

drivers: imx_scu: move imx_scu driver source file

Move imx_scu driver from plat-imx/ to core/drivers/
Rename CFG_SCU to CFG_IMX_SCU compilation flag.

Signed-off-by: Clement Faure <clement.faure@nxp.com>
Reviewed-by: Jerome Forissier <jerome.forissier@linaro.org>

show more ...

fab76a6728-Apr-2023 Clement Faure <clement.faure@nxp.com>

driver: imx_caam: move imx_caam driver source file

Move imx_caam driver from plat-imx/ to core/drivers/

Signed-off-by: Clement Faure <clement.faure@nxp.com>
Reviewed-by: Jerome Forissier <jerome.fo

driver: imx_caam: move imx_caam driver source file

Move imx_caam driver from plat-imx/ to core/drivers/

Signed-off-by: Clement Faure <clement.faure@nxp.com>
Reviewed-by: Jerome Forissier <jerome.forissier@linaro.org>

show more ...

f727e83828-Apr-2023 Clement Faure <clement.faure@nxp.com>

core: imx: caam: remove imx_caam.h header file

Remove imx_caam header file and move its content to source file.

Signed-off-by: Clement Faure <clement.faure@nxp.com>
Acked-by: Jerome Forissier <jero

core: imx: caam: remove imx_caam.h header file

Remove imx_caam header file and move its content to source file.

Signed-off-by: Clement Faure <clement.faure@nxp.com>
Acked-by: Jerome Forissier <jerome.forissier@linaro.org>

show more ...

c7f21af428-Apr-2023 Clement Faure <clement.faure@nxp.com>

core: imx: remove unnecessary preprocessor directive

Remove error regarding CFG_WITH_PAGER and CFG_WITH_LPAE on imx6ul/ull.

Signed-off-by: Clement Faure <clement.faure@nxp.com>
Acked-by: Jerome For

core: imx: remove unnecessary preprocessor directive

Remove error regarding CFG_WITH_PAGER and CFG_WITH_LPAE on imx6ul/ull.

Signed-off-by: Clement Faure <clement.faure@nxp.com>
Acked-by: Jerome Forissier <jerome.forissier@linaro.org>

show more ...

2863802328-Apr-2023 Clement Faure <clement.faure@nxp.com>

core: imx: scu: move SCU configuration values to source file

Move SCU configuration values from header file to the SCU source file.

Signed-off-by: Clement Faure <clement.faure@nxp.com>
Acked-by: Je

core: imx: scu: move SCU configuration values to source file

Move SCU configuration values from header file to the SCU source file.

Signed-off-by: Clement Faure <clement.faure@nxp.com>
Acked-by: Jerome Forissier <jerome.forissier@linaro.org>

show more ...

249c978017-Apr-2023 Clement Faure <clement.faure@nxp.com>

core: imx: remove imx_sip.h

Remove imx_sip.h header file.
Move definitions to the source file.

Signed-off-by: Clement Faure <clement.faure@nxp.com>
Reviewed-by: Jerome Forissier <jerome.forissier@l

core: imx: remove imx_sip.h

Remove imx_sip.h header file.
Move definitions to the source file.

Signed-off-by: Clement Faure <clement.faure@nxp.com>
Reviewed-by: Jerome Forissier <jerome.forissier@linaro.org>

show more ...

426790bd13-Feb-2023 Jeffrey Kardatzke <jkardatzke@google.com>

drivers: add cbmem console driver

This adds a CBMEM console driver which gets the cbmem address from a
device tree with the coreboot table information.

Signed-off-by: Jeffrey Kardatzke <jkardatzke@

drivers: add cbmem console driver

This adds a CBMEM console driver which gets the cbmem address from a
device tree with the coreboot table information.

Signed-off-by: Jeffrey Kardatzke <jkardatzke@google.com>
Acked-by: Etienne Carriere <etienne.carriere@linaro.org>
Acked-by: Jerome Forissier <jerome.forissier@linaro.org>
Acked-by: Jens Wiklander <jens.wiklander@linaro.org>

show more ...

1f8363e605-May-2023 Alvin Chang <alvinga@andestech.com>

core: riscv: kernel: Fix compilation error with missing parameter

This patch adds "unsigned long tos_fw_config" as second parameter for
RISC-V's boot_init_primary_late() to solve compilation error.

core: riscv: kernel: Fix compilation error with missing parameter

This patch adds "unsigned long tos_fw_config" as second parameter for
RISC-V's boot_init_primary_late() to solve compilation error.

Fixes: 809fa817ae63 ("core: ffa: add TOS_FW_CONFIG handling")
Signed-off-by: Alvin Chang <alvinga@andestech.com>
Reviewed-by: Jerome Forissier <jerome.forissier@linaro.org>

show more ...

acaba7aa19-Apr-2023 Balint Dobszay <balint.dobszay@arm.com>

core: spmc: handle HW feature info in SP manifest

Provide information to the SP about available HW features by updating
the relevant DT node in the SP manifest. Currently only the CRC32
feature is s

core: spmc: handle HW feature info in SP manifest

Provide information to the SP about available HW features by updating
the relevant DT node in the SP manifest. Currently only the CRC32
feature is supported.

Acked-by: Jerome Forissier <jerome.forissier@linaro.org>
Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org>
Signed-off-by: Balint Dobszay <balint.dobszay@arm.com>

show more ...

d4351c1e17-Apr-2023 Balint Dobszay <balint.dobszay@arm.com>

core: arm64: add CRC32 HW support discovery

Add helper function to check if the CRC32 instructions are implemented
by the PE.

Acked-by: Jerome Forissier <jerome.forissier@linaro.org>
Reviewed-by: J

core: arm64: add CRC32 HW support discovery

Add helper function to check if the CRC32 instructions are implemented
by the PE.

Acked-by: Jerome Forissier <jerome.forissier@linaro.org>
Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org>
Signed-off-by: Balint Dobszay <balint.dobszay@arm.com>

show more ...

9e3c57c828-Feb-2023 Etienne Carriere <etienne.carriere@linaro.org>

core: dt_driver: move related content from dt.h to dt_driver.h

Moves so-called dt_driver related declarations and definitions from
dt.h to dt_drivers.h. Incidentally adds an inline description to
en

core: dt_driver: move related content from dt.h to dt_driver.h

Moves so-called dt_driver related declarations and definitions from
dt.h to dt_drivers.h. Incidentally adds an inline description to
enum dt_driver_type. This change clarifies when a source file shall
include dt.h and/or dt_driver.h.

This change updates driver source files to include none, one or both of
these header files where applicable.

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

show more ...

1220a68b24-Apr-2023 Jorge Ramirez-Ortiz <jorge@foundries.io>

crypto: versal: ecc: allow software fallback on key allocation

The driver only supports ECDH/ECDSA key types. Other key types shall be
entirely handled by a software implementation enabled at compil

crypto: versal: ecc: allow software fallback on key allocation

The driver only supports ECDH/ECDSA key types. Other key types shall be
entirely handled by a software implementation enabled at compile time.

Fixes xtest regression 4006:
regression_4006.43 Asym Crypto case 426 algo 0x80000046 line 373

Signed-off-by: Jorge Ramirez-Ortiz <jorge@foundries.io>
Acked-by: Etienne Carriere <etienne.carriere@linaro.org>

show more ...

8c57a17e24-Apr-2023 Jorge Ramirez-Ortiz <jorge@foundries.io>

crypto: se050: ecc: allow software fallback on key allocation requests

The driver only supports ECDH/ECDSA key types. Other key types shall be
entirely handled by a software implementation enabled a

crypto: se050: ecc: allow software fallback on key allocation requests

The driver only supports ECDH/ECDSA key types. Other key types shall be
entirely handled by a software implementation enabled at compile time.

Signed-off-by: Jorge Ramirez-Ortiz <jorge@foundries.io>
Acked-by: Etienne Carriere <etienne.carriere@linaro.org>

show more ...

92d75aef24-Apr-2023 Jorge Ramirez-Ortiz <jorge@foundries.io>

crypto_api: acipher: ecc key allocation API, pass the key type

For Elliptic Curve, the cryptographic API can fallback to its software
operation instead of failing due to the lack of hardware support

crypto_api: acipher: ecc key allocation API, pass the key type

For Elliptic Curve, the cryptographic API can fallback to its software
operation instead of failing due to the lack of hardware support.

The relevant code can be see seen in the function
crypto_acipher_alloc_ecc_keypair(..).

crypto_api/acipher/ecc.c however does not pass the key type to the
relevant driver and therefore the backend driver can not take the
correct action at allocation time.

This commit addresses that limitation.

Signed-off-by: Jorge Ramirez-Ortiz <jorge@foundries.io>
Reviewed-by: Etienne Carriere <etienne.carriere@linaro.org>
Acked-by: Clement Faure <clement.faure@nxp.com>

show more ...

11e4578903-May-2023 Etienne Carriere <etienne.carriere@linaro.org>

drivers: i2c: fix fdt_xxx() function label

Fixes I2C bus driver and atmel_i2c driver regarding function
fdt_reg_base_address() and fdt_get_status() labels change in commit [1].

Fixes: f354a5d8f98e

drivers: i2c: fix fdt_xxx() function label

Fixes I2C bus driver and atmel_i2c driver regarding function
fdt_reg_base_address() and fdt_get_status() labels change in commit [1].

Fixes: f354a5d8f98e ("core: replace _fdt_ prefix with fdt_ for device tree API")
Acked-by: Gatien Chevallier <gatien.chevallier@foss.st.com>
Acked-by: Jerome Forissier <jerome.forissier@linaro.org>
Signed-off-by: Etienne Carriere <etienne.carriere@linaro.org>

show more ...

d690c83811-Apr-2023 Jens Wiklander <jens.wiklander@linaro.org>

core: arm: kern.ld.S: assert load address page aligned

Simplify things and assert that the start of text or load address is
page aligned instead. This replaces the more relaxed check for 32-byte
or

core: arm: kern.ld.S: assert load address page aligned

Simplify things and assert that the start of text or load address is
page aligned instead. This replaces the more relaxed check for 32-byte
or 128-byte alignment depending on ARM32 or ARM64. This also helps later
when introducing physical relocation of the OP-TEE binary.

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

show more ...

b38ef9b111-Apr-2023 Jens Wiklander <jens.wiklander@linaro.org>

core: arm: boot_init_memtag(): use core_mmu_get_secure_memory()

Use core_mmu_get_secure_memory() to determine the range of memory to
pass to memtag_set_tags().

Signed-off-by: Jens Wiklander <jens.w

core: arm: boot_init_memtag(): use core_mmu_get_secure_memory()

Use core_mmu_get_secure_memory() to determine the range of memory to
pass to memtag_set_tags().

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

show more ...

86ce921f11-Apr-2023 Jens Wiklander <jens.wiklander@linaro.org>

core: add core_mmu_get_secure_memory()

Adds core_mmu_get_secure_memory() with the primary purpose of being used
to find out the memory range to pass to memtag_set_tags().

Signed-off-by: Jens Wiklan

core: add core_mmu_get_secure_memory()

Adds core_mmu_get_secure_memory() with the primary purpose of being used
to find out the memory range to pass to memtag_set_tags().

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

show more ...

439d2a8911-Apr-2023 Jens Wiklander <jens.wiklander@linaro.org>

core: pass secure memory parameter to virt_init_memory()

Pass the physical secure memory range as a parameter from secure_only[].
This avoids using hard coded defines in virt_init_memory().

CFG_NS_

core: pass secure memory parameter to virt_init_memory()

Pass the physical secure memory range as a parameter from secure_only[].
This avoids using hard coded defines in virt_init_memory().

CFG_NS_VIRTUALIZATION=y depends on secure_only[] to have all memory as
consecutive memory ranges, but that's unchanged behaviour from before
since it was expected that the entire range from TEE_RAM_START to
TA_RAM_START + TA_RAM_SIZE is usable memory.

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

show more ...

b1b8ad9d11-Apr-2023 Jens Wiklander <jens.wiklander@linaro.org>

core: core_mmu.c: use boot_mmu_config.map_offset

Use boot_mmu_config.map_offset instead of computing it with
VCORE_START_VA and TEE_LOAD_ADDR.

Signed-off-by: Jens Wiklander <jens.wiklander@linaro.o

core: core_mmu.c: use boot_mmu_config.map_offset

Use boot_mmu_config.map_offset instead of computing it with
VCORE_START_VA and TEE_LOAD_ADDR.

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

show more ...

460c973511-Apr-2023 Jens Wiklander <jens.wiklander@linaro.org>

core: arm: boot: use correct base address for relocation

The start of the memory used by OP-TEE core is TEE_LOAD_ADDR. But
relocate() and undo_init_relocation() has until now used TEE_RAM_START
inst

core: arm: boot: use correct base address for relocation

The start of the memory used by OP-TEE core is TEE_LOAD_ADDR. But
relocate() and undo_init_relocation() has until now used TEE_RAM_START
instead which only work when it has the same value as TEE_LOAD_ADDR. So
fix this by using TEE_LOAD_ADDR instead

Fixes: 5966660c02b3 ("core: move relocation to embedded data region")
Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
Acked-by: Etienne Carriere <etienne.carriere@linaro.org>
Reviewed-by: Jerome Forissier <jerome.forissier@linaro.org>

show more ...

1...<<71727374757677787980>>...260