[PATCH 0/2] Virtio ring works with DMA coherent memory

2016-12-07 Thread Wendy Liang
RPMsg uses dma_alloc_coherent() to allocate memory to shared with the remote. In this case, as there is no pages setup in the dma_alloc_coherent(), we cannot get the physical address back from the virtual address, and thus, we can set the sg_dma_addr to store the DMA address and mark it already

RE: [RFC LINUX PATCH 0/2] Virtio ring works with DMA coherent memory

2016-12-07 Thread Jiaying Liang
m...@redhat.com; virtualization@lists.linux- > foundation.org > Cc: Jiaying Liang > Subject: Re: [RFC LINUX PATCH 0/2] Virtio ring works with DMA coherent > memory > > > > On 2016年12月07日 02:21, Wendy Liang wrote: > > RPMsg uses dma_alloc_coherent() to allocate memory

Re: [RFC LINUX PATCH 0/2] Virtio ring works with DMA coherent memory

2016-12-07 Thread Jason Wang
On 2016年12月07日 02:21, Wendy Liang wrote: RPMsg uses dma_alloc_coherent() to allocate memory to shared with the remote. In this case, as there is no pages setup in the dma_alloc_coherent(), we cannot get the physical address back from the virtual address, and thus, we can set the sg_dma_addr to

[RFC LINUX PATCH 0/2] Virtio ring works with DMA coherent memory

2016-12-06 Thread Wendy Liang
RPMsg uses dma_alloc_coherent() to allocate memory to shared with the remote. In this case, as there is no pages setup in the dma_alloc_coherent(), we cannot get the physical address back from the virtual address, and thus, we can set the sg_dma_addr to store the DMA address and mark it already

[RFC LINUX PATCH 0/2] Virtio ring works with DMA coherent memory

2016-12-06 Thread Wendy Liang
RPMsg uses dma_alloc_coherent() to allocate memory to shared with the remote. In this case, as there is no pages setup in the dma_alloc_coherent(), we cannot get the physical address back from the virtual address, and thus, we can set the sg_dma_addr to store the DMA address and mark it already

[RFC LINUX PATCH 0/2] Virtio ring works with DMA coherent memory

2016-11-21 Thread Wendy Liang
RPMsg uses dma_alloc_coherent() to allocate memory to shared with the remote. In this case, as there is no pages setup in the dma_alloc_coherent(), we cannot get the physical address back from the virtual address, and thus, we can set the sg_dma_addr to store the DMA address and mark it already