| 86eb0536 | 24-Nov-2021 |
Jens Wiklander <jens.wiklander@linaro.org> |
core: Fix warnings in core/tee/tee_fs_rpc.c
Fixes -Wdeclaration-after-statement warnings in core/tee/tee_fs_rpc.c: core/tee/tee_fs_rpc.c: In function ‘operation_open_dfh’: core/tee/tee_fs_rpc.c:49:2
core: Fix warnings in core/tee/tee_fs_rpc.c
Fixes -Wdeclaration-after-statement warnings in core/tee/tee_fs_rpc.c: core/tee/tee_fs_rpc.c: In function ‘operation_open_dfh’: core/tee/tee_fs_rpc.c:49:2: error: ISO C90 forbids mixed declarations and code [-Werror=declaration-after-statement] struct tee_fs_rpc_operation op = { ^~~~~~ core/tee/tee_fs_rpc.c: In function ‘tee_fs_rpc_remove_dfh’: core/tee/tee_fs_rpc.c:192:2: error: ISO C90 forbids mixed declarations and code [-Werror=declaration-after-statement] struct tee_fs_rpc_operation op = { ^~~~~~
Reviewed-by: Etienne Carriere <etienne.carriere@linaro.org> Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| 9ff77e1e | 24-Nov-2021 |
Jens Wiklander <jens.wiklander@linaro.org> |
core: Fix warnings in core/tee/tee_svc_cryp.c
Fixes -Wdeclaration-after-statement warnings in core/tee/tee_svc_cryp.c: core/tee/tee_svc_cryp.c: In function ‘syscall_cryp_obj_populate’: core/tee/tee_
core: Fix warnings in core/tee/tee_svc_cryp.c
Fixes -Wdeclaration-after-statement warnings in core/tee/tee_svc_cryp.c: core/tee/tee_svc_cryp.c: In function ‘syscall_cryp_obj_populate’: core/tee/tee_svc_cryp.c:1665:2: error: ISO C90 forbids mixed declarations and code [-Werror=declaration-after-statement] size_t alloc_size = 0; ^~~~~~ core/tee/tee_svc_cryp.c: In function ‘syscall_obj_generate_key’: core/tee/tee_svc_cryp.c:1907:2: error: ISO C90 forbids mixed declarations and code [-Werror=declaration-after-statement] size_t alloc_size = 0; ^~~~~~ core/tee/tee_svc_cryp.c: In function ‘syscall_cryp_derive_key’: core/tee/tee_svc_cryp.c:2975:3: error: ISO C90 forbids mixed declarations and code [-Werror=declaration-after-statement] size_t bin_size = params[0].content.ref.length; ^~~~~~ core/tee/tee_svc_cryp.c: In function ‘syscall_asymm_operate’: core/tee/tee_svc_cryp.c:3560:2: error: ISO C90 forbids mixed declarations and code [-Werror=declaration-after-statement] size_t alloc_size = 0; ^~~~~~ core/tee/tee_svc_cryp.c: In function ‘syscall_asymm_verify’: core/tee/tee_svc_cryp.c:3734:2: error: ISO C90 forbids mixed declarations and code [-Werror=declaration-after-statement] size_t alloc_size = 0; ^~~~~~
Reviewed-by: Etienne Carriere <etienne.carriere@linaro.org> Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| b259cc96 | 24-Nov-2021 |
Jens Wiklander <jens.wiklander@linaro.org> |
core: Fix warning in register_shm()
Fixes a -Wdeclaration-after-statement warning in register_shm(): core/tee/entry_std.c:491:2: error: ISO C90 forbids mixed declarations and code [-Werror=declarati
core: Fix warning in register_shm()
Fixes a -Wdeclaration-after-statement warning in register_shm(): core/tee/entry_std.c:491:2: error: ISO C90 forbids mixed declarations and code [-Werror=declaration-after-statement] struct optee_msg_param_tmem *tmem = &arg->params[0].u.tmem; ^~~~~~
Reviewed-by: Etienne Carriere <etienne.carriere@linaro.org> Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| 3f4f2e50 | 24-Nov-2021 |
Jens Wiklander <jens.wiklander@linaro.org> |
core: Fix warning in __wq_rpc()
Fixes a -Wdeclaration-after-statement warning in __wq_rpc(): core/kernel/wait_queue.c:36:2: error: ISO C90 forbids mixed declarations and code [-Werror=declaration-af
core: Fix warning in __wq_rpc()
Fixes a -Wdeclaration-after-statement warning in __wq_rpc(): core/kernel/wait_queue.c:36:2: error: ISO C90 forbids mixed declarations and code [-Werror=declaration-after-statement] struct thread_param params = THREAD_PARAM_VALUE(IN, func, id, 0); ^~~~~~
Reviewed-by: Etienne Carriere <etienne.carriere@linaro.org> Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| 3c6cfce4 | 24-Nov-2021 |
Jens Wiklander <jens.wiklander@linaro.org> |
core: Fix warning in find_chosen_node()
Fixes a -Wdeclaration-after-statement warning in find_chosen_node(): core/kernel/console.c:48:2: error: ISO C90 forbids mixed declarations and code [-Werror=d
core: Fix warning in find_chosen_node()
Fixes a -Wdeclaration-after-statement warning in find_chosen_node(): core/kernel/console.c:48:2: error: ISO C90 forbids mixed declarations and code [-Werror=declaration-after-statement] int offset = fdt_path_offset(fdt, "/secure-chosen"); ^~~
Reviewed-by: Etienne Carriere <etienne.carriere@linaro.org> Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| 62d4e938 | 24-Nov-2021 |
Jens Wiklander <jens.wiklander@linaro.org> |
core: Fix warning in mobj_reg_shm_inc_map()
Fixes a -Wdeclaration-after-statement warning in mobj_reg_shm_inc_map() core/arch/arm/mm/mobj_dyn_shm.c: In function ‘mobj_reg_shm_inc_map’: core/arch/arm
core: Fix warning in mobj_reg_shm_inc_map()
Fixes a -Wdeclaration-after-statement warning in mobj_reg_shm_inc_map() core/arch/arm/mm/mobj_dyn_shm.c: In function ‘mobj_reg_shm_inc_map’: core/arch/arm/mm/mobj_dyn_shm.c:188:2: error: ISO C90 forbids mixed declarations and code [-Werror=declaration-after-statement] uint32_t exceptions = cpu_spin_lock_xsave(®_shm_map_lock); ^~~~~~~~
Reviewed-by: Etienne Carriere <etienne.carriere@linaro.org> Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| 62dd725f | 24-Nov-2021 |
Jens Wiklander <jens.wiklander@linaro.org> |
core: fix warning in tee_time_get_ree_time()
Fixes a -Wdeclaration-after-statement warning in tee_time_get_ree_time(): core/arch/arm/kernel/tee_time.c: In function ‘tee_time_get_ree_time’: core/arch
core: fix warning in tee_time_get_ree_time()
Fixes a -Wdeclaration-after-statement warning in tee_time_get_ree_time(): core/arch/arm/kernel/tee_time.c: In function ‘tee_time_get_ree_time’: core/arch/arm/kernel/tee_time.c:58:2: error: ISO C90 forbids mixed declarations and code [-Werror=declaration-after-statement] struct thread_param params = THREAD_PARAM_VALUE(OUT, 0, 0, 0);
Reviewed-by: Etienne Carriere <etienne.carriere@linaro.org> Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| 5e2cacd0 | 24-Nov-2021 |
Jens Wiklander <jens.wiklander@linaro.org> |
libtomcrypt: disable -Wdeclaration-after-statement
Disables -Wdeclaration-after-statement when compiling the libtomcrypt library in order to avoid that kind of warnings from upstream code.
Reviewed
libtomcrypt: disable -Wdeclaration-after-statement
Disables -Wdeclaration-after-statement when compiling the libtomcrypt library in order to avoid that kind of warnings from upstream code.
Reviewed-by: Etienne Carriere <etienne.carriere@linaro.org> Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| a7b6b979 | 05-Nov-2021 |
Ralph Siemsen <ralph.siemsen@linaro.org> |
plat-rzn1: Add Cortex-M3 start
The RZ/N1 platform contains a Cortex-M3 in addition to dual A7 cores.
Add CFG_BOOT_CM3 flat (default=y) to start the Cortex-M3 unit.
Signed-off-by: Ralph Siemsen <ra
plat-rzn1: Add Cortex-M3 start
The RZ/N1 platform contains a Cortex-M3 in addition to dual A7 cores.
Add CFG_BOOT_CM3 flat (default=y) to start the Cortex-M3 unit.
Signed-off-by: Ralph Siemsen <ralph.siemsen@linaro.org> Acked-by: Jerome Forissier <jerome@forissier.org> Reviewed-by: Sumit Garg <sumit.garg@linaro.org> Acked-by: Etienne Carriere <etienne.carriere@linaro.org>
show more ...
|
| 5ab6717d | 04-Nov-2021 |
Ralph Siemsen <ralph.siemsen@linaro.org> |
plat-rzn1: fix unmasked register writes
When writing all 32 bits of a register, there is no need for iomask_32 which performs a read-modify-write operation. Not only is it faster, but certain hardwa
plat-rzn1: fix unmasked register writes
When writing all 32 bits of a register, there is no need for iomask_32 which performs a read-modify-write operation. Not only is it faster, but certain hardware registers are write-only or have side effects on read.
Using iomask_32 was found to cause the following issues on RZ/N1: - accessing the I2C EEPROM gives timeout errors on read - serial console drops characters on input (eg. when pasting) Switching to io_write32 for non-masked writes fixes the issues.
Fixes: f1cf4b79 ("Add support for Renesas RZ/N1 platform") Signed-off-by: Ralph Siemsen <ralph.siemsen@linaro.org> Acked-by: Jerome Forissier <jerome@forissier.org> Reviewed-by: Sumit Garg <sumit.garg@linaro.org> Acked-by: Etienne Carriere <etienne.carriere@linaro.org>
show more ...
|
| 24421193 | 09-Nov-2021 |
Jerome Forissier <jerome@forissier.org> |
core: ltc: always define LTC_DER
tomcrypt_private.h uses ltc_asn1_list which is defined in tomcrypt_pk.h only when LTC_DER is defined. Since tomcrypt_private.h is included unconditionally in some fi
core: ltc: always define LTC_DER
tomcrypt_private.h uses ltc_asn1_list which is defined in tomcrypt_pk.h only when LTC_DER is defined. Since tomcrypt_private.h is included unconditionally in some files such as core/lib/libtomcrypt/tomcrypt.c it needs to compile with no error. Therefore add -DLTC_DER.
Fixes the following error:
$ make CFG_CRYPTO=n CFG_REE_FS=n ... CC out/arm-plat-vexpress/core/lib/libtomcrypt/tomcrypt.o In file included from core/lib/libtomcrypt/tomcrypt.c:9: core/lib/libtomcrypt/src/headers/tomcrypt_private.h:64:4: error: unknown type name ‘ltc_asn1_list’ 64 | ltc_asn1_list *enc_data; | ^~~~~~~~~~~~~ ...
Signed-off-by: Jerome Forissier <jerome@forissier.org> Acked-by: Jens Wiklander <jens.wiklander@linaro.org> Acked-by: Etienne Carriere <etienne.carriere@linaro.org>
show more ...
|
| cf23e962 | 09-Nov-2021 |
Jerome Forissier <jerome@forissier.org> |
crypto: build aes-gcm*.c files only when both AES and GCM are enabled
crypto/aes-gcm*.c need building only when both CFG_CRYPTO_AES and CFG_AES_GCM are enabled.
Signed-off-by: Jerome Forissier <jer
crypto: build aes-gcm*.c files only when both AES and GCM are enabled
crypto/aes-gcm*.c need building only when both CFG_CRYPTO_AES and CFG_AES_GCM are enabled.
Signed-off-by: Jerome Forissier <jerome@forissier.org> Acked-by: Jens Wiklander <jens.wiklander@linaro.org> Acked-by: Etienne Carriere <etienne.carriere@linaro.org>
show more ...
|
| b17cf5c8 | 21-Nov-2021 |
Etienne Carriere <etienne.carriere@linaro.org> |
core: dt_driver: debug trace if property not found
Adds a debug level trace message in dt_driver_device_from_node_idx_prop() when unexpectedly not finding provider expected property in target node.
core: dt_driver: debug trace if property not found
Adds a debug level trace message in dt_driver_device_from_node_idx_prop() when unexpectedly not finding provider expected property in target node.
Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org> Signed-off-by: Etienne Carriere <etienne.carriere@linaro.org>
show more ...
|
| 33b9b4b9 | 19-Nov-2021 |
Julien Masson <jmasson@baylibre.com> |
plat-mediatek: set SHMEM base address after TZDRAM
In order to avoid hole between TZDRAM and SHMEM memory, the Non-secure static shared memory physical base address is set by default just after the
plat-mediatek: set SHMEM base address after TZDRAM
In order to avoid hole between TZDRAM and SHMEM memory, the Non-secure static shared memory physical base address is set by default just after the secure RAM (TZDRAM): SHMEM_START = TZDRAM_START + TZDRAM_SIZE
Acked-by: Jerome Forissier <jerome@forissier.org> Signed-off-by: Julien Masson <jmasson@baylibre.com>
show more ...
|
| 292b3186 | 19-Nov-2021 |
Julien Masson <jmasson@baylibre.com> |
plat-mediatek: define memory range
This patch registers the non-secure memory to support dynamic shm registering.
The default RAM size has been set to 1 GiB and default RAM base address set to 0x40
plat-mediatek: define memory range
This patch registers the non-secure memory to support dynamic shm registering.
The default RAM size has been set to 1 GiB and default RAM base address set to 0x40000000. These values can be changed at compilation via CFG_DRAM_SIZE and CFG_DRAM_BASE.
Acked-by: Jerome Forissier <jerome@forissier.org> Signed-off-by: Julien Masson <jmasson@baylibre.com>
show more ...
|
| 9e42008d | 22-Nov-2021 |
Joakim Bech <joakim.bech@linaro.org> |
config: add flag CFG_WARN_INSECURE
OP-TEE is a reference implementation for developers and device manufacturers, which implies that there always is a need to fill in missing pieces that cannot be do
config: add flag CFG_WARN_INSECURE
OP-TEE is a reference implementation for developers and device manufacturers, which implies that there always is a need to fill in missing pieces that cannot be done generically. The chipmakers often have additional security configurations those needs to be configured according to the chipmakers security guidelines and security specifications.
To reduce the likelihood of running a vanilla configured OP-TEE we introduce the flag CFG_WARN_INSECURE that will give warning messages in the boot saying that the OP-TEE runs a configuration that might be insecure. The intention is that the device manufacturer making the end products should change the flag to "n" after implementing stubbed functionality in OP-TEE and configuring their device according to the chipmakers security guidelines and security specifications.
Signed-off-by: Joakim Bech <joakim.bech@linaro.org> Reviewed-by: Ruchika Gupta <ruchika.gupta@linaro.org> Acked-by: Sumit Garg <sumit.garg@linaro.org> Acked-by: Rouven Czerwinski <r.czerwinski@pengutronix.de> Acked-by: Clement Faure <clement.faure@nxp.com> Acked-by: Jerome Forissier <jerome@forissier.org> Acked-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| 5411b322 | 11-Nov-2021 |
Jorge Ramirez-Ortiz <jorge@foundries.io> |
crypto: se050: rename huk driver to die_id
The current HUK driver is not providing the platform Hardware Unique Key but the DIE_ID.
This can logically be a source of confusion (and bugs) for many u
crypto: se050: rename huk driver to die_id
The current HUK driver is not providing the platform Hardware Unique Key but the DIE_ID.
This can logically be a source of confusion (and bugs) for many users not enabling this option.
This commit renames the huk.c file to die_id.c and replaces the previous configuration option with another one that is semantically accurate.
CFG_NXP_SE05X_HUK_DRV --> CFG_NXP_SE05X_DIEID_DRV
Signed-off-by: Jorge Ramirez-Ortiz <jorge@foundries.io> Acked-by: Etienne Carriere <etienne.carriere@linaro.org> Acked-by: Jerome Forissier <jerome@forissier.org>
show more ...
|
| add5ac80 | 20-Oct-2021 |
Jorge Ramirez-Ortiz <jorge@foundries.io> |
crypto: se050: Foundries Plug-and-Trust release 0.0.4
Notice that rebasing the Plug-and-Trust stack to pick up the NXP Plug-and-Trust 3.03.00 release broke backwards compatibility with previous OP-T
crypto: se050: Foundries Plug-and-Trust release 0.0.4
Notice that rebasing the Plug-and-Trust stack to pick up the NXP Plug-and-Trust 3.03.00 release broke backwards compatibility with previous OP-TEE versions. This is why this commit includes the necessary update to adaptors/apdu.c
https://github.com/foundriesio/plug-and-trust/releases/tag/v0.0.3
Also the v.0.0.4 release includes support for APDU raw frame transmission to the secure element (a new interface). The OP-TEE PTA that makes use of that functionality shall be merged after this commit.
https://github.com/foundriesio/plug-and-trust/releases/tag/v0.0.4
Signed-off-by: Jorge Ramirez-Ortiz <jorge@foundries.io> Acked-by: Jerome Forissier <jerome@forissier.org> Acked-by: Etienne Carriere <etienne.carriere@linaro.org>
show more ...
|
| 58db16aa | 29-Jun-2021 |
Clément Léger <clement.leger@bootlin.com> |
plat-sam: enable clock framework support
Enable clock framework support to be able to build sama5d2 clock tree.
Acked-by: Jerome Forissier <jerome@forissier.org> Signed-off-by: Clément Léger <cleme
plat-sam: enable clock framework support
Enable clock framework support to be able to build sama5d2 clock tree.
Acked-by: Jerome Forissier <jerome@forissier.org> Signed-off-by: Clément Léger <clement.leger@bootlin.com>
show more ...
|
| 7f857cd6 | 18-Jun-2021 |
Clément Léger <clement.leger@bootlin.com> |
drivers: add sub.mk for sam
Add sub.mk to for sam directory build.
Acked-by: Jerome Forissier <jerome@forissier.org> Signed-off-by: Clément Léger <clement.leger@bootlin.com> |
| 16521289 | 18-Jun-2021 |
Clément Léger <clement.leger@bootlin.com> |
drivers: sam: add sama5d2 clock description
Add complete sama5d2 clock tree description which uses all the previously described clocks.
Acked-by: Etienne Carriere <etienne.carriere@linaro.org> Acke
drivers: sam: add sama5d2 clock description
Add complete sama5d2 clock tree description which uses all the previously described clocks.
Acked-by: Etienne Carriere <etienne.carriere@linaro.org> Acked-by: Nicolas Ferre <nicolas.ferre@microchip.com> Signed-off-by: Clément Léger <clement.leger@bootlin.com>
show more ...
|
| 538f5068 | 18-Jun-2021 |
Clément Léger <clement.leger@bootlin.com> |
drivers: sam: add at91 clock interface
Add interface to all clocks that are needed to describe sama5d2 clock tree.
Acked-by: Etienne Carriere <etienne.carriere@linaro.org> Acked-by: Nicolas Ferre <
drivers: sam: add at91 clock interface
Add interface to all clocks that are needed to describe sama5d2 clock tree.
Acked-by: Etienne Carriere <etienne.carriere@linaro.org> Acked-by: Nicolas Ferre <nicolas.ferre@microchip.com> Signed-off-by: Clément Léger <clement.leger@bootlin.com>
show more ...
|
| 5558f7fc | 18-Jun-2021 |
Clément Léger <clement.leger@bootlin.com> |
drivers: sam: add pmc clock registering
Add all functions that will be used for PMC clocks registration.
Acked-by: Etienne Carriere <etienne.carriere@linaro.org> Acked-by: Nicolas Ferre <nicolas.fe
drivers: sam: add pmc clock registering
Add all functions that will be used for PMC clocks registration.
Acked-by: Etienne Carriere <etienne.carriere@linaro.org> Acked-by: Nicolas Ferre <nicolas.ferre@microchip.com> Signed-off-by: Clément Léger <clement.leger@bootlin.com>
show more ...
|
| 5ee2fe59 | 18-Jun-2021 |
Clément Léger <clement.leger@bootlin.com> |
drivers: sam: add at91_system clock driver
Add driver for system clock.
Acked-by: Etienne Carriere <etienne.carriere@linaro.org> Acked-by: Nicolas Ferre <nicolas.ferre@microchip.com> Acked-by: Bori
drivers: sam: add at91_system clock driver
Add driver for system clock.
Acked-by: Etienne Carriere <etienne.carriere@linaro.org> Acked-by: Nicolas Ferre <nicolas.ferre@microchip.com> Acked-by: Boris Brezillon <bbrezillon@kernel.org> Signed-off-by: Clément Léger <clement.leger@bootlin.com>
show more ...
|
| 82444cc2 | 18-Jun-2021 |
Clément Léger <clement.leger@bootlin.com> |
drivers: sam: add at91_utmi clock driver
Add driver for UTMI clock.
Acked-by: Etienne Carriere <etienne.carriere@linaro.org> Acked-by: Nicolas Ferre <nicolas.ferre@microchip.com> Acked-by: Boris Br
drivers: sam: add at91_utmi clock driver
Add driver for UTMI clock.
Acked-by: Etienne Carriere <etienne.carriere@linaro.org> Acked-by: Nicolas Ferre <nicolas.ferre@microchip.com> Acked-by: Boris Brezillon <bbrezillon@kernel.org> Signed-off-by: Clément Léger <clement.leger@bootlin.com>
show more ...
|