RE: [POLL] Interest in next Xen Project meetup (Cambridge)

2024-09-25 Thread Peng Fan
Hi Kelly, Wonder whether there will be recording or notes for this and public later? Thanks, Peng. From: Xen-users On Behalf Of Kelly Choi Sent: Wednesday, September 25, 2024 10:59 PM To: xen-devel ; xen-us...@lists.xenproject.org Subject: [POLL] Interest in next Xen Project meetup (Cambridge)

RE: Question: xen + vhost user

2024-07-08 Thread Peng Fan
> Subject: Re: Question: xen + vhost user > > +Edgar > > I don't think we are using vhost-user so I am unable to help, but adding > Edgar just in case Thanks, just an update, it works after some code changes to Qemu. Thanks, Peng. > > On Sun, 30 Jun 202

Question: xen + vhost user

2024-06-30 Thread Peng Fan
Hi All, I am trying to enable vhost user input with xen hypervisor on i.MX95, using qemu vhost-user-input. But meet " Invalid vring_addr message ". My xen domu cfg: '-chardev', 'socket,path=/tmp/input.sock,id=mouse0', '-device', 'vhost-user-input-pci,chardev=mouse0', Anyone knows what missing?

RE: [PATCH] xen/arm: imx8qm: Re-license file to GPL-2.0-only

2024-04-16 Thread Peng Fan
I [3] are ok with GPL-2.0.-only as a > license. Change the license. > > Cc: Peng Fan > Link: > https://lore.ke/ > rnel.org%2Fxen-devel%2F084b9ed5-1585-4802-b504- > 6ccd2f262542%40xen.org%2F&data=05%7C02%7Cpeng.fan%40nxp.com%7C > 0620114718b349f6acaf08dc5e1a9

RE: [PATCH v4 1/3] xen/arm: Add imx8q{m,x} platform glue

2024-04-15 Thread Peng Fan
Hi Julien, John, > Subject: Re: [PATCH v4 1/3] xen/arm: Add imx8q{m,x} platform glue > > Hi John, > > On 15/04/2024 12:17, John Ernberg wrote: > > Hi Julien, > > > > On 4/15/24 1:03 PM, Julien Grall wrote: > >> > >> > >> On 15/04/2024 11:50, Andrew Cooper wrote: > >>> On 15/04/2024 11:25 am, Julie

RE: [PATCH v4 3/3] MAINTAINERS: Become a reviewer of iMX8Q{M,XP} related patches

2024-04-08 Thread Peng Fan
g > +F: xen/arch/arm/platforms/imx8qm.c > +F: xen/drivers/char/imx-lpuart.c > + > INTEL(R) TRUSTED EXECUTION TECHNOLOGY (TXT) > R: Lukasz Hawrylko > R: Daniel P. Smith > -- Acked-by: Peng Fan

RE: [PATCH v4 1/3] xen/arm: Add imx8q{m,x} platform glue

2024-04-08 Thread Peng Fan
%2Farm%2Fplatforms%2Fimx8qm.c&data=05%7 > C02%7Cpeng.fan%40nxp.com%7C5602a2d54f074c7dcd9608dc57e69286%7 > C686ea1d3bc2b4c6fa92cd99c5c301635%7C0%7C0%7C6384818950076004 > 32%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMz > IiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C0%7C%7C%7C&

RE: [PATCH v4 2/3] xen/drivers: imx-lpuart: Replace iMX8QM compatible with iMX8QXP

2024-04-08 Thread Peng Fan
t_init(struct > dt_device_node *dev, > > static const struct dt_device_match imx_lpuart_dt_compat[] __initconst = { > -DT_MATCH_COMPATIBLE("fsl,imx8qm-lpuart"), > +DT_MATCH_COMPATIBLE("fsl,imx8qxp-lpuart"), > { /* sentinel */ }, Reviewed-by: Peng Fan > }; > > -- > 2.44.0

RE: [PATCH 2/2] xen/arm: Add i.MX UART driver

2024-04-06 Thread Peng Fan
Hi Oleksandr, > Subject: [PATCH 2/2] xen/arm: Add i.MX UART driver > > From: Oleksandr Tyshchenko > > The i.MX UART Documentation: > https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww. > nxp.com%2Fwebapp%2FDownload%3FcolCode%3DIMX8MMRM&data=05%7 > C02%7Cpeng.fan%40nxp.com%7C6

RE: [PATCH 1/2] xen/arm: Add imx8q{m,x} platform glue

2024-03-20 Thread Peng Fan
> Subject: Re: [PATCH 1/2] xen/arm: Add imx8q{m,x} platform glue > > On Wed, 20 Mar 2024, Julien Grall wrote: > > Hi John, > > > > On 20/03/2024 16:24, John Ernberg wrote: > > > Hi Bertrand, > > > > > > On 3/13/24 11:07, Bertrand Marquis wrote: > > > > Hi, > > > > > > > > > On 8 Mar 2024, at 15:04

RE: question about virtio-vsock on xen

2024-02-26 Thread Peng Fan
> Subject: Re: question about virtio-vsock on xen > > > > On 26.02.24 05:09, Peng Fan wrote: > > Hi Oleksandr, > > Hello Peng > > > [snip] > > >> > >> ... Peng, we have vhost-vsock (and vhost-net) Xen PoC. Although > >>

RE: question about virtio-vsock on xen

2024-02-26 Thread Peng Fan
> Subject: RE: question about virtio-vsock on xen > > On Mon, 26 Feb 2024, Peng Fan wrote: > > Hi Stefano, > > > > > Subject: Re: question about virtio-vsock on xen > > > > > > Hi Peng, > > > > > > We haven't tried to setup

RE: question about virtio-vsock on xen

2024-02-25 Thread Peng Fan
t doesn't help you with the specific > > question you had below :-) > > > > For that, I don't have a pointer to help you but maybe others in CC > > have. > > > Yes, I will try to provide some info ... > > > > > > Cheers, > > > > S

RE: question about virtio-vsock on xen

2024-02-25 Thread Peng Fan
estion > you had below :-) > > For that, I don't have a pointer to help you but maybe others in CC have. > > Cheers, > > Stefano > > > On Fri, 23 Feb 2024, Peng Fan wrote: > > Hi All, > > > > Has anyone make virtio-vsock on xen work? My dm args

question about virtio-vsock on xen

2024-02-23 Thread Peng Fan
Hi All, Has anyone make virtio-vsock on xen work? My dm args as below: virtio = [ 'backend=0,type=virtio,device,transport=pci,bdf=05:00.0,backend_type=qemu,grant_usage=true' ] device_model_args = [ '-D', '/home/root/qemu_log.txt', '-d', 'trace:*vsock*,trace:*vhost*,trace:*virtio*,trace:*pci_upda

RE: [PATCH 1/2] xen/arm: Add imx8q{m,x} platform glue

2024-02-04 Thread Peng Fan
> -Original Message- > From: Julien Grall > Sent: 2024年2月2日 17:20 > To: John Ernberg ; Stefano Stabellini > ; Bertrand Marquis ; > Michal Orzel ; Volodymyr Babchuk > ; Peng Fan > Cc: Jonas Blixt ; xen-devel@lists.xenproject.org > Subject: Re: [PATCH

RE: [PATCH 1/2] xen/arm: Add imx8q{m,x} platform glue

2024-01-31 Thread Peng Fan
+obj-$(CONFIG_ALL64_PLAT) += imx8qm.o > >>   obj-$(CONFIG_MPSOC_PLATFORM)  += xilinx-zynqmp.o > >>   obj-$(CONFIG_MPSOC_PLATFORM)  += xilinx-zynqmp-eemi.o diff --git > >> a/xen/arch/arm/platforms/imx8qm.c > b/xen/arch/arm/platforms/imx8qm.c > >> new file mode 100644 ind

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

2024-01-24 Thread Peng Fan
> Subject: Re: [PATCH] xen: Drop out of coroutine context > xen_invalidate_map_cache_entry > > On Tue, 16 Jan 2024, Peng Fan (OSS) wrote: > > From: Peng Fan > > > > xen_invalidate_map_cache_entry is not expected to run in a coroutine. > > Without this, the

[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 fmt

[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 fmt

!qemu_in_coroutine() assert on ARM64 XEN

2024-01-07 Thread Peng Fan
Hi All, When enabling virtio disk and virtio net on Xen, I could see qemu blk assert and being killed sometimes, This is not 100% reproducible. I am using qemu master branch 7425b6277f12e82952cede1f531bfc689bf77fb1 (HEAD -> dummy, origin/staging, origin/master, origin/HEAD, master) Merge tag 't

RE: Xen and Qemu virtio question

2024-01-05 Thread Peng Fan
Hi Vikram, > Subject: Re: Xen and Qemu virtio question > > Hi Peng, > Please see my comments below. > On Wed, Jan 03, 2024 at 05:38:07AM +, Peng Fan wrote: > > Hi Vikram, Oleksii > > > > I follow the slide virtio for Xen on ARM[1], but I met some issues,

Xen and Qemu virtio question

2024-01-02 Thread Peng Fan
Hi Vikram, Oleksii I follow the slide virtio for Xen on ARM[1], but I met some issues, and stuck for about two days. I use upstream lastest qemu repo master branch, not qemu-xen.git repo. My start command as below[2], but seems I need first `xl create domu.cfg`, otherwise it will fail, because x

XEN virtio question

2024-01-01 Thread Peng Fan
All, I am trying to setup xen virtio on NXP i.MX9, but when build xen tools, I always met qemu build error, such as: In file included from ../qemu-xen-dir-remote/hw/xen/xen-operations.c:16: /home/Freenix/work/sw-stash/xen/upstream/tools/qemu-xen-dir-remote/ include/hw/xen/xen_native.h:5:2: error:

RE: [Xen-devel] SMMU permission fault on Dom0 when init vpu_decoder

2022-06-01 Thread Peng Fan
sb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiL > CJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=KcbEjN80VJS5yq4KMp2g > NjQuVtx95jKHH5T32ZCj3Do%3D&reserved=0. > > > > After some investigation I found that this issue was fixed by Peng Fan > > in > &

RE: [Xen-devel] SMMU permission fault on Dom0 when init vpu_decoder

2022-06-01 Thread Peng Fan
> Subject: Re: [Xen-devel] SMMU permission fault on Dom0 when init > vpu_decoder > > On Wed, Jun 01, 2022 at 07:59:23AM +0000, Peng Fan wrote: > > > Subject: [Xen-devel] SMMU permission fault on Dom0 when init > > > vpu_decoder > > > > > > Hello, &g

RE: [Xen-devel] SMMU permission fault on Dom0 when init vpu_decoder

2022-06-01 Thread Peng Fan
c2b > 4c6fa92cd99c5c301635%7C0%7C0%7C637895208732114203%7CUnknown% > 7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiL > CJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=no%2BV2ubjGmrsm96NP > ybeeug4a3BXx3oX7xmylzZCU8E%3D&reserved=0. > > After some investigation I found that this i

[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 ++ xen/drivers

[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 a/xen/arch/arm

[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 codi

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

2022-04-17 Thread Peng Fan
> Subject: Re: [PATCH V5 1/2] xen/arm: Add i.MX lpuart driver > > On Thu, 14 Apr 2022, Peng Fan (OSS) wrote: > > From: Peng Fan > > > > The i.MX LPUART Documentation: > > https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww. > >

[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 ++ xen/drivers

[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 a/xen/arch/arm

[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

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

2022-04-08 Thread Peng Fan
Hi Michal, > -Original Message- > From: Michal Orzel [mailto:michal.or...@arm.com] > Sent: 2022年4月8日 18:23 > To: Peng Fan (OSS) ; sstabell...@kernel.org; > jul...@xen.org; volodymyr_babc...@epam.com; > bertrand.marq...@arm.com > Cc: andrew.coop...@citrix.com; geo

[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 a/xen/arch/arm

[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 ++ xen/drivers

[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

[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 suppor

[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 ++ xen/drivers

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

2022-04-06 Thread Peng Fan
> Subject: Re: [PATCH V2 1/2] xen/arm: Add i.MX lpuart driver > > Hi Peng, > > On 02.04.2022 07:42, Peng Fan (OSS) wrote: > > From: Peng Fan > > > > The i.MX LPUART Documentation: > > > https://eur01.safelinks.protection.outlook.com/?url=https%3A%2

[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 + xen

[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 a/xen/arch/arm

[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

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

2022-03-17 Thread Peng Fan
> Subject: Re: [PATCH 2/3] xen/arm: Add i.MX lpuart early printk support > > Hi Peng, > > On 28/02/2022 01:07, Peng Fan (OSS) wrote: > > From: Peng Fan > > > > Signed-off-by: Peng Fan > > --- > > xen/arch/arm/Kconfig.debug | 18

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

2022-03-17 Thread Peng Fan
> Subject: Re: [PATCH 3/3] xen/arm: Add i.MX8QM platform support > > Hi Peng, > > On 28/02/2022 01:07, Peng Fan (OSS) wrote: > > From: Peng Fan > > > > Signed-off-by: Peng Fan > > --- > > xen/arch/arm/Kconfig.debug | 3 +++ > > xen/ar

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

2022-03-17 Thread Peng Fan
Hi Julien, > Subject: Re: [PATCH 1/3] xen/arm: Add i.MX lpuart driver > > Hi Peng, > > On 28/02/2022 01:07, Peng Fan (OSS) wrote: > > From: Peng Fan > > > > Signed-off-by: Peng Fan > > --- > > xen/drivers/char/Kconfig | 8 + > >

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

2022-02-28 Thread Peng Fan
Hi Julien, > Subject: Re: [PATCH 1/3] xen/arm: Add i.MX lpuart driver > > Hi Peng, > > On 28/02/2022 01:07, Peng Fan (OSS) wrote: > > From: Peng Fan > > Can you give me a link to the specification and/or a similar driver in Linux? https://www.nxp.com/webapp

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

2022-02-28 Thread Peng Fan
> Subject: Re: [PATCH 0/3] xen/arm: add i.MX lpuart and i.MX8QM initial > support > > On 28.02.2022 02:07, Peng Fan (OSS) wrote: > > From: Peng Fan > > > > Add i.MX lpuart driver and i.MX8QM platform support. > > - lpuart is the uart IP used in i.MX8QM/QXP/93

[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 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 a/xen/arch/arm

[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

RE: [PATCH] xen: introduce xen_vring_use_dma

2020-07-12 Thread Peng Fan
> Subject: Re: [PATCH] xen: introduce xen_vring_use_dma > > Sorry for the late reply -- a couple of conferences kept me busy. > > > On Wed, 1 Jul 2020, Michael S. Tsirkin wrote: > > On Wed, Jul 01, 2020 at 10:34:53AM -0700, Stefano Stabellini wrote: > > > Would you be in favor of a more flexible

RE: [PATCH] xen: introduce xen_vring_use_dma

2020-06-29 Thread Peng Fan
> Subject: RE: [PATCH] xen: introduce xen_vring_use_dma > > On Mon, 29 Jun 2020, Peng Fan wrote: > > > > If that is the case, how is it possible that virtio breaks on ARM > > > > using the default dma_ops? The breakage is not Xen related (except > > >

RE: [PATCH] xen: introduce xen_vring_use_dma

2020-06-28 Thread Peng Fan
> Subject: Re: [PATCH] xen: introduce xen_vring_use_dma > > On Mon, Jun 29, 2020 at 06:25:41AM +0000, Peng Fan wrote: > > > > > > Anyway, re-reading the last messages of the original thread > > > > > > [1], it looks like Peng had a clear idea

RE: [PATCH] xen: introduce xen_vring_use_dma

2020-06-28 Thread Peng Fan
> Subject: Re: [PATCH] xen: introduce xen_vring_use_dma > > On Mon, Jun 29, 2020 at 03:05:19AM +0000, Peng Fan wrote: > > > Subject: Re: [PATCH] xen: introduce xen_vring_use_dma > > > > > > On Thu, Jun 25, 2020 at 10:31:27AM -0700, Stefano Stabellini wrote: &g

RE: [PATCH] xen: introduce xen_vring_use_dma

2020-06-28 Thread Peng Fan
> On Wed, 24 Jun 2020, Michael S. Tsirkin wrote: > > > > > On Wed, Jun 24, 2020 at 10:59:47AM -0700, Stefano Stabellini wrote: > > > > > > On Wed, 24 Jun 2020, Michael S. Tsirkin wrote: > > > > > > > On Wed, Jun 24, 2020 at 05:17:32PM +08

RE: [PATCH] xen: introduce xen_vring_use_dma

2020-06-28 Thread Peng Fan
4, 2020 at 10:59:47AM -0700, Stefano Stabellini wrote: > > > > > On Wed, 24 Jun 2020, Michael S. Tsirkin wrote: > > > > > > On Wed, Jun 24, 2020 at 05:17:32PM +0800, Peng Fan wrote: > > > > > > > Export xen_swiotlb for all platforms using xen swiot

[PATCH] xen: introduce xen_vring_use_dma

2020-06-24 Thread Peng Fan
Export xen_swiotlb for all platforms using xen swiotlb Use xen_swiotlb to determine when vring should use dma APIs to map the ring: when xen_swiotlb is enabled the dma API is required. When it is disabled, it is not required. Signed-off-by: Peng Fan --- V2: This is a modified version from

RE: UEFI support in ARM DomUs

2020-06-24 Thread Peng Fan
> Subject: Re: UEFI support in ARM DomUs > > > On 6/24/20 10:07 AM, Peng Fan wrote: > >> Subject: Re: UEFI support in ARM DomUs > >> > >> > >> On 6/23/20 8:31 AM, Oleksandr Andrushchenko wrote: > >>> On 6/23/20 4:20 AM, Stefano Stab

RE: UEFI support in ARM DomUs

2020-06-24 Thread Peng Fan
> Subject: Re: UEFI support in ARM DomUs > > > On 6/23/20 8:31 AM, Oleksandr Andrushchenko wrote: > > > > On 6/23/20 4:20 AM, Stefano Stabellini wrote: > >> On Mon, 22 Jun 2020, Julien Grall wrote: > >> For the first part (__XEN_INTERFACE_VERSION__) I think we can > >> provide it via > >>

RE: UEFI support in ARM DomUs

2020-06-19 Thread Peng Fan
> Subject: Re: UEFI support in ARM DomUs > > > On 6/19/20 3:59 PM, Julien Grall wrote: > > Hi, > > > > On 19/06/2020 13:51, Oleksandr Andrushchenko wrote: > >> On 6/19/20 3:47 PM, Julien Grall wrote: > >>> They will not be available from the fdt, but you can retrieve them with an > hypervisor cal

RE: [Tee-dev] TEE with XEN

2020-06-19 Thread Peng Fan
> Subject: Re: [Tee-dev] TEE with XEN > > Hi Peng, > > On Fri, 19 Jun 2020 at 12:06, Peng Fan wrote: > > > > > Subject: Re: [Tee-dev] TEE with XEN > > > > > > > > > > > > > On 19 Jun 2020, at 09:52, Peng Fan wrote: > >

RE: [Tee-dev] TEE with XEN

2020-06-19 Thread Peng Fan
> Subject: Re: [Tee-dev] TEE with XEN > > > > > On 19 Jun 2020, at 09:52, Peng Fan wrote: > > > > Hi Bertrand, > > > >> Subject: Re: [Tee-dev] TEE with XEN > >> > >> Hi, > >> > >>> On 18 Jun 2020, at 19:05, Ju

RE: [Tee-dev] TEE with XEN

2020-06-19 Thread Peng Fan
Hi Bertrand, > Subject: Re: [Tee-dev] TEE with XEN > > Hi, > > > On 18 Jun 2020, at 19:05, Julien Grall wrote: > > > > +Bertrand and Stefano > > > > On 16/06/2020 02:24, Volodymyr Babchuk wrote: > >> Hi Peng, > >> On Mo

RE: [Tee-dev] TEE with XEN

2020-06-15 Thread Peng Fan
Hi, > Subject: Re: [Tee-dev] TEE with XEN > > Hi Peng, > > On Mon, 15 Jun 2020 at 05:07, Peng Fan wrote: > > > > Hi All, > > > > While enabling trusty os with xen, I took same approach as OP-TEE, > > with OP-TEE running in secure world. But I am als

TEE with XEN

2020-06-14 Thread Peng Fan
Hi All, While enabling trusty os with xen, I took same approach as OP-TEE, with OP-TEE running in secure world. But I am also thinking this might introduce potential issue is that secure world OS communicate with DomU. If there are some misbehavior in secure world OS, it might let XEN hypervisor

RE: UEFI support in ARM DomUs

2020-06-14 Thread Peng Fan
Hi Stefano, > -Original Message- > From: Stefano Stabellini [mailto:sstabell...@kernel.org] > Sent: 2020年6月4日 23:32 > To: Oleksandr Andrushchenko > Cc: Peng Fan ; Roman Shaposhnik > ; Xen-devel ; Stefano > Stabellini ; Julien Grall ; Nataliya > Korovkina > S

RE: UEFI support in ARM DomUs

2020-06-03 Thread Peng Fan
Grall ; > Nataliya Korovkina > Subject: UEFI support in ARM DomUs We have made U-Boot run inside XEN DomU, but just only PV console part, not implement other frontend drivers currently. Would this help for your case if enable EFI in U-Boot? Regards, Peng. > > Hi! > > with a lot of help from S

RE: Troubles running Xen on Raspberry Pi 4 with 5.6.1 DomU

2020-05-06 Thread Peng Fan
> Subject: Re: Troubles running Xen on Raspberry Pi 4 with 5.6.1 DomU > > On 06.05.20 00:34, Stefano Stabellini wrote: > > + Boris, Jürgen > > > > See the crash Roman is seeing booting dom0 on the Raspberry Pi. It is > > related to the recent xen dma_ops changes. Possibly the same thing > > report

RE: [PATCH] xen/swiotlb: correct the check for xen_destroy_contiguous_region

2020-04-28 Thread Peng Fan
> Subject: Re: [PATCH] xen/swiotlb: correct the check for > xen_destroy_contiguous_region > > On 28.04.20 09:33, peng@nxp.com wrote: > > From: Peng Fan > > > > When booting xen on i.MX8QM, met: > > " > > [3.602128] Unable to

RE: [PATCH] xen/swiotlb: correct the check for xen_destroy_contiguous_region

2020-04-28 Thread Peng Fan
age_boundary(phys, size) are true, it will create > > contiguous region. So when free, we need to free contiguous region use > > upper check condition. > > > > Signed-off-by: Peng Fan > > --- > > drivers/xen/swiotlb-xen.c | 4 ++-- > > 1 file changed, 2 ins

[PATCH] xen/swiotlb: correct the check for xen_destroy_contiguous_region

2020-04-28 Thread peng . fan
From: Peng Fan When booting xen on i.MX8QM, met: " [3.602128] Unable to handle kernel paging request at virtual address 00272d40 [3.610804] Mem abort info: [3.613905] ESR = 0x9604 [3.617332] EC = 0x25: DABT (current EL), IL = 32 bits [3.623211] SET = 0

Re: [Xen-devel] [PATCH V2] arch: arm: vgic-v3: fix GICD_ISACTIVER range

2019-11-28 Thread Peng Fan
> Subject: Re: [Xen-devel] [PATCH V2] arch: arm: vgic-v3: fix GICD_ISACTIVER > range > > Hi Stefano, > > On 28/11/2019 01:12, Stefano Stabellini wrote: > > On Wed, 27 Nov 2019, Jürgen Groß wrote: > >> On 27.11.19 10:31, Peng Fan wrote: > >>>> Sub

Re: [Xen-devel] [PATCH V2] arch: arm: vgic-v3: fix GICD_ISACTIVER range

2019-11-27 Thread Peng Fan
> Subject: Re: [Xen-devel] [PATCH V2] arch: arm: vgic-v3: fix GICD_ISACTIVER > range > > On 27.11.19 10:31, Peng Fan wrote: > >> Subject: Re: [Xen-devel] [PATCH V2] arch: arm: vgic-v3: fix > >> GICD_ISACTIVER range > >> > >> On 27.11.19 01:01, Ju

Re: [Xen-devel] [PATCH V2] arch: arm: vgic-v3: fix GICD_ISACTIVER range

2019-11-27 Thread Peng Fan
> Subject: Re: [Xen-devel] [PATCH V2] arch: arm: vgic-v3: fix GICD_ISACTIVER > range > > On 27.11.19 01:01, Julien Grall wrote: > > Hi, > > > > On 26/11/2019 23:17, Stefano Stabellini wrote: > >> On Tue, 26 Nov 2019, Julien Grall wrote: > >>> Hi, > >>> > >>> On 26/11/2019 20:43, Stefano Stabellini

Re: [Xen-devel] vsnd issue

2019-11-25 Thread Peng Fan
> Cc: sstabell...@kernel.org; jul...@xen.org; xen-de...@lists.xen.org > Subject: Re: [Xen-devel] vsnd issue > > On 11/25/19 12:40 PM, Artem Mygaiev wrote: > > Hello Peng Fan > > > > Please contact Oleksandr Andrushchenko (added to this thread) on this > > issu

[Xen-devel] vsnd issue

2019-11-25 Thread Peng Fan
Hi All, I am trying vsnd from xen-troops with xen 4.13 and Linux 5.4, but domu reports: aplay compl.mp3 ALSA lib ../../../alsa-lib-1.1.9/src/pcm/pcm_direct.c:1156:(snd1_pcm_direct_initialize_slave) slave plugin does not support mmap interleaved or mmap noninterleaved access ALSA lib ../../../als

[Xen-devel] [PATCH V2] arch: arm: vgic-v3: fix GICD_ISACTIVER range

2019-11-21 Thread Peng Fan
The end should be GICD_ISACTIVERN not GICD_ISACTIVER, and also print a warning for the unhandled read. Signed-off-by: Peng Fan --- V2: Add a warning message xen/arch/arm/vgic-v3.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/xen/arch/arm/vgic-v3.c b/xen/arch/arm

Re: [Xen-devel] [PATCH] arch: arm: vgic-v3: fix GICD_ISACTIVER range

2019-11-14 Thread Peng Fan
> Do you have a call stack trace for this? (XEN) d0v1: vGICD: unhandled read r1 offset 0x000324 (XEN) traps.c:1994:d0v1 HSR=0x93810006 pc=0x8000104f2bb4 gva=0x800010010324 gpa=0x0051a00324 [1.780564] Unhandled fault at 0x800010010324 [1.785771] Mem abort info: [1.7888

Re: [Xen-devel] [PATCH] arch: arm: vgic-v3: fix GICD_ISACTIVER range

2019-11-11 Thread Peng Fan
Hi Julien, Inline marked with [Peng Fan] From: Julien Grall Sent: 2019年11月9日 6:44 To: Stefano Stabellini ; Andre Przywara Cc: Peng Fan ; Jürgen Groß ; julien.gr...@arm.com; xen-de...@lists.xen.org Subject: Re: [Xen-devel] [PATCH] arch: arm: vgic-v3: fix GICD_ISACTIVER range Hi, Sorry for

[Xen-devel] [PATCH] arch: arm: vgic-v3: fix GICD_ISACTIVER range

2019-11-06 Thread Peng Fan
The end should be GICD_ISACTIVERN not GICD_ISACTIVER. Signed-off-by: Peng Fan --- xen/arch/arm/vgic-v3.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xen/arch/arm/vgic-v3.c b/xen/arch/arm/vgic-v3.c index 422b94f902..e802f2055a 100644 --- a/xen/arch/arm/vgic-v3.c +++ b/xen

[Xen-devel] [PATCH V3] arm: xen: mm: use __GPF_DMA32 for arm64

2019-09-16 Thread Peng Fan
From: Peng Fan arm64 shares some code under arch/arm/xen, including mm.c. However ZONE_DMA is removed by commit ad67f5a6545("arm64: replace ZONE_DMA with ZONE_DMA32"). So add a check if CONFIG_ZONE_DMA32 is enabled use __GFP_DMA32. Signed-off-by: Peng Fan --- V3: Use

Re: [Xen-devel] [PATCH V2] arm: xen: mm: use __GPF_DMA32 for arm64

2019-09-10 Thread Peng Fan
> Subject: Re: [PATCH V2] arm: xen: mm: use __GPF_DMA32 for arm64 > > + Juergen, Boris > > On Fri, 30 Aug 2019, Christoph Hellwig wrote: > > Can we take a step back and figure out what we want to do here? > > > > AFAICS this function allocates memory for the swiotlb-xen buffer, and > > that means

[Xen-devel] [PATCH V2] arm: xen: mm: use __GPF_DMA32 for arm64

2019-08-29 Thread Peng Fan
From: Peng Fan arm64 shares some code under arch/arm/xen, including mm.c. However ZONE_DMA is removed by commit ad67f5a6545("arm64: replace ZONE_DMA with ZONE_DMA32"). So introduce xen_set_gfp_dma for arm32/arm64 and using __GFP_DMA for the former and __GFP_DMA32 for the latter. Sig

Re: [Xen-devel] [PATCH] arm: xen: mm: use __GPF_DMA32 for arm64

2019-08-28 Thread Peng Fan
Hi Stefano, > Subject: RE: [PATCH] arm: xen: mm: use __GPF_DMA32 for arm64 > > On Wed, 28 Aug 2019, Peng Fan wrote: > > Hi Robin, > > > > > Subject: Re: [PATCH] arm: xen: mm: use __GPF_DMA32 for arm64 > > > > > > On 09/07/2019 09:22, Peng Fan wrot

Re: [Xen-devel] [PATCH] arm: xen: mm: use __GPF_DMA32 for arm64

2019-08-27 Thread Peng Fan
Hi Robin, > Subject: Re: [PATCH] arm: xen: mm: use __GPF_DMA32 for arm64 > > On 09/07/2019 09:22, Peng Fan wrote: > > arm64 shares some code under arch/arm/xen, including mm.c. > > However ZONE_DMA is removed by commit > > ad67f5a6545("arm64: replace ZONE_DMA wi

Re: [Xen-devel] [PATCH] arm: xen: mm: use __GPF_DMA32 for arm64

2019-08-27 Thread Peng Fan
m.c. > > However ZONE_DMA is removed by commit > > ad67f5a6545("arm64: replace ZONE_DMA with ZONE_DMA32"). > > So to ARM64, need use __GFP_DMA32. > > > > Signed-off-by: Peng Fan > > --- > > arch/arm/xen/mm.c | 2 +- > > 1 file change

Re: [Xen-devel] [PATCH] arm: xen: mm: use __GPF_DMA32 for arm64

2019-07-22 Thread Peng Fan
ARM64, need use __GFP_DMA32. > > Signed-off-by: Peng Fan > --- > arch/arm/xen/mm.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/arch/arm/xen/mm.c b/arch/arm/xen/mm.c index > e1d44b903dfc..a95e76d18bf9 100644 > --- a/arch/arm/xen/mm.c >

[Xen-devel] [PATCH] arm: xen: mm: use __GPF_DMA32 for arm64

2019-07-09 Thread Peng Fan
arm64 shares some code under arch/arm/xen, including mm.c. However ZONE_DMA is removed by commit ad67f5a6545("arm64: replace ZONE_DMA with ZONE_DMA32"). So to ARM64, need use __GFP_DMA32. Signed-off-by: Peng Fan --- arch/arm/xen/mm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletio

[Xen-devel] [PATCH] xen/arm: setup_xenheap_mappings: BUG when alloc_boot_pages

2019-02-16 Thread Peng Fan
memory region. we do not have SoC support such large DRAM now, but we might have in future. Add BUG() to let people be aware of this issue. Signed-off-by: Peng Fan --- xen/arch/arm/mm.c | 10 -- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/xen/arch/arm/mm.c b/xen/arch/arm

Re: [Xen-devel] [PATCH for-4.12] xen/arm: gic-v2: deactivate interrupts during initialization

2019-02-08 Thread Peng Fan
> -Original Message- > From: Stefano Stabellini [mailto:sstabell...@kernel.org] > Sent: 2019年2月6日 5:39 > To: xen-devel@lists.xenproject.org > Cc: sstabell...@kernel.org; Stefano Stabellini ; > julien.gr...@arm.com; Peng Fan ; jgr...@suse.com > Subject: [PATCH for-

Re: [Xen-devel] [PATCH for-4.12 v2] arm: gic-v3: deactivate SGI/PPI during initialization

2019-02-04 Thread Peng Fan
> -Original Message- > From: Julien Grall [mailto:julien.gr...@arm.com] > Sent: 2019年2月3日 0:04 > To: Peng Fan ; sstabell...@kernel.org; jgr...@suse.com > Cc: xen-devel@lists.xenproject.org > Subject: Re: [PATCH for-4.12 v2] arm: gic-v3: deactivate SGI/PPI durin

[Xen-devel] [PATCH v3 for-4.12] arm: gic-v3: deactivate interrupts during initialization

2019-02-04 Thread Peng Fan
cification, chapter "8.11.3 GICR_ICACTIVER0, Interrupt Clear-Active Register 0", the RW field of GICR_ICACTIVER0 resets to a value that is architecturally UNKNOWN. So make sure all interrupts are deactivated at during initialization by clearing the state. Signed-off-by: Peng Fan

Re: [Xen-devel] [PATCH for-4.12 v2] arm: gic-v3: deactivate SGI/PPI during initialization

2019-02-02 Thread Peng Fan
Hi Julien > -Original Message- > From: Julien Grall [mailto:julien.gr...@arm.com] > Sent: 2019年2月1日 18:41 > To: Peng Fan ; sstabell...@kernel.org; jgr...@suse.com > Cc: xen-devel@lists.xenproject.org > Subject: Re: [PATCH for-4.12 v2] arm: gic-v3: deactiv

[Xen-devel] [PATCH for-4.12 v2] arm: gic-v3: deactivate SGI/PPI during initialization

2019-01-30 Thread Peng Fan
cification, chapter "8.11.3 GICR_ICACTIVER0, Interrupt Clear-Active Register 0", the RW field of GICR_ICACTIVER0 resets to a value that is architecturally UNKNOWN. So set a fixed value during gic-v3 initialization to make sure interrupts are in deactivated state. Signed-off-by: Peng Fa

Re: [Xen-devel] [PATCH] arm: gic-v3: clear GICR active interrupts

2019-01-30 Thread Peng Fan
> -Original Message- > From: Julien Grall [mailto:julien.gr...@arm.com] > Sent: 2019年1月30日 21:49 > To: Peng Fan ; sstabell...@kernel.org > Cc: xen-devel@lists.xenproject.org; Andre Przywara > > Subject: Re: [PATCH] arm: gic-v3: clear GICR active interrupts > >

Re: [Xen-devel] [PATCH] arm: gic-v3: clear GICR active interrupts

2019-01-30 Thread Peng Fan
> -Original Message- > From: Xen-devel [mailto:xen-devel-boun...@lists.xenproject.org] On Behalf > Of Peng Fan > Sent: 2019年1月30日 21:24 > To: Julien Grall ; sstabell...@kernel.org > Cc: xen-devel@lists.xenproject.org; Andre Przywara > > Subject: Re: [Xen-de

  1   2   >