| 3a7bfc34 | 22-Mar-2021 |
Jelle Sels <jelle.sels@arm.com> |
core: Add FFA_PARTITION_INFO
FFA_PARTITION_INFO is used to query all the Secure Partitions loaded in the system.
Signed-off-by: Jelle Sels <jelle.sels@arm.com> Acked-by: Etienne Carriere <etienne.c
core: Add FFA_PARTITION_INFO
FFA_PARTITION_INFO is used to query all the Secure Partitions loaded in the system.
Signed-off-by: Jelle Sels <jelle.sels@arm.com> Acked-by: Etienne Carriere <etienne.carriere@linaro.org> Acked-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| e9907fd7 | 27-Oct-2021 |
Jens Wiklander <jens.wiklander@linaro.org> |
core: pta: socket: enable TA to query recv out buffer
Propagate out size for socket recv event when it's larger than the supplied in size. Also enable passing a NULL buffer while querying the size o
core: pta: socket: enable TA to query recv out buffer
Propagate out size for socket recv event when it's larger than the supplied in size. Also enable passing a NULL buffer while querying the size of the buffer.
Reviewed-by: Etienne Carriere <etienne.carriere@linaro.org> Reviewed-by: Jerome Forissier <jerome@forissier.org> Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| 16dfecc2 | 28-Oct-2021 |
Jens Wiklander <jens.wiklander@linaro.org> |
core: fix ASLR problem with short-descriptor table mappings
With short-descriptor table mappings, that is without LPAE, the user va range is defined at the lowest addresses. Depending on the seed su
core: fix ASLR problem with short-descriptor table mappings
With short-descriptor table mappings, that is without LPAE, the user va range is defined at the lowest addresses. Depending on the seed supplied this could conflict with chosen base address for core mappings. Add a check early in assign_mem_va() to avoid such conflicts.
Without this patch there's a risk of occasional panics like: E/TC:0 0 Panic 'issue in linear address space' at core/arch/arm/mm/core_mmu.c:2147 <check_pa_matches_va> E/TC:0 0 TEE load address @ 0xa34000 E/TC:0 0 Call stack: E/TC:0 0 0x00a3a901
Reviewed-by: Etienne Carriere <etienne.carriere@linaro.org> Acked-by: Jerome Forissier <jerome@forissier.org> Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| a7474d1d | 01-Nov-2021 |
Ricardo Salveti <ricardo@foundries.io> |
plat: zynqmp: register ddr for dyn shm support
Register DDR based on the DRAM base and size definitions from platform_config.h for supporting dynamic shared memory usage.
Acked-by: Jens Wiklander <
plat: zynqmp: register ddr for dyn shm support
Register DDR based on the DRAM base and size definitions from platform_config.h for supporting dynamic shared memory usage.
Acked-by: Jens Wiklander <jens.wiklander@linaro.org> Signed-off-by: Ricardo Salveti <ricardo@foundries.io>
show more ...
|
| 8bddeb85 | 22-Oct-2021 |
Jorge Ramirez-Ortiz <jorge@foundries.io> |
drivers: crypto: rsa/ecc/dsa: input parameter validation
To comply with the PKCS#11 convention for functions returning output in a variable-length buffer, prefer to check the required size of the ou
drivers: crypto: rsa/ecc/dsa: input parameter validation
To comply with the PKCS#11 convention for functions returning output in a variable-length buffer, prefer to check the required size of the output buffer before the existence of the output buffer itself.
This will save callers from having to allocate a buffer that might not be used.
Signed-off-by: Jorge Ramirez-Ortiz <jorge@foundries.io> Acked-by: Etienne Carriere <etienne.carriere@linaro.org> Reviewed-by: Etienne Carriere <etienne.carriere@linaro.org> Acked-by: Clement Faure <clement.faure@nxp.com> Acked-by: Cedric Neveux <cedric.neveux@nxp.com>
show more ...
|
| ced0ec63 | 15-Sep-2021 |
Etienne Carriere <etienne.carriere@linaro.org> |
drivers: clk: rename setup callback to probe
Rename clock core and fixed_clk setup functions to probe functions and update in-line description as per handler description in the framework.
Acked-by:
drivers: clk: rename setup callback to probe
Rename clock core and fixed_clk setup functions to probe functions and update in-line description as per handler description in the framework.
Acked-by: Jerome Forissier <jerome@forissier.org> Signed-off-by: Etienne Carriere <etienne.carriere@linaro.org>
show more ...
|
| 6e4e7a23 | 27-Oct-2021 |
Etienne Carriere <etienne.carriere@linaro.org> |
drivers: clk: rename clk_dt_get_fn to clk_dt_get_func
Rename type clk_dt_get_fn to clk_dt_get_func for consistency in OP-TEE OS implementation where all other function prototype type definitions use
drivers: clk: rename clk_dt_get_fn to clk_dt_get_func
Rename type clk_dt_get_fn to clk_dt_get_func for consistency in OP-TEE OS implementation where all other function prototype type definitions use _func as suffix.
Acked-by: Jerome Forissier <jerome@forissier.org> Signed-off-by: Etienne Carriere <etienne.carriere@linaro.org>
show more ...
|
| cd61ab7e | 30-Aug-2021 |
Jens Wiklander <jens.wiklander@linaro.org> |
core: pta/bcm/elog: add missing buffer size check
Adds a missing buffer size check in pta_elog_load_nitro_fw(). This prevents writing beyond the memory range reserved for the nitro firmware.
Fixes:
core: pta/bcm/elog: add missing buffer size check
Adds a missing buffer size check in pta_elog_load_nitro_fw(). This prevents writing beyond the memory range reserved for the nitro firmware.
Fixes: e605fbdfd7a0 ("pta: bcm: Add PTA to handle Broadcom error logs") Acked-by: Ruchika Gupta <ruchika.gupta@linaro.org> Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| 6c9ed842 | 19-Sep-2021 |
Etienne Carriere <etienne.carriere@linaro.org> |
drivers: clk: implement clk_is_enabled()
Add clock API function clk_is_enabled(). It is not very useful at runtime since clock state can change at any time. The API function is useful during specifi
drivers: clk: implement clk_is_enabled()
Add clock API function clk_is_enabled(). It is not very useful at runtime since clock state can change at any time. The API function is useful during specific system sequences where OP-TEE core knows is executes atomically (primary core boot, low power sequences).
Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org> Signed-off-by: Etienne Carriere <etienne.carriere@linaro.org>
show more ...
|
| 7e6a39fe | 03-Sep-2021 |
Etienne Carriere <etienne.carriere@linaro.org> |
drivers: clk: add platform data per compatible identifier
Add a platform data reference field in struct dt_device_match so that a driver knows data related to the compatible it is probed for.
Signe
drivers: clk: add platform data per compatible identifier
Add a platform data reference field in struct dt_device_match so that a driver knows data related to the compatible it is probed for.
Signed-off-by: Etienne Carriere <etienne.carriere@linaro.org> Acked-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| 44fb0810 | 04-Jun-2021 |
Clément Léger <clement.leger@bootlin.com> |
plat-sam: enable CFG_GENERATE_DTB_OVERLAY by default
Since at91bootstrap load u-boot without device-tree, the only way to pass information to U-Boot is to use a DTB overlay. This overlay is then mer
plat-sam: enable CFG_GENERATE_DTB_OVERLAY by default
Since at91bootstrap load u-boot without device-tree, the only way to pass information to U-Boot is to use a DTB overlay. This overlay is then merged by U-Boot into the Linux dtb.
Acked-by: Etienne Carriere <etienne.carriere@linaro.org> Signed-off-by: Clément Léger <clement.leger@bootlin.com>
show more ...
|
| 86a368ea | 12-Oct-2021 |
Clément Léger <clement.leger@bootlin.com> |
plat-sam: remove unused CFG_DRAM_SIZE config option
This define was used in an older version but not anymore.
Acked-by: Etienne Carriere <etienne.carriere@linaro.org> Signed-off-by: Clément Léger <
plat-sam: remove unused CFG_DRAM_SIZE config option
This define was used in an older version but not anymore.
Acked-by: Etienne Carriere <etienne.carriere@linaro.org> Signed-off-by: Clément Léger <clement.leger@bootlin.com>
show more ...
|
| 68804933 | 05-Aug-2021 |
Clément Léger <clement.leger@bootlin.com> |
plat-sam: allow using sama5d2_xplained instead of sama5d2xult
sama5d2_xplained is used in various software (U-Boot, Linux, etc). Allow using it and deprecate sama5d2xult.
Acked-by: Etienne Carriere
plat-sam: allow using sama5d2_xplained instead of sama5d2xult
sama5d2_xplained is used in various software (U-Boot, Linux, etc). Allow using it and deprecate sama5d2xult.
Acked-by: Etienne Carriere <etienne.carriere@linaro.org> Signed-off-by: Clément Léger <clement.leger@bootlin.com>
show more ...
|
| c3ad6785 | 02-Jul-2021 |
Clément Léger <clement.leger@bootlin.com> |
plat-sam: add sama5d27-som1-ek board support and change default platform
sama5d2 xplained board is going to be deprecated. Switch to a board that is going to be supported for a longer period, sama5d
plat-sam: add sama5d27-som1-ek board support and change default platform
sama5d2 xplained board is going to be deprecated. Switch to a board that is going to be supported for a longer period, sama5d27_som1_ek.
Acked-by: Etienne Carriere <etienne.carriere@linaro.org> Signed-off-by: Clément Léger <clement.leger@bootlin.com>
show more ...
|
| 0a144f2d | 04-Jun-2021 |
Clément Léger <clement.leger@bootlin.com> |
plat-sam: add support to build embedded dtb
Acked-by: Etienne Carriere <etienne.carriere@linaro.org> Signed-off-by: Clément Léger <clement.leger@bootlin.com> |
| 7de7aa58 | 16-Sep-2021 |
Clément Léger <clement.leger@bootlin.com> |
dts: at91: add device tree for sama5d27_som1_ek board
Since this board is newer and is going to be supported for a longer period than the sama5d2_xplained.
Acked-by: Nicolas Ferre <nicolas.ferre@mi
dts: at91: add device tree for sama5d27_som1_ek board
Since this board is newer and is going to be supported for a longer period than the sama5d2_xplained.
Acked-by: Nicolas Ferre <nicolas.ferre@microchip.com> Acked-by: Etienne Carriere <etienne.carriere@linaro.org> Signed-off-by: Clément Léger <clement.leger@bootlin.com>
show more ...
|
| dd7e1845 | 16-Sep-2021 |
Clément Léger <clement.leger@bootlin.com> |
dts: at91: add device trees for sama5d2_xplained
Import device-tree from linux for sama5d2 and relicense them with dual GPL/BSD 3-Clause
Acked-by: Etienne Carriere <etienne.carriere@linaro.org> Ack
dts: at91: add device trees for sama5d2_xplained
Import device-tree from linux for sama5d2 and relicense them with dual GPL/BSD 3-Clause
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 ...
|
| 804e32d7 | 14-Jun-2021 |
Clément Léger <clement.leger@bootlin.com> |
drivers: clk: add fixed-clock driver
fixed-clock are a really common clock types used in device tree and when there is a clock hierarchy, they are needed to query the clock rate. This driver is buil
drivers: clk: add fixed-clock driver
fixed-clock are a really common clock types used in device tree and when there is a clock hierarchy, they are needed to query the clock rate. This driver is build by default when CFG_DRIVERS_CLK_DT is enabled.
Reviewed-by: Etienne Carriere <etienne.carriere@linaro.org> Signed-off-by: Clément Léger <clement.leger@bootlin.com>
show more ...
|
| dbe94a85 | 25-Jun-2021 |
Clément Léger <clement.leger@bootlin.com> |
drivers: clk: add devicetree support
When using a devicetree, it is often useful to have clocks parsing. This support adds clocks properties parsing and allow having clock providers and users. Clock
drivers: clk: add devicetree support
When using a devicetree, it is often useful to have clocks parsing. This support adds clocks properties parsing and allow having clock providers and users. Clocks drivers can also be declared with CLK_DT_DECLARE. They will be probed automatically by the clock core. On the user side, function clk_dt_get_by_name and clk_dt_get_by_idx allows to retrieve a clock from the device tree description and match it with the provider clocks. The core ensure the clocks are probed hierarchically. This support is enabled using CFG_DRIVERS_CLK_DT.
Reviewed-by: Etienne Carriere <etienne.carriere@linaro.org> Signed-off-by: Clément Léger <clement.leger@bootlin.com>
show more ...
|
| 2305544b | 10-Jun-2021 |
Clément Léger <clement.leger@bootlin.com> |
drivers: clk: add generic clock framework
In order to ease clock support in OP-TEE, add a generic clock framework which allows to add clocks driver and handle clock hierarchy. This clock framework p
drivers: clk: add generic clock framework
In order to ease clock support in OP-TEE, add a generic clock framework which allows to add clocks driver and handle clock hierarchy. This clock framework provides various functions to enable/disable clock and to get their rate. Some basic behavior are supported such as gating when parent or rate is set. This option is enabled using CFG_DRIVERS_CLK which is disabled by default.
Reviewed-by: Etienne Carriere <etienne.carriere@linaro.org> Signed-off-by: Clément Léger <clement.leger@bootlin.com>
show more ...
|
| 5e588771 | 10-Jun-2021 |
Clément Léger <clement.leger@bootlin.com> |
drivers: add type field to dt_driver struct
In order to keep the current mechanism simple but allow parsing the device tree by iterating on driver (clocks for instance), add a type field to dt drive
drivers: add type field to dt_driver struct
In order to keep the current mechanism simple but allow parsing the device tree by iterating on driver (clocks for instance), add a type field to dt driver struct which will allow differentiating drivers when iterating on entries and thus avoid casting struct dt_driver::driver to the wrong type in case a bad DT is provided. This will also allow adding a more generic driver model by probing generic driver based on their compatible.
Reviewed-by: Etienne Carriere <etienne.carriere@linaro.org> Reviewed-by: Jerome Forissier <jerome@forissier.org> Signed-off-by: Clément Léger <clement.leger@bootlin.com>
show more ...
|
| 60d883c8 | 20-Oct-2021 |
Jens Wiklander <jens.wiklander@linaro.org> |
core: clarify internal_offset in mobj_ffa_get_by_cookie()
Adds a comment in mobj_ffa_get_by_cookie() clarifying how internal_offset and the page_offset kept in a struct mobj_ffa relates.
Acked-by:
core: clarify internal_offset in mobj_ffa_get_by_cookie()
Adds a comment in mobj_ffa_get_by_cookie() clarifying how internal_offset and the page_offset kept in a struct mobj_ffa relates.
Acked-by: Etienne Carriere <etienne.carriere@linaro.org> Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| 2ac13956 | 20-Oct-2021 |
Jens Wiklander <jens.wiklander@linaro.org> |
core: use READ_ONCE() in thread_rpc_alloc()
Uses the READ_ONCE() macro in thread_rpc_alloc() when reading fields from non-secure shared memory to make sure that they are read only once.
Acked-by: E
core: use READ_ONCE() in thread_rpc_alloc()
Uses the READ_ONCE() macro in thread_rpc_alloc() when reading fields from non-secure shared memory to make sure that they are read only once.
Acked-by: Etienne Carriere <etienne.carriere@linaro.org> Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| 6d8430f9 | 27-Sep-2021 |
Usama Arif <usama.arif@arm.com> |
plat-totalcompute: add support for higher DRAM
The new 6GB DRAM bank starts at 0x8080000000.
Signed-off-by: Usama Arif <usama.arif@arm.com> Acked-by: Jens Wiklander <jens.wiklander@linaro.org> |
| a9a8e483 | 29-Sep-2021 |
Davidson K <davidson.kumaresan@arm.com> |
plat-totalcompute: Update SP manifest as per latest SPMC changes
Update UUID to little endian: The Hafnium SPMC expects a little endian representation of the UUID as an array of four integers in the
plat-totalcompute: Update SP manifest as per latest SPMC changes
Update UUID to little endian: The Hafnium SPMC expects a little endian representation of the UUID as an array of four integers in the SP manifest.
Update messaging-method: Fix the SP manifest to align with messaging method field changes introduced in hafnium repository with commit "fix(ff-a): use messaging info from the manifest"
Signed-off-by: Davidson K <davidson.kumaresan@arm.com> Acked-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|