[Xen-devel] Xen ARM Dom0less passthrough without IOMMU

2019-12-16 Thread Andrei Cherechesu
Hello, My name is Andrei Cherechesu and I'm a Software Engineer at NXP Semiconductors in the Automotive department, Linux BSP Team. I would like to tell you have done a great job so far with Xen. Thus, we have ported and integrated Xen ARM in the Linux BSP for our boards. Currently, w

Re: [Xen-devel] Xen ARM Dom0less passthrough without IOMMU

2019-12-17 Thread Andrei Cherechesu
> On Mon, 16 Dec 2019, Julien Grall wrote: > > On 16/12/2019 23:05, Stefano Stabellini wrote: > > > On Mon, 16 Dec 2019, Julien Grall wrote: > > > > On 16/12/2019 18:02, Andrei Cherechesu wrote: > > > > But even with this patch, RAM in DomU is not

RE: [EXT] Re: [Xen-devel] Having a DOM-U guest with 1:1 mapping in the second stage MMU.

2020-03-31 Thread Andrei Cherechesu
> On Thu, 13 Feb 2020, Andrei Cherechesu wrote: > > Hello, > > > > I used the Xen from Stefano's tree and made the updates to the partial > > dtb that he specified. > > > > > This is mostly likely because Linux is trying to access a region >

Re: [Xen-devel] Having a DOM-U guest with 1:1 mapping in the second stage MMU.

2020-04-01 Thread Andrei Cherechesu
dt_device_set_used_by(dev, DOMID_XEN); > > Devices that are marked as "used by Xen" are not exposed to dom0, so you > shouldn't see the ttyLF0 device come up in Linux at all. I've checked my Xen UART Driver and that call is there. So ttyLF0 should be marked for Xen to use. I don't have any ideas why this happens. I've attached the driver [0], if you want to take a look. [0] https://pastebin.com/PuXi50H0 Thanks, Andrei Cherechesu, NXP Semiconductors

Re: [Xen-devel] Having a DOM-U guest with 1:1 mapping in the second stage MMU.

2020-04-01 Thread Andrei Cherechesu
-> got it� I started debugging and I found out that it hangs in: console_init_preirq() -> __putstr(xen_banner()) -> sercon_puts() -> serial_puts() -> __serial_putc(), where it spins at line 178: /* Synchronous finite-capacity transmitter. */ while ( !(n = port->driver->tx_ready(port)) ) cpu_relax(); Which is a bit strange, considering that my serial device is asynchronous, I think it should not get there. But it gets on that "else" branch because port->txbuf is actually NULL at line 120 when it performs the check, and it does not enter the branch for asynchronous transmitters. Thanks, Andrei Cherechesu, NXP Semiconductors

arm: DomU Networking enable leads to Dom0 kernel oops

2020-04-24 Thread Andrei Cherechesu
o tried to pass a static IP configuration for DomU in the config file, and because it automatically enables eth0 at boot time, I no longer get the oops, but a panic directly. Thank you very much for your help, Andrei Cherechesu, NXP Semiconductors

Re: [Xen-devel] Having a DOM-U guest with 1:1 mapping in the second stage MMU.

2020-02-12 Thread Andrei Cherechesu
[[ Sorry. Needed to send another mail because I forgot to add xen-devel lists to CC. ]] Hello, I applied your direct-map patch, Stefano, on top of RELEASE-4.13.0 Xen. I also took your advice and used the Imagebuilder tool to setup my u-boot environment. I modified the tool to allow SDCard booti

Re: [Xen-devel] Having a DOM-U guest with 1:1 mapping in the second stage MMU.

2020-02-13 Thread Andrei Cherechesu
-Original Message- From: Julien Grall Sent: Thursday, February 13, 2020 00:03 To: Stefano Stabellini ; Andrei Cherechesu Cc: Jorge Pereira ; xen-devel@lists.xenproject.org Subject: Re: [Xen-devel] Having a DOM-U guest with 1:1 mapping in the second stage MMU. Hello, I used the Xen

Re: [PATCH v2 5/8] xen/arm: platforms: Add NXP S32CC platform code

2024-10-15 Thread Andrei Cherechesu
Hi Julien, Sorry for the slow replies. On 08/10/2024 23:31, Julien Grall wrote: > Hi, > > On 08/10/2024 20:01, Andrei Cherechesu wrote: >> Hi Julien, >> >> On 04/10/2024 19:24, Julien Grall wrote: >>> >>> >>> On 04/10/2024 16:37, Andrei

Re: [PATCH v2 5/8] xen/arm: platforms: Add NXP S32CC platform code

2024-10-08 Thread Andrei Cherechesu
Hi Julien, On 04/10/2024 19:24, Julien Grall wrote: > > > On 04/10/2024 16:37, Andrei Cherechesu wrote: >> Hi Julien, Stefano, > > Hi Andrei, > >> >> On 01/10/2024 13:01, Julien Grall wrote: >>> Hi Andrei, >>> >>> On 30/09/2024 12:

Re: [PATCH v2 5/8] xen/arm: platforms: Add NXP S32CC platform code

2024-10-04 Thread Andrei Cherechesu
Hi Julien, Stefano, On 01/10/2024 13:01, Julien Grall wrote: > Hi Andrei, > > On 30/09/2024 12:47, Andrei Cherechesu (OSS) wrote: >> From: Andrei Cherechesu >> >> Add code for NXP S32CC platforms (S32G2, S32G3, S32R45). >> >> S32CC platforms use the NXP

Re: [PATCH v2 1/8] xen/arm: Add NXP LINFlexD UART Driver

2024-10-01 Thread Andrei Cherechesu
Hi Julien, On 01/10/2024 12:20, Julien Grall wrote: > Hi Andrei, > > On 30/09/2024 12:47, Andrei Cherechesu (OSS) wrote: >> +static void __init linflex_uart_init_preirq(struct serial_port *port) >> +{ >> +    struct linflex_uart *uart = port->uart; >> +    uin

Re: [PATCH v2 3/8] xen/arm: Add SCMI over SMC calls handling layer

2024-10-03 Thread Andrei Cherechesu
Hi Julien, On 01/10/2024 12:35, Julien Grall wrote: > > > On 30/09/2024 12:47, Andrei Cherechesu (OSS) wrote: >> From: Andrei Cherechesu >> >> Introduce the SCMI layer to have some basic degree of awareness >> about SMC calls that are based on the ARM System Co

Re: [PATCH v2 3/8] xen/arm: Add SCMI over SMC calls handling layer

2024-10-03 Thread Andrei Cherechesu
Hi Julien, On 01/10/2024 12:59, Julien Grall wrote: > Hi Andrei, > > On 30/09/2024 12:47, Andrei Cherechesu (OSS) wrote: >> +/* >> + * Generic handler for SCMI-SMC requests, currently only forwarding the >> + * request to FW running at EL3 if it came from Dom0.

Re: [PATCH v2 4/8] xen/arm: vsmc: Enable handling SiP-owned SCMI SMC calls

2024-10-03 Thread Andrei Cherechesu
Hi Julien, On 01/10/2024 12:46, Julien Grall wrote: > Hi, > > On 30/09/2024 12:47, Andrei Cherechesu (OSS) wrote: >> From: Andrei Cherechesu >> >> Change the handling of SiP SMC calls to be more generic, >> instead of directly relying on the `platform_

Re: [PATCH v2 3/8] xen/arm: Add SCMI over SMC calls handling layer

2024-10-03 Thread Andrei Cherechesu
Hi Julien, On 03/10/2024 19:07, Julien Grall wrote: > > > On 03/10/2024 16:27, Andrei Cherechesu wrote: >> Hi Julien, > > Hi Andrei, > >> On 01/10/2024 12:35, Julien Grall wrote: >>> >>>> , the initialization fails silently, as it's n

Re: [PATCH v1 0/2] Fix ARM Generic Timer interrupt parsing

2023-03-07 Thread Andrei Cherechesu
ainers in CC. I added them now. > >> On 7 Mar 2023, at 11:09, Andrei Cherechesu (OSS) >> wrote: >> >> From: Andrei Cherechesu >> >> This 2-patch series fixes the parsing of the ARM Generic Timer >> interrupts from the device tree. >> >> I

Re: [PATCH v1 2/2] arch/arm: time: Add support for parsing interrupts by names

2023-03-07 Thread Andrei Cherechesu
On 07/03/2023 17:38, Bertrand Marquis wrote: > Hi Andrei, > >> On 7 Mar 2023, at 11:09, Andrei Cherechesu (OSS) >> wrote: >> >> From: Andrei Cherechesu >> >> Added support for parsing the ARM generic timer interrupts DT >> node by the "in

Re: [PATCH v1 2/2] arch/arm: time: Add support for parsing interrupts by names

2023-03-09 Thread Andrei Cherechesu
: >>>>>> >>>>>> >>>>>> Hi Michal, >>>>>> >>>>>>> On 9 Mar 2023, at 11:05, Michal Orzel wrote: >>>>>>> >>>>>>> >>>>>>> >>&g

Re: [PATCH v3 1/2] arch/arm: irq: Add platform_get_irq_byname() implementation

2023-03-22 Thread Andrei Cherechesu
Hi Julien, On 21/03/2023 18:56, Julien Grall wrote: > Hi Andrei, > > I realized this has already been merged. But I would like to point out a > few things for future series. > > On 13/03/2023 13:08, Andrei Cherechesu (OSS) wrote: >> From: Andrei Cherechesu >> &

Re: [VirtIO] Support for various devices in Xen

2024-04-10 Thread Andrei Cherechesu
? Here are the full logs for the "xl create" command [0] and for DomU's dmesg [1]. Any ideas as to why that might happen, some debugging insights, or maybe some configuration details I could have overlooked? Thank you very much for your help once again. Regards, Andrei Cherec

Re: [VirtIO] Support for various devices in Xen

2024-04-29 Thread Andrei Cherechesu
On 12/04/2024 11:35, Edgar E. Iglesias wrote: > On Fri, Apr 12, 2024 at 1:23 AM Stefano Stabellini > wrote: > > -Vikram +Edgar > > On Thu, 11 Apr 2024, Andrei Cherechesu wrote: >>> I've managed to successfully get a DomU up and running with the rootfs >>&

Re: [PATCH v1 1/5] xen/arm: Add NXP LINFlexD UART Driver

2024-09-11 Thread Andrei Cherechesu
Hi, Julien, and thank you for the review! On 11/09/2024 00:55, Julien Grall wrote: > Hi, > > On 10/09/2024 15:34, Andrei Cherechesu (OSS) wrote: >> From: Andrei Cherechesu >> >> The LINFlexD UART is an UART controller available on NXP S32 >> processors family

Re: [PATCH v1 2/5] xen/arm: Add NXP LINFlexD UART early printk support

2024-09-11 Thread Andrei Cherechesu
On 11/09/2024 00:58, Julien Grall wrote: > Hi, > > On 10/09/2024 15:34, Andrei Cherechesu (OSS) wrote: >> From: Andrei Cherechesu >> >> This adds support for early printk debug via the NXP LINFlexD >> UART controller. >> >> Signed-off-by: Andrei Che

Re: [PATCH v1 3/5] xen/arm: platforms: Add NXP S32CC platform code

2024-09-11 Thread Andrei Cherechesu
Hi Julien, Stefano, On 11/09/2024 08:19, Stefano Stabellini wrote: > On Tue, 10 Sep 2024, Julien Grall wrote: >> Hi, >> >> On 10/09/2024 15:34, Andrei Cherechesu (OSS) wrote: >>> From: Andrei Cherechesu >>> >>> Added support for NXP S32CC platf

Re: [PATCH v2 3/8] xen/arm: Add SCMI over SMC calls handling layer

2024-12-09 Thread Andrei Cherechesu
Hi Julien, Grygorii, On 11/11/2024 12:33, Julien Grall wrote: > Hi, > > On 01/11/2024 15:22, Grygorii Strashko wrote: >> Hi >> >> I'd be apprcieated if could consider my comments below. >> >> On 30.09.24 14:47, Andrei Cherechesu (OSS) wrote: >>>

Re: [PATCH v3 3/6] xen/arm: platforms: Add NXP S32G3 Processors config

2024-12-18 Thread Andrei Cherechesu
Hi Bertrand, Andrew, On 18/12/2024 17:33, Bertrand Marquis wrote: > Hi Andrew, > >> On 18 Dec 2024, at 16:19, Andrew Cooper wrote: >> >> On 18/12/2024 10:11 am, Andrei Cherechesu (OSS) wrote: >>> diff --git a/xen/arch/arm/platforms/Kconfig b/xen/arch/arm/platf

Re: [PATCH v3 1/6] xen/arm: firmware: Add SCMI over SMC calls handling layer

2024-12-18 Thread Andrei Cherechesu
Hi Michal, Thank you for the review. On 18/12/2024 16:26, Michal Orzel wrote: > > On 18/12/2024 11:11, Andrei Cherechesu (OSS) wrote: >> >> From: Andrei Cherechesu >> >> Introduce the SCMI-SMC layer to have some basic degree of >> awareness about SCMI ca

Re: [PATCH v3 1/6] xen/arm: firmware: Add SCMI over SMC calls handling layer

2024-12-19 Thread Andrei Cherechesu
Hi Michal, On 19/12/2024 10:35, Michal Orzel wrote: > > On 18/12/2024 15:58, Andrei Cherechesu wrote: >> >> Hi Michal, >> >> Thank you for the review. >> >> On 18/12/2024 16:26, Michal Orzel wrote: >>> On 18/12/2024 11:11, Andrei C

Re: [PATCH v4 0/6] xen/arm: Add support for S32CC platforms and LINFlexD UART

2024-12-20 Thread Andrei Cherechesu
Hi, On 20/12/2024 09:32, Michal Orzel wrote: > > On 19/12/2024 12:23, Andrei Cherechesu (OSS) wrote: >> >> From: Andrei Cherechesu >> >> Targeting: Xen 4.20 >> This v4 version of this patch series finishes the work left to support NXP >> S32G3 Process

Re: [PATCH v7] uboot-script-gen: Dynamically compute addr and size when loading binaries

2025-04-28 Thread Andrei Cherechesu
Hi Stefano, On 26/04/2025 02:35, Stefano Stabellini wrote: > From: Andrei Cherechesu > > Normally, the Imagebuilder would precompute the sizes of the loaded binaries > and addresses where they are loaded before generating the script, and the > sizes and addresses that needed to

Re: [PATCH v8] uboot-script-gen: Dynamically compute addr and size when loading binaries

2025-04-28 Thread Andrei Cherechesu
Hi Stefano, On 28/04/2025 23:55, Andrei Cherechesu wrote: > From: Andrei Cherechesu > > Normally, the Imagebuilder would precompute the sizes of the loaded > binaries and addresses where they are loaded before generating the > script, and the sizes and addresses that needed to

[PATCH v2 1/8] xen/arm: Add NXP LINFlexD UART Driver

2024-09-30 Thread Andrei Cherechesu (OSS)
From: Andrei Cherechesu The LINFlexD UART is an UART controller available on NXP S32 processors family targeting automotive (for example: S32G2, S32G3, S32R). S32G3 Reference Manual: https://www.nxp.com/webapp/Download?colCode=RMS32G3. Signed-off-by: Andrei Cherechesu Signed-off-by: Peter van

[PATCH v2 3/8] xen/arm: Add SCMI over SMC calls handling layer

2024-09-30 Thread Andrei Cherechesu (OSS)
From: Andrei Cherechesu Introduce the SCMI layer to have some basic degree of awareness about SMC calls that are based on the ARM System Control and Management Interface (SCMI) specification (DEN0056E). The SCMI specification includes various protocols for managing system-level resources, such

[PATCH v2 5/8] xen/arm: platforms: Add NXP S32CC platform code

2024-09-30 Thread Andrei Cherechesu (OSS)
From: Andrei Cherechesu Add code for NXP S32CC platforms (S32G2, S32G3, S32R45). S32CC platforms use the NXP LINFlexD UART driver for console by default, and rely on Dom0 having access to SCMI services for system-level resources from firmware at EL3. Platform-related quirks will be addressed

[PATCH v2 0/8] xen/arm: Add support for S32CC platforms and LINFlexD UART

2024-09-30 Thread Andrei Cherechesu (OSS)
From: Andrei Cherechesu This patch series adds support for NXP Automotive S32CC platform family, which includes S32G [0] and S32R [1]. First patch adds the driver for the NXP LINFlexD UART, available on S32V, S32G and S32R automotive processors. The compatibles in the driver match the ones in

[PATCH v2 2/8] xen/arm: Add NXP LINFlexD UART early printk support

2024-09-30 Thread Andrei Cherechesu (OSS)
From: Andrei Cherechesu This adds support for early printk debug via the NXP LINFlexD UART controller. Signed-off-by: Andrei Cherechesu Signed-off-by: Peter van der Perk Acked-by: Julien Grall --- xen/arch/arm/Kconfig.debug | 12 ++ xen/arch/arm/arm64/debug-linflex.inc | 58

[PATCH v2 8/8] MAINTAINERS: Add myself as maintainer for NXP S32CC

2024-09-30 Thread Andrei Cherechesu (OSS)
From: Andrei Cherechesu Add myself as maintainer for NXP S32CC SoCs Family, and the S32 Linux Team as relevant reviewers list. Also add the linflex-uart.c driver to the list of other UART drivers in the ARM section. Signed-off-by: Andrei Cherechesu --- MAINTAINERS | 8 1 file

[PATCH v2 7/8] SUPPORT.md: Describe SCMI-SMC layer feature

2024-09-30 Thread Andrei Cherechesu (OSS)
From: Andrei Cherechesu Describe the layer which enables SCMI over SMC calls forwarding to EL3 FW if issued by Dom0. If the SCMI firmware node is not found in Dom0's DT during initialization, it fails silently as it's not mandatory. The SCMI SMCs trapping at EL2 now lets Dom0 perfor

[PATCH v2 4/8] xen/arm: vsmc: Enable handling SiP-owned SCMI SMC calls

2024-09-30 Thread Andrei Cherechesu (OSS)
From: Andrei Cherechesu Change the handling of SiP SMC calls to be more generic, instead of directly relying on the `platform_smc()` callback implementation. Try to handle the SiP SMC first through the `platform_smc()` callback (if implemented). If not handled, check if the SCMI layer is

[PATCH v2 6/8] CHANGELOG.md: Add NXP S32CC and SCMI-SMC layer support mentions

2024-09-30 Thread Andrei Cherechesu (OSS)
From: Andrei Cherechesu Signed-off-by: Andrei Cherechesu --- CHANGELOG.md | 4 1 file changed, 4 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 26e7d8dd2a..66ea505843 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,10 @@ The format is based on [Keep a Changelog

[ImageBuilder][PATCH v2 4/4] uboot-script-gen: Enable not adding boot command to script

2022-06-30 Thread Andrei Cherechesu (OSS)
From: Andrei Cherechesu If the "BOOT_CMD" variable is set to "none" inside the config file, the boot command (i.e. "booti") will not by added to the generated script, to allow the user to customize the u-boot env or the device-tree after executing the script comman

[ImageBuilder][PATCH v2 0/4] Add extra ImageBuilder features

2022-06-30 Thread Andrei Cherechesu (OSS)
From: Andrei Cherechesu Hello, Sorry for the late re-submission of patches, but I had some company internal work to take care of. I managed to include the changes mentioned by Stefano S. and Ayan K. H. in the discussions for the first version of patches. Changes in v2: - Dropped the patch

[ImageBuilder][PATCH v2 1/4] scripts: Add support for prepending path to file names

2022-06-30 Thread Andrei Cherechesu (OSS)
From: Andrei Cherechesu Added support for prepending path to file names in the final generated u-boot script, for the use-case where we have the files in a separate folder that can be accessed with a given $LOAD_CMD. For example, we can have "fatload mmc 0:2" as LOAD_CMD but the f

[ImageBuilder][PATCH v2 2/4] uboot-script-gen: Dynamically compute addr and size when loading binaries

2022-06-30 Thread Andrei Cherechesu (OSS)
From: Andrei Cherechesu Normally, the script would precompute the sizes of the loaded binaries and addresses where they are loaded before generating the script, and the sizes and addresses that needed to be provided to Xen via /chosen would be hardcoded in the boot script. Added option via &qu

[ImageBuilder][PATCH v2 3/4] uboot-script-gen: Enable appending extra commands to boot script

2022-06-30 Thread Andrei Cherechesu (OSS)
From: Andrei Cherechesu Added the "-a" parameter which stands for APPEND_EXTRA_CMDS option, which enables the user to specify the path to a text file that contains, on each line, u-boot commands that will be added to the generated script as "fixups", before the boot command.

[ImageBuilder][PATCH v3 1/3] uboot-script-gen: Dynamically compute addr and size when loading binaries

2022-07-13 Thread Andrei Cherechesu (OSS)
From: Andrei Cherechesu Normally, the script would precompute the sizes of the loaded binaries and addresses where they are loaded before generating the script, and the sizes and addresses that needed to be provided to Xen via /chosen would be hardcoded in the boot script. Added option via &qu

[ImageBuilder][PATCH v3 0/3] Add extra ImageBuilder features

2022-07-13 Thread Andrei Cherechesu (OSS)
From: Andrei Cherechesu Hello, This the v3 version for the patches which have not yet been commited. Changes in v3: - Dropped the [PATCH v2 1/4] from the previous series since it's already been commited - For PATCH 1/3: No changes - For PATCH 2/3: Dropped the "-a" parameter and

[ImageBuilder][PATCH v3 2/3] uboot-script-gen: Enable appending extra commands to boot script

2022-07-13 Thread Andrei Cherechesu (OSS)
From: Andrei Cherechesu Added the parsing for APPEND_EXTRA_CMDS variable, which enables the user to specify the path to a text file that contains, on each line, u-boot commands that will be added to the generated script as "fixups", before the boot command. The file specif

[ImageBuilder][PATCH v3 3/3] uboot-script-gen: Enable not adding boot command to script

2022-07-13 Thread Andrei Cherechesu (OSS)
From: Andrei Cherechesu If the "BOOT_CMD" variable is set to "none" inside the config file, the boot command (i.e. "booti") will not by added to the generated script, to allow the user to customize the u-boot env or the device-tree after executing the script comman

[PATCH v1 0/2] Fix ARM Generic Timer interrupt parsing

2023-03-07 Thread Andrei Cherechesu (OSS)
From: Andrei Cherechesu This 2-patch series fixes the parsing of the ARM Generic Timer interrupts from the device tree. If the generic timer interrupts order in the DT was different than the expected order in Xen code, these interrupts would no longer be correctly parsed and registered by Xen

[PATCH v1 1/2] arch/arm: irq: Add platform_get_irq_byname() implementation

2023-03-07 Thread Andrei Cherechesu (OSS)
From: Andrei Cherechesu Moved implementation for the function which parses the IRQs of a DT node by the "interrupt-names" property from the SMMU-v3 driver to the IRQ core code and made it non-static to be used as helper. Also changed it to receive a "struct dt_device_node*"

[PATCH v1 2/2] arch/arm: time: Add support for parsing interrupts by names

2023-03-07 Thread Andrei Cherechesu (OSS)
From: Andrei Cherechesu Added support for parsing the ARM generic timer interrupts DT node by the "interrupt-names" property, if it is available. If not available, the usual parsing based on the expected IRQ order is performed. Also added the "hyp-virt" PPI to the timer P

[PATCH v2 0/2] Fix ARM Generic Timer interrupt parsing

2023-03-09 Thread Andrei Cherechesu (OSS)
From: Andrei Cherechesu This 2-patch series fixes the parsing of the ARM Generic Timer interrupts from the device tree. If the generic timer interrupts order in the DT was different than the expected order in Xen code, these interrupts would no longer be correctly parsed and registered by Xen

[PATCH v2 1/2] arch/arm: irq: Add platform_get_irq_byname() implementation

2023-03-09 Thread Andrei Cherechesu (OSS)
From: Andrei Cherechesu Moved implementation for the function which parses the IRQs of a DT node by the "interrupt-names" property from the SMMU-v3 driver to the IRQ core code and made it non-static to be used as helper. Also changed it to receive a "struct dt_device_node*"

[PATCH v2 2/2] arch/arm: time: Add support for parsing interrupts by names

2023-03-09 Thread Andrei Cherechesu (OSS)
From: Andrei Cherechesu Added support for parsing the ARM generic timer interrupts DT node by the "interrupt-names" property, if it is available. If not available, the usual parsing based on the expected IRQ order is performed. Also changed to treating returning 0 as an error ca

[PATCH v3 2/2] arch/arm: time: Add support for parsing interrupts by names

2023-03-13 Thread Andrei Cherechesu (OSS)
From: Andrei Cherechesu Added support for parsing the ARM generic timer interrupts DT node by the "interrupt-names" property, if it is available. If not available, the usual parsing based on the expected IRQ order is performed. Also treated returning 0 as an error case for the platfo

[PATCH v3 1/2] arch/arm: irq: Add platform_get_irq_byname() implementation

2023-03-13 Thread Andrei Cherechesu (OSS)
From: Andrei Cherechesu Moved implementation for the function which parses the IRQs of a DT node by the "interrupt-names" property from the SMMU-v3 driver to the IRQ core code and made it non-static to be used as helper. Also changed it to receive a "struct dt_device_node*"

[PATCH v3 0/2] Fix ARM Generic Timer interrupt parsing

2023-03-13 Thread Andrei Cherechesu (OSS)
From: Andrei Cherechesu This 2-patch series fixes the parsing of the ARM Generic Timer interrupts from the device tree. If the generic timer interrupts order in the DT was different than the expected order in Xen code, these interrupts would no longer be correctly parsed and registered by Xen

[ARM][xencons] PV Console hangs due to illegal ring buffer accesses

2023-07-19 Thread Andrei Cherechesu (OSS)
s fine, and the domain is reachable via SSH and can continue to process the workload. We've not been able so far to figure out why this happens, so any help would be appreciated. If you need other Domain configuration details or any inputs from our side, let us know. Thank you, Andrei Cherechesu

Re: [ARM][xencons] PV Console hangs due to illegal ring buffer accesses

2023-07-21 Thread Andrei Cherechesu (OSS)
Hello, Julien, Stefano, Thank you for your replies. On 21/07/2023 02:25, Stefano Stabellini wrote: > > On Thu, 20 Jul 2023, Julien Grall wrote: >> (+ Juergen) >> >> On 19/07/2023 17:13, Andrei Cherechesu (OSS) wrote: >>> Hello, >> >> Hi Andrei, &g

[VirtIO] Support for various devices in Xen

2024-01-11 Thread Andrei Cherechesu (OSS)
ch for the support, once again, and we're also looking forward to the progress on the rust-vmm initiative. Regards, Andrei Cherechesu, NXP Semiconductors [0] https://github.com/xen-troops/virtio-disk

[PATCH v1 4/5] xen/arm: Enable early printk for S32CC via LINFlexD UART

2024-09-10 Thread Andrei Cherechesu (OSS)
From: Andrei Cherechesu Enabled the support for debug through early printk on S32CC platforms via the NXP LINFlexD UART driver. Signed-off-by: Andrei Cherechesu --- xen/arch/arm/Kconfig.debug | 4 1 file changed, 4 insertions(+) diff --git a/xen/arch/arm/Kconfig.debug b/xen/arch/arm

[PATCH v1 5/5] xen/arm: Enable workaround for Cortex-A53 erratum #1530924

2024-09-10 Thread Andrei Cherechesu (OSS)
From: Andrei Cherechesu All versions of Cortex-A53 cores are affected by the speculative AT instruction erratum, as mentioned in the Cortex-A53 Revision r0 SDEN v21 documentation. Enabled ARM64_WORKAROUND_AT_SPECULATE for all versions of Cortex-A53 cores, to avoid corrupting the TLB if

[PATCH v1 0/5] xen/arm: Add support for S32CC platforms and LINFlexD UART

2024-09-10 Thread Andrei Cherechesu (OSS)
From: Andrei Cherechesu This patch series adds support for NXP Automotive S32CC platform family, which includes S32G [0] and S32R [1]. First patch adds the driver for the NXP LINFlexD UART, available on S32V, S32G and S32R automotive processors. The compatibles in the driver match the ones in

[PATCH v1 2/5] xen/arm: Add NXP LINFlexD UART early printk support

2024-09-10 Thread Andrei Cherechesu (OSS)
From: Andrei Cherechesu This adds support for early printk debug via the NXP LINFlexD UART controller. Signed-off-by: Andrei Cherechesu Signed-off-by: Peter van der Perk --- xen/arch/arm/Kconfig.debug | 14 +++ xen/arch/arm/arm64/debug-linflex.inc | 58

[PATCH v1 1/5] xen/arm: Add NXP LINFlexD UART Driver

2024-09-10 Thread Andrei Cherechesu (OSS)
From: Andrei Cherechesu The LINFlexD UART is an UART controller available on NXP S32 processors family targeting automotive (for example: S32G2, S32G3, S32R). S32G3 Reference Manual: https://www.nxp.com/webapp/Download?colCode=RMS32G3. Signed-off-by: Andrei Cherechesu Signed-off-by: Peter van

[PATCH v1 3/5] xen/arm: platforms: Add NXP S32CC platform code

2024-09-10 Thread Andrei Cherechesu (OSS)
From: Andrei Cherechesu Added support for NXP S32CC platforms (S32G2, S32G3, S32R45), which need SCMI over SMC calls forwarded to the firmware running at EL3 (TF-A). Linux relies on the SCMI Platform for system services such as clocking, reset, etc. S32CC platforms use the NXP LINFlexD UART

[ImageBuilder][PATCH v4 0/1] Imagebuilder dynamic addresses and sizes

2022-09-30 Thread Andrei Cherechesu (OSS)
From: Andrei Cherechesu This sent patch adds support for dynamically computing the addresses and sizes for loaded binaries via the boot script generated by Imagebuilder. Compared to the v3 version of the patch, this includes Stefano's suggestions of not adding as many "if" st

[PATCH v4 1/1] uboot-script-gen: Dynamically compute addr and size when loading binaries

2022-09-30 Thread Andrei Cherechesu (OSS)
From: Andrei Cherechesu Normally, the Imagebuilder would precompute the sizes of the loaded binaries and addresses where they are loaded before generating the script, and the sizes and addresses that needed to be provided to Xen via /chosen would be hardcoded in the boot script. Added an option

[PATCH v3 0/6] xen/arm: Add support for S32CC platforms and LINFlexD UART

2024-12-18 Thread Andrei Cherechesu (OSS)
From: Andrei Cherechesu Targeting: Xen 4.20 This v3 version of this patch series finishes the work left to support NXP S32G3 Processors [0], part of the NXP S32CC Family. The LINFlexD UART support patches have been merged in v2. Platforms using S32G3 Processors are not affected by the TLBI by VA

[PATCH v3 2/6] xen/arm: vsmc: Enable handling SiP-owned SCMI SMC calls

2024-12-18 Thread Andrei Cherechesu (OSS)
From: Andrei Cherechesu Change the handling of SiP SMC calls to be more generic, instead of directly relying on the `platform_smc()` callback implementation. Try to handle the SiP SMC first through the `platform_smc()` callback (if implemented). If not handled, check if the SCMI layer is

[PATCH v3 4/6] CHANGELOG.md: Add NXP S32G3 and SCMI-SMC layer support mentions

2024-12-18 Thread Andrei Cherechesu (OSS)
From: Andrei Cherechesu Signed-off-by: Andrei Cherechesu --- CHANGELOG.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 15f681459f..bda43b1efb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -16,6 +16,9 @@ The format is based on [Keep a Changelog

[PATCH v3 6/6] MAINTAINERS: Add myself as maintainer for NXP S32G3

2024-12-18 Thread Andrei Cherechesu (OSS)
From: Andrei Cherechesu Add myself as maintainer for NXP S32G3 SoCs Family, and the S32 Linux Team as relevant reviewers list. Signed-off-by: Andrei Cherechesu --- MAINTAINERS | 6 ++ 1 file changed, 6 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 34ad49bc39..392f780f76

[PATCH v3 1/6] xen/arm: firmware: Add SCMI over SMC calls handling layer

2024-12-18 Thread Andrei Cherechesu (OSS)
From: Andrei Cherechesu Introduce the SCMI-SMC layer to have some basic degree of awareness about SCMI calls that are based on the ARM System Control and Management Interface (SCMI) specification (DEN0056E). The SCMI specification includes various protocols for managing system-level resources

[PATCH v3 5/6] SUPPORT.md: Describe SCMI-SMC layer feature

2024-12-18 Thread Andrei Cherechesu (OSS)
From: Andrei Cherechesu Describe the layer which enables SCMI over SMC calls forwarding to EL3 FW if issued by the Hardware domain. If the SCMI firmware node is not found in the Host DT during initialization, it fails silently as it's not mandatory. The SCMI SMCs trapping at EL2 now lets

[PATCH v3 3/6] xen/arm: platforms: Add NXP S32G3 Processors config

2024-12-18 Thread Andrei Cherechesu (OSS)
From: Andrei Cherechesu Platforms based on NXP S32G3 processors use the NXP LINFlexD UART driver for console by default, and rely on Dom0 having access to SCMI services for system-level resources from firmware at EL3. Signed-off-by: Andrei Cherechesu --- xen/arch/arm/platforms/Kconfig | 8

[PATCH v4 5/6] SUPPORT.md: Describe SCMI-SMC layer feature

2024-12-19 Thread Andrei Cherechesu (OSS)
From: Andrei Cherechesu Describe the layer which enables SCMI over SMC calls forwarding to EL3 FW if issued by the Hardware domain. If the SCMI firmware node is not found in the Host DT during initialization, it fails silently as it's not mandatory. The SCMI SMCs trapping at EL2 now lets

[PATCH v4 3/6] xen/arm: platforms: Add NXP S32G3 Processors config

2024-12-19 Thread Andrei Cherechesu (OSS)
From: Andrei Cherechesu Platforms based on NXP S32G3 processors use the NXP LINFlexD UART driver for console by default, and rely on Dom0 having access to SCMI services for system-level resources from firmware at EL3. Signed-off-by: Andrei Cherechesu Reviewed-by: Bertrand Marquis --- xen

[PATCH v4 0/6] xen/arm: Add support for S32CC platforms and LINFlexD UART

2024-12-19 Thread Andrei Cherechesu (OSS)
From: Andrei Cherechesu Targeting: Xen 4.20 This v4 version of this patch series finishes the work left to support NXP S32G3 Processors [0], part of the NXP S32CC Family. The LINFlexD UART support patches have been merged in v2. Platforms using S32G3 Processors are not affected by the TLBI by VA

[PATCH v4 6/6] MAINTAINERS: Add myself as maintainer for NXP S32G3

2024-12-19 Thread Andrei Cherechesu (OSS)
From: Andrei Cherechesu Add myself as maintainer for NXP S32G3 SoCs Family, and the S32 Linux Team as relevant reviewers list. Signed-off-by: Andrei Cherechesu Acked-by: Bertrand Marquis Acked-by: Michal Orzel --- MAINTAINERS | 6 ++ 1 file changed, 6 insertions(+) diff --git a

[PATCH v4 1/6] xen/arm: firmware: Add SCMI over SMC calls handling layer

2024-12-19 Thread Andrei Cherechesu (OSS)
From: Andrei Cherechesu Introduce the SCMI-SMC layer to have some basic degree of awareness about SCMI calls that are based on the ARM System Control and Management Interface (SCMI) specification (DEN0056E). The SCMI specification includes various protocols for managing system-level resources

[PATCH v4 2/6] xen/arm: vsmc: Enable handling SiP-owned SCMI SMC calls

2024-12-19 Thread Andrei Cherechesu (OSS)
From: Andrei Cherechesu Change the handling of SiP SMC calls to be more generic, instead of directly relying on the `platform_smc()` callback implementation. Try to handle the SiP SMC first through the `platform_smc()` callback (if implemented). Otherwise, try to handle it as SCMI message

[PATCH v4 4/6] CHANGELOG.md: Add NXP S32G3 and SCMI-SMC layer support mentions

2024-12-19 Thread Andrei Cherechesu (OSS)
From: Andrei Cherechesu Signed-off-by: Andrei Cherechesu Reviewed-by: Bertrand Marquis Acked-by: Oleksii Kurochko --- CHANGELOG.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 15f681459f..bda43b1efb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md