[PATCH v9 00/10] introduce Arm FF-A support

2023-03-10 Thread Abdellatif El Khlifi
lass Cc: Rob Herring Cc: Ilias Apalodimas Cc: Jens Wiklander Cc: Achin Gupta Cc: Drew Reed Cc: Xueliang Zhong Abdellatif El Khlifi (10): arm64: smccc: add support for SMCCCv1.2 x0-x17 registers lib: uuid: introduce uuid_str_to_le_bin function lib: uuid: introduce testcase for uuid_str_t

[PATCH v9 01/10] arm64: smccc: add support for SMCCCv1.2 x0-x17 registers

2023-03-10 Thread Abdellatif El Khlifi
://documentation-service.arm.com/static/5f8edaeff86e16515cdbe4c6?token= Signed-off-by: Abdellatif El Khlifi Reviewed-by: Jens Wiklander Cc: Tom Rini Cc: Simon Glass Cc: Ilias Apalodimas --- Changelog: === v9: * update the copyright string v7: * improve indentation of

[PATCH v9 02/10] lib: uuid: introduce uuid_str_to_le_bin function

2023-03-10 Thread Abdellatif El Khlifi
convert UUID string to little endian binary data Signed-off-by: Abdellatif El Khlifi Cc: Tom Rini Cc: Simon Glass Cc: Ilias Apalodimas Cc: Jens Wiklander --- Changelog: === v9: * add a full function prototype description in uuid.h v8: * use simple_strtoull() in

[PATCH v9 03/10] lib: uuid: introduce testcase for uuid_str_to_le_bin

2023-03-10 Thread Abdellatif El Khlifi
provide a test case Signed-off-by: Abdellatif El Khlifi Cc: Simon Glass --- MAINTAINERS | 5 + test/lib/Makefile | 1 + test/lib/uuid.c | 44 3 files changed, 50 insertions(+) create mode 100644 test/lib/uuid.c diff --git a

[PATCH v9 05/10] arm_ffa: introduce armffa command

2023-03-10 Thread Abdellatif El Khlifi
information and ping these partitions. The command is also helpful in testing the communication with secure partitions. For more details please refer to the command documentation [1]. [1]: doc/usage/cmd/armffa.rst Signed-off-by: Abdellatif El Khlifi Cc: Tom Rini Cc: Simon Glass Cc: Ilias

[PATCH v9 06/10] arm_ffa: introduce the FF-A Sandbox driver

2023-03-10 Thread Abdellatif El Khlifi
based on that. sandbox driver supports only 64-bit direct messaging. Signed-off-by: Abdellatif El Khlifi Cc: Tom Rini Cc: Simon Glass Cc: Ilias Apalodimas Cc: Jens Wiklander --- Changelog: === v9: align FF-A sandbox driver with FF-A discovery through DM v8: update

[PATCH v9 07/10] arm_ffa: introduce Sandbox test cases for UCLASS_FFA

2023-03-10 Thread 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 Cc: Simon Glass Cc: Ilias Apalodimas Cc: Jens Wiklander --- Changelog: === v9: align

[PATCH v9 04/10] arm_ffa: introduce Arm FF-A low-level driver

2023-03-10 Thread Abdellatif El Khlifi
driver documentation [2]. [1]: https://developer.arm.com/documentation/den0077/latest/ [2]: doc/arch/arm64.ffa.rst Signed-off-by: Abdellatif El Khlifi Cc: Tom Rini Cc: Simon Glass Cc: Ilias Apalodimas Cc: Jens Wiklander --- Changelog: === v9: * integrate the FF-A bus discovery

[PATCH v9 08/10] arm_ffa: introduce armffa command Sandbox test

2023-03-10 Thread Abdellatif El Khlifi
Add Sandbox test for the armffa command Signed-off-by: Abdellatif El Khlifi Cc: Tom Rini Cc: Simon Glass Cc: Ilias Apalodimas Cc: Jens Wiklander --- Changelog: === v9: align the test with FF-A discovery through DM v4: drop use of helper APIs v1: introduce armffa command

[PATCH v9 10/10] arm_ffa: efi: corstone1000: enable MM communication

2023-03-10 Thread Abdellatif El Khlifi
turn on EFI MM communication On corstone1000 platform MM communication between u-boot and the secure world (Optee) is done using the FF-A bus. Signed-off-by: Abdellatif El Khlifi Cc: Tom Rini Cc: Simon Glass Cc: Ilias Apalodimas Cc: Jens Wiklander --- Changelog: === v9: update

[PATCH v9 09/10] arm_ffa: efi: introduce FF-A MM communication

2023-03-10 Thread Abdellatif El Khlifi
read the data and updates the MM shared buffer with the response data. The response data is copied back to the communication buffer and consumed by the EFI subsystem. MM communication protocol supports FF-A 64-bit direct messaging. Signed-off-by: Abdellatif El Khlifi Signed-off-by: Gowtham Suresh

Re: [PATCH v9 06/10] arm_ffa: introduce the FF-A Sandbox driver

2023-03-14 Thread Abdellatif El Khlifi
On Fri, Mar 10, 2023 at 12:49:57PM -0800, Simon Glass wrote: > Hi Abdellatif, > > On Fri, 10 Mar 2023 at 06:10, Abdellatif El Khlifi > wrote: > > > > Provide a Sandbox driver to emulate the FF-A ABIs > > > > The emulated ABIs are those supported by the FF-A c

Re: [PATCH v9 09/10] arm_ffa: efi: introduce FF-A MM communication

2023-03-14 Thread Abdellatif El Khlifi
On Fri, Mar 10, 2023 at 12:50:01PM -0800, Simon Glass wrote: Hi Simon, > Hi Abdellatif, > > On Fri, 10 Mar 2023 at 06:11, Abdellatif El Khlifi > wrote: > > > > Add MM communication support using FF-A transport > > > > This feature allows accessing MM pa

Re: [PATCH v9 06/10] arm_ffa: introduce the FF-A Sandbox driver

2023-03-14 Thread Abdellatif El Khlifi
Hi Simon, > Hi Abdellatif, > > On Fri, 10 Mar 2023 at 06:10, Abdellatif El Khlifi > wrote: > > > > 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 spec

Re: [PATCH v13 04/10] arm_ffa: introduce Arm FF-A support

2023-07-03 Thread Abdellatif El Khlifi
Hi Simon, On Sun, Jul 02, 2023 at 04:44:41PM +0100, Simon Glass wrote: > Hi Abdellatif, > ... > > > > Changelog: > > > > === > > > > > > > > v13: > > > > > > > > * doc minor change: specify in the readme that the user > > > >should call ffa_rxtx_unmap() driver operation to unmap >

Re: [PATCH v13 01/10] arm64: smccc: add support for SMCCCv1.2 x0-x17 registers

2023-07-03 Thread Abdellatif El Khlifi
Hi Ilias, On Tue, Jun 20, 2023 at 05:05:52PM +0300, Ilias Apalodimas wrote: > Hi Abdellatif, > > On Fri, 16 Jun 2023 at 18:28, Abdellatif El Khlifi > wrote: > > > > add support for x0-x17 registers used by the SMC calls > > > > In SMCCC v1.2 [1] argu

Re: [PATCH v13 05/10] arm_ffa: introduce armffa command

2023-07-03 Thread Abdellatif El Khlifi
Hi Ilias, On Tue, Jun 20, 2023 at 05:25:51PM +0300, Ilias Apalodimas wrote: > [...] > > +int do_ffa_ping(struct cmd_tbl *cmdtp, int flag, int argc, char *const > > argv[]) > > +{ > > + struct ffa_send_direct_data msg = { > > + .data0 = 0x, > > +

Re: [PATCH v13 05/10] arm_ffa: introduce armffa command

2023-07-03 Thread Abdellatif El Khlifi
Hi Ilias, On Mon, Jul 03, 2023 at 12:59:58PM +0300, Ilias Apalodimas wrote: > > > [...] > > > > +int do_ffa_ping(struct cmd_tbl *cmdtp, int flag, int argc, char *const > > > > argv[]) > > > > +{ > > > > + struct ffa_send_direct_data msg = { > > > > + .data0 = 0xaaa

Re: [PATCH v13 05/10] arm_ffa: introduce armffa command

2023-07-03 Thread Abdellatif El Khlifi
Hi Simon, Ilias, On Mon, Jul 03, 2023 at 02:30:51PM +0100, Simon Glass wrote: ... > > > > > > + log_info("device name %s, dev %p, driver name %s, ops %p\n", > > > > > > +dev->name, > > > > > > + (void *)map_to_sysmem(dev), > > > > > > +dev->drive

[PATCH v14 00/11] introduce Arm FF-A support

2023-07-07 Thread Abdellatif El Khlifi
Rini Cc: Simon Glass Cc: Rob Herring Cc: Ilias Apalodimas Cc: Jens Wiklander Cc: Achin Gupta Cc: Drew Reed Cc: Xueliang Zhong Abdellatif El Khlifi (11): arm64: smccc: add support for SMCCCv1.2 x0-x17 registers lib: uuid: introduce uuid_str_to_le_bin function lib: uuid: introd

[PATCH v14 01/11] arm64: smccc: add support for SMCCCv1.2 x0-x17 registers

2023-07-07 Thread Abdellatif El Khlifi
://documentation-service.arm.com/static/5f8edaeff86e16515cdbe4c6?token= Signed-off-by: Abdellatif El Khlifi Reviewed-by: Ilias Apalodimas Reviewed-by: Jens Wiklander Reviewed-by: Simon Glass Cc: Tom Rini --- Changelog: === v9: * update the copyright string v7: * improve indentation

[PATCH v14 02/11] lib: uuid: introduce uuid_str_to_le_bin function

2023-07-07 Thread Abdellatif El Khlifi
convert UUID string to little endian binary data Signed-off-by: Abdellatif El Khlifi Reviewed-by: Simon Glass Cc: Tom Rini Cc: Ilias Apalodimas Cc: Jens Wiklander --- Changelog: === v9: * add a full function prototype description in uuid.h v8: * use simple_strtoull() in

[PATCH v14 03/11] lib: uuid: introduce testcase for uuid_str_to_le_bin

2023-07-07 Thread Abdellatif El Khlifi
provide a test case Signed-off-by: Abdellatif El Khlifi Reviewed-by: Simon Glass Cc: Tom Rini --- Changelog: === v11: * use ut_asserteq_mem() MAINTAINERS | 5 + test/lib/Makefile | 1 + test/lib/uuid.c | 41 + 3 files

[PATCH v14 05/11] log: select physical address formatting in a generic way

2023-07-07 Thread Abdellatif El Khlifi
sets the log formatting according to the platform (64-bit vs 32-bit) Signed-off-by: Abdellatif El Khlifi Cc: Simon Glass --- include/log.h | 8 1 file changed, 8 insertions(+) diff --git a/include/log.h b/include/log.h index 3bab40b617..689cef905b 100644 --- a/include/log.h +++ b

[PATCH v14 04/11] arm_ffa: introduce Arm FF-A support

2023-07-07 Thread Abdellatif El Khlifi
implemented in the Uclass (arm-ffa-uclass.c). Arm specific methods are implemented in the Arm driver (arm-ffa.c). For more details please refer to the driver documentation [2]. [1]: https://developer.arm.com/documentation/den0077/latest/ [2]: doc/arch/arm64.ffa.rst Signed-off-by: Abdellatif El Khlifi

[PATCH v14 07/11] arm_ffa: introduce sandbox FF-A support

2023-07-07 Thread Abdellatif El Khlifi
The sandbox FF-A emulator supports only 64-bit direct messaging. Signed-off-by: Abdellatif El Khlifi Cc: Tom Rini Cc: Simon Glass Cc: Ilias Apalodimas Cc: Jens Wiklander Cc: Heinrich Schuchardt --- Changelog: === v12: * remove reparenting by making the emulator parent of the

[PATCH v14 06/11] arm_ffa: introduce armffa command

2023-07-07 Thread Abdellatif El Khlifi
these partitions. The command is also helpful in testing the communication with secure partitions. For more details please refer to the command documentation [1]. [1]: doc/usage/cmd/armffa.rst Signed-off-by: Abdellatif El Khlifi Reviewed-by: Simon Glass Cc: Tom Rini Cc: Ilias Apalodimas Cc

[PATCH v14 09/11] arm_ffa: introduce armffa command Sandbox test

2023-07-07 Thread Abdellatif El Khlifi
Add Sandbox test for the armffa command Signed-off-by: Abdellatif El Khlifi Reviewed-by: Simon Glass Cc: Tom Rini Cc: Ilias Apalodimas Cc: Jens Wiklander --- Changelog: === v12: * address nits v10: * replace CMD_RET_SUCCESS with 0 * replace CONFIG_SANDBOX_FFA with

[PATCH v14 08/11] arm_ffa: introduce sandbox test cases for UCLASS_FFA

2023-07-07 Thread Abdellatif El Khlifi
Add functional test cases for the FF-A support These tests rely on the FF-A sandbox emulator and FF-A sandbox driver which help in inspecting the FF-A communication. Signed-off-by: Abdellatif El Khlifi Reviewed-by: Simon Glass Cc: Tom Rini Cc: Ilias Apalodimas Cc: Jens Wiklander Cc

[PATCH v14 10/11] arm_ffa: efi: introduce FF-A MM communication

2023-07-07 Thread Abdellatif El Khlifi
read the data and updates the MM shared buffer with the response data. The response data is copied back to the communication buffer and consumed by the EFI subsystem. MM communication protocol supports FF-A 64-bit direct messaging. Signed-off-by: Abdellatif El Khlifi Tested-by: Gowtham Suresh Kumar

[PATCH v14 11/11] arm_ffa: efi: corstone1000: enable MM communication

2023-07-07 Thread Abdellatif El Khlifi
turn on EFI MM communication On corstone1000 platform MM communication between u-boot and the secure world (Optee) is done using the FF-A bus. Signed-off-by: Abdellatif El Khlifi Cc: Tom Rini Cc: Simon Glass Cc: Ilias Apalodimas Cc: Jens Wiklander --- Changelog: === v13

Re: [PATCH v14 05/11] log: select physical address formatting in a generic way

2023-07-10 Thread Abdellatif El Khlifi
Hi Simon, On Fri, Jul 07, 2023 at 06:34:14PM +0100, Simon Glass wrote: > Hi Abdellatif, > > On Fri, 7 Jul 2023 at 15:44, Abdellatif El Khlifi > wrote: > > > > sets the log formatting according to the platform (64-bit vs 32-bit) > > > > Signed-off-by: Abdel

Re: [PATCH v14 05/11] log: select physical address formatting in a generic way

2023-07-10 Thread Abdellatif El Khlifi
Hi Simon, On Mon, Jul 10, 2023 at 08:17:41AM -0600, Simon Glass wrote: > Hi Abdellatif, > > On Mon, 10 Jul 2023 at 06:15, Abdellatif El Khlifi > wrote: > > > > Hi Simon, > > > > On Fri, Jul 07, 2023 at 06:34:14PM +0100, Simon Glass wrote: > > > Hi

Re: [PATCH v14 11/11] arm_ffa: efi: corstone1000: enable MM communication

2023-07-10 Thread Abdellatif El Khlifi
Hi Simon, Tom, > > > > #include > > > > > > > > +#define FFA_SHARED_MM_BUFFER_SIZE SZ_4K /* 4 KB */ > > > > + > > > > +/* > > > > + * shared buffer physical address used for communication between > > > > + * u-boot and the MM SP > > > > + */ > > > > +#define FFA_SHARED_MM_BUFFER_ADDR 0

[PATCH v15 00/10] introduce Arm FF-A support

2023-07-13 Thread Abdellatif El Khlifi
ne model: ARM Corstone1000 FPGA MPS3 board ``` Cc: Tom Rini Cc: Simon Glass Cc: Rob Herring Cc: Ilias Apalodimas Cc: Jens Wiklander Cc: Achin Gupta Cc: Drew Reed Cc: Xueliang Zhong Abdellatif El Khlifi (10): arm64: smccc: add support for SMCCCv1.2 x0-x17 registers lib: uuid: in

[PATCH v15 02/10] lib: uuid: introduce uuid_str_to_le_bin function

2023-07-13 Thread Abdellatif El Khlifi
convert UUID string to little endian binary data Signed-off-by: Abdellatif El Khlifi Reviewed-by: Simon Glass Cc: Tom Rini Cc: Ilias Apalodimas Cc: Jens Wiklander --- Changelog: === v9: * add a full function prototype description in uuid.h v8: * use simple_strtoull() in

[PATCH v15 01/10] arm64: smccc: add support for SMCCCv1.2 x0-x17 registers

2023-07-13 Thread Abdellatif El Khlifi
://documentation-service.arm.com/static/5f8edaeff86e16515cdbe4c6?token= Signed-off-by: Abdellatif El Khlifi Reviewed-by: Ilias Apalodimas Reviewed-by: Jens Wiklander Reviewed-by: Simon Glass Cc: Tom Rini --- Changelog: === v9: * update the copyright string v7: * improve indentation

[PATCH v15 03/10] lib: uuid: introduce testcase for uuid_str_to_le_bin

2023-07-13 Thread Abdellatif El Khlifi
provide a test case Signed-off-by: Abdellatif El Khlifi Reviewed-by: Simon Glass Cc: Tom Rini --- Changelog: === v11: * use ut_asserteq_mem() MAINTAINERS | 5 + test/lib/Makefile | 1 + test/lib/uuid.c | 41 + 3 files

[PATCH v15 05/10] arm_ffa: introduce armffa command

2023-07-13 Thread Abdellatif El Khlifi
these partitions. The command is also helpful in testing the communication with secure partitions. For more details please refer to the command documentation [1]. [1]: doc/usage/cmd/armffa.rst Signed-off-by: Abdellatif El Khlifi Reviewed-by: Simon Glass Cc: Tom Rini Cc: Ilias Apalodimas Cc

[PATCH v15 04/10] arm_ffa: introduce Arm FF-A support

2023-07-13 Thread Abdellatif El Khlifi
implemented in the Uclass (arm-ffa-uclass.c). Arm specific methods are implemented in the Arm driver (arm-ffa.c). For more details please refer to the driver documentation [2]. [1]: https://developer.arm.com/documentation/den0077/latest/ [2]: doc/arch/arm64.ffa.rst Signed-off-by: Abdellatif El Khlifi

[PATCH v15 07/10] arm_ffa: introduce sandbox test cases for UCLASS_FFA

2023-07-13 Thread Abdellatif El Khlifi
Add functional test cases for the FF-A support These tests rely on the FF-A sandbox emulator and FF-A sandbox driver which help in inspecting the FF-A communication. Signed-off-by: Abdellatif El Khlifi Reviewed-by: Simon Glass Cc: Tom Rini Cc: Ilias Apalodimas Cc: Jens Wiklander Cc

[PATCH v15 06/10] arm_ffa: introduce sandbox FF-A support

2023-07-13 Thread Abdellatif El Khlifi
The sandbox FF-A emulator supports only 64-bit direct messaging. Signed-off-by: Abdellatif El Khlifi Reviewed-by: Simon Glass Cc: Tom Rini Cc: Ilias Apalodimas Cc: Jens Wiklander Cc: Heinrich Schuchardt --- Changelog: === v12: * remove reparenting by making the emulator parent o

[PATCH v15 08/10] arm_ffa: introduce armffa command Sandbox test

2023-07-13 Thread Abdellatif El Khlifi
Add Sandbox test for the armffa command Signed-off-by: Abdellatif El Khlifi Reviewed-by: Simon Glass Cc: Tom Rini Cc: Ilias Apalodimas Cc: Jens Wiklander --- Changelog: === v12: * address nits v10: * replace CMD_RET_SUCCESS with 0 * replace CONFIG_SANDBOX_FFA with

[PATCH v15 09/10] arm_ffa: efi: introduce FF-A MM communication

2023-07-13 Thread Abdellatif El Khlifi
read the data and updates the MM shared buffer with the response data. The response data is copied back to the communication buffer and consumed by the EFI subsystem. MM communication protocol supports FF-A 64-bit direct messaging. Signed-off-by: Abdellatif El Khlifi Tested-by: Gowtham Suresh Kumar

[PATCH v15 10/10] arm_ffa: efi: corstone1000: enable MM communication

2023-07-13 Thread Abdellatif El Khlifi
turn on EFI MM communication On corstone1000 platform MM communication between u-boot and the secure world (Optee) is done using the FF-A bus. Signed-off-by: Abdellatif El Khlifi Cc: Tom Rini Cc: Simon Glass Cc: Ilias Apalodimas Cc: Jens Wiklander --- Changelog: === v15

Re: [PATCH v15 00/10] introduce Arm FF-A support

2023-07-24 Thread Abdellatif El Khlifi
Hi Tom, Simon, On Thu, Jul 13, 2023 at 02:28:37PM +0100, Abdellatif El Khlifi wrote: > Adding support for Arm FF-A v1.0 (Arm Firmware Framework for Armv8-A) [A]. > > FF-A specifies interfaces that enable a pair of software execution > environments aka partitions to > communicate

Re: [PATCH v15 00/10] introduce Arm FF-A support

2023-07-25 Thread Abdellatif El Khlifi
Hi Tom, On Mon, Jul 24, 2023 at 07:50:07PM -0400, Tom Rini wrote: > On Thu, Jul 13, 2023 at 02:28:37PM +0100, Abdellatif El Khlifi wrote: > > Adding support for Arm FF-A v1.0 (Arm Firmware Framework for Armv8-A) [A]. > > > > FF-A specifies interfaces that enable a pair

Re: [PATCH v15 00/10] introduce Arm FF-A support

2023-07-25 Thread Abdellatif El Khlifi
Hi Tom, On Tue, Jul 25, 2023 at 09:47:24AM -0400, Tom Rini wrote: > On Tue, Jul 25, 2023 at 10:26:16AM +0100, Abdellatif El Khlifi wrote: > > Hi Tom, > > > > On Mon, Jul 24, 2023 at 07:50:07PM -0400, Tom Rini wrote: > > > On Thu, Jul 13, 2023 at 02:28:37PM +01

Re: Fwd: New Defects reported by Coverity Scan for Das U-Boot

2023-10-20 Thread Abdellatif El Khlifi
Hi Tom, > > *** CID 464361: Control flow issues (DEADCODE) > /drivers/firmware/arm-ffa/arm-ffa-uclass.c: 148 in ffa_print_error_log() > 142 > 143 if (ffa_id < FFA_FIRST_ID || ffa_

Re: [PATCH v2 1/2] log: select physical address formatting in a generic way

2023-10-20 Thread Abdellatif El Khlifi
Hi Simon, > sets the log formatting according to the platform (64-bit vs 32-bit) > > Signed-off-by: Abdellatif El Khlifi > Cc: Simon Glass > --- > cmd/armffa.c | 8 > include/log.h | 9 + > 2 files changed, 9 insertions(+), 8 deletions(-) > > d

[PATCH] arm_ffa: fix: remove deadcode in ffa_print_error_log()

2023-10-20 Thread Abdellatif El Khlifi
address the CID 464361 Control flow issues [1] [1]: https://lore.kernel.org/all/20230821210927.GL3953269@bill-the-cat/ Signed-off-by: Abdellatif El Khlifi Cc: Tom Rini --- drivers/firmware/arm-ffa/arm-ffa-uclass.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/firmware/arm-ffa

Re: Fwd: New Defects reported by Coverity Scan for Das U-Boot

2023-10-25 Thread Abdellatif El Khlifi
Hi Tom, > > > > > > *** CID 464361: Control flow issues (DEADCODE) > > > /drivers/firmware/arm-ffa/arm-ffa-uclass.c: 148 in ffa_print_error_log() > > > 142 > > > 143 if (ffa_id <

Re: Fwd: New Defects reported by Coverity Scan for Das U-Boot

2023-10-31 Thread Abdellatif El Khlifi
Hi Tom, > > > > > > > > > > *** CID 464361: Control flow issues (DEADCODE) > > > > > /drivers/firmware/arm-ffa/arm-ffa-uclass.c: 148 in > > > > > ffa_print_error_log() > > > > > 142 > > > >

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

2023-11-01 Thread Abdellatif El Khlifi
Hi Tom, > On Thu, Oct 26, 2023 at 01:50:49PM +0100, abdellatif.elkhl...@arm.com wrote: > > > From: Abdellatif El Khlifi > > > > unzip the kernel before executing it > > > > The Corstone-1000 kernel has become too large to fit in the available > >

Re: [PATCH 1/2] drivers/mtd/nvmxip: Rework the read accessor to support 32bit systems

2023-08-21 Thread Abdellatif El Khlifi
nt the read by either 4 or 8 bytes depending on if > > this is systemd with 32bit or 64bit physical address. > > > > Signed-off-by: Marek Vasut > > --- > > Cc: Abdellatif El Khlifi > > Cc: Simon Glass > > Sandbox CI test fails with this series: >

Re: Fwd: New Defects reported by Coverity Scan for Das U-Boot

2023-08-24 Thread Abdellatif El Khlifi
Hi Tom, > Here's the latest report > > -- Forwarded message - > From: > Date: Mon, Aug 21, 2023 at 4:30 PM > Subject: New Defects reported by Coverity Scan for Das U-Boot > To: > > > Hi, > > Please find the latest report on new defect(s) introduced to Das > U-Boot found with

[PATCH v4 00/10] introduce Arm FF-A support

2022-09-26 Thread Abdellatif El Khlifi
Ilias Apalodimas Cc: Jens Wiklander Cc: Achin Gupta Cc: Vishnu Banavath Cc: Xueliang Zhong Abdellatif El Khlifi (10): arm64: smccc: add support for SMCCCv1.2 x0-x17 registers arm64: smccc: clear the Xn registers after SMC calls lib: uuid: introduce be_uuid_str_to_le_bin function ar

[PATCH v4 02/10] arm64: smccc: clear the Xn registers after SMC calls

2022-09-26 Thread Abdellatif El Khlifi
prevent lower exception levels (EL1/EL0) from reading the SMC data exchanged at EL2. Changelog: === v4: * move the clearing code into a new macro: clear_gp_regs v3: * clear the Xn registers after SMC calls Signed-off-by: Abdellatif El Khlifi Cc: Tom Rini Cc: Simon Glass Cc

[PATCH v4 01/10] arm64: smccc: add support for SMCCCv1.2 x0-x17 registers

2022-09-26 Thread Abdellatif El Khlifi
Xn registers support used by SMC calls Signed-off-by: Abdellatif El Khlifi Cc: Tom Rini Cc: Simon Glass Cc: Ilias Apalodimas Cc: Jens Wiklander --- arch/arm/cpu/armv8/smccc-call.S | 53 + arch/arm/lib/asm-offsets.c | 14 + include/linux/arm-smccc.h

[PATCH v4 05/10] arm_ffa: introduce armffa command

2022-09-26 Thread Abdellatif El Khlifi
driver interfaces (partition_info_get, sync_send_receive) in armffa command v2: * replace use of ffa_helper_init_device function by ffa_helper_bus_discover v1: * introduce armffa command Signed-off-by: Abdellatif El Khlifi Cc: Tom Rini Cc: Simon Glass Cc: Ilias Apalodimas Cc: Jens Wiklander

[PATCH v4 07/10] arm_ffa: introduce Sandbox test cases for UCLASS_FFA

2022-09-26 Thread 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 Cc: Simon Glass Cc: Ilias Apalodimas Cc: Jens Wiklander Changelog: === v4: align

[PATCH v4 03/10] lib: uuid: introduce be_uuid_str_to_le_bin function

2022-09-26 Thread Abdellatif El Khlifi
-off-by: Abdellatif El Khlifi Cc: Tom Rini Cc: Simon Glass Cc: Ilias Apalodimas Cc: Jens Wiklander --- include/uuid.h | 8 +++ lib/uuid.c | 64 ++ 2 files changed, 72 insertions(+) diff --git a/include/uuid.h b/include/uuid.h index

[PATCH v4 08/10] arm_ffa: introduce armffa command Sandbox test

2022-09-26 Thread Abdellatif El Khlifi
Add Sandbox test for the armffa command Signed-off-by: Abdellatif El Khlifi Cc: Tom Rini Cc: Simon Glass Cc: Ilias Apalodimas Cc: Jens Wiklander Changelog: === v4: drop use of helper APIs v1: introduce armffa command sandbox test --- MAINTAINERS | 1 + test/cmd

[PATCH v4 04/10] arm_ffa: introduce Arm FF-A low-level driver

2022-09-26 Thread Abdellatif El Khlifi
FFA_RXTX_MAP, FFA_MSG_SEND_DIRECT_{REQ, RESP} v2: * make FF-A bus discoverable using device_{bind, probe} APIs * remove device tree support v1: * introduce FF-A bus driver with device tree support Signed-off-by: Abdellatif El Khlifi Cc: Tom Rini Cc: Simon Glass Cc: Ilias Apalodimas Cc: Jens Wiklander

[PATCH v4 10/10] arm_ffa: corstone1000: enable EFI MM communication

2022-09-26 Thread Abdellatif El Khlifi
turn on EFI MM communication On corstone1000 platform MM communication between u-boot and the secure world (Optee) is done using the FF-A bus. Signed-off-by: Abdellatif El Khlifi Cc: Tom Rini Cc: Simon Glass Cc: Ilias Apalodimas Cc: Jens Wiklander --- configs/corstone1000_defconfig | 4

[PATCH v4 06/10] arm_ffa: introduce the FF-A Sandbox driver

2022-09-26 Thread Abdellatif El Khlifi
based on that. Signed-off-by: Abdellatif El Khlifi Cc: Tom Rini Cc: Simon Glass Cc: Ilias Apalodimas Cc: Jens Wiklander Changelog: === v4: align sandbox driver with the new FF-A driver interfaces and new way of error handling v1: introduce the sandbox driver --- MAINTAINERS

[PATCH v4 09/10] arm_ffa: introduce FF-A MM communication

2022-09-26 Thread Abdellatif El Khlifi
available at EFI runtime level. Signed-off-by: Abdellatif El Khlifi Signed-off-by: Gowtham Suresh Kumar Cc: Tom Rini Cc: Simon Glass Cc: Ilias Apalodimas Cc: Jens Wiklander Changelog: === v4: * use the new FF-A driver interfaces * discover MM partitions at runtime * copy FF-A driver

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

2022-09-26 Thread Abdellatif El Khlifi
On Fri, May 13, 2022 at 05:23:19PM +0300, Ilias Apalodimas wrote: > Hi Abdellatif > On Fri, Apr 15, 2022 at 01:27:58PM +0100, abdellatif.elkhl...@arm.com wrote: > > From: Abdellatif El Khlifi > > > > Add the driver implementing Arm Firmware Framework for Armv8-A v1

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

2022-09-26 Thread Abdellatif El Khlifi
On Thu, Apr 14, 2022 at 10:54:08PM +0300, Ilias Apalodimas wrote: > Hi Abdellatif, > > Can you please keep me cc'ed in future revisions? > > On Tue, Mar 29, 2022 at 04:16:59PM +0100, abdellatif.elkhl...@arm.com wrote: > > From: Abdellatif El Khlifi > > > &

Re: [PATCH v3 3/4] arm_ffa: introduce Arm FF-A low-level driver

2022-09-26 Thread Abdellatif El Khlifi
On Fri, Aug 12, 2022 at 10:39:23AM +0300, Ilias Apalodimas wrote: > Hi Abdellatif, > > On Mon, 1 Aug 2022 at 20:21, Abdellatif El Khlifi > wrote: > > > > Add the driver implementing Arm Firmware Framework for Armv8-A v1.0 > > > > The Firmware Framewor

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

2022-09-26 Thread Abdellatif El Khlifi
On Fri, May 13, 2022 at 04:40:36PM +0200, Jens Wiklander wrote: > On Fri, Apr 15, 2022 at 01:27:58PM +0100, abdellatif.elkhl...@arm.com wrote: > > From: Abdellatif El Khlifi > > > > Add the driver implementing Arm Firmware Framework for Armv8-A v1.0 > > > >

Re: [PATCH v3 2/4] arm64: smccc: clear the Xn registers after SMC calls

2022-09-26 Thread Abdellatif El Khlifi
On Tue, Aug 16, 2022 at 01:48:31PM +0200, Jens Wiklander wrote: > On Mon, Aug 1, 2022 at 7:21 PM Abdellatif El Khlifi > wrote: > > > > set to zero the x0-x17 registers > > > > As per the SMCCC v1.2 spec, unused result and scratch registers can leak > > i

Re: [PATCH v3 3/4] arm_ffa: introduce Arm FF-A low-level driver

2022-09-26 Thread Abdellatif El Khlifi
On Fri, Aug 12, 2022 at 08:21:02PM -0600, Simon Glass wrote: > Hi Abdellatif, > > On Mon, 1 Aug 2022 at 11:21, Abdellatif El Khlifi > wrote: > > > > Add the driver implementing Arm Firmware Framework for Armv8-A v1.0 > > > > The Firmware Framewor

[PATCH v5 00/10] introduce Arm FF-A support

2022-09-26 Thread Abdellatif El Khlifi
...@arm.com/ [4]: https://lore.kernel.org/all/20220926101723.9965-1-abdellatif.elkhl...@arm.com/ Cc: Tom Rini Cc: Simon Glass Cc: Ilias Apalodimas Cc: Jens Wiklander Cc: Achin Gupta Cc: Vishnu Banavath Cc: Xueliang Zhong Abdellatif El Khlifi (10): arm64: smccc: add support for SMCCCv1.2 x0

[PATCH v5 01/10] arm64: smccc: add support for SMCCCv1.2 x0-x17 registers

2022-09-26 Thread Abdellatif El Khlifi
://documentation-service.arm.com/static/5f8edaeff86e16515cdbe4c6?token= Signed-off-by: Abdellatif El Khlifi Cc: Tom Rini Cc: Simon Glass Cc: Ilias Apalodimas Cc: Jens Wiklander --- Changelog: === v4: * rename the commit title and improve description new commit title: the current v3

[PATCH v5 02/10] arm64: smccc: clear the Xn registers after SMC calls

2022-09-26 Thread Abdellatif El Khlifi
prevent lower exception levels (EL1/EL0) from reading the SMC data exchanged at EL2. Signed-off-by: Abdellatif El Khlifi Cc: Tom Rini Cc: Simon Glass Cc: Ilias Apalodimas Cc: Jens Wiklander --- Changelog: === v4: * move the clearing code into a new macro: clear_gp_regs v3

[PATCH v5 03/10] lib: uuid: introduce be_uuid_str_to_le_bin function

2022-09-26 Thread Abdellatif El Khlifi
convert big endian UUID string to little endian buffer Signed-off-by: Abdellatif El Khlifi Cc: Tom Rini Cc: Simon Glass Cc: Ilias Apalodimas Cc: Jens Wiklander --- Changelog: === v4: * rename ffa_uuid_str_to_bin to be_uuid_str_to_le_bin and put in a standalone commit (the

[PATCH v5 05/10] arm_ffa: introduce armffa command

2022-09-26 Thread 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 Cc: Simon Glass Cc: Ilias Apalodimas Cc: Jens Wiklander

[PATCH v5 04/10] arm_ffa: introduce Arm FF-A low-level driver

2022-09-26 Thread Abdellatif El Khlifi
-by: Abdellatif El Khlifi Cc: Tom Rini Cc: Simon Glass Cc: Ilias Apalodimas Cc: Jens Wiklander --- Changelog: === v4: * add doc/README.ffa.drv * moving the FF-A driver work to drivers/firmware/arm-ffa * use less #ifdefs in lib/efi_loader/efi_boottime.c and replace #if defined by

[PATCH v5 06/10] arm_ffa: introduce the FF-A Sandbox driver

2022-09-26 Thread Abdellatif El Khlifi
based on that. Signed-off-by: Abdellatif El Khlifi Cc: Tom Rini Cc: Simon Glass Cc: Ilias Apalodimas Cc: Jens Wiklander --- Changelog: === v4: align sandbox driver with the new FF-A driver interfaces and new way of error handling v1: introduce the sandbox driver MAINTAINERS

[PATCH v5 08/10] arm_ffa: introduce armffa command Sandbox test

2022-09-26 Thread Abdellatif El Khlifi
Add Sandbox test for the armffa command Signed-off-by: Abdellatif El Khlifi Cc: Tom Rini Cc: Simon Glass Cc: Ilias Apalodimas Cc: Jens Wiklander --- Changelog: === v4: drop use of helper APIs v1: introduce armffa command sandbox test MAINTAINERS | 1 + test/cmd

[PATCH v5 07/10] arm_ffa: introduce Sandbox test cases for UCLASS_FFA

2022-09-26 Thread 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 Cc: Simon Glass Cc: Ilias Apalodimas Cc: Jens Wiklander --- Changelog: === v4

[PATCH v5 10/10] arm_ffa: corstone1000: enable EFI MM communication

2022-09-26 Thread Abdellatif El Khlifi
turn on EFI MM communication On corstone1000 platform MM communication between u-boot and the secure world (Optee) is done using the FF-A bus. Signed-off-by: Abdellatif El Khlifi Cc: Tom Rini Cc: Simon Glass Cc: Ilias Apalodimas Cc: Jens Wiklander --- configs/corstone1000_defconfig | 4

[PATCH v5 09/10] arm_ffa: introduce FF-A MM communication

2022-09-26 Thread Abdellatif El Khlifi
available at EFI runtime level. Signed-off-by: Abdellatif El Khlifi Signed-off-by: Gowtham Suresh Kumar Cc: Tom Rini Cc: Simon Glass Cc: Ilias Apalodimas Cc: Jens Wiklander --- Changelog: === v4: * use the new FF-A driver interfaces * discover MM partitions at runtime * copy FF-A

[PATCH v10 00/10] introduce Arm FF-A support

2023-03-28 Thread Abdellatif El Khlifi
S3 board ``` Cc: Tom Rini Cc: Simon Glass Cc: Rob Herring Cc: Ilias Apalodimas Cc: Jens Wiklander Cc: Achin Gupta Cc: Drew Reed Cc: Xueliang Zhong Abdellatif El Khlifi (10): arm64: smccc: add support for SMCCCv1.2 x0-x17 registers lib: uuid: introduce uuid_str_to_le_bin function l

[PATCH v10 03/10] lib: uuid: introduce testcase for uuid_str_to_le_bin

2023-03-28 Thread Abdellatif El Khlifi
provide a test case Signed-off-by: Abdellatif El Khlifi Cc: Simon Glass --- MAINTAINERS | 5 + test/lib/Makefile | 1 + test/lib/uuid.c | 44 3 files changed, 50 insertions(+) create mode 100644 test/lib/uuid.c diff --git a

[PATCH v10 01/10] arm64: smccc: add support for SMCCCv1.2 x0-x17 registers

2023-03-28 Thread Abdellatif El Khlifi
://documentation-service.arm.com/static/5f8edaeff86e16515cdbe4c6?token= Signed-off-by: Abdellatif El Khlifi Reviewed-by: Jens Wiklander Cc: Tom Rini Cc: Simon Glass Cc: Ilias Apalodimas --- Changelog: === v9: * update the copyright string v7: * improve indentation of

[PATCH v10 02/10] lib: uuid: introduce uuid_str_to_le_bin function

2023-03-28 Thread Abdellatif El Khlifi
convert UUID string to little endian binary data Signed-off-by: Abdellatif El Khlifi Reviewed-by: Simon Glass Cc: Tom Rini Cc: Simon Glass Cc: Ilias Apalodimas Cc: Jens Wiklander --- Changelog: === v9: * add a full function prototype description in uuid.h v8: * use

[PATCH v10 07/10] arm_ffa: introduce sandbox test cases for UCLASS_FFA

2023-03-28 Thread Abdellatif El Khlifi
Add functional test cases for the FF-A support These tests rely on the FF-A sandbox emulator and FF-A sandbox driver which help in inspecting the FF-A communication. Signed-off-by: Abdellatif El Khlifi Cc: Tom Rini Cc: Simon Glass Cc: Ilias Apalodimas Cc: Jens Wiklander Cc: Heinrich

[PATCH v10 05/10] arm_ffa: introduce armffa command

2023-03-28 Thread Abdellatif El Khlifi
these partitions. The command is also helpful in testing the communication with secure partitions. For more details please refer to the command documentation [1]. [1]: doc/usage/cmd/armffa.rst Signed-off-by: Abdellatif El Khlifi Cc: Tom Rini Cc: Simon Glass Cc: Ilias Apalodimas Cc: Jens

[PATCH v10 04/10] arm_ffa: introduce Arm FF-A support

2023-03-28 Thread Abdellatif El Khlifi
implemented in the Uclass (arm-ffa-uclass.c). Arm specific methods are implemented in the Arm driver (arm-ffa.c). For more details please refer to the driver documentation [2]. [1]: https://developer.arm.com/documentation/den0077/latest/ [2]: doc/arch/arm64.ffa.rst Signed-off-by: Abdellatif El Khlifi

[PATCH v10 06/10] arm_ffa: introduce sandbox FF-A support

2023-03-28 Thread Abdellatif El Khlifi
The sandbox FF-A emulator supports only 64-bit direct messaging. Signed-off-by: Abdellatif El Khlifi Cc: Tom Rini Cc: Simon Glass Cc: Ilias Apalodimas Cc: Jens Wiklander Cc: Heinrich Schuchardt --- Changelog: === v10: * split the FF-A sandbox support into an emulator and a d

[PATCH v10 08/10] arm_ffa: introduce armffa command Sandbox test

2023-03-28 Thread Abdellatif El Khlifi
Add Sandbox test for the armffa command Signed-off-by: Abdellatif El Khlifi Reviewed-by: Simon Glass Cc: Tom Rini Cc: Simon Glass Cc: Ilias Apalodimas Cc: Jens Wiklander --- Changelog: === v10: * replace CMD_RET_SUCCESS with 0 * replace CONFIG_SANDBOX_FFA with

[PATCH v10 10/10] arm_ffa: efi: corstone1000: enable MM communication

2023-03-28 Thread Abdellatif El Khlifi
turn on EFI MM communication On corstone1000 platform MM communication between u-boot and the secure world (Optee) is done using the FF-A bus. Signed-off-by: Abdellatif El Khlifi Cc: Tom Rini Cc: Simon Glass Cc: Ilias Apalodimas Cc: Jens Wiklander --- Changelog: === v9: update

[PATCH v10 09/10] arm_ffa: efi: introduce FF-A MM communication

2023-03-28 Thread Abdellatif El Khlifi
read the data and updates the MM shared buffer with the response data. The response data is copied back to the communication buffer and consumed by the EFI subsystem. MM communication protocol supports FF-A 64-bit direct messaging. Signed-off-by: Abdellatif El Khlifi Signed-off-by: Gowtham Suresh

Re: [PATCH v10 03/10] lib: uuid: introduce testcase for uuid_str_to_le_bin

2023-03-30 Thread Abdellatif El Khlifi
On Thu, Mar 30, 2023 at 09:02:18AM +1300, Simon Glass wrote: > On Wed, 29 Mar 2023 at 05:12, Abdellatif El Khlifi > wrote: > > > > provide a test case > > > > Signed-off-by: Abdellatif El Khlifi > > Cc: Simon Glass > > --- > > MAINTAIN

Re: [PATCH v10 10/10] arm_ffa: efi: corstone1000: enable MM communication

2023-04-03 Thread Abdellatif El Khlifi
On Mon, Apr 03, 2023 at 12:59:06PM +0300, Ilias Apalodimas wrote: > On Sun, Apr 02, 2023 at 02:41:17PM +1200, Simon Glass wrote: > > Hi Abdellatif, > > > > On Wed, 29 Mar 2023 at 05:12, Abdellatif El Khlifi < > > abdellatif.elkhl...@arm.com> wrote: > &g

[PATCH v11 00/10] introduce Arm FF-A support

2023-04-12 Thread Abdellatif El Khlifi
@oe-host) (aarch64-poky-linux-musl-gcc (GCC) 12.2.0, GNU ld (GNU Binutils) 2.40.202301193 Machine model: ARM Corstone1000 FPGA MPS3 board ``` Cc: Tom Rini Cc: Simon Glass Cc: Rob Herring Cc: Ilias Apalodimas Cc: Jens Wiklander Cc: Achin Gupta Cc: Drew Reed Cc: Xueliang Zhong Abdel

[PATCH v11 01/10] arm64: smccc: add support for SMCCCv1.2 x0-x17 registers

2023-04-12 Thread Abdellatif El Khlifi
://documentation-service.arm.com/static/5f8edaeff86e16515cdbe4c6?token= Signed-off-by: Abdellatif El Khlifi Reviewed-by: Jens Wiklander Reviewed-by: Simon Glass Cc: Tom Rini Cc: Simon Glass Cc: Ilias Apalodimas --- Changelog: === v9: * update the copyright string v7: * improve

[PATCH v11 02/10] lib: uuid: introduce uuid_str_to_le_bin function

2023-04-12 Thread Abdellatif El Khlifi
convert UUID string to little endian binary data Signed-off-by: Abdellatif El Khlifi Reviewed-by: Simon Glass Cc: Tom Rini Cc: Simon Glass Cc: Ilias Apalodimas Cc: Jens Wiklander --- Changelog: === v9: * add a full function prototype description in uuid.h v8: * use

  1   2   3   4   >