[Intel-gfx] [PATCH] drm/i915/gvt/kvmgt: remove useless code

2017-01-25 Thread Jike Song
As noticed by Dan, there is useless (and incorrect) code in kvmgt trying to kfree(NULL), though almost harmless. It was a copy-paste mistake and should be removed. Reported-by: Dan Carpenter Signed-off-by: Jike Song --- drivers/gpu/drm/i915/gvt/kvmgt.c | 7 --- 1 file changed, 7 deletions

Re: [Intel-gfx] [bug report] drm/i915/gvt/kvmgt: add vfio/mdev support to KVMGT

2017-01-25 Thread Jike Song
On 01/26/2017 02:50 PM, Dan Carpenter wrote: > Hello Jike Song, > > The patch 659643f7d814: "drm/i915/gvt/kvmgt: add vfio/mdev support to > KVMGT" from Dec 8, 2016, leads to the following static checker > warning: > > drivers/gpu/drm/i915/gvt/kvmgt.c:969

Re: [Intel-gfx] [PATCH] drm/i915/gvt/kvmgt: mdev ABI is available_instances, not available_instance

2017-01-24 Thread Jike Song
Williamson > --- > > This should really be fixed before initial release in v4.10 Acked-by: Jike Song Thanks for finding this! -- Thanks, Jike > > drivers/gpu/drm/i915/gvt/kvmgt.c |8 > 1 file changed, 4 insertions(+), 4 deletions(-) > > diff --git a/driver

Re: [Intel-gfx] [PATCH 1/5] drm/i915: make intel_gvt_init() later instead of too early

2017-01-10 Thread Jike Song
On 01/10/2017 02:52 PM, Zhenyu Wang wrote: > Previously intel_gvt_init() was called very early even before > MMIO initialization which had several drawbacks: > - Have to handle MMIO access for initial MMIO state dump if golden > state firmware is not available > - Hypervisor detection should depe

Re: [Intel-gfx] [PATCH 2/5] drm/i915/gvt: move intel iommu detection to intel_gvt_init()

2017-01-10 Thread Jike Song
On 01/11/2017 10:40 AM, Zhenyu Wang wrote: > On 2017.01.11 10:18:30 +0800, Jike Song wrote: >> On 01/10/2017 02:52 PM, Zhenyu Wang wrote: >>> Prepare to remove detect_host() hook. Move intel iommu detection early >>> in intel_gvt_init(). >>> >>> Sig

Re: [Intel-gfx] [PATCH 2/5] drm/i915/gvt: move intel iommu detection to intel_gvt_init()

2017-01-10 Thread Jike Song
On 01/10/2017 02:52 PM, Zhenyu Wang wrote: > Prepare to remove detect_host() hook. Move intel iommu detection early > in intel_gvt_init(). > > Signed-off-by: Zhenyu Wang > --- > drivers/gpu/drm/i915/gvt/gvt.c | 7 +++ > drivers/gpu/drm/i915/gvt/kvmgt.c | 6 -- > 2 files changed, 7 inse

Re: [Intel-gfx] [ANNOUNCE] 2016-Q3 release of KVMGT (Was Re: KVMGT - the implementation of ...)

2016-11-06 Thread Jike Song
uct nor should it be considered one. Extra care should be taken when testing and configuring a system to use the KVMGT project. -- Thanks, Jike On 07/20/2016 12:52 PM, Jike Song wrote: > Hi all, > > We are pleased to announce another update of Intel GVT-g for KVM. > > Intel GVT-g f

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

2016-11-06 Thread Jike Song
work in progress. As such it is not a complete product nor should it be considered one. Extra care should be taken when testing and configuring a system to use the XenGT project. -- Thanks, Jike On 07/22/2016 01:42 PM, Jike Song wrote: > Hi all, > > We are pleased to announce another

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

2016-07-21 Thread Jike Song
complete product nor should it be considered one. Extra care should be taken when testing and configuring a system to use the XenGT project. -- Thanks, Jike On 04/28/2016 01:29 PM, Jike Song wrote: > Hi all, > > We are pleased to announce another update of Intel GVT-g for Xen. &

Re: [Intel-gfx] [ANNOUNCE] 2016-Q2 release of KVMGT (Was Re: KVMGT - the implementation of ...)

2016-07-19 Thread Jike Song
be taken when testing and configuring a system to use the KVMGT project. -- Thanks, Jike On 04/16/2016 02:31 PM, Jike Song wrote: > Hi all, > > We are pleased to announce another update of Intel GVT-g for KVM. > > Intel GVT-g for KVM (a.k.a. KVMGT) is a full GPU virtualiza

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

2016-04-27 Thread Jike Song
product nor should it be considered one. Extra care should be taken when testing and configuring a system to use the XenGT project. -- Thanks, Jike On 01/27/2016 02:21 PM, Jike Song wrote: > Hi all, > > We are pleased to announce another update of Intel GVT-g for Xen. > > Intel GVT

Re: [Intel-gfx] Xen is Busted

2016-04-21 Thread Jike Song
On 04/21/2016 06:44 AM, cac...@quantum-sci.com wrote: > > No one will just come out and just tell us the truth, so that users can quit > wasting our time trying to make your Xen work. Your 4.2 kernel dumps core on > i915, and Xen hangs on disk drive ID. > > Why don't you just take down the Xen

Re: [Intel-gfx] [ANNOUNCE] 2016-Q1 release of KVMGT (Was Re: KVMGT - the implementation of ...)

2016-04-15 Thread Jike Song
ote: The KVMGT project should be considered a work in progress. As such it is not a complete product nor should it be considered one. Extra care should be taken when testing and configuring a system to use the KVMGT project. -- Thanks, Jike On 01/27/2016 02:32 PM, Jike Song wrote: > Hi all, &

Re: [Intel-gfx] [ANNOUNCE] 2015-Q4 release of KVMGT (Was Re: KVMGT - the implementation of ...)

2016-01-26 Thread Jike Song
such it is not a complete product nor should it be considered one. Extra care should be taken when testing and configuring a system to use the KVMGT project. -- Thanks, Jike On 10/27/2015 05:36 PM, Jike Song wrote: > Hi all, > > We are pleased to announce another update of Intel GVT-

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

2016-01-26 Thread Jike Song
/blogs/srclarkx/2013/graphics-virtualization-xengt Note: The XenGT project should be considered a work in progress. As such it is not a complete product nor should it be considered one. Extra care should be taken when testing and configuring a system to use the XenGT project. -- Thanks, Jike

Re: [Intel-gfx] [iGVT-g] XenGT for PV guest

2015-11-26 Thread Jike Song
On 11/27/2015 01:10 AM, Oleksii Kurochko wrote: Hello all, Do you have any ideas about previously mentioned question? With best regards, Oleksii On Tue, Nov 24, 2015 at 6:48 PM, Oleksii Kurochko mailto:oleksii.kuroc...@globallogic.com>> wrote: Hi all, I am trying to enable XenGT fo

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

2015-11-22 Thread Jike Song
On 11/21/2015 01:25 AM, Alex Williamson wrote: On Fri, 2015-11-20 at 08:10 +, Tian, Kevin wrote: Here is a more concrete example: KVMGT doesn't require IOMMU. All DMA targets are already replaced with HPA thru shadow GTT. So DMA requests from GPU all contain HPAs. When IOMMU is enabled, o

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

2015-11-22 Thread Jike Song
On 11/21/2015 12:40 AM, Alex Williamson wrote: Thanks for confirmation. For QEMU/KVM, I totally agree your point; However, if we take XenGT to consider, it will be a bit more complex: with Xen hypervisor and Dom0 kernel running in different level, it's not a straight- forward way for QEMU to do

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

2015-11-19 Thread Jike Song
On 11/20/2015 12:22 PM, Alex Williamson wrote: On Fri, 2015-11-20 at 10:58 +0800, Jike Song wrote: On 11/19/2015 11:52 PM, Alex Williamson wrote: On Thu, 2015-11-19 at 15:32 +, Stefano Stabellini wrote: On Thu, 19 Nov 2015, Jike Song wrote: Hi Alex, thanks for the discussion. In

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

2015-11-19 Thread Jike Song
On 11/19/2015 11:52 PM, Alex Williamson wrote: On Thu, 2015-11-19 at 15:32 +, Stefano Stabellini wrote: On Thu, 19 Nov 2015, Jike Song wrote: Hi Alex, thanks for the discussion. In addition to Kevin's replies, I have a high-level question: can VFIO be used by QEMU for both KVM an

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

2015-11-19 Thread Jike Song
On 11/19/2015 07:09 PM, Paolo Bonzini wrote: On 19/11/2015 09:40, Gerd Hoffmann wrote: But this code should be minor to be maintained in libvirt. As far I know libvirt only needs to discover those devices. If they look like sr/iov devices in sysfs this might work without any changes to libvirt

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

2015-11-18 Thread Jike Song
Hi Alex, On 11/19/2015 12:06 PM, Tian, Kevin wrote: From: Alex Williamson [mailto:alex.william...@redhat.com] Sent: Thursday, November 19, 2015 2:12 AM [cc +qemu-devel, +paolo, +gerd] On Tue, 2015-10-27 at 17:25 +0800, Jike Song wrote: {snip} Hi! At redhat we've been thinking about h

Re: [Intel-gfx] [ANNOUNCE][RFC] KVMGT - the implementation of Intel GVT-g(full GPU virtualization) for KVM

2015-10-27 Thread Jike Song
configuring a system to use the KVMGT project. -- Thanks, Jike On 12/04/2014 10:24 AM, Jike Song wrote: Hi all, We are pleased to announce the first release of KVMGT project. KVMGT is the implementation of Intel GVT-g technology, a full GPU virtualization solution. Under Intel GVT-g, a virtual

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

2015-10-27 Thread Jike Song
uch it is not a complete product nor should it be considered one. Extra care should be taken when testing and configuring a system to use the XenGT project. -- Thanks, Jike On 07/07/2015 10:49 AM, Jike Song wrote: Hi all, We're pleased to announce a public update to Intel Graphics Virtuali

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

2015-07-06 Thread Jike Song
t nor should it be considered one. Extra care should be taken when testing and configuring a system to use the XenGT project. -- Thanks, Jike On 04/10/2015 09:23 PM, Jike Song wrote: Hi all, We're pleased to announce a public update to Intel Graphics Virtualization Technology (I

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

2015-01-11 Thread Jike Song
Whoops. Changed the title from "2015-Q1" to be "2014-Q4" :) -- Thanks, Jike On 01/09/2015 04:51 PM, Jike Song wrote: Hi all, We're pleased to announce a public update to Intel Graphics Virtualization Technology (Intel GVT-g, formerly known as XenGT). Intel

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

2015-01-09 Thread Jike Song
ments! -- Thanks, Jike On 12/04/2014 10:45 AM, Jike Song wrote: Hi all, We're pleased to announce a public release to Intel Graphics Virtualization Technology (Intel GVT-g, formerly known as XenGT). Intel GVT-g is a complete vGPU solution with mediated pass-through, supported today on 4th

Re: [Intel-gfx] [ANNOUNCE][RFC] KVMGT - the implementation of Intel GVT-g(full GPU virtualization) for KVM

2014-12-09 Thread Jike Song
CC Kevin. On 12/09/2014 05:54 PM, Jan Kiszka wrote: On 2014-12-04 03:24, Jike Song wrote: Hi all, We are pleased to announce the first release of KVMGT project. KVMGT is the implementation of Intel GVT-g technology, a full GPU virtualization solution. Under Intel GVT-g, a virtual GPU

Re: [Intel-gfx] [ANNOUNCE][RFC] KVMGT - the implementation of Intel GVT-g(full GPU virtualization) for KVM

2014-12-09 Thread Jike Song
CC Kevin. On 12/09/2014 05:54 PM, Jan Kiszka wrote: On 2014-12-04 03:24, Jike Song wrote: Hi all, We are pleased to announce the first release of KVMGT project. KVMGT is the implementation of Intel GVT-g technology, a full GPU virtualization solution. Under Intel GVT-g, a virtual GPU

Re: [Intel-gfx] [ANNOUNCE][RFC] KVMGT - the implementation of Intel GVT-g(full GPU virtualization) for KVM

2014-12-05 Thread Jike Song
On 12/05/2014 09:54 PM, Daniel Vetter wrote: Yeah done a quick read-through of just the i915 bits too, same comment. I guess this is just the first RFC and the redesign we've discussed about already with xengt is in progress somewhere? Yes, it's marching on with Xen now. The KVM implementation

Re: [Intel-gfx] [ANNOUNCE][RFC] KVMGT - the implementation of Intel GVT-g(full GPU virtualization) for KVM

2014-12-05 Thread Jike Song
CC Andy :) On 12/05/2014 09:03 PM, Paolo Bonzini wrote: On 05/12/2014 09:50, Gerd Hoffmann wrote: A few comments on the kernel stuff (brief look so far, also compile-tested only, intel gfx on my test machine is too old). * Noticed the kernel bits don't even compile when configured as mo

Re: [Intel-gfx] [ANNOUNCE][RFC] KVMGT - the implementation of Intel GVT-g(full GPU virtualization) for KVM

2014-12-05 Thread Jike Song
On 12/05/2014 04:50 PM, Gerd Hoffmann wrote: A few comments on the kernel stuff (brief look so far, also compile-tested only, intel gfx on my test machine is too old). * Noticed the kernel bits don't even compile when configured as module. Everything (vgt, i915, kvm) must be compiled into

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

2014-12-03 Thread Jike Song
phics-virtualization-xengt The previous update can be found here: http://lists.xen.org/archives/html/xen-devel/2014-07/msg03248.html Appreciate your comments! -- Thanks, Jike On 07/25/2014 04:31 PM, Jike Song wrote: Hi all, We're pleased to announce an update to Intel Graphics Virt

[Intel-gfx] [ANNOUNCE][RFC] KVMGT - the implementation of Intel GVT-g(full GPU virtualization) for KVM

2014-12-03 Thread Jike Song
Hi all, We are pleased to announce the first release of KVMGT project. KVMGT is the implementation of Intel GVT-g technology, a full GPU virtualization solution. Under Intel GVT-g, a virtual GPU instance is maintained for each VM, with part of performance critical resources directly assigned.

Re: [Intel-gfx] [RFC PATCH 0/8] Add host i915 support for vGPU

2014-10-22 Thread Jike Song
On 10/22/2014 05:48 PM, Daniel Vetter wrote: So on a very high level I don't understand this design. For the guest side it's completely clear that we need a bunch of hooks over the driver to make paravirtualization work. But on the host side I expect the driver to be in full control of the hardw

Re: [Intel-gfx] [RFC PATCH 7/8] drm/i915: vgt irq mediation - via a tasklet based mechanism

2014-10-22 Thread Jike Song
On 10/01/2014 12:26 AM, Tian, Kevin wrote: From virtualization p.o.v, the ideal case is to run host i915 irq handler in the interrupt context, which meets all the assumption from original code. Using tasklet or other manner still has some restriction. This is a major open we'd like to hear more

Re: [Intel-gfx] [RFC PATCH 3/8] drm/i915: add the vgt implementation of MMIO/GTT mediations

2014-10-01 Thread Jike Song
On 10/1/2014 12:34 AM, Tian, Kevin wrote: +void i915_vgt_record_priv(struct drm_i915_private *priv) +{ + dev_priv = priv; +} -- Suppose above can be carried in i915_start_vgt, instead of adding a new interface? Thanks Kevin Should be not? since the drm_device is not yet allocated in i

Re: [Intel-gfx] [PATCH 02/11] drm/i915: Clarify event_lock locking, irq&mixed context

2014-09-30 Thread Jike Song
On 09/29/2014 09:27 PM, Daniel Vetter wrote: Well, can you still please intrigue me with why you have to change our interrupt handling from hardirq to work item? It sounds like there's some crucial issue of the overall design hidden in there. Hi Daniel, I just sent out the patch series named "A

[Intel-gfx] [RFC PATCH 7/8] drm/i915: vgt irq mediation - via a tasklet based mechanism

2014-09-30 Thread Jike Song
. Whenever a virtual interrupt needs to be injected to host i915, tasklet_schedule gets called. Signed-off-by: Jike Song --- drivers/gpu/drm/i915/i915_drv.h | 6 ++ drivers/gpu/drm/i915/i915_irq.c | 35 +++ drivers/gpu/drm/i915/i915_vgt.h | 20

[Intel-gfx] [RFC PATCH 4/8] drm/i915: redirect MMIO accesses to vgt if enabled

2014-09-30 Thread Jike Song
Signed-off-by: Jike Song --- drivers/gpu/drm/i915/i915_drv.h | 147 +--- drivers/gpu/drm/i915/intel_uncore.c | 3 + 2 files changed, 138 insertions(+), 12 deletions(-) diff --git a/drivers/gpu/drm/i915/i915_drv.h b/drivers/gpu/drm/i915/i915_drv.h index

[Intel-gfx] [RFC PATCH 0/8] Add host i915 support for vGPU

2014-09-30 Thread Jike Song
esume are still under cleanup; - GPU reset is still under cleanup We send out the framework changes in this patch set for review at first, and meanwhile, vgt integration and cleanup are ongoing. Jike Song (8): drm/i915: introduce a new modparam: enable_vgt drm/i915: introduce the ske

[Intel-gfx] [RFC PATCH 6/8] drm/i915: redirect GTT accesses to vgt if enabled

2014-09-30 Thread Jike Song
Signed-off-by: Jike Song --- drivers/gpu/drm/i915/i915_drv.h | 41 ++--- 1 file changed, 34 insertions(+), 7 deletions(-) diff --git a/drivers/gpu/drm/i915/i915_drv.h b/drivers/gpu/drm/i915/i915_drv.h index 051442e..742fe8a 100644 --- a/drivers/gpu/drm/i915

[Intel-gfx] [RFC PATCH 1/8] drm/i915: introduce a new modparam: enable_vgt

2014-09-30 Thread Jike Song
To provide Intel GPU virtualization, the host i915 driver needs to support vgt - an in-kernel device model of Intel GPU. Signed-off-by: Jike Song --- drivers/gpu/drm/i915/i915_drv.h| 1 + drivers/gpu/drm/i915/i915_params.c | 4 2 files changed, 5 insertions(+) diff --git a/drivers/gpu

[Intel-gfx] [RFC PATCH 8/8] drm/i915: enable vgt if specified by module param

2014-09-30 Thread Jike Song
All of interfaces between vgt and host i915(MMIO, GTT, irq mediation) are ready, it's safe to enable it if specified in modparam. Signed-off-by: Jike Song --- drivers/gpu/drm/i915/vgt/vgt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/i915/vgt/vg

[Intel-gfx] [RFC PATCH 5/8] drm/i915: GTT access abstraction

2014-09-30 Thread Jike Song
This patch convert necessary GTT read/write calls, e.g. iowrite32() and readl() et al, to an encapsulated series: GTT_READ32, GTT_WRITE32, GTT_READ64 and GTT_WRITE64. This patch doesn't change the behaviors of i915 GTT access. Signed-off-by: Jike Song --- drivers/gpu/drm/i915/i915_

[Intel-gfx] [RFC PATCH 2/8] drm/i915: introduce the skeleton of vgt

2014-09-30 Thread Jike Song
This patch introduces the skeleton of vgt, an i915 add-on for controlling physical GPU resources and sharing among VMs. Signed-off-by: Jike Song --- drivers/gpu/drm/i915/Kconfig| 18 ++ drivers/gpu/drm/i915/Makefile | 4 drivers/gpu/drm/i915/i915_drv.c | 10

[Intel-gfx] [RFC PATCH 3/8] drm/i915: add the vgt implementation of MMIO/GTT mediations

2014-09-30 Thread Jike Song
accessing functions, without changing the existing i915 MMIO/GTT access behaviors. Signed-off-by: Jike Song --- drivers/gpu/drm/i915/i915_vgt.h | 21 drivers/gpu/drm/i915/vgt/vgt.c | 105 2 files changed, 126 insertions(+) diff --git a/drivers

Re: [Intel-gfx] [PATCH 02/11] drm/i915: Clarify event_lock locking, irq&mixed context

2014-09-29 Thread Jike Song
On 09/29/2014 08:20 PM, Daniel Vetter wrote: On Mon, Sep 29, 2014 at 02:20:27PM +0800, Jike Song wrote: On 09/15/2014 08:55 PM, Daniel Vetter wrote: Now we tackle the functions also called from interrupt handlers. - intel_check_page_flip is exclusively called from irq handlers, so a plain

Re: [Intel-gfx] [PATCH 1/8] drm/i915: Introduce a PV INFO page structure for Intel GVT-g.

2014-09-29 Thread Jike Song
On 09/29/2014 08:16 PM, Chris Wilson wrote: On Mon, Sep 29, 2014 at 07:44:56PM +0800, Jike Song wrote: On 09/19/2014 03:25 PM, Chris Wilson wrote: Now, given that these are simply trapped memory access, wouldn't it be simply to have: struct i915_virtual_gpu { struct vgt_if *if;

Re: [Intel-gfx] [PATCH 1/8] drm/i915: Introduce a PV INFO page structure for Intel GVT-g.

2014-09-29 Thread Jike Song
On 09/19/2014 03:25 PM, Chris Wilson wrote: Now, given that these are simply trapped memory access, wouldn't it be simply to have: struct i915_virtual_gpu { struct vgt_if *if; } vgu; static inline bool intel_vgpu_active(struct drm_i915_private *i915) { return i915->vgpu.if; } then you

Re: [Intel-gfx] [PATCH 02/11] drm/i915: Clarify event_lock locking, irq&mixed context

2014-09-28 Thread Jike Song
On 09/15/2014 08:55 PM, Daniel Vetter wrote: Now we tackle the functions also called from interrupt handlers. - intel_check_page_flip is exclusively called from irq handlers, so a plain spin_lock is all we need. In i915_irq.c we have the convention to give all such functions an _irq_handle

Re: [Intel-gfx] [PATCH 8/8] drm/i915: Support alias ppgtt in VM if ppgtt is enabled

2014-09-22 Thread Jike Song
On 09/19/2014 04:25 PM, Chris Wilson wrote: This should be moved to sanitize_enable_ppgtt(), probably by expanding HAS_PPGTT(), e.g.: diff --git a/drivers/gpu/drm/i915/i915_drv.h b/drivers/gpu/drm/i915/i915_drv.h index 07dafa2c2d8c..b1fa13942d14 100644 --- a/drivers/gpu/drm/i915/i915_drv.h +++

Re: [Intel-gfx] [PATCH 4/8] drm/i915: Disable framebuffer compression for i915 driver in VM

2014-09-22 Thread Jike Song
On 09/19/2014 04:07 PM, Chris Wilson wrote: On Sat, Sep 20, 2014 at 02:47:04AM +0800, Jike Song wrote: From: Yu Zhang Framebuffer compression is disabled when driver detects it's running in XenGT VM, because XenGT does not provide emulations for FBC related operations, and we do not e

Re: [Intel-gfx] [PATCH 1/8] drm/i915: Introduce a PV INFO page structure for Intel GVT-g.

2014-09-19 Thread Jike Song
Hi Chris, thanks very much for your detailed comments! I'll try to address them as well as in your other emails. On 09/19/2014 03:25 PM, Chris Wilson wrote: On Sat, Sep 20, 2014 at 02:47:01AM +0800, Jike Song wrote: From: Yu Zhang Introduce a PV INFO structure, to facilitate the Intel

Re: [Intel-gfx] [PATCH 7/8] drm/i915: Create vgpu specific write MMIO to reduce traps

2014-09-19 Thread Jike Song
[adding cc. By mistake I set suppresscc=all in my ~/.gitconfig] On 09/19/2014 02:59 PM, Chris Wilson wrote: On Sat, Sep 20, 2014 at 02:47:07AM +0800, Jike Song wrote: From: Yu Zhang In the virtualized environment, forcewake operations are not necessory for the driver, because mmio accesses

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

2014-09-18 Thread Jike Song
being accessed in the middle of VM modesetting, e.g. compositing the framebuffer 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

[Intel-gfx] [PATCH 7/8] drm/i915: Create vgpu specific write MMIO to reduce traps

2014-09-18 Thread Jike Song
__raw_i915_write, therefore will reduce many traps and increase the overall performance for drivers runing in the VM with Intel GVT-g enhancement Signed-off-by: Yu Zhang Signed-off-by: Jike Song Signed-off-by: Kevin Tian --- drivers/gpu/drm/i915/i915_dma.c | 7 +-- drivers/gpu/drm/i915/i915_drv.h

[Intel-gfx] [PATCH 3/8] drm/i915: Partition the fence registers for vgpu in i915 driver

2014-09-18 Thread Jike Song
igned-off-by: Yu Zhang Signed-off-by: Jike Song Signed-off-by: Eddie Dong --- drivers/gpu/drm/i915/i915_gem.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/gpu/drm/i915/i915_gem.c b/drivers/gpu/drm/i915/i915_gem.c index 2a5351d..3471f15 100644 --- a/drivers/gpu/drm/i915/i915_

[Intel-gfx] [PATCH 8/8] drm/i915: Support alias ppgtt in VM if ppgtt is enabled

2014-09-18 Thread Jike Song
patch also added a new callback routine - vgpu_mm_switch() to set the PP_DIR_BASE by mmio writes. Signed-off-by: Yu Zhang Signed-off-by: Jike Song --- drivers/gpu/drm/i915/i915_dma.c | 5 + drivers/gpu/drm/i915/i915_gem_gtt.c | 14 ++ 2 files changed, 19 insertions(+) diff

[Intel-gfx] [PATCH 2/8] drm/i915: Adds graphic address space ballooning logic

2014-09-18 Thread Jike Song
physical GTT space. Signed-off-by: Yu Zhang Signed-off-by: Jike Song Signed-off-by: Zhi Wang Signed-off-by: Eddie Dong --- drivers/gpu/drm/i915/i915_gem_gtt.c | 179 ++-- 1 file changed, 171 insertions(+), 8 deletions(-) diff --git a/drivers/gpu/drm/i915

[Intel-gfx] [PATCH 6/8] drm/i915: Disable power management for i915 driver in VM

2014-09-18 Thread Jike Song
From: Yu Zhang In XenGT, GPU power management is controlled by host i915 driver, so there is no need to provide virtualized GPU PM support. In the future it might be useful to gather VM input for freq boost, but now let's disable it simply. Signed-off-by: Yu Zhang Signed-off-by: Jike

[Intel-gfx] [PATCH 1/8] drm/i915: Introduce a PV INFO page structure for Intel GVT-g.

2014-09-18 Thread Jike Song
ts of this PV INFO page. Thereafter a flag, vgpu_active is set, and intel_vgpu_active() is used by checking this flag to conclude if gpu is virtualized with Intel GVT-g. By now, it will return true only when the driver is running in the XenGT environment on HSW. Signed-off-by: Yu Zhang Signed-off-by:

[Intel-gfx] [PATCH 4/8] drm/i915: Disable framebuffer compression for i915 driver in VM

2014-09-18 Thread Jike Song
From: Yu Zhang Framebuffer compression is disabled when driver detects it's running in XenGT VM, because XenGT does not provide emulations for FBC related operations, and we do not expose stolen memory to the VM. Signed-off-by: Yu Zhang Signed-off-by: Jike Song Signed-off-by: Zhiyu

[Intel-gfx] [PATCH 0/8] Add enlightenments for vGPU

2014-09-18 Thread Jike Song
Intel GVT-g (previously known as XenGT), is a complete GPU virtualization solution with mediated pass-through for 4th generation Intel Core processors - Haswell platform. This technology presents a virtual full-fledged GPU to each Virtual Machine (VM). VMs can directly access performance-critical r

Re: [Intel-gfx] [Xen-devel] [Announcement] Updates to XenGT - a Mediated Graphics Passthrough Solution from Intel

2014-07-30 Thread Jike Song
On 07/29/2014 06:09 PM, Dario Faggioli wrote: Perhaps the info is available somewhere already (in which case, sorry), but what's the (if any) upstreaming plan/status/ETA? I think this info could well be part of these updates. :-) Thanks for your opinion :-) We plan to start the upstreaming wo

[Intel-gfx] [Announcement] Updates to XenGT - a Mediated Graphics Passthrough Solution from Intel

2014-07-25 Thread Jike Song
Hi all, We're pleased to announce an update to Intel Graphics Virtualization Technology (Intel GVT-g, formerly known as XenGT). Intel GVT-g is a complete vGPU solution with mediated pass-through, supported today on 4th generation Intel Core(TM) processors with Intel Graphics processors. A virt