Re: [Intel-gfx] FW: Wrt golden MMIO/CFG snaphot in GVT-g

2016-06-01 Thread Zhiyuan Lv
Hi Joonas, On Wed, Jun 01, 2016 at 03:49:59PM +0300, Joonas Lahtinen wrote: > On ti, 2016-05-31 at 22:01 +0800, Zhiyuan Lv wrote: > > Hi Joonas, > > > > On Fri, May 27, 2016 at 02:32:25PM +0300, Joonas Lahtinen wrote: > > > > > > On pe, 2016-

Re: [Intel-gfx] FW: Wrt golden MMIO/CFG snaphot in GVT-g

2016-05-31 Thread Zhiyuan Lv
Hi Joonas, On Fri, May 27, 2016 at 02:32:25PM +0300, Joonas Lahtinen wrote: > On pe, 2016-05-27 at 10:05 +, Wang, Zhi A wrote: > > For me I think maybe i915 could save the snapshot for GVT, then GVT-g > > patch the snapshot itself, then there won’t be leaking happened I > > think. Even we wro

Re: [Intel-gfx] Ask for comments of getting guest framebuffer in igvt-g

2016-03-07 Thread Zhiyuan Lv
Hi Kevin, On Tue, Mar 08, 2016 at 10:44:39AM +0800, Tian, Kevin wrote: > > From: Zhiyuan Lv > > Sent: Thursday, March 03, 2016 5:51 PM > > > > Dear i915 developers, > > > > Here I have one topic hoping to get your comments and suggestions. > > Basicall

Re: [Intel-gfx] Ask for comments of getting guest framebuffer in igvt-g

2016-03-07 Thread Zhiyuan Lv
Hi Joonas, On Mon, Mar 07, 2016 at 12:20:48PM +0200, Joonas Lahtinen wrote: > Hi, > > On pe, 2016-03-04 at 23:38 +0800, Zhiyuan Lv wrote: > > Hi Joonas, > > > > On Fri, Mar 04, 2016 at 04:00:27PM +0200, Joonas Lahtinen wrote: > > > > > > Hi,

Re: [Intel-gfx] Ask for comments of getting guest framebuffer in igvt-g

2016-03-04 Thread Zhiyuan Lv
Hi Joonas, On Fri, Mar 04, 2016 at 04:00:27PM +0200, Joonas Lahtinen wrote: > Hi, > > On to, 2016-03-03 at 17:50 +0800, Zhiyuan Lv wrote: > > Dear i915 developers, > > > > Here I have one topic hoping to get your comments and suggestions. > > Basically it is abo

[Intel-gfx] Ask for comments of getting guest framebuffer in igvt-g

2016-03-03 Thread Zhiyuan Lv
Dear i915 developers, Here I have one topic hoping to get your comments and suggestions. Basically it is about graphics virtualization(igvt-g), for the purpose of host system to get virtual machine's framebuffer. We would like to hear your opinions about some design opens. Below is the patch and s

Re: [Intel-gfx] [RFC 02/29] drm/i915: Introduce host graphics memory balloon for gvt

2016-02-05 Thread Zhiyuan Lv
Hi Joonas, On Fri, Feb 05, 2016 at 03:40:49PM +0200, Joonas Lahtinen wrote: > Hi, > > On pe, 2016-02-05 at 18:03 +0800, Zhiyuan Lv wrote: > > Hi Joonas, > > > > Thanks much for the review! We will incorporate those review comments! > > > > Meanwhile, is i

Re: [Intel-gfx] [RFC 02/29] drm/i915: Introduce host graphics memory balloon for gvt

2016-02-05 Thread Zhiyuan Lv
Hi Joonas, Thanks much for the review! We will incorporate those review comments! Meanwhile, is it good enough to do the host ballooning like below? The pros is that it is very simple, especially consider that guest ballooning logic has been there. Thanks! Regards, -Zhiyuan On Thu, Feb 04, 2016

Re: [Intel-gfx] [RFC 01/29] drm/i915/gvt: Introduce the basic architecture of GVT-g

2016-02-04 Thread Zhiyuan Lv
Hi Chris, On Fri, Jan 29, 2016 at 04:48:07PM +, Chris Wilson wrote: > On Fri, Jan 29, 2016 at 03:57:09PM +0200, Joonas Lahtinen wrote: > > Hi, > > > > TL;DR Overall, we have same problem as with the scheduler series, there > > is too much placeholder stuff for easy review. Just squash enough

Re: [Intel-gfx] [RFC 01/29] drm/i915/gvt: Introduce the basic architecture of GVT-g

2016-02-02 Thread Zhiyuan Lv
On Wed, Feb 03, 2016 at 02:01:15PM +0800, Zhi Wang wrote: > Hi Joonas: > Thanks you very much! We're very excited for receiving your > advice and continue to be open to any comments. :) > > I'm supposed that we should make the agreements on i915 host change > at the very beginning, as I'm conc

Re: [Intel-gfx] [RFC 17/29] gvt: Xen hypervisor GVT-g MPT module

2016-01-28 Thread Zhiyuan Lv
Hi Joonas, On Thu, Jan 28, 2016 at 01:33:33PM +0200, Joonas Lahtinen wrote: > Hi, > > See the file MAINTAINERS and add Cc: lines according to "XEN HYPERVISOR > INTERFACE". Also I think it'll be useful to split the i915 changes to a > separate patch next int he series (as the reviewer will be diff

Re: [Intel-gfx] [Announcement] 2015-Q3 release of XenGT - a Mediated Graphics Passthrough Solution from Intel

2015-11-20 Thread Zhiyuan Lv
On Fri, Nov 20, 2015 at 04:36:15PM +0800, Tian, Kevin wrote: > > From: Gerd Hoffmann [mailto:kra...@redhat.com] > > Sent: Friday, November 20, 2015 4:26 PM > > > > Hi, > > > > > > iGVT-g_Setup_Guide.txt mentions a "Indirect Display Mode", but doesn't > > > > explain how the guest framebuffer ca

Re: [Intel-gfx] [PATCH 25/29] drm/i915: Pull the vgpu uncore funcs apart from the rest of gen6+

2015-11-04 Thread Zhiyuan Lv
uff to use its own macros. > > Cc: Eddie Dong > Cc: Jike Song > Cc: Kevin Tian > Cc: Yu Zhang > Cc: Zhi Wang > Cc: Zhiyuan Lv > Signed-off-by: Ville Syrjälä It looks good to me. Thanks! Reviewed-by: Zhiyuan Lv > --- > drivers/gpu/drm/i915/intel_uncore.c | 80 &g

Re: [Intel-gfx] [PATCH 24/29] drm/i915: Turn vgpu pdps into an array

2015-11-04 Thread Zhiyuan Lv
simply loop through them. > > Cc: Eddie Dong > Cc: Jike Song > Cc: Kevin Tian > Cc: Yu Zhang > Cc: Zhi Wang > Cc: Zhiyuan Lv > Signed-off-by: Ville Syrjälä It looks good to me. Thanks for the change! Reviewed-by: Zhiyuan Lv > --- > drivers/gpu/drm/i915/i915_

Re: [Intel-gfx] About the iGVT-g's requirement to pin guest contexts in VM

2015-09-02 Thread Zhiyuan Lv
Hi Daniel, Thanks for the comments! And my reply in line: On Wed, Sep 02, 2015 at 10:19:03AM +0200, Daniel Vetter wrote: > > > > > > Also you obviously have to complete the copying from shadow->guest ctx > > > before you send the irq to the guest to signal ctx completion. Which means > > > there

[Intel-gfx] [PATCH v2 0/6] drm/intel: guest i915 changes for Broadwell to run inside VM with Intel GVT-g

2015-08-28 Thread Zhiyuan Lv
. The fifth patch is the implementation of the PPGTT notification. v2: - Rebase to latest drm-intel-next-queued - Not to pin/unpin lr contexts and not to send notification for them (Chris) - Address review comments from reviewers (noted in patches) Zhiyuan Lv (6): drm/i915: preallocate pdps f

[Intel-gfx] [PATCH v2 6/6] drm/i915: Allow Broadwell guest with Intel GVT-g

2015-08-28 Thread Zhiyuan Lv
I915 Broadwell guest driver is now supported to run inside a VM with Intel GVT-g v2: - Introduce HAS_VGPU macro (Zhenyu Wang) Signed-off-by: Zhiyuan Lv Signed-off-by: Zhi Wang Reviewed-by: Joonas Lahtinen --- drivers/gpu/drm/i915/i915_vgpu.c | 2 +- drivers/gpu/drm/i915/i915_vgpu.h | 2 ++ 2

[Intel-gfx] [PATCH v2 1/6] drm/i915: preallocate pdps for 32 bit vgpu

2015-08-28 Thread Zhiyuan Lv
ction gen8_preallocate_top_level_pdps() in the patch is from Mika, with only one change to set "used_pdpes" to avoid duplicated allocation later. Cc: Mika Kuoppala Cc: Dave Gordon Cc: Michel Thierry Signed-off-by: Zhiyuan Lv Signed-off-by: Zhi Wang Reviewed-by: Joonas Lahtinen --- drivers/gpu/drm/i915/i915

[Intel-gfx] [PATCH v2 5/6] drm/i915: guest i915 notification for Intel GVT-g

2015-08-28 Thread Zhiyuan Lv
write-protect the guest pages of PPGTT, and clear the write protection when they end their life cycle. v2: - Use lower_32_bits()/upper_32_bits() for qword operations; - Remove the notification of guest context creation/destroy; Signed-off-by: Zhiyuan Lv Signed-off-by: Zhi Wang --- drivers/gpu

[Intel-gfx] [PATCH v2 2/6] drm/i915: Enable full ppgtt for vgpu on Broadwell

2015-08-28 Thread Zhiyuan Lv
The full ppgtt is supported now in Intel GVT-g device model. Broadwell is allowed to use it in virtual machines. v2: - Keep backward compatibility on HSW with old device model (daniel) Signed-off-by: Zhiyuan Lv Signed-off-by: Zhi Wang Reviewed-by: Joonas Lahtinen --- drivers/gpu/drm/i915

[Intel-gfx] [PATCH v2 3/6] drm/i915: Always enable execlists on BDW for vgpu

2015-08-28 Thread Zhiyuan Lv
virtual machines. v2: - Adjust the position of vgpu check in sanitize function (Joonas) - Add vgpu error check in context initialization. (Joonas, Daniel) Signed-off-by: Zhiyuan Lv Signed-off-by: Zhi Wang --- drivers/gpu/drm/i915/i915_gem_context.c | 7 +++ drivers/gpu/drm/i915/intel_lrc.c

[Intel-gfx] [PATCH v2 4/6] drm/i915: Update PV INFO page definition for Intel GVT-g

2015-08-28 Thread Zhiyuan Lv
ng storage address unchanged. If it is not used, the device model will perform the context shadow work in the context scheduling time. Signed-off-by: Zhiyuan Lv Signed-off-by: Zhi Wang Reviewed-by: Joonas Lahtinen --- drivers/gpu/drm/i915/i915_vgpu.h | 34 -- 1 file c

Re: [Intel-gfx] [PATCH 3/7] drm/i915: Always enable execlists on BDW for vgpu

2015-08-26 Thread Zhiyuan Lv
Hi Daniel, On Wed, Aug 26, 2015 at 10:50:23AM +0200, Daniel Vetter wrote: > > > @@ -332,6 +332,12 @@ int i915_gem_context_init(struct drm_device > > > *dev) > > > if (WARN_ON(dev_priv->ring[RCS].default_context)) > > > return 0; > > > > > > + if (intel_vgpu_active(

Re: [Intel-gfx] [PATCH 2/7] drm/i915: Enable full ppgtt for vgpu

2015-08-26 Thread Zhiyuan Lv
Hi Danie, On Wed, Aug 26, 2015 at 10:47:37AM +0200, Daniel Vetter wrote: > On Thu, Aug 20, 2015 at 01:57:13PM +0300, Joonas Lahtinen wrote: > > On to, 2015-08-20 at 15:45 +0800, Zhiyuan Lv wrote: > > > The full ppgtt is supported in Intel GVT-g device model. So the > &

Re: [Intel-gfx] About the iGVT-g's requirement to pin guest contexts in VM

2015-08-26 Thread Zhiyuan Lv
Hi Daniel, On Wed, Aug 26, 2015 at 10:56:00AM +0200, Daniel Vetter wrote: > On Tue, Aug 25, 2015 at 08:17:05AM +0800, Zhiyuan Lv wrote: > > Hi Chris, > > > > On Mon, Aug 24, 2015 at 11:23:13AM +0100, Chris Wilson wrote: > > > On Mon, Aug 24, 2015 at 06:04:28PM +0800

Re: [Intel-gfx] [PATCH] Fix list empty check in i915_gem_evict_everything

2015-08-26 Thread Zhiyuan Lv
015 at 03:01:26PM +0800, Zhiyuan Lv wrote: > > That seems to be a typo. The original code will override the previous > > list empty check value in the loop. As the result, only the last vm in > > vm_list impacts the empty check. The problem is fixed by using local > > bo

[Intel-gfx] [PATCH] Fix list empty check in i915_gem_evict_everything

2015-08-26 Thread Zhiyuan Lv
That seems to be a typo. The original code will override the previous list empty check value in the loop. As the result, only the last vm in vm_list impacts the empty check. The problem is fixed by using local bool variable inside the loop. Signed-off-by: Zhiyuan Lv --- drivers/gpu/drm/i915

Re: [Intel-gfx] About the iGVT-g's requirement to pin guest contexts in VM

2015-08-24 Thread Zhiyuan Lv
Hi Chris, On Mon, Aug 24, 2015 at 11:23:13AM +0100, Chris Wilson wrote: > On Mon, Aug 24, 2015 at 06:04:28PM +0800, Zhiyuan Lv wrote: > > Hi Chris, > > > > On Thu, Aug 20, 2015 at 09:36:00AM +0100, Chris Wilson wrote: > > > On Thu, Aug 20, 2015 at 03:4

[Intel-gfx] About the iGVT-g's requirement to pin guest contexts in VM

2015-08-24 Thread Zhiyuan Lv
Hi Chris, On Thu, Aug 20, 2015 at 09:36:00AM +0100, Chris Wilson wrote: > On Thu, Aug 20, 2015 at 03:45:21PM +0800, Zhiyuan Lv wrote: > > Intel GVT-g will perform EXECLIST context shadowing and ring buffer > > shadowing. The shadow copy is created when guest creates a context. &

Re: [Intel-gfx] [PATCH 4/7] drm/i915: always pin lrc context for vgpu with Intel GVT-g

2015-08-20 Thread Zhiyuan Lv
ks in advance! Regards, -Zhiyuan On Thu, Aug 20, 2015 at 05:16:54PM +0800, Zhiyuan Lv wrote: > Hi Chris, > > On Thu, Aug 20, 2015 at 09:36:00AM +0100, Chris Wilson wrote: > > On Thu, Aug 20, 2015 at 03:45:21PM +0800, Zhiyuan Lv wrote: > > > Intel GVT-g will perform EXECLI

Re: [Intel-gfx] [PATCH 6/7] drm/i915: guest i915 notification for Intel-GVTg

2015-08-20 Thread Zhiyuan Lv
On Thu, Aug 20, 2015 at 04:11:57PM +0300, Joonas Lahtinen wrote: > Hi, > > Notes below. > > On to, 2015-08-20 at 15:45 +0800, Zhiyuan Lv wrote: > > When i915 drivers run inside a VM with Intel-GVTg, some explicit > > notifications are needed from guest to host devic

Re: [Intel-gfx] [PATCH 5/7] drm/i915: Update PV INFO page definition for Intel GVT-g

2015-08-20 Thread Zhiyuan Lv
On Thu, Aug 20, 2015 at 03:58:43PM +0300, Joonas Lahtinen wrote: > On to, 2015-08-20 at 15:45 +0800, Zhiyuan Lv wrote: > > Some more definitions in the PV info page are added. They are mainly > > for the guest notification to Intel GVT-g device model. They are used > > f

Re: [Intel-gfx] [PATCH 3/7] drm/i915: Always enable execlists on BDW for vgpu

2015-08-20 Thread Zhiyuan Lv
Hi Joonas, Thanks for the review! And my reply inline. Regards, -Zhiyuan On Thu, Aug 20, 2015 at 02:23:11PM +0300, Joonas Lahtinen wrote: > Hi, > > On to, 2015-08-20 at 17:40 +0800, Zhiyuan Lv wrote: > > On Thu, Aug 20, 2015 at 10:22:37AM +0100, Chris Wilson wrote: > > &

Re: [Intel-gfx] [PATCH 3/7] drm/i915: Always enable execlists on BDW for vgpu

2015-08-20 Thread Zhiyuan Lv
On Thu, Aug 20, 2015 at 10:22:37AM +0100, Chris Wilson wrote: > On Thu, Aug 20, 2015 at 04:55:08PM +0800, Zhiyuan Lv wrote: > > Hi Chris, > > > > On Thu, Aug 20, 2015 at 09:34:05AM +0100, Chris Wilson wrote: > > > On Thu, Aug 20, 2015 at 03:45:20PM +0800, Zhiyu

Re: [Intel-gfx] [PATCH 4/7] drm/i915: always pin lrc context for vgpu with Intel GVT-g

2015-08-20 Thread Zhiyuan Lv
Hi Chris, On Thu, Aug 20, 2015 at 09:36:00AM +0100, Chris Wilson wrote: > On Thu, Aug 20, 2015 at 03:45:21PM +0800, Zhiyuan Lv wrote: > > Intel GVT-g will perform EXECLIST context shadowing and ring buffer > > shadowing. The shadow copy is created when guest creates a context. &

Re: [Intel-gfx] [PATCH 3/7] drm/i915: Always enable execlists on BDW for vgpu

2015-08-20 Thread Zhiyuan Lv
Hi Chris, On Thu, Aug 20, 2015 at 09:34:05AM +0100, Chris Wilson wrote: > On Thu, Aug 20, 2015 at 03:45:20PM +0800, Zhiyuan Lv wrote: > > Broadwell hardware supports both ring buffer mode and execlist mode. > > When i915 runs inside a VM with Intel GVT-g, we allow execlist mod

Re: [Intel-gfx] [PATCH 0/7] drm/intel: guest i915 changes for Broadwell to run inside VM with Intel GVT-g

2015-08-20 Thread Zhiyuan Lv
Hi Jani, On Thu, Aug 20, 2015 at 09:44:08AM +0300, Jani Nikula wrote: > On Thu, 20 Aug 2015, Zhiyuan Lv wrote: > > I915 kernel driver can now work inside a virtual machine on Haswell > > with Intel GVT-g. In order to do the same thing on Broadwell, there > > are some extr

[Intel-gfx] [PATCH 6/7] drm/i915: guest i915 notification for Intel-GVTg

2015-08-20 Thread Zhiyuan Lv
EXECLIST context. Intel GVT-g needs to write-protect the guest pages of PPGTT and contexts, and clear the write protection when they end their life cycle. Signed-off-by: Zhiyuan Lv Signed-off-by: Zhi Wang --- drivers/gpu/drm/i915/i915_gem_gtt.c | 41 + drivers

[Intel-gfx] [PATCH 4/7] drm/i915: always pin lrc context for vgpu with Intel GVT-g

2015-08-20 Thread Zhiyuan Lv
easier. Signed-off-by: Zhiyuan Lv Signed-off-by: Zhi Wang --- drivers/gpu/drm/i915/intel_lrc.c | 13 - 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/drivers/gpu/drm/i915/intel_lrc.c b/drivers/gpu/drm/i915/intel_lrc.c index 39df304..4b2ac37 100644 --- a/drivers/gpu

[Intel-gfx] [PATCH 7/7] drm/i915: Allow Broadwell guest with Intel GVT-g

2015-08-20 Thread Zhiyuan Lv
I915 Broadwell guest driver is now supported to run inside a VM with Intel GVT-g Signed-off-by: Zhiyuan Lv Signed-off-by: Zhi Wang --- drivers/gpu/drm/i915/i915_vgpu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/i915/i915_vgpu.c b/drivers/gpu/drm/i915

[Intel-gfx] [PATCH 3/7] drm/i915: Always enable execlists on BDW for vgpu

2015-08-20 Thread Zhiyuan Lv
. Consider that ring buffer mode is legacy mode, it makes sense to drop it inside virtual machines. Signed-off-by: Zhiyuan Lv Signed-off-by: Zhi Wang --- drivers/gpu/drm/i915/intel_lrc.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/gpu/drm/i915/intel_lrc.c b/drivers/gpu/drm/i915

[Intel-gfx] [PATCH 5/7] drm/i915: Update PV INFO page definition for Intel GVT-g

2015-08-20 Thread Zhiyuan Lv
Some more definitions in the PV info page are added. They are mainly for the guest notification to Intel GVT-g device model. They are used for Broadwell enabling. Signed-off-by: Zhiyuan Lv Signed-off-by: Zhi Wang --- drivers/gpu/drm/i915/i915_vgpu.h | 34 -- 1

[Intel-gfx] [PATCH 1/7] drm/i915: preallocate pdps for 32 bit vgpu

2015-08-20 Thread Zhiyuan Lv
ction gen8_preallocate_top_level_pdps() in the patch is from Mika, with only one change to set "used_pdpes" to avoid duplicated allocation later. Cc: Mika Kuoppala Cc: Dave Gordon Cc: Michel Thierry Signed-off-by: Zhiyuan Lv Signed-off-by: Zhi Wang --- drivers/gpu/drm/i915/i915

[Intel-gfx] [PATCH 0/7] drm/intel: guest i915 changes for Broadwell to run inside VM with Intel GVT-g

2015-08-20 Thread Zhiyuan Lv
Mika's earlier one, but we use it for vgpu only. The sixth patch is the implementation of the notification for shadowing. Zhiyuan Lv (7): drm/i915: preallocate pdps for 32 bit vgpu drm/i915: Enable full ppgtt for vgpu drm/i915: Always enable execlists on BDW for vgpu drm/i915: always pi

[Intel-gfx] [PATCH 2/7] drm/i915: Enable full ppgtt for vgpu

2015-08-20 Thread Zhiyuan Lv
The full ppgtt is supported in Intel GVT-g device model. So the restriction can be removed. Signed-off-by: Zhiyuan Lv Signed-off-by: Zhi Wang --- drivers/gpu/drm/i915/i915_gem_gtt.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/gpu/drm/i915/i915_gem_gtt.c b/drivers/gpu/drm

[Intel-gfx] [PATCH 6/7] drm/i915: guest i915 notification for Intel-GVTg

2015-08-19 Thread Zhiyuan Lv
EXECLIST context. Intel GVT-g needs to write-protect the guest pages of PPGTT and contexts, and clear the write protection when they end their life cycle. Signed-off-by: Zhiyuan Lv Signed-off-by: Zhi Wang --- drivers/gpu/drm/i915/i915_gem_gtt.c | 41 + drivers

[Intel-gfx] [PATCH 7/7] drm/i915: Allow Broadwell guest with Intel GVT-g

2015-08-19 Thread Zhiyuan Lv
I915 Broadwell guest driver is now supported to run inside a VM with Intel GVT-g Signed-off-by: Zhiyuan Lv Signed-off-by: Zhi Wang --- drivers/gpu/drm/i915/i915_vgpu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/i915/i915_vgpu.c b/drivers/gpu/drm/i915

[Intel-gfx] [PATCH 5/7] drm/i915: Update PV INFO page definition for Intel GVT-g

2015-08-19 Thread Zhiyuan Lv
Some more definitions in the PV info page are added. They are mainly for the guest notification to Intel GVT-g device model. They are used for Broadwell enabling. Signed-off-by: Zhiyuan Lv Signed-off-by: Zhi Wang --- drivers/gpu/drm/i915/i915_vgpu.h | 34 -- 1

[Intel-gfx] [PATCH 4/7] drm/i915: always pin lrc context for vgpu with Intel GVT-g

2015-08-19 Thread Zhiyuan Lv
easier. Signed-off-by: Zhiyuan Lv Signed-off-by: Zhi Wang --- drivers/gpu/drm/i915/intel_lrc.c | 13 - 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/drivers/gpu/drm/i915/intel_lrc.c b/drivers/gpu/drm/i915/intel_lrc.c index 39df304..4b2ac37 100644 --- a/drivers/gpu

[Intel-gfx] [PATCH 3/7] drm/i915: Always enable execlists on BDW for vgpu

2015-08-19 Thread Zhiyuan Lv
. Consider that ring buffer mode is legacy mode, it makes sense to drop it inside virtual machines. Signed-off-by: Zhiyuan Lv Signed-off-by: Zhi Wang --- drivers/gpu/drm/i915/intel_lrc.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/gpu/drm/i915/intel_lrc.c b/drivers/gpu/drm/i915

[Intel-gfx] [PATCH 2/7] drm/i915: Enable full ppgtt for vgpu

2015-08-19 Thread Zhiyuan Lv
The full ppgtt is supported in Intel GVT-g device model. So the restriction can be removed. Signed-off-by: Zhiyuan Lv Signed-off-by: Zhi Wang --- drivers/gpu/drm/i915/i915_gem_gtt.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/gpu/drm/i915/i915_gem_gtt.c b/drivers/gpu/drm

[Intel-gfx] [PATCH 1/7] drm/i915: preallocate pdps for 32 bit vgpu

2015-08-19 Thread Zhiyuan Lv
ction gen8_preallocate_top_level_pdps() in the patch is from Mika, with only one change to set "used_pdpes" to avoid duplicated allocation later. Cc: Mika Kuoppala Cc: Dave Gordon Cc: Michel Thierry Signed-off-by: Zhiyuan Lv Signed-off-by: Zhi Wang --- drivers/gpu/drm/i915/i915

[Intel-gfx] [PATCH 0/7] drm/intel: guest i915 changes for Broadwell to run inside VM with Intel GVT-g

2015-08-19 Thread Zhiyuan Lv
Mika's earlier one, but we use it for vgpu only. The sixth patch is the implementation of the notification for shadowing. Zhiyuan Lv (7): drm/i915: preallocate pdps for 32 bit vgpu drm/i915: Enable full ppgtt for vgpu drm/i915: Always enable execlists on BDW for vgpu drm/i915: always pi

Re: [Intel-gfx] [PATCH 02/21] drm/i915/gtt: Workaround for HW preload not flushing pdps

2015-08-13 Thread Zhiyuan Lv
On Thu, Aug 13, 2015 at 01:03:30PM +0100, Dave Gordon wrote: > On 13/08/15 12:42, Dave Gordon wrote: > >On 13/08/15 11:12, Michel Thierry wrote: > >>On 8/13/2015 5:08 PM, Zhiyuan Lv wrote: > >>>Hi Michel, > >>> > >>>Thanks for the reply!

Re: [Intel-gfx] [PATCH 02/21] drm/i915/gtt: Workaround for HW preload not flushing pdps

2015-08-13 Thread Zhiyuan Lv
Hi Dave, On Wed, Aug 12, 2015 at 04:09:18PM +0100, Dave Gordon wrote: > On 12/08/15 08:56, Thierry, Michel wrote: > >On 8/11/2015 1:05 PM, Zhiyuan Lv wrote: > >>Hi Mika/Dave/Michel, > >> > >>I saw the patch of using LRI for root pointer update has been merge

Re: [Intel-gfx] [PATCH 02/21] drm/i915/gtt: Workaround for HW preload not flushing pdps

2015-08-13 Thread Zhiyuan Lv
Wed, Aug 12, 2015 at 03:56:49PM +0800, Michel Thierry wrote: > On 8/11/2015 1:05 PM, Zhiyuan Lv wrote: > >Hi Mika/Dave/Michel, > > > >I saw the patch of using LRI for root pointer update has been merged to > >drm-intel. When we consider i915 driver to run inside a virtual

Re: [Intel-gfx] [PATCH 02/21] drm/i915/gtt: Workaround for HW preload not flushing pdps

2015-08-10 Thread Zhiyuan Lv
Hi Mika/Dave/Michel, I saw the patch of using LRI for root pointer update has been merged to drm-intel. When we consider i915 driver to run inside a virtual machine, e.g. with XenGT, we may still need Mika's this patch like below: " if (intel_vgpu_active(ppgtt->base.dev))

Re: [Intel-gfx] [PATCH 5/8] drm/i915: Add the display switch logic for vgpu in i915 driver

2014-09-30 Thread Zhiyuan Lv
Hi Daniel, On Mon, Sep 29, 2014 at 02:30:09PM +0200, Daniel Vetter wrote: > On Mon, Sep 29, 2014 at 02:31:17PM +0800, Zhiyuan Lv wrote: > > Hi Daniel, > > > > On Fri, Sep 19, 2014 at 06:09:37PM +0200, Daniel Vetter wrote: > > > On Sat, Sep 20, 2014 at 02:

Re: [Intel-gfx] [PATCH 5/8] drm/i915: Add the display switch logic for vgpu in i915 driver

2014-09-28 Thread Zhiyuan Lv
buffer in the host side > > > > Signed-off-by: Yu Zhang > > Signed-off-by: Jike Song > > Signed-off-by: Zhiyuan Lv > > --- > > drivers/gpu/drm/i915/i915_dma.c | 8 > > drivers/gpu/drm/i915/i915_reg.h | 7 +++ > > drivers/gpu/drm/i