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

2019-12-09 Thread Wei Hu
t can be allocated to framebuffer. If this fails, we fall back to the old way of using mmio for framebuffer. Reported-by: kbuild test robot Signed-off-by: Wei Hu --- v2: Incorporated review comments form h...@lst.de, Michael Kelley and Dexuan Cui - Use dma_alloc_coherent to allocate

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

2019-12-06 Thread Wei Hu
t can be allocated to framebuffer. If this fails, we fall back to the old way of using mmio for framebuffer. Reported-by: kbuild test robot Signed-off-by: Wei Hu --- v2: Incorporated review comments form h...@lst.de, Michael Kelley and Dexuan Cui - Use dma_alloc_coherent to allocate

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

2019-11-22 Thread Wei Hu
t can be allocated to framebuffer. If this fails, we fall back to the old way of using mmio for framebuffer. Signed-off-by: Wei Hu --- v2: Incorporated review comments form h...@lst.de, Michael Kelley and Dexuan Cui - Use dma_alloc_coherent to allocate large contiguous memory

RE: [PATCH] video: hyperv_fb: Fix hibernation for the deferred IO feature

2019-11-21 Thread Wei Hu
fb...@vger.kernel.org; linux- > ker...@vger.kernel.org; Michael Kelley ; Sasha Levin > > Cc: Wei Hu ; Dexuan Cui > Subject: [PATCH] video: hyperv_fb: Fix hibernation for the deferred IO feature > > fb_deferred_io_work() can access the vmbus ringbuffer by calling > fbde

RE: [PATCH] video: hyperv_fb: Fix hibernation for the deferred IO feature

2019-11-21 Thread Wei Hu
> -Original Message- > From: Wei Hu > Sent: 2019年11月21日 10:47 > To: Dexuan Cui ; KY Srinivasan ; > Haiyang Zhang ; Stephen Hemminger > ; sas...@kernel.org; b.zolnier...@samsung.com; > linux-hyp...@vger.kernel.org; dri-devel@lists.freedesktop.org; linux- > fb...@vg

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

2019-10-28 Thread Wei Hu
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

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

2019-10-22 Thread Wei Hu
t can be allocated to framebuffer. If this fails, we fall back to the old way of using mmio for framebuffer. Signed-off-by: Wei Hu --- drivers/video/fbdev/Kconfig | 1 + drivers/video/fbdev/hyperv_fb.c | 179 +--- kernel/dma/contiguous.c | 2 + 3

[PATHC v6] video: hyperv: hyperv_fb: Support deferred IO for Hyper-V frame buffer driver

2019-09-17 Thread Wei Hu
deferred IO outweighs the shadow copy impact in the guest. Signed-off-by: Wei Hu --- v2: Incorporated review comments from Michael Kelley - Increased dirty rectangle by one row in deferred IO case when sending to Hyper-V. - Corrected the dirty rectangle size in the text mode

[PATCH v5] video: hyperv: hyperv_fb: Support deferred IO for Hyper-V frame buffer driver

2019-09-12 Thread Wei Hu
deferred IO outweighs the shadow copy impact in the guest. Signed-off-by: Wei Hu --- v2: Incorporated review comments from Michael Kelley - Increased dirty rectangle by one row in deferred IO case when sending to Hyper-V. - Corrected the dirty rectangle size in the text mode

[PATCH v4] video: hyperv: hyperv_fb: Support deferred IO for Hyper-V frame buffer driver

2019-09-12 Thread Wei Hu
deferred IO outweighs the shadow copy impact in the guest. Signed-off-by: Wei Hu --- v2: Incorporated review comments from Michael Kelley - Increased dirty rectangle by one row in deferred IO case when sending to Hyper-V. - Corrected the dirty rectangle size in the text mode

[PATCH v4] video: hyperv: hyperv_fb: Obtain screen resolution from Hyper-V host

2019-09-05 Thread Wei Hu
mand. Signed-off-by: Iouri Tarassov Signed-off-by: Wei Hu --- v2: - Implemented fallback when version negotiation failed. - Defined full size for supported_resolution array. v3: - Corrected the synthvid major and minor version comparison problem. v4: - Chan

[PATCH v3] video: hyperv: hyperv_fb: Support deferred IO for Hyper-V frame buffer driver

2019-09-05 Thread Wei Hu
deferred IO outweighs the shadow copy impact in the guest. Signed-off-by: Wei Hu --- v2: Incorporated review comments from Michael Kelley - Increased dirty rectangle by one row in deferred IO case when sending to Hyper-V. - Corrected the dirty rectangle size in the text mode

RE: [PATHC v2] video: hyperv: hyperv_fb: Support deferred IO for Hyper-V frame buffer driver

2019-08-29 Thread Wei Hu
> -Original Message- > From: Michael Kelley > > From: Wei Hu Sent: Tuesday, August 27, 2019 4:25 AM > > > > Without deferred IO support, hyperv_fb driver informs the host to refresh > > the entire guest frame buffer at fixed rate, e.g. at 20Hz, no matter

RE: [PATCH v3] video: hyperv: hyperv_fb: Obtain screen resolution from Hyper-V host

2019-08-28 Thread Wei Hu
gt; - Corrected the synthvid major and minor version comparison problem. > > The changelog for v2 and v3 should actually go after the "---" below so > that the changelog does not end up as part of the commit message. Take > a look at other postings to LKML for an example. &

[PATCH v3] video: hyperv: hyperv_fb: Obtain screen resolution from Hyper-V host

2019-08-28 Thread Wei Hu
o" command. v2: - Implemented fallback when version negotiation failed. - Defined full size for supported_resolution array. v3: - Corrected the synthvid major and minor version comparison problem. Signed-off-by: Iouri Tarassov Signed-off-by: Wei Hu --- drivers/video/fbd

[PATHC v2] video: hyperv: hyperv_fb: Support deferred IO for Hyper-V frame buffer driver

2019-08-27 Thread Wei Hu
. Signed-off-by: Wei Hu --- drivers/video/fbdev/Kconfig | 1 + drivers/video/fbdev/hyperv_fb.c | 221 +--- 2 files changed, 202 insertions(+), 20 deletions(-) diff --git a/drivers/video/fbdev/Kconfig b/drivers/video/fbdev/Kconfig index 1b2f5f31fb6f..e781f89a1824

RE: [PATCH v2] video: hyperv: hyperv_fb: Obtain screen resolution from Hyper-V host

2019-08-27 Thread Wei Hu
> -Original Message- > From: Michael Kelley > Sent: Thursday, August 22, 2019 7:49 AM > To: Wei Hu ; b.zolnier...@samsung.com; linux- > hyp...@vger.kernel.org; dri-devel@lists.freedesktop.org; linux- > fb...@vger.kernel.org; linux-ker...@vger.kernel.org; sas...@ker

RE: [PATCH] video: hyperv: hyperv_fb: Support deferred IO for Hyper-V frame buffer driver

2019-08-22 Thread Wei Hu
Thanks Michael. See my reply inline to some of your comments. > -Original Message- > From: Michael Kelley > Sent: Monday, August 19, 2019 6:41 AM > To: Wei Hu ; rdun...@infradead.org; shc_w...@mail.ru; > > - msg.dirt.rect[0].x1 = 0; > > -

[PATCH v2] video: hyperv: hyperv_fb: Obtain screen resolution from Hyper-V host

2019-08-21 Thread Wei Hu
o" command. v2: - Implemented fallback when version negotiation failed. - Defined full size for supported_resolution array. Signed-off-by: Iouri Tarassov Signed-off-by: Wei Hu Reviewed-by: Michael Kelley --- drivers/video/fbdev/hyperv_fb.c | 145 +--- 1 file changed, 1

[PATCH] video: hyperv: hyperv_fb: Support deferred IO for Hyper-V frame buffer driver

2019-08-13 Thread Wei Hu
performance gain from deferred IO outweighs the shadow copy impact in the guest. Signed-off-by: Wei Hu --- drivers/video/fbdev/Kconfig | 1 + drivers/video/fbdev/hyperv_fb.c | 217 +--- 2 files changed, 198 insertions(+), 20 deletions(-) diff --git a/drivers/video

[PATCH] video: hyperv: hyperv_fb: Obtain screen resolution from Hyper-V host

2019-08-13 Thread Wei Hu
mand. Signed-off-by: Iouri Tarassov Signed-off-by: Wei Hu --- drivers/video/fbdev/hyperv_fb.c | 136 +--- 1 file changed, 125 insertions(+), 11 deletions(-) diff --git a/drivers/video/fbdev/hyperv_fb.c b/drivers/video/fbdev/hyperv_fb.c index 00f5bdcc6c6f..1042f3311fa2