[PATCH 1/3] xen/arm: Add i.MX lpuart driver

2022-02-27 Thread Peng Fan (OSS)
From: Peng Fan Signed-off-by: Peng Fan --- xen/drivers/char/Kconfig | 8 + xen/drivers/char/Makefile | 1 + xen/drivers/char/imx-lpuart.c | 303 ++ xen/include/xen/imx-lpuart.h | 64 +++ 4 files changed, 376 insertions(+) create mode 100644

[PATCH 0/3] xen/arm: add i.MX lpuart and i.MX8QM initial support

2022-02-27 Thread Peng Fan (OSS)
From: Peng Fan Add i.MX lpuart driver and i.MX8QM platform support. - lpuart is the uart IP used in i.MX8QM/QXP/93. - Very basic i.MX8QM platform support. Peng Fan (3): xen/arm: Add i.MX lpuart driver xen/arm: Add i.MX lpuart early printk support xen/arm: Add i.MX8QM platform support

[PATCH 3/3] xen/arm: Add i.MX8QM platform support

2022-02-27 Thread Peng Fan (OSS)
From: Peng Fan Signed-off-by: Peng Fan --- xen/arch/arm/Kconfig.debug | 3 +++ xen/arch/arm/platforms/Makefile | 1 + xen/arch/arm/platforms/imx8qm.c | 44 + 3 files changed, 48 insertions(+) create mode 100644 xen/arch/arm/platforms/imx8qm.c diff --git

[PATCH 2/3] xen/arm: Add i.MX lpuart early printk support

2022-02-27 Thread Peng Fan (OSS)
From: Peng Fan Signed-off-by: Peng Fan --- xen/arch/arm/Kconfig.debug | 18 ++ xen/arch/arm/arm64/debug-imx-lpuart.inc | 48 + 2 files changed, 66 insertions(+) create mode 100644 xen/arch/arm/arm64/debug-imx-lpuart.inc diff --git

[PATCH V2 1/2] xen/arm: Add i.MX lpuart driver

2022-04-01 Thread Peng Fan (OSS)
From: Peng Fan The i.MX LPUART Documentation: https://www.nxp.com/webapp/Download?colCode=IMX8QMIEC Chatper 13.6 Low Power Universal Asynchronous Receiver/ Transmitter (LPUART) Signed-off-by: Peng Fan --- xen/drivers/char/Kconfig | 8 + xen/drivers/char/Makefile | 1 +

[PATCH V2 0/2] xen/arm: add i.MX lpuart and i.MX8QM initial support

2022-04-01 Thread Peng Fan (OSS)
From: Peng Fan V2: Per Julien's comments, fix coding style issue, drop unneeded code Add i.MX lpuart driver and i.MX8QM platform support. - lpuart is the uart IP used in i.MX8QM/QXP/93. - Very basic i.MX8QM platform support. Peng Fan (2): xen/arm: Add i.MX lpuart driver xen/arm: Add

[PATCH V2 2/2] xen/arm: Add i.MX lpuart early printk support

2022-04-01 Thread Peng Fan (OSS)
From: Peng Fan Signed-off-by: Peng Fan --- xen/arch/arm/Kconfig.debug | 14 +++ xen/arch/arm/arm64/debug-imx-lpuart.inc | 52 + 2 files changed, 66 insertions(+) create mode 100644 xen/arch/arm/arm64/debug-imx-lpuart.inc diff --git

[PATCH V6 1/2] xen/arm: Add i.MX lpuart driver

2022-04-18 Thread Peng Fan (OSS)
From: Peng Fan The i.MX LPUART Documentation: https://www.nxp.com/webapp/Download?colCode=IMX8QMIEC Chatper 13.6 Low Power Universal Asynchronous Receiver/ Transmitter (LPUART) Tested-by: Henry Wang Signed-off-by: Peng Fan --- xen/arch/arm/include/asm/imx-lpuart.h | 64 ++

[PATCH V6 2/2] xen/arm: Add i.MX lpuart early printk support

2022-04-18 Thread Peng Fan (OSS)
From: Peng Fan Signed-off-by: Peng Fan --- xen/arch/arm/Kconfig.debug | 14 xen/arch/arm/arm64/debug-imx-lpuart.inc | 48 + 2 files changed, 62 insertions(+) create mode 100644 xen/arch/arm/arm64/debug-imx-lpuart.inc diff --git

[PATCH V6 0/2] xen/arm: add i.MX lpuart and i.MX8QM initial support

2022-04-18 Thread Peng Fan (OSS)
From: Peng Fan V6: Fix a stale variable check per Stefano's comments. V5: Align code drop early_uart_init V4: Wrong v3 version, some BIT definition are mixed in patch 1,2. V3: Addressed Michal's comments. Add Henry's T-b V2: Per Julien's comments, fix coding style issue, drop

[PATCH V3 0/2] xen/arm: add i.MX lpuart and i.MX8QM initial support

2022-04-06 Thread Peng Fan (OSS)
From: Peng Fan V3: Addressed Michal's comments. Add Henry's T-b V2: Per Julien's comments, fix coding style issue, drop unneeded code Add i.MX lpuart driver and i.MX8QM platform support. - lpuart is the uart IP used in i.MX8QM/QXP/93. - Very basic i.MX8QM platform support. Peng Fan (2):

[PATCH V3 2/2] xen/arm: Add i.MX lpuart early printk support

2022-04-06 Thread Peng Fan (OSS)
From: Peng Fan Signed-off-by: Peng Fan --- xen/arch/arm/Kconfig.debug | 14 +++ xen/arch/arm/arm64/debug-imx-lpuart.inc | 52 + xen/arch/arm/include/asm/imx-lpuart.h | 22 +-- 3 files changed, 77 insertions(+), 11 deletions(-) create mode

[PATCH V3 1/2] xen/arm: Add i.MX lpuart driver

2022-04-06 Thread Peng Fan (OSS)
From: Peng Fan The i.MX LPUART Documentation: https://www.nxp.com/webapp/Download?colCode=IMX8QMIEC Chatper 13.6 Low Power Universal Asynchronous Receiver/ Transmitter (LPUART) Tested-by: Henry Wang Signed-off-by: Peng Fan --- xen/arch/arm/include/asm/imx-lpuart.h | 64 ++

[PATCH V4 0/2] xen/arm: add i.MX lpuart and i.MX8QM initial support

2022-04-08 Thread Peng Fan (OSS)
From: Peng Fan V4: Wrong v3 version, some BIT definition are mixed in patch 1,2. V3: Addressed Michal's comments. Add Henry's T-b V2: Per Julien's comments, fix coding style issue, drop unneeded code Add i.MX lpuart driver and i.MX8QM platform support. - lpuart is the uart IP used in

[PATCH V4 1/2] xen/arm: Add i.MX lpuart driver

2022-04-08 Thread Peng Fan (OSS)
From: Peng Fan The i.MX LPUART Documentation: https://www.nxp.com/webapp/Download?colCode=IMX8QMIEC Chatper 13.6 Low Power Universal Asynchronous Receiver/ Transmitter (LPUART) Tested-by: Henry Wang Signed-off-by: Peng Fan --- xen/arch/arm/include/asm/imx-lpuart.h | 64 ++

[PATCH V4 2/2] xen/arm: Add i.MX lpuart early printk support

2022-04-08 Thread Peng Fan (OSS)
From: Peng Fan Signed-off-by: Peng Fan --- xen/arch/arm/Kconfig.debug | 14 +++ xen/arch/arm/arm64/debug-imx-lpuart.inc | 52 + 2 files changed, 66 insertions(+) create mode 100644 xen/arch/arm/arm64/debug-imx-lpuart.inc diff --git

[PATCH V5 1/2] xen/arm: Add i.MX lpuart driver

2022-04-14 Thread Peng Fan (OSS)
From: Peng Fan The i.MX LPUART Documentation: https://www.nxp.com/webapp/Download?colCode=IMX8QMIEC Chatper 13.6 Low Power Universal Asynchronous Receiver/ Transmitter (LPUART) Tested-by: Henry Wang Signed-off-by: Peng Fan --- xen/arch/arm/include/asm/imx-lpuart.h | 64 ++

[PATCH V5 0/2] xen/arm: add i.MX lpuart and i.MX8QM initial support

2022-04-14 Thread Peng Fan (OSS)
From: Peng Fan V5: Align code drop early_uart_init V4: Wrong v3 version, some BIT definition are mixed in patch 1,2. V3: Addressed Michal's comments. Add Henry's T-b V2: Per Julien's comments, fix coding style issue, drop unneeded code Add i.MX lpuart driver and i.MX8QM platform

[PATCH V5 2/2] xen/arm: Add i.MX lpuart early printk support

2022-04-14 Thread Peng Fan (OSS)
From: Peng Fan Signed-off-by: Peng Fan --- xen/arch/arm/Kconfig.debug | 14 xen/arch/arm/arm64/debug-imx-lpuart.inc | 48 + 2 files changed, 62 insertions(+) create mode 100644 xen/arch/arm/arm64/debug-imx-lpuart.inc diff --git

[PATCH V2] xen: Drop out of coroutine context xen_invalidate_map_cache_entry

2024-01-23 Thread Peng Fan (OSS)
From: Peng Fan xen_invalidate_map_cache_entry is not expected to run in a coroutine. Without this, there is crash: signo=signo@entry=6, no_tid=no_tid@entry=0) at pthread_kill.c:44 threadid=) at pthread_kill.c:78 at /usr/src/debug/glibc/2.38+git-r0/sysdeps/posix/raise.c:26

[PATCH] xen: Drop out of coroutine context xen_invalidate_map_cache_entry

2024-01-16 Thread Peng Fan (OSS)
From: Peng Fan xen_invalidate_map_cache_entry is not expected to run in a coroutine. Without this, there is crash: signo=signo@entry=6, no_tid=no_tid@entry=0) at pthread_kill.c:44 threadid=) at pthread_kill.c:78 at /usr/src/debug/glibc/2.38+git-r0/sysdeps/posix/raise.c:26