| 495c0cbd | 08-Jul-2022 |
Sahil Malhotra <sahil.malhotra@nxp.com> |
core: plat-ls: remove OP-TEE support for LS1012A-FRWY platform
LS1012A-FRWY does not support OP-TEE anymore, removing its support.
Signed-off-by: Sahil Malhotra <sahil.malhotra@nxp.com> Acked-by: J
core: plat-ls: remove OP-TEE support for LS1012A-FRWY platform
LS1012A-FRWY does not support OP-TEE anymore, removing its support.
Signed-off-by: Sahil Malhotra <sahil.malhotra@nxp.com> Acked-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| 69ecfb92 | 07-Jul-2022 |
Sahil Malhotra <sahil.malhotra@nxp.com> |
core: plat-ls: set CFG_NUM_THREADS ?= 2 for LS1012ARDB
xtest regression_1009.3 fails on LS1012ARDB because the test needs at least two threads but the default configuration for the platform enables
core: plat-ls: set CFG_NUM_THREADS ?= 2 for LS1012ARDB
xtest regression_1009.3 fails on LS1012ARDB because the test needs at least two threads but the default configuration for the platform enables only one. Set CFG_NUM_THREADS ?= 2 to fix the issue.
Signed-off-by: Sahil Malhotra <sahil.malhotra@nxp.com> Acked-by: Jerome Forissier <jerome.forissier@linaro.org> Acked-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| 837adc0a | 28-Jun-2022 |
Clement Faure <clement.faure@nxp.com> |
drivers: caam: increase the minimum entropy delay the imx6sx
The i.MX6SX requires to start the RNG instantiation at a higher entropy delay to provide a stable RNG generation and avoid RNG hardware e
drivers: caam: increase the minimum entropy delay the imx6sx
The i.MX6SX requires to start the RNG instantiation at a higher entropy delay to provide a stable RNG generation and avoid RNG hardware errors.
Signed-off-by: Clement Faure <clement.faure@nxp.com> Acked-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| b212ad1d | 30-Jun-2022 |
Jens Wiklander <jens.wiklander@linaro.org> |
core: pager: fix get_linear_map_end()
With paging enabled there is an unpaged portion of OP-TEE which ends at the address returned by get_linear_map_end(). Without ASLR enabled this is both a virtua
core: pager: fix get_linear_map_end()
With paging enabled there is an unpaged portion of OP-TEE which ends at the address returned by get_linear_map_end(). Without ASLR enabled this is both a virtual and physical address. However, with ASLR enabled it's important to keep these addresses apart so add get_linear_map_end_va() and get_linear_map_end_pa() and use the right function in phys_to_virt_tee_ram() and is_unpaged().
This fixes occasional errors like: E/TC:0 0 Panic 'can't find mmu tables' at core/arch/arm/mm/tee_pager.c:549 <tee_pager_early_init> E/TC:0 0 TEE load address @ 0x50b9000 E/TC:0 0 Call stack: E/TC:0 0 0x050bf144
with paging and ASLR enabled.
Acked-by: Etienne Carriere <etienne.carriere@linaro.org> Acked-by: Jerome Forissier <jerome.forissier@linaro.org> Tested-by: Jerome Forissier <jerome.forissier@linaro.org> (vexpress-qemu_armv8a) Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| 4dfc95b7 | 30-Jun-2022 |
Jens Wiklander <jens.wiklander@linaro.org> |
core: pager: fix tzsram_end in init_runtime()
With pager enabled tzsram_end in init_runtime() is supposed to be a virtual address. However TZSRAM_BASE is a physical address so this only works as lon
core: pager: fix tzsram_end in init_runtime()
With pager enabled tzsram_end in init_runtime() is supposed to be a virtual address. However TZSRAM_BASE is a physical address so this only works as long as virtual and physical addresses can be used interchangeably. With ASLR enabled this is not the case so fix this to compensate for the offset between physical and virtual addresses.
Acked-by: Etienne Carriere <etienne.carriere@linaro.org> Acked-by: Jerome Forissier <jerome.forissier@linaro.org> Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| 5c64ea9c | 11-Mar-2022 |
Clément Léger <clement.leger@bootlin.com> |
plat-sam: nsec-service: handle SMC to set USB suspend
Handle the SMC that allows Linux to set USB suspend mode using the SFR.
Acked-by: Jens Wiklander <jens.wiklander@linaro.org> Acked-by: Etienne
plat-sam: nsec-service: handle SMC to set USB suspend
Handle the SMC that allows Linux to set USB suspend mode using the SFR.
Acked-by: Jens Wiklander <jens.wiklander@linaro.org> Acked-by: Etienne Carriere <etienne.carriere@linaro.org> Signed-off-by: Clément Léger <clement.leger@bootlin.com>
show more ...
|
| 9ee67465 | 11-Mar-2022 |
Clément Léger <clement.leger@bootlin.com> |
plat-sam: sfr: add function to set usb suspend
This function allows to set the usb suspend mode using the SFR peripheral. This will be used to execute a SMC that is going to be issued by Linux sama5
plat-sam: sfr: add function to set usb suspend
This function allows to set the usb suspend mode using the SFR peripheral. This will be used to execute a SMC that is going to be issued by Linux sama5 USB driver.
Acked-by: Jens Wiklander <jens.wiklander@linaro.org> Acked-by: Etienne Carriere <etienne.carriere@linaro.org> Signed-off-by: Clément Léger <clement.leger@bootlin.com>
show more ...
|
| bbbbab0e | 06-Jun-2022 |
Clément Léger <clement.leger@bootlin.com> |
plat-sam: sfr: set as secure if specified by the device-tree
The SFR can be set as secure using the matrix peripheral. If set as secure-status = "okay" and status = "disabled" in the device-tree, th
plat-sam: sfr: set as secure if specified by the device-tree
The SFR can be set as secure using the matrix peripheral. If set as secure-status = "okay" and status = "disabled" in the device-tree, then configure the SFR as secure.
Acked-by: Jens Wiklander <jens.wiklander@linaro.org> Acked-by: Etienne Carriere <etienne.carriere@linaro.org> Signed-off-by: Clément Léger <clement.leger@bootlin.com>
show more ...
|
| 2ac05359 | 06-Jun-2022 |
Clément Léger <clement.leger@bootlin.com> |
plat-sam: sfr: simplify code for sam_sfr_base()
Simplify the code logic to have less imbricated if().
Acked-by: Jens Wiklander <jens.wiklander@linaro.org> Acked-by: Etienne Carriere <etienne.carrie
plat-sam: sfr: simplify code for sam_sfr_base()
Simplify the code logic to have less imbricated if().
Acked-by: Jens Wiklander <jens.wiklander@linaro.org> Acked-by: Etienne Carriere <etienne.carriere@linaro.org> Signed-off-by: Clément Léger <clement.leger@bootlin.com>
show more ...
|
| 0a03b33d | 28-Jun-2021 |
Clément Léger <clement.leger@bootlin.com> |
plat-sam: split SFR code out of main.c file
Move SFR specific code to sam_sfr.c file.
Acked-by: Jens Wiklander <jens.wiklander@linaro.org> Acked-by: Etienne Carriere <etienne.carriere@linaro.org> S
plat-sam: split SFR code out of main.c file
Move SFR specific code to sam_sfr.c file.
Acked-by: Jens Wiklander <jens.wiklander@linaro.org> Acked-by: Etienne Carriere <etienne.carriere@linaro.org> Signed-off-by: Clément Léger <clement.leger@bootlin.com>
show more ...
|
| b41798fa | 28-Jun-2022 |
Etienne Carriere <etienne.carriere@linaro.org> |
plat-stm32mp1: support rng pta with secure RNG source
Changes platform stm32mp1 configuration to default enable RNG PTA support when CFG_WITH_SOFTWARE_PRNG is disable. This configuration mandates st
plat-stm32mp1: support rng pta with secure RNG source
Changes platform stm32mp1 configuration to default enable RNG PTA support when CFG_WITH_SOFTWARE_PRNG is disable. This configuration mandates stm32mp1 RNG device and its resources to be assigned to the secure world to be accessible at runtime.
Acked-by: Jens Wiklander <jens.wiklander@linaro.org> Signed-off-by: Etienne Carriere <etienne.carriere@linaro.org>
show more ...
|
| cd451498 | 28-Jun-2022 |
Etienne Carriere <etienne.carriere@linaro.org> |
drivers: stm32_rng: implement plat_rng_init()
Moves plat_rng_init() definition from platform source file rng_seed.c to core driver source stm32_rng.c. There is no platform magic needed in this funct
drivers: stm32_rng: implement plat_rng_init()
Moves plat_rng_init() definition from platform source file rng_seed.c to core driver source stm32_rng.c. There is no platform magic needed in this function. As a result, seed_rng.c source file is removed.
Acked-by: Jens Wiklander <jens.wiklander@linaro.org> Signed-off-by: Etienne Carriere <etienne.carriere@linaro.org>
show more ...
|
| 097f329a | 28-Jun-2022 |
Etienne Carriere <etienne.carriere@linaro.org> |
drivers: stm32_rng: register as hwrng source
Implements RNG as hardware entropy source when CFG_STM32_RNG is enable and CFG_WITH_SOFTWARE_PRNG is disable.
This is realised by implementing crypto_rn
drivers: stm32_rng: register as hwrng source
Implements RNG as hardware entropy source when CFG_STM32_RNG is enable and CFG_WITH_SOFTWARE_PRNG is disable.
This is realised by implementing crypto_rng_read() and hw_get_random_byte() in driver.
Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org> Signed-off-by: Etienne Carriere <etienne.carriere@linaro.org>
show more ...
|
| 23123473 | 29-Jun-2022 |
Etienne Carriere <etienne.carriere@linaro.org> |
drivers: stm32_rng: helper trace in rng path
Adds helper flow level trace messages in random sample generation sequence.
Acked-by: Jens Wiklander <jens.wiklander@linaro.org> Signed-off-by: Etienne
drivers: stm32_rng: helper trace in rng path
Adds helper flow level trace messages in random sample generation sequence.
Acked-by: Jens Wiklander <jens.wiklander@linaro.org> Signed-off-by: Etienne Carriere <etienne.carriere@linaro.org>
show more ...
|
| c99311c8 | 28-Jun-2022 |
Etienne Carriere <etienne.carriere@linaro.org> |
drivers: stm32_rng: remove millisecond timeout with interrupts masked
Removes the 10ms timeout monitored waiting loop in stm32_rng_read_raw() that was called with interrupts masked. stm32_rng_read_r
drivers: stm32_rng: remove millisecond timeout with interrupts masked
Removes the 10ms timeout monitored waiting loop in stm32_rng_read_raw() that was called with interrupts masked. stm32_rng_read_raw() is renamed read_available() and does not pool a hardware status: it either returns or reads samples according to RNG state.
Changes stm32_rng_read() to monitor RNG burst generation with a 100ms timeout. This timeout threshold targets that at least few REE ticks (dozen of ms) allow RNG to conceal and synchronize upon bad conditions.
As change rewrites function stm32_rng_read(), it also removes a zeroing of the buffer on sample generation error. The wiping is removed since pointless.
Acked-by: Jens Wiklander <jens.wiklander@linaro.org> Signed-off-by: Etienne Carriere <etienne.carriere@linaro.org>
show more ...
|
| 7968bdf6 | 28-Jun-2022 |
Etienne Carriere <etienne.carriere@linaro.org> |
drivers: stm32_rng: don't export stm32_rng_read_raw()
No need to export stm32_rng function stm32_rng_read_raw(). It is only called from stm32_rng_read(). Also removes re-enabling of RNG in stm32_rng
drivers: stm32_rng: don't export stm32_rng_read_raw()
No need to export stm32_rng function stm32_rng_read_raw(). It is only called from stm32_rng_read(). Also removes re-enabling of RNG in stm32_rng_read_raw() since already handled by caller function.
Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org> Signed-off-by: Etienne Carriere <etienne.carriere@linaro.org>
show more ...
|
| e25e30c7 | 28-Jun-2022 |
Etienne Carriere <etienne.carriere@linaro.org> |
plat-stm32mp1: seed PRNG with initialized rng device
Simplifies platform rng_seed.c implementation. Since a previous change initializes stm32_rng driver before plat_rng_init() is called, it is now p
plat-stm32mp1: seed PRNG with initialized rng device
Simplifies platform rng_seed.c implementation. Since a previous change initializes stm32_rng driver before plat_rng_init() is called, it is now possible to use stm32_rng_read() to get PRNG seed. The sequence is simplified as stm32_rng_read() takes care of device resource dependencies.
Acked-by: Jens Wiklander <jens.wiklander@linaro.org> Signed-off-by: Etienne Carriere <etienne.carriere@linaro.org>
show more ...
|
| d8682c4c | 28-Jun-2022 |
Etienne Carriere <etienne.carriere@linaro.org> |
drivers: stm32_rng: init rng before service initcall level
Initializes stm32_rng driver before service initcall level so that device driver is ready when plat_rng_init() is called.
At this stage, r
drivers: stm32_rng: init rng before service initcall level
Initializes stm32_rng driver before service initcall level so that device driver is ready when plat_rng_init() is called.
At this stage, resource firewall may not be initialized therefore choose to always map RNG IOMEM with secure attribute which conforms to firewall configuration. When RNG is assigned to non-secure, RNG resources are released once boot completes.
Acked-by: Jens Wiklander <jens.wiklander@linaro.org> Signed-off-by: Etienne Carriere <etienne.carriere@linaro.org>
show more ...
|
| c22a37d3 | 28-Jun-2022 |
Etienne Carriere <etienne.carriere@linaro.org> |
drivers: stm32_rng: remove thread exceptions masking under spinlock
Fixes stm32_rng.c to not mask thread exceptions in function stm32_rng_read_raw() that is called with a spinlock held and interrupt
drivers: stm32_rng: remove thread exceptions masking under spinlock
Fixes stm32_rng.c to not mask thread exceptions in function stm32_rng_read_raw() that is called with a spinlock held and interrupts already masked.
Acked-by: Jens Wiklander <jens.wiklander@linaro.org> Signed-off-by: Etienne Carriere <etienne.carriere@linaro.org>
show more ...
|
| 9378f3e6 | 23-Jun-2022 |
Tim Anderson <tim.anderson@foundries.io> |
imx_ocotp: correct ocotp fuse address computation
Not all the imx platforms have the same bank spacing. In particular the imx6 and imx7ulp both have bank sizes that are twice as large as the imx8m.
imx_ocotp: correct ocotp fuse address computation
Not all the imx platforms have the same bank spacing. In particular the imx6 and imx7ulp both have bank sizes that are twice as large as the imx8m.
The ocotp_get_die_id_mx7ulp() function was written with the old computation, so bank 2, work 6 would be 0x4e0 offset. Using the new calc, bank 1, word 6 would be 0x4e0 offset.
So all the bank values should move to bank 1.
This will set the correct computation.
Signed-off-by: Tim Anderson <tim.anderson@foundries.io> Acked-by: Etienne Carriere <etienne.carriere@linaro.org> Reviewed-by: Clement Faure <clement.faure@nxp.com>
show more ...
|
| 3c34b07c | 30-Jun-2022 |
Michael Doran <michael.doran@dornerworks.com> |
plat-zynqmp: Added __nex_bss symbol for virtualization support
Without the __nex_bss symbol added to gic_data and console_data the zynqmp platform results in a deadlock when attempting to write to t
plat-zynqmp: Added __nex_bss symbol for virtualization support
Without the __nex_bss symbol added to gic_data and console_data the zynqmp platform results in a deadlock when attempting to write to the serial device on the platform. This fix resolves the deadlock issue. More details can be found in the referred link.
Link: https://github.com/OP-TEE/optee_os/issues/5384 Signed-off-by: Michael Doran <michael.doran@dornerworks.com> Acked-by: Etienne Carriere <etienne.carriere@linaro.org> Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| adf8325b | 29-Jun-2022 |
Jerome Forissier <jerome.forissier@linaro.org> |
core: crypto: mte: strip tag before calling vm_check_access_rights()
op_attr_bignum_to_user() lacks a call to memtag_strip_tag() before it calls vm_check_access_rights(). This results in the memory
core: crypto: mte: strip tag before calling vm_check_access_rights()
op_attr_bignum_to_user() lacks a call to memtag_strip_tag() before it calls vm_check_access_rights(). This results in the memory buffer not being found and the function returning TEE_ERROR_ACCESS_DENIED.
Test case: xtest pkcs11_1019 on QEMUv8, build command:
make CFG_PKCS11_TA=y CFG_USER_TA_TARGET_pkcs11=ta_arm64 MEMTAG=y run
Fixes: ef142203a36b ("core: syscalls: strip tags from user space pointers") Signed-off-by: Jerome Forissier <jerome.forissier@linaro.org> Acked-by: Etienne Carriere <etienne.carriere@linaro.org> Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| 15da69cf | 30-Jun-2022 |
Jelle Sels <jelle.sels@arm.com> |
core: ffa: Enable handling 64-bit direct messages
Enable using the 64-bit version of the FF-A direct request and response calls.
Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org> Acked-by: Et
core: ffa: Enable handling 64-bit direct messages
Enable using the 64-bit version of the FF-A direct request and response calls.
Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org> Acked-by: Etienne Carriere <etienne.carriere@linaro.org> Signed-off-by: Jelle Sels <jelle.sels@arm.com>
show more ...
|
| a9d09ada | 28-Jun-2022 |
Etienne Carriere <etienne.carriere@linaro.org> |
plat-synquacer: rename rng_pta.h to synquacer_rng_pta.h
Renames plat-synquacer rng_pta.h to synquacer_rng_pta.h to prevent confusion with generic RNG PTA header file pta_rng.h.
Acked-by: Jerome For
plat-synquacer: rename rng_pta.h to synquacer_rng_pta.h
Renames plat-synquacer rng_pta.h to synquacer_rng_pta.h to prevent confusion with generic RNG PTA header file pta_rng.h.
Acked-by: Jerome Forissier <jerome.forissier@linaro.org> Signed-off-by: Etienne Carriere <etienne.carriere@linaro.org>
show more ...
|
| e27e865a | 28-Jun-2022 |
Etienne Carriere <etienne.carriere@linaro.org> |
pta: rng: rename rng_pta_client.h to pta_rng.h
Renames RNG PTA exported header file from rng_pta_client.h to pta_rng.h as the later follows PTAs header file name convention in optee_os that is pta_x
pta: rng: rename rng_pta_client.h to pta_rng.h
Renames RNG PTA exported header file from rng_pta_client.h to pta_rng.h as the later follows PTAs header file name convention in optee_os that is pta_xxx.h.
Preserve rng_pta_client.h for backward compatibility. That header file only includes pta_rng.h.
Acked-by: Jerome Forissier <jerome.forissier@linaro.org> Signed-off-by: Etienne Carriere <etienne.carriere@linaro.org>
show more ...
|