[PATCH 0/3] Corstone-1000: enable platform specific configs

2023-10-26 Thread abdellatif . elkhlifi
From: Abdellatif El Khlifi This patchset enables configs needed by the Corstone-1000 platform. The enabled configs allow the following: - unzip the kernel before executing it (the kernel has become too large to fit in the available storage) - enable distro_bootcmd (needed to boot distros fro

[PATCH 2/3] corstone1000: enable distro booting command

2023-10-26 Thread abdellatif . elkhlifi
From: Abdellatif El Khlifi enable distro_bootcmd Signed-off-by: Abdellatif El Khlifi Signed-off-by: Rui Miguel Silva --- include/configs/corstone1000.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/configs/corstone1000.h b/include/configs/corstone1000.h index 3

[PATCH 1/3] corstone1000: add compressed kernel support

2023-10-26 Thread abdellatif . elkhlifi
From: Abdellatif El Khlifi unzip the kernel before executing it The Corstone-1000 kernel has become too large to fit in the available storage. Switching to a compressed kernel avoids the problem, but requires uncompressing it. Changes made are generated using savedefconfig. Signed-off-by: Abd

[PATCH 3/3] corstone1000: enable PSCI reset

2023-10-26 Thread abdellatif . elkhlifi
From: Emekcan Aras enable PSCI reset used for the system reset Even though Corstone-1000 does not implement the entire PSCI APIs, it relies on PSCI reset interface for the system reset. Signed-off-by: Emekcan Aras Signed-off-by: Abdellatif El Khlifi --- configs/corstone1000_defconfig | 2 +-

[PATCH] corstone1000: update maintainers

2023-08-11 Thread abdellatif . elkhlifi
From: Abdellatif El Khlifi Update MAINTAINERS of corstone1000 board. Signed-off-by: Xueliang Zhong Signed-off-by: Abdellatif El Khlifi --- board/armltd/corstone1000/MAINTAINERS | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/board/armltd/corstone1000/MAINTAINERS b/boa

[PATCH v1 2/6] sandbox64: fix: return unsigned long in readq()

2023-01-16 Thread abdellatif . elkhlifi
From: Abdellatif El Khlifi make readq return unsigned long readq should return 64-bit data Signed-off-by: Abdellatif El Khlifi --- arch/sandbox/cpu/cpu.c| 2 +- arch/sandbox/include/asm/io.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/sandbox/cpu/cpu.c

[PATCH v1 0/6] introduce NVM XIP block storage emulation

2023-01-16 Thread abdellatif . elkhlifi
From: Abdellatif El Khlifi Adding block storage emulation for NVM XIP flash devices. Some paltforms such as Corstone-1000 need to see NVM XIP raw flash as a block storage device with read only capability. Here NVM flash devices are devices with addressable memory (e.g: QSPI NOR flash). The NVM

[PATCH v1 5/6] corstone1000: enable NVM XIP QSPI flash

2023-01-16 Thread abdellatif . elkhlifi
From: Abdellatif El Khlifi add the QSPI flash device with block storage capability Signed-off-by: Abdellatif El Khlifi --- configs/corstone1000_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/corstone1000_defconfig b/configs/corstone1000_defconfig index dddfa27507..815355

[PATCH v1 3/6] sandbox64: add support for NVMXIP QSPI

2023-01-16 Thread abdellatif . elkhlifi
From: Abdellatif El Khlifi enable NVMXIP QSPI for sandbox 64-bit Adding two NVM XIP QSPI storage devices. Signed-off-by: Abdellatif El Khlifi --- arch/sandbox/dts/sandbox64.dts | 13 + arch/sandbox/dts/test.dts | 14 ++ configs/sandbox64_defconfig| 1 + drive

[PATCH v1 4/6] corstone1000: add NVM XIP QSPI device tree node

2023-01-16 Thread abdellatif . elkhlifi
From: Abdellatif El Khlifi add QSPI flash device node for block storage access Signed-off-by: Abdellatif El Khlifi --- arch/arm/dts/corstone1000.dtsi | 9 - 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/arch/arm/dts/corstone1000.dtsi b/arch/arm/dts/corstone1000.dtsi inde

[PATCH v1 6/6] sandbox64: add a test case for UCLASS_NVMXIP

2023-01-16 Thread abdellatif . elkhlifi
From: Abdellatif El Khlifi provide a test for NVM XIP devices The test case allows to make sure of the following: - The NVM XIP QSPI devices are probed - The DT entries are read correctly - the data read from the flash by the NVMXIP block driver is correct Signed-off-by: Abdellatif El Khlifi

[PATCH v1 1/6] drivers/nvmxip: introduce NVM XIP block storage emulation

2023-01-16 Thread abdellatif . elkhlifi
From: Abdellatif El Khlifi add block storage emulation for NVM XIP flash devices Some paltforms such as Corstone-1000 need to see NVM XIP raw flash as a block storage device with read only capability. Here NVM flash devices are devices with addressable memory (e.g: QSPI NOR flash). The impleme

[PATCH v2 0/6] introduce Arm FF-A support

2022-04-15 Thread abdellatif . elkhlifi
From: Abdellatif El Khlifi This patchset adds support for Arm FF-A (Arm Firmware Framework for Armv8-A v1.0). FF-A support is generic by design and can be used by any Arm platform. The features added are as follows: 1/ FF-A bus driver 2/ armffa command 3/ FF-A Sandbox driver 4/ FF-A Sandb

[PATCH v2 1/6] arm_ffa: introduce Arm FF-A low-level driver

2022-04-15 Thread abdellatif . elkhlifi
From: Abdellatif El Khlifi Add the driver implementing Arm Firmware Framework for Armv8-A v1.0 The Firmware Framework for Arm A-profile processors (FF-A) describes interfaces (ABIs) that standardize communication between the Secure World and Normal World leveraging TrustZone technology. This dri

[PATCH v2 2/6] arm_ffa: introduce armffa command

2022-04-15 Thread abdellatif . elkhlifi
From: Abdellatif El Khlifi Provide armffa command showcasing the use of the FF-A driver The armffa command allows to query secure partitions data from the secure world and exchanging messages with the partitions. Signed-off-by: Abdellatif El Khlifi --- MAINTAINERS | 1 + cmd/Kco

[PATCH v2 3/6] arm_ffa: introduce the FF-A Sandbox driver

2022-04-15 Thread abdellatif . elkhlifi
From: Abdellatif El Khlifi Provide a Sandbox driver to emulate the FF-A ABIs The emulated ABIs are those supported by the FF-A core driver and according to FF-A specification v1.0. The Sandbox driver provides operations allowing the test application to read the status of all the inspected ABIs

[PATCH v2 4/6] arm_ffa: introduce Sandbox test cases for UCLASS_FFA

2022-04-15 Thread abdellatif . elkhlifi
From: Abdellatif El Khlifi Add functional test cases for the FF-A core driver These tests rely on the FF-A Sandbox driver which helps in inspecting the FF-A core driver. Signed-off-by: Abdellatif El Khlifi --- MAINTAINERS | 2 + test/dm/Makefile | 1 + test/dm/ffa.c| 418 +++

[PATCH v2 5/6] arm_ffa: introduce armffa command Sandbox test

2022-04-15 Thread abdellatif . elkhlifi
From: Abdellatif El Khlifi Add Sandbox test for the armffa command Signed-off-by: Abdellatif El Khlifi --- MAINTAINERS | 2 ++ test/cmd/Makefile | 1 + test/cmd/armffa.c | 33 + test/cmd/armffa.h | 13 + 4 files changed, 49 insertions(+) cre

[PATCH v2 6/6] arm_ffa: introduce FF-A MM communication

2022-04-15 Thread abdellatif . elkhlifi
From: Abdellatif El Khlifi Add MM communication support using FF-A transport FF-A MM communication allows exchanging data with StandAlonneMM or smm-gateway secure partitions which run in OP-TEE. An MM shared buffer and a door bell event are used to exchange this data. The data is used by EFI s

[PATCH 0/6] introduce Arm FF-A support

2022-03-29 Thread abdellatif . elkhlifi
From: Abdellatif El Khlifi This patchset adds support for Arm FF-A (Arm Firmware Framework for Armv8-A v1.0). FF-A support is generic by design and can be used by any Arm platform. The features added are as follows: 1/ FF-A device driver 2/ armffa command 3/ FF-A Sandbox driver 4/ FF-A Sa

[PATCH 2/6] arm_ffa: introduce armffa command

2022-03-29 Thread abdellatif . elkhlifi
From: Abdellatif El Khlifi Provide armffa command showcasing the use of the FF-A driver The armffa command allows to query secure partitions data from the secure world and exchanging messages with the partitions. Signed-off-by: Abdellatif El Khlifi Cc: Tom Rini --- MAINTAINERS |

[PATCH 5/6] arm_ffa: introduce armffa command Sandbox test

2022-03-29 Thread abdellatif . elkhlifi
From: Abdellatif El Khlifi Add Sandbox test for the armffa command Signed-off-by: Abdellatif El Khlifi Cc: Tom Rini --- MAINTAINERS | 2 ++ test/cmd/Makefile | 1 + test/cmd/armffa.c | 33 + test/cmd/armffa.h | 13 + 4 files changed, 49 inse

[PATCH 4/6] arm_ffa: introduce Sandbox test cases for UCLASS_FFA

2022-03-29 Thread abdellatif . elkhlifi
From: Abdellatif El Khlifi Add functional test cases for the FF-A core driver These tests rely on the FF-A Sandbox driver which helps in inspecting the FF-A core driver. Signed-off-by: Abdellatif El Khlifi Cc: Tom Rini --- MAINTAINERS | 2 + test/dm/Makefile | 1 + test/dm/ffa.c

[PATCH 1/6] arm_ffa: introduce Arm FF-A low-level driver

2022-03-29 Thread abdellatif . elkhlifi
From: Abdellatif El Khlifi Add the driver implementing Arm Firmware Framework for Armv8-A v1.0 The Firmware Framework for Arm A-profile processors (FF-A) describes interfaces (ABIs) that standardize communication between the Secure World and Normal World leveraging TrustZone technology. This dri

[PATCH 6/6] arm_ffa: introduce FF-A MM communication

2022-03-29 Thread abdellatif . elkhlifi
From: Abdellatif El Khlifi Add MM communication support using FF-A transport FF-A MM communication allows exchanging data with StandAlonneMM or smm-gateway secure partitions which run in OP-TEE. An MM shared buffer and a door bell event are used to exchange this data. The data is used by EFI s

[PATCH 3/6] arm_ffa: introduce the FF-A Sandbox driver

2022-03-29 Thread abdellatif . elkhlifi
From: Abdellatif El Khlifi Provide a Sandbox driver to emulate the FF-A ABIs The emulated ABIs are those supported by the FF-A core driver and according to FF-A specification v1.0. The Sandbox driver provides operations allowing the test application to read the status of all the inspected ABIs

[PATCH 3/8] arm_ffa: Add FFA_MEM_RECLAIM support

2024-11-01 Thread abdellatif . elkhlifi
From: Abdellatif El Khlifi Add to the FF-A bus FFA_MEM_RECLAIM ABI The FFA_MEM_RECLAIM is a memory management ABI described in the FF-A v1.0 specification [1]. This ABI restores exclusive access to a memory region back to its Owner. This work is based on the implementation in Linux [2]. [1]:

[PATCH 6/8] arm_ffa: sandbox: Add FFA_MEM_SHARE tests

2024-11-01 Thread abdellatif . elkhlifi
From: Abdellatif El Khlifi Add positive and negative test cases Signed-off-by: Abdellatif El Khlifi --- test/dm/ffa.c | 46 +- 1 file changed, 45 insertions(+), 1 deletion(-) diff --git a/test/dm/ffa.c b/test/dm/ffa.c index 593b7177fce..4fd21ac3d72

[PATCH 8/8] arm_ffa: sandbox: Add FFA_MEM_RECLAIM tests

2024-11-01 Thread abdellatif . elkhlifi
From: Abdellatif El Khlifi Add FFA_MEM_RECLAIM positive and negative test cases Signed-off-by: Abdellatif El Khlifi --- test/dm/ffa.c | 27 +++ 1 file changed, 27 insertions(+) diff --git a/test/dm/ffa.c b/test/dm/ffa.c index 4fd21ac3d72..c481964c758 100644 --- a/test/

[PATCH 5/8] arm_ffa: sandbox: Add FFA_MEM_SHARE emulation

2024-11-01 Thread abdellatif . elkhlifi
From: Abdellatif El Khlifi Add FFA_MEM_SHARE support to the FF-A emulator Signed-off-by: Abdellatif El Khlifi --- .../include/asm/sandbox_arm_ffa_priv.h| 5 ++- drivers/firmware/arm-ffa/ffa-emul-uclass.c| 44 +++ drivers/firmware/arm-ffa/sandbox_ffa.c| 3 +

[PATCH 2/8] arm_ffa: Add FFA_MEM_SHARE support

2024-11-01 Thread abdellatif . elkhlifi
From: Abdellatif El Khlifi Add to the FF-A bus FFA_MEM_SHARE ABI The FFA_MEM_SHARE is a memory management ABI described in the FF-A v1.0 specification [1]. This ABI starts a transaction to grant access to a memory region to one or more Borrowers (aka Secure Partitions or endpoints). This work

[PATCH 4/8] arm_ffa: sandbox: Replace the emulator error log with debug log

2024-11-01 Thread abdellatif . elkhlifi
From: Abdellatif El Khlifi Set the log to a debug log and reformulate the message The message is about showing what the emulated FF-A ABI decided based on the user arguments. The log is just for information purposes and helpful when debugging. Signed-off-by: Abdellatif El Khlifi --- drivers/f

[PATCH 0/8] arm_ffa: Add FFA_MEM_SHARE and FFA_MEM_RECLAIM support

2024-11-01 Thread abdellatif . elkhlifi
From: Abdellatif El Khlifi Add to the FF-A bus FFA_MEM_SHARE and FFA_MEM_RECLAIM ABIs. These FF-A ABIs are for memory management. They are used for sharing memory between U-Boot and secure world. FFA_MEM_SHARE starts a transaction to grant access to a memory region to one or more Borrowers (aka

[PATCH 1/8] arm_ffa: Add NULL pointer check to the driver operations

2024-11-01 Thread abdellatif . elkhlifi
From: Abdellatif El Khlifi Add NULL pointer check for ops Signed-off-by: Abdellatif El Khlifi --- drivers/firmware/arm-ffa/arm-ffa-uclass.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/firmware/arm-ffa/arm-ffa-uclass.c b/drivers/firmware/arm-ffa/arm-ffa-

[PATCH 7/8] arm_ffa: sandbox: Add FFA_MEM_RECLAIM emulation

2024-11-01 Thread abdellatif . elkhlifi
From: Abdellatif El Khlifi Add FFA_MEM_RECLAIM support to the FF-A emulator Signed-off-by: Abdellatif El Khlifi --- drivers/firmware/arm-ffa/ffa-emul-uclass.c | 43 ++ drivers/firmware/arm-ffa/sandbox_ffa.c | 1 + 2 files changed, 44 insertions(+) diff --git a/drivers