| 239420cb | 13-Apr-2023 |
Jerome Forissier <jerome.forissier@linaro.org> |
core: ftrace: mark thread_get_id_may_fail() as __noprof
With CFG_FTRACE_SUPPORT=y CFG_ULIBS_MCOUNT=y CFG_SYSCALL_FTRACE=y (tested on QEMUv8), OP-TEE boot hangs due to infinite recursion:
ftrace_ent
core: ftrace: mark thread_get_id_may_fail() as __noprof
With CFG_FTRACE_SUPPORT=y CFG_ULIBS_MCOUNT=y CFG_SYSCALL_FTRACE=y (tested on QEMUv8), OP-TEE boot hangs due to infinite recursion:
ftrace_enter() get_fbuf() thread_get_id_may_fail() _mcount() [or __gnu_mcount_nc()] ftrace_enter() ...
Break the cycle by tagging thread_get_id_may_fail() with __noprof so that it doesn't call _mcount()/__gnu_mcount_nc().
Signed-off-by: Jerome Forissier <jerome.forissier@linaro.org> Acked-by: Jens Wiklander <jens.wiklander@linaro.org> Reviewed-by: Sumit Garg <sumit.garg@linaro.org>
show more ...
|
| 85bba90d | 03-May-2023 |
Jorge Ramirez-Ortiz <jorge@foundries.io> |
crypto: se050: compare symmetric keys in constant time
Symmetric keys should be compared in constant time to protect against side channel attacks.
Signed-off-by: Jorge Ramirez-Ortiz <jorge@foundrie
crypto: se050: compare symmetric keys in constant time
Symmetric keys should be compared in constant time to protect against side channel attacks.
Signed-off-by: Jorge Ramirez-Ortiz <jorge@foundries.io> Acked-by: Jerome Forissier <jerome.forissier@linaro.org>
show more ...
|
| 42135d98 | 05-May-2023 |
Alvin Chang <alvinga@andestech.com> |
core: riscv: mm: Add missing return for TLB helpers
These functions should contain tailing ret instruction to return to caller.
Signed-off-by: Alvin Chang <alvinga@andestech.com> Acked-by: Jerome F
core: riscv: mm: Add missing return for TLB helpers
These functions should contain tailing ret instruction to return to caller.
Signed-off-by: Alvin Chang <alvinga@andestech.com> Acked-by: Jerome Forissier <jerome.forissier@linaro.org>
show more ...
|
| de7aa18d | 28-Mar-2023 |
Clement Faure <clement.faure@nxp.com> |
drivers: caam: rework the CAAM crypto makefile
Re-work the CAAM crypto makefile to make it more readable.
Signed-off-by: Clement Faure <clement.faure@nxp.com> Acked-by: Jens Wiklander <jens.wikland
drivers: caam: rework the CAAM crypto makefile
Re-work the CAAM crypto makefile to make it more readable.
Signed-off-by: Clement Faure <clement.faure@nxp.com> Acked-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| d8cc16cf | 17-Apr-2023 |
Clement Faure <clement.faure@nxp.com> |
core: ls: remove CFG_WITH_SOFTWARE_PRNG default definition for LS platforms
Remove the enablement of CFG_WITH_SOFTWARE_PRNG flag when the CAAM is disabled. CFG_WITH_SOFTWARE_PRNG is enabled by defau
core: ls: remove CFG_WITH_SOFTWARE_PRNG default definition for LS platforms
Remove the enablement of CFG_WITH_SOFTWARE_PRNG flag when the CAAM is disabled. CFG_WITH_SOFTWARE_PRNG is enabled by default.
Signed-off-by: Clement Faure <clement.faure@nxp.com> Acked-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| e8e3c6a9 | 13-Apr-2023 |
Clement Faure <clement.faure@nxp.com> |
core: imx: remove CFG_WITH_SOFTWARE_PRNG default definition for i.MX platforms
Remove the enablement of CFG_WITH_SOFTWARE_PRNG ?= y since it's already globally enabled.
Signed-off-by: Clement Faure
core: imx: remove CFG_WITH_SOFTWARE_PRNG default definition for i.MX platforms
Remove the enablement of CFG_WITH_SOFTWARE_PRNG ?= y since it's already globally enabled.
Signed-off-by: Clement Faure <clement.faure@nxp.com> Acked-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| 8ca39cf0 | 13-Apr-2023 |
Clement Faure <clement.faure@nxp.com> |
core: move CFG_WITH_SOFTWARE_PRNG default definition
Move CFG_WITH_SOFTWARE_PRNG default definition to crypto.mk to make it overide-able by the HW crypto implementation. Without this fix, forcing CF
core: move CFG_WITH_SOFTWARE_PRNG default definition
Move CFG_WITH_SOFTWARE_PRNG default definition to crypto.mk to make it overide-able by the HW crypto implementation. Without this fix, forcing CFG_WITH_SOFTWARE_PRNG to n in a crypto driver configuration file will trigger the following compilation issue:
core/drivers/crypto/<driver>/crypto.mk:140: *** CFG_WITH_SOFTWARE_PRNG is set to 'y' (from file) but its value must be 'n' [Mandated by xxx]. Stop.
Signed-off-by: Clement Faure <clement.faure@nxp.com> Acked-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| b6bdf694 | 13-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 ...
|
| 4dc19277 | 28-Apr-2023 |
Clement Faure <clement.faure@nxp.com> |
ci: compile stats PTA on QEMU/QEMUv8
Enable stats PTA to catch compilation issues.
Signed-off-by: Clement Faure <clement.faure@nxp.com> Acked-by: Jerome Forissier <jerome.forissier@linaro.org> Revi
ci: compile stats PTA on QEMU/QEMUv8
Enable stats PTA to catch compilation issues.
Signed-off-by: Clement Faure <clement.faure@nxp.com> Acked-by: Jerome Forissier <jerome.forissier@linaro.org> Reviewed-by: Etienne Carriere <etienne.carriere@linaro.org>
show more ...
|
| c11218eb | 28-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 ...
|
| 83ee3b4d | 28-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 ...
|
| 92b64e4f | 28-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 ...
|
| 40c3f16e | 28-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 ...
|
| fab76a67 | 28-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 ...
|
| f727e838 | 28-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 ...
|
| c7f21af4 | 28-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 ...
|
| 28638023 | 28-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 ...
|
| 249c9780 | 17-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 ...
|
| 426790bd | 13-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 ...
|
| 1f8363e6 | 05-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 ...
|
| acaba7aa | 19-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 ...
|
| d4351c1e | 17-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 ...
|
| 9e3c57c8 | 28-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 ...
|
| 1220a68b | 24-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 ...
|
| 8c57a17e | 24-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 ...
|