RE: [PATCH] video: hyperv: hyperv_fb: Use physical memory for fb on HyperV Gen 1 VMs.

2019-11-02 Thread Dexuan Cui via iommu
> From: linux-hyperv-ow...@vger.kernel.org > On Behalf Of Wei Hu > Sent: Tuesday, October 22, 2019 4:11 AM > ... > + /* Allocate from CMA */ > + // request_pages = (request_size >> PAGE_SHIFT) + 1; "//" seems rare in Linux kernel code. IMO "/* */" is more common. > +

RE: [PATCH] video: hyperv: hyperv_fb: Use physical memory for fb on HyperV Gen 1 VMs.

2019-11-01 Thread Michael Kelley via iommu
From: Wei Hu Sent: Tuesday, October 22, 2019 4:11 AM > > On Hyper-V, Generation 1 VMs can directly use VM's physical memory for > their framebuffers. This can improve the efficiency of framebuffer and > overall performence for VM. The physical memory assigned to framebuffer > must be contiguous.

RE: [PATCH] video: hyperv: hyperv_fb: Use physical memory for fb on HyperV Gen 1 VMs.

2019-10-25 Thread Wei Hu via iommu
Thanks for the review. Please see my response inline. > > + select DMA_CMA > > Thіs needs to be > > select DMA_CMA if HAVE_DMA_CONTIGUOUS > > > +#include > > > + /* Allocate from CMA */ > > + // request_pages = (request_size >> PAGE_SHIFT) + 1; > > + request_pages = (round_up(re

Re: [PATCH] video: hyperv: hyperv_fb: Use physical memory for fb on HyperV Gen 1 VMs.

2019-10-23 Thread h...@lst.de
> + select DMA_CMA Thіs needs to be select DMA_CMA if HAVE_DMA_CONTIGUOUS > +#include > + /* Allocate from CMA */ > + // request_pages = (request_size >> PAGE_SHIFT) + 1; > + request_pages = (round_up(request_size, PAGE_SIZE) >> PAGE_SHIFT); > + page = dma_alloc_fro

[PATCH] video: hyperv: hyperv_fb: Use physical memory for fb on HyperV Gen 1 VMs.

2019-10-22 Thread Wei Hu via iommu
On Hyper-V, Generation 1 VMs can directly use VM's physical memory for their framebuffers. This can improve the efficiency of framebuffer and overall performence for VM. The physical memory assigned to framebuffer must be contiguous. We use CMA allocator to get contiguouse physicial memory when the