| ed227bc6 | 21-Dec-2021 |
Marouene Boubakri <marouene.boubakri@nxp.com> |
lib: libutils: isoc: remove unused thread.h from bget_malloc.c
This commit removes thread.h from lib/libutils/isoc/bget_malloc.c since it is not used, but also to eliminate the dependency between ge
lib: libutils: isoc: remove unused thread.h from bget_malloc.c
This commit removes thread.h from lib/libutils/isoc/bget_malloc.c since it is not used, but also to eliminate the dependency between generic libraries code and architecture-specific core functions.
Signed-off-by: Marouene Boubakri <marouene.boubakri@nxp.com> Acked-by: Jens Wiklander <jens.wiklander@linaro.org> Reviewed-by: Etienne Carriere <etienne.carriere@linaro.org> Acked-by: Jerome Forissier <jerome@forissier.org>
show more ...
|
| c64fa9c5 | 28-Jan-2022 |
Jens Wiklander <jens.wiklander@linaro.org> |
core: ffa: add thread_spmc_register_secondary_ep()
Adds thread_spmc_register_secondary_ep() which replaces the previous platforms specific functions ffa_secondary_cpu_ep_register() in plat-vexpress
core: ffa: add thread_spmc_register_secondary_ep()
Adds thread_spmc_register_secondary_ep() which replaces the previous platforms specific functions ffa_secondary_cpu_ep_register() in plat-vexpress and plat-totalcompute.
Reviewed-by: Jerome Forissier <jerome@forissier.org> Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| 9ea4c645 | 30-Jan-2022 |
Michael Trimarchi <michael@amarulasolutions.com> |
core: imx: Calculate CFG_TZDRAM_START and CFG_NSEC_DDR_0_SIZE
Move assignement in order to calculate the value instead of hardcoded.
0x2000000 is the sum of 0x01e00000 and 0x00200000
Signed-off-by
core: imx: Calculate CFG_TZDRAM_START and CFG_NSEC_DDR_0_SIZE
Move assignement in order to calculate the value instead of hardcoded.
0x2000000 is the sum of 0x01e00000 and 0x00200000
Signed-off-by: Michael Trimarchi <michael@amarulasolutions.com> Acked-by: Jens Wiklander <jens.wiklander@linaro.org> Acked-by: Clement Faure <clement.faure@nxp.com>
show more ...
|
| 44a3128b | 22-Jan-2022 |
Jorge Ramirez-Ortiz <jorge@foundries.io> |
crypto: drivers: se050: remove implicit dependency
The SE05X device is platform independent and therefore does not need the iMX I2C driver but the actual driver for the particular platform is connec
crypto: drivers: se050: remove implicit dependency
The SE05X device is platform independent and therefore does not need the iMX I2C driver but the actual driver for the particular platform is connected into.
Implementing these changes required a fix in the Plug-and-Trust tree (the addition of a missing dependency), therefore we will also bump the Plug-and-Trust version used in the Azure pipeline.
Signed-off-by: Jorge Ramirez-Ortiz <jorge@foundries.io> Acked-by: Jerome Forissier <jerome@forissier.org>
show more ...
|
| 6b35a0ab | 02-Feb-2022 |
Ruchika Gupta <ruchika.gupta@linaro.org> |
cfg: Add restrictions with CFG_TA_PAUTH
Linux boot fails with XEN on CPU's with FEAT_PAUTH. So, CFG_TA_PAUTH currently has not been tested and is incompatible with CFG_VIRTUALIZATION.
It is also in
cfg: Add restrictions with CFG_TA_PAUTH
Linux boot fails with XEN on CPU's with FEAT_PAUTH. So, CFG_TA_PAUTH currently has not been tested and is incompatible with CFG_VIRTUALIZATION.
It is also incompatible with debug options like FTRACE and GPROF.
If these incompatible options are selected together by a platform, compilation will stop and user will be warned with an error message.
Signed-off-by: Ruchika Gupta <ruchika.gupta@linaro.org> Acked-by: Jens Wiklander <jens.wiklander@linaro.org> Acked-by: Jerome Forissier <jerome@forissier.org>
show more ...
|
| 0cc9400c | 09-Aug-2021 |
Clément Léger <clement.leger@bootlin.com> |
plat-sam: add support for SAIC init
Initialize SAIC in main_init_gic() and add itr_core_handler() function which calls atmel_saic_it_handle() to handle interrupts.
Acked-by: Jens Wiklander <jens.wi
plat-sam: add support for SAIC init
Initialize SAIC in main_init_gic() and add itr_core_handler() function which calls atmel_saic_it_handle() to handle interrupts.
Acked-by: Jens Wiklander <jens.wiklander@linaro.org> Signed-off-by: Clément Léger <clement.leger@bootlin.com>
show more ...
|
| 54c0b326 | 02-Jul-2021 |
Clément Léger <clement.leger@bootlin.com> |
drivers: atmel_saic: add SAIC driver
Add a driver to handle interrupt that are targeting the secure interrupt controller. This driver will be used to handle watchdog and matrix interrupts.
Acked-by
drivers: atmel_saic: add SAIC driver
Add a driver to handle interrupt that are targeting the secure interrupt controller. This driver will be used to handle watchdog and matrix interrupts.
Acked-by: Jens Wiklander <jens.wiklander@linaro.org> Signed-off-by: Clément Léger <clement.leger@bootlin.com>
show more ...
|
| f0d8ad67 | 20-Jan-2022 |
Ruchika Gupta <ruchika.gupta@linaro.org> |
ta: Export CFG_TA_PAUTH
Export CFG_TA_PAUTH for availability when compiling xtest
Signed-off-by: Ruchika Gupta <ruchika.gupta@linaro.org> Acked-by: Etienne Carriere <etienne.carriere@linaro.org> Re
ta: Export CFG_TA_PAUTH
Export CFG_TA_PAUTH for availability when compiling xtest
Signed-off-by: Ruchika Gupta <ruchika.gupta@linaro.org> Acked-by: Etienne Carriere <etienne.carriere@linaro.org> Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| e8a5e425 | 19-Jan-2022 |
Ruchika Gupta <ruchika.gupta@linaro.org> |
core: Add property to check feature PAUTH in TEE property set
Add an entry in TEE_PROPSET_TEE_IMPLEMENTATION for a boolean property org.trustedfirmware.optee.cpu.feat_pauth_implemented. The property
core: Add property to check feature PAUTH in TEE property set
Add an entry in TEE_PROPSET_TEE_IMPLEMENTATION for a boolean property org.trustedfirmware.optee.cpu.feat_pauth_implemented. The property is set true only if CFG_TA_PAUTH is configured and the underlying CPU supports FEAT_PAuth/FEAT_PAuth2.
Signed-off-by: Ruchika Gupta <ruchika.gupta@linaro.org> Acked-by: Etienne Carriere <etienne.carriere@linaro.org> Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| bb329115 | 10-Jan-2022 |
Ruchika Gupta <ruchika.gupta@linaro.org> |
cfg: Add option to enable PAUTH for TA's
Add config option to enable Pointer authentication support for TA's.
Signed-off-by: Ruchika Gupta <ruchika.gupta@linaro.org> Acked-by: Etienne Carriere <eti
cfg: Add option to enable PAUTH for TA's
Add config option to enable Pointer authentication support for TA's.
Signed-off-by: Ruchika Gupta <ruchika.gupta@linaro.org> Acked-by: Etienne Carriere <etienne.carriere@linaro.org> Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| c6c416f1 | 10-Jan-2022 |
Ruchika Gupta <ruchika.gupta@linaro.org> |
ldelf: strip PAC from TA addresses
When pointer authentication is enables for TA's, the LR values saved in the stack will have PAC which must be stripped off when unwinding the stack.
Signed-off-by
ldelf: strip PAC from TA addresses
When pointer authentication is enables for TA's, the LR values saved in the stack will have PAC which must be stripped off when unwinding the stack.
Signed-off-by: Ruchika Gupta <ruchika.gupta@linaro.org> Acked-by: Etienne Carriere <etienne.carriere@linaro.org> Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| 2b06f9de | 10-Jan-2022 |
Ruchika Gupta <ruchika.gupta@linaro.org> |
Add basic pointer authentication support for TA's
APIAKey is used for usespace TA's where these keys are generated for every TA at load time. The TEE core maintains the key value for each TA is resp
Add basic pointer authentication support for TA's
APIAKey is used for usespace TA's where these keys are generated for every TA at load time. The TEE core maintains the key value for each TA is responsible for storing/restorign them during switch to EL0 and back.
Signed-off-by: Ruchika Gupta <ruchika.gupta@linaro.org> Acked-by: Etienne Carriere <etienne.carriere@linaro.org> Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| b4ef3360 | 10-Jan-2022 |
Ruchika Gupta <ruchika.gupta@linaro.org> |
arm64: Add registers and bits for pointer authentication support
The ARMv8.3 PAuth (pointer authentication) extension adds:
- Fields in register ID_AA64ISAR1 to report the presence of pointer aut
arm64: Add registers and bits for pointer authentication support
The ARMv8.3 PAuth (pointer authentication) extension adds:
- Fields in register ID_AA64ISAR1 to report the presence of pointer authentication functionality. - Control bits in SCTLR_ELx to enable this functionality. - New registers to hold the keys necessary for this functionality. - New ESR_ELx.EC codes used when the new instructions are affected by configurable traps
These will be used in later patches as support for pointer authentication is added.
Signed-off-by: Ruchika Gupta <ruchika.gupta@linaro.org> Acked-by: Etienne Carriere <etienne.carriere@linaro.org> Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| 92012a61 | 30-Jul-2021 |
Clément Léger <clement.leger@bootlin.com> |
plat-sam: psci: add support for suspend and idle.
Based on the previous work to add suspend on sama5d2 platform, add the PSCI glue to call suspend function. psci_cpu_suspend() is used to put the pla
plat-sam: psci: add support for suspend and idle.
Based on the previous work to add suspend on sama5d2 platform, add the PSCI glue to call suspend function. psci_cpu_suspend() is used to put the platform in light suspend mode (STANDBY) whereas psci_system_suspend() puts the system into the suspend mode selected by CFG_ATMEL_PM_SUSPEND_MODE at compile time.
Acked-by: Etienne Carriere <etienne.carriere@linaro.org> Signed-off-by: Clément Léger <clement.leger@bootlin.com>
show more ...
|
| d031d1ec | 10-Jan-2022 |
Clément Léger <clement.leger@bootlin.com> |
drivers: atmel_shdwc: add call to suspend init
Since there is no "suspend" controller per se and that the general controller used for suspend is the shutdown controller, call suspend init from shdwc
drivers: atmel_shdwc: add call to suspend init
Since there is no "suspend" controller per se and that the general controller used for suspend is the shutdown controller, call suspend init from shdwc driver.
Acked-by: Etienne Carriere <etienne.carriere@linaro.org> Signed-off-by: Clément Léger <clement.leger@bootlin.com>
show more ...
|
| 15300b40 | 07-Jan-2022 |
Clément Léger <clement.leger@bootlin.com> |
drivers: pm: sam: add suspend support
Add suspend support for sama5d2 platform. This support allows to use all the available modes of suspend present on the sama5d2 platform: - STANDBY - ULP0 - ULP0
drivers: pm: sam: add suspend support
Add suspend support for sama5d2 platform. This support allows to use all the available modes of suspend present on the sama5d2 platform: - STANDBY - ULP0 - ULP0 Fast - ULP1 - BACKUP
By default, STANDBY mode is used as default suspend mode. This support is meant to be used by PSCI.
Acked-by: Etienne Carriere <etienne.carriere@linaro.org> Signed-off-by: Clément Léger <clement.leger@bootlin.com>
show more ...
|
| 5e6f824b | 30-Jul-2021 |
Clément Léger <clement.leger@bootlin.com> |
drivers: clk: sam: add suspend support
PMC register contents needs to be restored after resuming. Add support for this using PM callbacks.
Acked-by: Etienne Carriere <etienne.carriere@linaro.org> A
drivers: clk: sam: add suspend support
PMC register contents needs to be restored after resuming. Add support for this using PM callbacks.
Acked-by: Etienne Carriere <etienne.carriere@linaro.org> Acked-by: Jerome Forissier <jerome@forissier.org> Signed-off-by: Clément Léger <clement.leger@bootlin.com>
show more ...
|
| 9ea13e5f | 07-Jan-2022 |
Clément Léger <clement.leger@bootlin.com> |
plat-sam: matrix: add suspend support
Matrix registers needs to be restored after resume. Add support for suspend using PM callbacks.
Acked-by: Etienne Carriere <etienne.carriere@linaro.org> Acked-
plat-sam: matrix: add suspend support
Matrix registers needs to be restored after resume. Add support for suspend using PM callbacks.
Acked-by: Etienne Carriere <etienne.carriere@linaro.org> Acked-by: Jerome Forissier <jerome@forissier.org> Signed-off-by: Clément Léger <clement.leger@bootlin.com>
show more ...
|
| 5ad30067 | 09-Aug-2021 |
Clément Léger <clement.leger@bootlin.com> |
plat-sam: set sram0 as secure
We are going to use the first 64K of SRAM0 to put the suspend code. This is mandatory because SDRAM will be put in self refresh mode and thus won't be accessible. at91b
plat-sam: set sram0 as secure
We are going to use the first 64K of SRAM0 to put the suspend code. This is mandatory because SDRAM will be put in self refresh mode and thus won't be accessible. at91bootstrap already sets this zone as secure but we better enforce it to avoid anybody reading or writing it.
Acked-by: Etienne Carriere <etienne.carriere@linaro.org> Acked-by: Jerome Forissier <jerome@forissier.org> Signed-off-by: Clément Léger <clement.leger@bootlin.com>
show more ...
|
| 5060464e | 30-Jul-2021 |
Clément Léger <clement.leger@bootlin.com> |
plat-sam: use more mmap regions
With upcoming suspend support, the default number of mmap regions is too small to map all the needed regions. Increment this value to 24 to be a bit more comfortable.
plat-sam: use more mmap regions
With upcoming suspend support, the default number of mmap regions is too small to map all the needed regions. Increment this value to 24 to be a bit more comfortable.
Acked-by: Etienne Carriere <etienne.carriere@linaro.org> Acked-by: Jerome Forissier <jerome@forissier.org> Signed-off-by: Clément Léger <clement.leger@bootlin.com>
show more ...
|
| 0d2c657c | 30-Jul-2021 |
Clément Léger <clement.leger@bootlin.com> |
arm32: add suspend/resume support for cortex-A5
Cortex-A5 has the same set of registers to be saved than cortex-A7. Use the same code to save them and restore them.
Reviewed-by: Etienne Carriere <e
arm32: add suspend/resume support for cortex-A5
Cortex-A5 has the same set of registers to be saved than cortex-A7. Use the same code to save them and restore them.
Reviewed-by: Etienne Carriere <etienne.carriere@linaro.org> Acked-by: Jerome Forissier <jerome@forissier.org> Signed-off-by: Clément Léger <clement.leger@bootlin.com>
show more ...
|
| f61c7bcc | 07-Jan-2022 |
Clément Léger <clement.leger@bootlin.com> |
core: pm: add documentation for callback name parameter
Fixed missing documentation for name parameter.
Fixes: 502e23ad523 ("core: pm: add a name to registered pm_callback_handle") Reviewed-by: Eti
core: pm: add documentation for callback name parameter
Fixed missing documentation for name parameter.
Fixes: 502e23ad523 ("core: pm: add a name to registered pm_callback_handle") Reviewed-by: Etienne Carriere <etienne.carriere@linaro.org> Acked-by: Jerome Forissier <jerome@forissier.org> Signed-off-by: Clément Léger <clement.leger@bootlin.com>
show more ...
|
| 0c9404e1 | 26-Jan-2022 |
Jens Wiklander <jens.wiklander@linaro.org> |
core: panic at unexpected smc return
Certain smc's are not expected to return. Prior to this patch in order to guard against unexpected return a "b ." instruction was added after each such smc to at
core: panic at unexpected smc return
Certain smc's are not expected to return. Prior to this patch in order to guard against unexpected return a "b ." instruction was added after each such smc to at least capture the cpu. With the introduction of FF-A TF-A may in case there's a mismatch between OP-TEE and TF-A configuration return some error code when an unrecognized smc is encountered. The result is typically that the boot hangs after the print: I/TC: Primary CPU switching to normal world boot
To help diagnosing such errors a call to panic is added after each smc which isn't expected to return. The result becomes instead: I/TC: Primary CPU switching to normal world boot E/TC:0 Panic at core/arch/arm/kernel/boot.c:122 <__panic_at_smc_return> E/TC:0 TEE load address @ 0xe100000 E/TC:0 Call stack: E/TC:0 0x0e10d23c E/TC:0 0x0e124848 E/TC:0 0x0e10be60
Reviewed-by: Etienne Carriere <etienne.carriere@linaro.org> Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| d0b742d1 | 10-Jan-2022 |
Jens Wiklander <jens.wiklander@linaro.org> |
Update CHANGELOG for 3.16.0
Update CHANGELOG for 3.16.0 and collect Tested-by tags.
Tested-by: Jerome Forissier <jerome@forissier.org> (vexpress-qemu_armv8a) Tested-by: Jerome Forissier <jerome@for
Update CHANGELOG for 3.16.0
Update CHANGELOG for 3.16.0 and collect Tested-by tags.
Tested-by: Jerome Forissier <jerome@forissier.org> (vexpress-qemu_armv8a) Tested-by: Jerome Forissier <jerome@forissier.org> (vexpress-qemu_armv8a, aarch64 host) Tested-by: Jerome Forissier <jerome@forissier.org> (hikey-hikey) Tested-by: Jerome Forissier <jerome@forissier.org> (hikey-hikey960) Tested-by: Igor Opaniuk <igor.opaniuk@gmail.com> (Poplar) Tested-by: Jens Wiklander <jens.wiklander@linaro.org> (Juno) Tested-by: Jens Wiklander <jens.wiklander@linaro.org> (imx-mx8mqevk) Tested-by: Jens Wiklander <jens.wiklander@linaro.org> (FVP) Tested-by: Sahil Malhotra <sahil.malhotra@nxp.com> (LS1012A-RDB) Tested-by: Sahil Malhotra <sahil.malhotra@nxp.com> (LS1028A-RDB) Tested-by: Sahil Malhotra <sahil.malhotra@nxp.com> (LS1043A-RDB) Tested-by: Sahil Malhotra <sahil.malhotra@nxp.com> (LS1046A-RDB) Tested-by: Sahil Malhotra <sahil.malhotra@nxp.com> (LS1088A-RDB) Tested-by: Sahil Malhotra <sahil.malhotra@nxp.com> (LS2088A-RDB) Tested-by: Sahil Malhotra <sahil.malhotra@nxp.com> (LX2160A-RDB) Tested-by: Clement Faure <clement.faure@nxp.com> (imx-mx6dlsabreauto) Tested-by: Clement Faure <clement.faure@nxp.com> (imx-mx6dlsabresd) Tested-by: Clement Faure <clement.faure@nxp.com> (imx-mx6qpsabreauto) Tested-by: Clement Faure <clement.faure@nxp.com> (imx-mx6qsabresd) Tested-by: Clement Faure <clement.faure@nxp.com> (imx-mx6sllevk) Tested-by: Clement Faure <clement.faure@nxp.com> (imx-mx6ulevk) Tested-by: Clement Faure <clement.faure@nxp.com> (imx-mx6ullevk) Tested-by: Clement Faure <clement.faure@nxp.com> (imx-mx6ulzevk) Tested-by: Clement Faure <clement.faure@nxp.com> (imx-mx6sxsabresd) Tested-by: Clement Faure <clement.faure@nxp.com> (imx-mx7dsabresd) Tested-by: Clement Faure <clement.faure@nxp.com> (imx-mx7ulpevk) Tested-by: Clement Faure <clement.faure@nxp.com> (imx-mx8mmevk) Tested-by: Clement Faure <clement.faure@nxp.com> (imx-mx8mnevk) Tested-by: Clement Faure <clement.faure@nxp.com> (imx-mx8mqevk) Tested-by: Clement Faure <clement.faure@nxp.com> (imx-mx8mpevk) Tested-by: Clement Faure <clement.faure@nxp.com> (imx-mx8qmmek) Tested-by: Clement Faure <clement.faure@nxp.com> (imx-mx8qxpmek) Tested-by: Clement Faure <clement.faure@nxp.com> (imx-mx8dxlevk) Tested-by: Clement Faure <clement.faure@nxp.com> (imx-mx8ulpevk) Tested-by: Etienne Carriere <etienne.carriere@linaro.org> (stm32mp1, gp pkcs11) Tested-by: Ricardo Salveti <ricardo@foundries.io> (ZynqMP) Tested-by: Etienne Carriere <etienne.carriere@linaro.org> (vexpress-qemu_virt, gp pkcs11) Tested-by: Sumit Garg <sumit.garg@linaro.org> (Developerbox) Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| 1e846e20 | 27-Jan-2022 |
Vesa Jääskeläinen <vesa.jaaskelainen@vaisala.com> |
zynqmp: zcu102: Fix DDR memory size to 4 GiB
Xilinx ZCU102 board has 4 GiB of DDR memory and size must be configured properly in order for dynamic shared memory feature to work.
Without it followin
zynqmp: zcu102: Fix DDR memory size to 4 GiB
Xilinx ZCU102 board has 4 GiB of DDR memory and size must be configured properly in order for dynamic shared memory feature to work.
Without it following error might be present during kernel startup:
E/TC:0 0 std_smc_entry:183 Bad arg address 0x803989000
When compiling for 32 bits only first 2 GiB is available.
Signed-off-by: Vesa Jääskeläinen <vesa.jaaskelainen@vaisala.com> Acked-by: Etienne Carriere <etienne.carriere@linaro.org> Acked-by: Ricardo Salveti <ricardo@foundries.io> Acked-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|