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

2015-04-20 Thread Stefano Stabellini
On Mon, 20 Apr 2015, Ian Campbell wrote: > On Mon, 2015-04-20 at 11:38 +0100, Stefano Stabellini wrote: > > On Mon, 20 Apr 2015, Ian Campbell wrote: > > > On Mon, 2015-04-20 at 10:58 +0100, Stefano Stabellini wrote: > > > > On Sat, 18 Apr 2015, Chen Baozi wrote: > > > > > On Fri, Apr 17, 2015 at 05

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

2015-04-20 Thread Ian Campbell
On Mon, 2015-04-20 at 11:38 +0100, Stefano Stabellini wrote: > On Mon, 20 Apr 2015, Ian Campbell wrote: > > On Mon, 2015-04-20 at 10:58 +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: > > > > >

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: >

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

2015-04-20 Thread Stefano Stabellini
On Mon, 20 Apr 2015, Ian Campbell wrote: > On Mon, 2015-04-20 at 10:58 +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

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

2015-04-20 Thread Ian Campbell
On Mon, 2015-04-20 at 10:58 +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: > > > > >

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

2015-04-20 Thread Stefano Stabellini
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 set dom0_mem to a small value (e.g. 512M), which makes all >

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

2015-04-20 Thread Ian Campbell
On Sat, 2015-04-18 at 00:41 +0800, Chen Baozi wrote: > 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 ma

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

2015-04-20 Thread Ian Campbell
On Sat, 2015-04-18 at 17:23 +0800, Chen Baozi wrote: > 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 wro

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

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 belo

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: > > >

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

2015-04-17 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 > > b

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] Question about DMA on 1:1 mapping dom0 of arm64

2015-04-17 Thread Ian Campbell
On Fri, 2015-04-17 at 17:13 +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, e

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

2015-04-17 Thread Stefano Stabellini
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 goes fine. > > > > > > So you are getting allocated memory b

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

2015-04-17 Thread Ian Campbell
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 goes fine. > > > > So you are getting allocated memory below 4G? > > > > You message on IRC suggested you we

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

2015-04-17 Thread Ian Campbell
On Fri, 2015-04-17 at 15:32 +0100, Stefano Stabellini wrote: > I think that given that dom0 is mapped 1:1 on ARM, the easiest and best > fix would be to simply allocate memory under 4G to begin with. Not necessarily best, see my reply (hint: dom0 might not have RAM under 4GB even if the host does)

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

2015-04-17 Thread Stefano Stabellini
On Fri, 17 Apr 2015, 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: > > > > For those a

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

2015-04-17 Thread Stefano Stabellini
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 arm64 server with large memory, it is possible to set dom0_mem > > 4G (e.g.

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

2015-04-17 Thread Ian Campbell
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: > > For those arm64 server with large memory, it is possible to set dom0_me