[Xen-devel] [PATCH v3] xen/arm: domain_build: Black list devices using PPIs

2019-06-23 Thread Amit Singh Tomar
interrupts sources is a PPI. It fixes XEN boot on i.MX8MQ by skipping the PMU node. Suggested-by: Julien Grall Signed-off-by: Amit Singh Tomar --- Changes since v2: * Update subject-line for the patch. * Fix commit message. * Add proper comments for changes. Changes since v1: * Added

[Xen-devel] [RFC PATCH 1/2] xen/arm: Add i.MX8MQ SoCs earlyprintk support

2019-06-07 Thread Amit Singh Tomar
This patch adds earlyprintk support for i.MX8MQ SoC based boards. As with most of other debug code for other platforms, uart is initialized by bootloaders(for instance u-boot[1]). [1]:https://github.com/u-boot/u-boot/blob/master/drivers/serial/serial_mxc.c#L141 Signed-off-by: Amit Singh Tomar

[Xen-devel] [RFC PATCH 2/2] xen/arm: Add UART driver for i.MX8MQ SoC

2019-06-07 Thread Amit Singh Tomar
-by: Amit Singh Tomar --- xen/drivers/char/Kconfig | 8 ++ xen/drivers/char/Makefile | 1 + xen/drivers/char/imx8mq-uart.c | 306 + 3 files changed, 315 insertions(+) create mode 100644 xen/drivers/char/imx8mq-uart.c diff --git a/xen/drivers

[Xen-devel] [RFC PATCH 0/2] XEN booting on i.MX8M platform

2019-06-07 Thread Amit Singh Tomar
th RAMFS. [1]:https://www.nxp.com/support/developer-resources/evaluation-and-development-boards/i.mx-evaluation-and-development-boards/evaluation-kit-for-the-i.mx-8m-applications-processor:MCIMX8M-EVK [2]:https://boundarydevices.com/product/nitrogen8m/ Amit Singh Tomar (2): xen/arm: Add i.MX8

[Xen-devel] [PATCH v2] xen/arm: Black list everything with a PPI

2019-06-02 Thread Amit Singh Tomar
boot on i.MX8MQ by skipping PMU node. Suggested-by: Julien Grall Signed-off-by: Amit Singh Tomar --- Changes since v1: * Added comment for PPIs range. --- xen/arch/arm/domain_build.c | 17 - 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/xen/arch/arm

[Xen-devel] [PATCH] xen/arm: Black list everything with a PPI

2019-05-03 Thread Amit Singh Tomar
boot on i.MX8MQ by skipping PMU node. Suggested-by: Julien Grall Signed-off-by: Amit Singh Tomar --- * This replaces following patch. https://patchwork.kernel.org/patch/10899881/ --- xen/arch/arm/domain_build.c | 16 +++- 1 file changed, 15 insertions(+), 1 deletion

[Xen-devel] [PATCH] xen/arm: Black list everything with a PPI

2019-05-03 Thread Amit Singh Tomar
boot on i.MX8MQ by skipping PMU node. Suggested-by: Julien Grall Signed-off-by: Amit Singh Tomar --- * This replaces following patch. https://patchwork.kernel.org/patch/10899881/ --- xen/arch/arm/domain_build.c | 17 - 1 file changed, 16 insertions(+), 1 deletion

[Xen-devel] [PATCH v4] xen/arm: Add Amlogic Meson SoCs earlyprintk support

2019-04-14 Thread Amit Singh Tomar
/drivers/meson/console/aarch64/meson_console.S#L92 [2]: https://github.com/u-boot/u-boot/blob/master/drivers/serial/serial_meson.c#L44 Signed-off-by: Amit Singh Tomar --- Changes since v3: * Change the commit message to include firmware names. Changes since v2: * Added the

[Xen-devel] [PATCH] xen/arm: Blacklist PMU with "arm, cortex-a53-pmu"

2019-04-14 Thread Amit Singh Tomar
aster/arch/arm64/boot/dts/freescale/imx8mq.dtsi#L124 Signed-off-by: Amit Singh Tomar --- xen/arch/arm/domain_build.c | 1 + 1 file changed, 1 insertion(+) diff --git a/xen/arch/arm/domain_build.c b/xen/arch/arm/domain_build.c index d983677..b54592a 100644 --- a/xen/arch/arm/domain_b

[Xen-devel] [PATCH v3] xen/arm: Add Amlogic Meson SoCs earlyprintk support

2019-04-13 Thread Amit Singh Tomar
/meson_console.S#L92 Signed-off-by: Amit Singh Tomar --- Changes since v2: * Added the commit message that talks about uart initialization. * Added dummy early_uart_init function. Changes since v1: * Fixed coding style issue. * Undone changes in early

[Xen-devel] [PATCH v2 1/3] xen/arm: Add Amlogic Meson SoCs earlyprintk support

2019-03-21 Thread Amit Singh Tomar
Signed-off-by: Amit Singh Tomar --- TODO: * Capture XEN boot info on WIKI. Changes since v1: * Fixed coding style issue. * Undone changes in early-printk.txt. Changes since RFC: * Replaced LDRH with LDR, with this there is no scattered output on

[Xen-devel] [PATCH v2 3/3] MAINTAINERS: add ARM meson serial driver

2019-03-21 Thread Amit Singh Tomar
The meson-uart.c is an ARM specific UART driver for the Amlogic MESON SoC family. Signed-off-by: Amit Singh Tomar --- MAINTAINERS | 1 + 1 file changed, 1 insertion(+) diff --git a/MAINTAINERS b/MAINTAINERS index ba7527c..aff7f81 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -182,6 +182,7 @@ F

[Xen-devel] [PATCH v2 2/3] xen/arm: Add MESON UART driver for Amlogic Meson SoCs

2019-03-21 Thread Amit Singh Tomar
RT + * + * Copyright (c) 2019, Amit Singh Tomar . + * + * This program is free software; you can redistribute it and/or + * modify it under the terms and conditions of the GNU General Public + * License, version 2, as published by the Free Software Foundation. + * + * This program is distributed

[Xen-devel] [PATCH v1 1/2] xen/arm: Add Amlogic Meson SoCs earlyprintk support

2019-01-26 Thread Amit Singh Tomar
Signed-off-by: Amit Singh Tomar --- TODO: * Capture XEN boot info on WIKI(just forgot my XEN Wiki credentials). Changes since RFC: * Replaced LDRH with LDR, with this there is no scattered output on console now. * Used tbnz instead of tst and b.ne

[Xen-devel] [PATCH v1 2/2] xen/arm: Add MESON UART driver for Amlogic Meson SoCs

2019-01-26 Thread Amit Singh Tomar
This patch adds driver for UART controller present on Amlogic Meson SoCs and it has been tested on Nanopi K2 board based on S905 SoC. Controller registers defination is taken from Linux 4.20. Signed-off-by: Amit Singh Tomar --- Changes since RFC: * Removed S905 reference as other

[Xen-devel] [PATCH v3] xen:arm: Populate arm64 image header

2018-09-11 Thread Amit Singh Tomar
boot on Amlogic SoC where bootloader(U-BOOT) always relocates the XEN image to an address range reserved for firmware data. Signed-off-by: Amit Singh Tomar --- Changes since v2: * Undo changes in assembler.h(as suggested by Andre) Changes since v1: * Updated commit message

[Xen-devel] [PATCH v2] xen:arm: Populate arm64 image header

2018-09-04 Thread Amit Singh Tomar
boot on Amlogic SoC where bootloader(U-BOOT) always relocates the XEN image to an address range reserved for firmware data. Signed-off-by: Amit Singh Tomar --- Changes since v1: * Updated commit message * Removed endianess code --- xen/arch/arm/arm64/head.S | 5

[Xen-devel] [PATCH] xen:arm: Populate arm64 image header

2018-08-31 Thread Amit Singh Tomar
flags so that image wouldn't relocate from initial load address. [1]:https://git.denx.de/?p=u-boot.git;a=blob;f=arch/arm/lib/image.c;h=699bf44e702f7a7084997406203fd7d2aaaf87fa;hb=HEAD#l50 These changes are derived from kernel v4.18 files Signed-off-by: Amit Singh Tomar --- xen/arch/arm/

[Xen-devel] [RFC PATCH 2/2] xen/arm: Add MESON UART driver for Amlogic S905 SoC

2018-08-07 Thread Amit Singh Tomar
This patch adds driver for UART controller present on Amlogic S905 SoC. https://dn.odroid.com/S905/DataSheet/S905_Public_Datasheet_V1.1.4.pdf Signed-off-by: Amit Singh Tomar --- xen/drivers/char/Kconfig | 8 ++ xen/drivers/char/Makefile | 1 + xen/drivers/char/meson-uart.c | 290

[Xen-devel] [RFC PATCH 0/2] xen/arm64: Add Support for Amlogic S905 SoC

2018-08-07 Thread Amit Singh Tomar
This small series enabled XEN booting on NanoPI K2 board[1] based on Amlogic SoC. It has been tested by booting Dom0 Kernel. TODO: * Wiki page to capture XEN boot info. [1]: https://www.friendlyarm.com/index.php?route=product/product&product_id=186 Amit Singh Tomar (2): xen/arm:

[Xen-devel] [RFC PATCH 1/2] xen/arm: Add Amlogic S905 SoC early printk support

2018-08-07 Thread Amit Singh Tomar
Signed-off-by: Amit Singh Tomar --- docs/misc/arm/early-printk.txt | 1 + xen/arch/arm/Rules.mk | 1 + xen/arch/arm/arm64/debug-meson.inc | 50 ++ 3 files changed, 52 insertions(+) create mode 100644 xen/arch/arm/arm64/debug-meson.inc diff

[Xen-devel] [PATCH] xen: char: Remove unnecessary (uart->irq > 0) check

2018-04-28 Thread Amit Singh Tomar
in XEN. Signed-off-by: Amit Singh Tomar --- * This patch is only compiled tested. --- xen/drivers/char/cadence-uart.c | 15 --- xen/drivers/char/ns16550.c | 35 ++- xen/drivers/char/omap-uart.c| 2 +- xen/drivers/char/pl011.c

[Xen-devel] [PATCH v4] xen/arm: Add MVEBU UART driver for Marvell Armada 3700 SoC

2018-04-06 Thread Amit Singh Tomar
: c685af1108d7c303f0b901413405d68eaeac4477 Signed-off-by: Amit Singh Tomar --- Changes since v3: * Dropped uart->irq > 0 checks * Fixed coding style issue. * Driver entry in MAINTAINERS file * Fixed inconsistent STAT_TX_FIFO_* naming Changes since v2: * Addressed Andre's comments. Chang

[Xen-devel] [PATCH v3 1/2] xen/arm: Add MVEBU UART driver for Marvell Armada 3700 SoC

2018-04-05 Thread Amit Singh Tomar
This patch adds driver for UART controller found on Armada 3700 SoC. There is no reference manuals available for 3700 SoC in public and it is derived by looking at Linux driver[1]. [1]https://github.com/torvalds/linux/blob/master/drivers/tty/serial/mvebu-uart.c Signed-off-by: Amit Singh Tomar

[Xen-devel] [PATCH 0/2] Add support for Marvell Armada 3700 SoC

2018-04-05 Thread Amit Singh Tomar
This patch-set enables XEN booting[1] on ESPRESSObin board based on Marvell Armada 3700 SoC. I would like to Thanks Andre for helping on this. [1]https://wiki.xen.org/wiki/Xen_ARM_with_Virtualization_Extensions/ESPRESSObin Amit Singh Tomar (2): xen/arm: Add MVEBU UART driver for Marvell

[Xen-devel] [PATCH v3 2/2] xen/arm: Add Marvell ARMADA 3700 early printk support

2018-04-05 Thread Amit Singh Tomar
Signed-off-by: Amit Singh Tomar --- Changes since v2: * Addressed Andre's comments. Changes since v1: * Removed header file dependency. --- docs/misc/arm/early-printk.txt | 1 + xen/arch/arm/Rules.mk | 1 + xen/arch/arm/arm64/debug-mvebu.inc

[Xen-devel] [PATCH v2 2/2] xen/arm: Add Marvell ARMADA 3700 early printk support

2018-04-03 Thread Amit Singh Tomar
Signed-off-by: Amit Singh Tomar --- Changes since v1: * Removed header file dependency. --- docs/misc/arm/early-printk.txt | 1 + xen/arch/arm/Rules.mk | 1 + xen/arch/arm/arm64/debug-mvebu.inc | 50 ++ 3 files changed, 52

[Xen-devel] [PATCH v2 1/2] xen/arm: Add MVEBU UART driver for Marvell Armada 3700 SoC

2018-04-03 Thread Amit Singh Tomar
This patch adds driver for UART controller found on Armada 3700 SoC. There is no reference manuals available for 3700 SoC in public and it is derived by looking at Linux driver[1]. [1]https://github.com/torvalds/linux/blob/master/drivers/tty/serial/mvebu-uart.c Signed-off-by: Amit Singh Tomar

[Xen-devel] [PATCH 0/2] Add support for Marvell Armada 3700 SoC

2018-04-03 Thread Amit Singh Tomar
This patch-set enables XEN booting[1] on ESPRESSObin board based on Marvell Armada 3700 SoC. I would like to Thanks Andre for helping on this. [1]https://wiki.xen.org/wiki/Xen_ARM_with_Virtualization_Extensions/ESPRESSObin Amit Singh Tomar (2): xen/arm: Add MVEBU UART driver for Marvell

[Xen-devel] [PATCH v2] xen/arm: Fix platform name to xilinx_zynqmp from xgene_storm

2018-03-18 Thread Amit Singh Tomar
Signed-off-by: Amit Singh Tomar --- Changes since v1: * Addressed Andre's comment. --- xen/arch/arm/platforms/xilinx-zynqmp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xen/arch/arm/platforms/xilinx-zynqmp.c b/xen/arch/arm/platforms/xilinx-zynqmp.c index 2a

[Xen-devel] [PATCH v1] xen/arm: Add Marvell ARMADA 3700 early printk support

2018-03-18 Thread Amit Singh Tomar
Signed-off-by: Amit Singh Tomar --- docs/misc/arm/early-printk.txt | 1 + xen/arch/arm/Rules.mk | 1 + xen/arch/arm/arm64/debug-mvebu.inc | 48 ++ 3 files changed, 50 insertions(+) create mode 100644 xen/arch/arm/arm64/debug-mvebu.inc diff

[Xen-devel] [PATCH v1] xen/arm: Add MVEBU UART driver for Armada 3700 SoC

2018-03-16 Thread Amit Singh Tomar
ESPRESSObin board based on Marvell's ARMADA 3700 SoC. Signed-off-by: Amit Singh Tomar --- Changes since RFC: * Addressed Julien's Comments. TODO: * Wiki page to capture XEN boot info. * earlyprintk support. --- xen/drivers/char/Kconfig | 8 ++ xen/dr

[Xen-devel] [RFC PATCH] xen/arm64: Add Support for Marvell ARMADA 3700 SoC

2018-03-10 Thread Amit Singh Tomar
set /chosen/modules/module@0 compatible "multiboot,kernel", "multiboot,module";fdt resize fdt set /chosen/modules/module@0 reg < $kernel_addr_r 0x180 > booti ${xen_addr_r} - ${fdt_addr_r} I would really like to Thanks Andre for helping me out on this. [1]http://w

[Xen-devel] [RFC PATCH] xen/arm: Add MVEBU UART driver for Armada 3700 SoC

2018-03-10 Thread Amit Singh Tomar
This patch adds driver for UART controller found on Armada 3700 SoC. There is no reference manuals available for 3700 SoC in public and this driver is derived by looking at Linux driver. Signed-off-by: Amit Singh Tomar --- xen/drivers/char/Kconfig | 8 ++ xen/drivers/char/Makefile

[Xen-devel] [PATCH] xen/arm: Fix platform name for Xilinx ZynqMP

2018-01-25 Thread Amit Singh Tomar
This seems to be copy/paste error.This patch simply replace string xgene_storm with xilink_zymp for xilink platform. Signed-off-by: Amit Singh Tomar --- xen/arch/arm/platforms/xilinx-zynqmp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xen/arch/arm/platforms/xilinx