Re: [Xen-devel] [PATCH v3 0/5] xen: arm: Parse PCI DT nodes' ranges and interrupt-map

2015-04-20 Thread Chen Baozi
On Mon, Apr 20, 2015 at 01:15:29PM +0100, Ian Campbell wrote: This series adds parsing of the DT ranges and interrupt-map properties for PCI devices, these contain the MMIOs and IRQs used by children on the bus. This replaces the specific mapping stuff on xgene. Since last time I've added a

[Xen-devel] [PATCH] xen: Add __GFP_DMA flag when xen_swiotlb_init gets free pages.

2015-04-20 Thread Chen Baozi
Make sure that xen_swiotlb_init allocates buffers that is DMA capable. Signed-off-by: Chen Baozi baoz...@gmail.com --- drivers/xen/swiotlb-xen.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/xen/swiotlb-xen.c b/drivers/xen/swiotlb-xen.c index 810ad41..7345afd

Re: [Xen-devel] Question about DMA on 1:1 mapping dom0 of arm64

2015-04-20 Thread Chen Baozi
On Mon, Apr 20, 2015 at 10:58:52AM +0100, Stefano Stabellini wrote: On Sat, 18 Apr 2015, Chen Baozi wrote: On Fri, Apr 17, 2015 at 05:13:16PM +0100, Stefano Stabellini wrote: On Fri, 17 Apr 2015, Ian Campbell wrote: On Fri, 2015-04-17 at 15:34 +0100, Stefano Stabellini wrote: If I

Re: [Xen-devel] Question about DMA on 1:1 mapping dom0 of arm64

2015-04-18 Thread Chen Baozi
On Fri, Apr 17, 2015 at 03:32:20PM +0100, Stefano Stabellini wrote: On Fri, 17 Apr 2015, Chen Baozi wrote: Hi all, According to my recent experience, there might be some problems of swiotlb dma map on 1:1 mapping arm64 dom0 with large memory. The issue is like below: For those

Re: [Xen-devel] Question about DMA on 1:1 mapping dom0 of arm64

2015-04-18 Thread Chen Baozi
Hi Stefano, On Fri, Apr 17, 2015 at 03:32:20PM +0100, Stefano Stabellini wrote: On Fri, 17 Apr 2015, Chen Baozi wrote: Hi all, According to my recent experience, there might be some problems of swiotlb dma map on 1:1 mapping arm64 dom0 with large memory. The issue is like below

Re: [Xen-devel] Question about DMA on 1:1 mapping dom0 of arm64

2015-04-18 Thread Chen Baozi
On Fri, Apr 17, 2015 at 05:13:16PM +0100, Stefano Stabellini wrote: On Fri, 17 Apr 2015, Ian Campbell wrote: On Fri, 2015-04-17 at 15:34 +0100, Stefano Stabellini wrote: If I set dom0_mem to a small value (e.g. 512M), which makes all physical memory of dom0 below 4G, everything

Re: [Xen-devel] Question about DMA on 1:1 mapping dom0 of arm64

2015-04-18 Thread Chen Baozi
On Sat, Apr 18, 2015 at 05:08:58PM +0800, Chen Baozi wrote: On Fri, Apr 17, 2015 at 05:13:16PM +0100, Stefano Stabellini wrote: On Fri, 17 Apr 2015, Ian Campbell wrote: On Fri, 2015-04-17 at 15:34 +0100, Stefano Stabellini wrote: If I set dom0_mem to a small value (e.g. 512M), which

Re: [Xen-devel] [PATCH V2] xen/arm64: Use virtual address when setting up early_printk fixmap

2015-04-17 Thread Chen Baozi
On Wed, Apr 15, 2015 at 03:41:44PM +0100, Ian Campbell wrote: On Wed, 2015-04-08 at 12:33 +0100, Julien Grall wrote: Hi Chen, On 07/04/15 12:24, Chen Baozi wrote: We have already had the boot pagetable when reaching the point s/had/added/ ? I think switched too is what was meant

[Xen-devel] Question about DMA on 1:1 mapping dom0 of arm64

2015-04-17 Thread Chen Baozi
ideas? Cheers, Chen Baozi ___ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel

Re: [Xen-devel] Question about DMA on 1:1 mapping dom0 of arm64

2015-04-17 Thread Chen Baozi
On Fri, Apr 17, 2015 at 02:21:45PM +0100, Ian Campbell wrote: On Fri, 2015-04-17 at 19:24 +0800, Chen Baozi wrote: Hi all, According to my recent experience, there might be some problems of swiotlb dma map on 1:1 mapping arm64 dom0 with large memory. The issue is like below

Re: [Xen-devel] [PATCH v2 0/3] xen: arm: Parse PCI DT nodes' ranges and interrupt-map

2015-04-14 Thread Chen Baozi
the specific mapping stuff on xgene. Somehow I managed to completely miss sending out the first patch here (thanks Chen Baozi!)... This should be inserted at the head of the series. From d0a024dd49ca6f67b0ec0342fd2d819b750a52a4 Mon Sep 17 00:00:00 2001 From: Ian Campbell ian.campb...@citrix.com

[Xen-devel] [PATCH] xen/arm64: Use virtual address when setting up early_printk fixmap

2015-04-07 Thread Chen Baozi
From: Chen Baozi baoz...@gmail.com We have already had the boot pagetable when reaching the point of early_printk fixmap setup. Thus there is no longer necessary to caculate physical address of xen_fixmap. Signed-off-by: Chen Baozi baoz...@gmail.com --- xen/arch/arm/arm64/head.S | 1 - 1 file

[Xen-devel] [PATCH] xen/arm64: Avoid sending SGI when kicking secondary cpus with spin_table

2015-04-07 Thread Chen Baozi
From: Chen Baozi baoz...@gmail.com On arm64, either firmware or xen's smp_up_cpu gate uses WFE on secondary cpus to stand-by when booting. Thus, using SEV is enough for the boot cpu to kick other secondaries. Further more, the current implementation of cpu_up_send_sgi would pass a NULL cpumask

[Xen-devel] [PATCH V2] xen/arm64: Use virtual address when setting up early_printk fixmap

2015-04-07 Thread Chen Baozi
We have already had the boot pagetable when reaching the point of early_printk fixmap setup. Thus there is no longer necessary to calculate physical address of xen_fixmap. Signed-off-by: Chen Baozi baoz...@gmail.com --- xen/arch/arm/arm64/head.S | 3 +-- 1 file changed, 1 insertion(+), 2

Re: [Xen-devel] [PATCH] xen/arm64: Use virtual address when setting up early_printk fixmap

2015-04-07 Thread Chen Baozi
On Tue, Apr 07, 2015 at 12:07:28PM +0100, Julien Grall wrote: Hi Chen, On 07/04/2015 08:33, Chen Baozi wrote: From: Chen Baozi baoz...@gmail.com We have already had the boot pagetable when reaching the point of early_printk fixmap setup. Thus there is no longer necessary to caculate

<    1   2