[PATCH 1/3] drm/i915/gvt: fix file paths in documentation

2020-01-06 Thread Julian Stecklina
The documentation had some stale paths to i915 graphics virtualization code. Fix them to point to existing files. Cc: Zhenyu Wang Cc: zhiyuan...@intel.com Cc: hang.y...@intel.com Signed-off-by: Julian Stecklina --- Documentation/gpu/i915.rst | 8 1 file changed, 4 insertions(+), 4

[PATCH 2/3] drm/i915/gvt: make gvt oblivious of kvmgt data structures

2020-01-06 Thread Julian Stecklina
mediator itself. This is a first step. Cc: Zhenyu Wang Cc: zhiyuan...@intel.com Cc: hang.y...@intel.com Signed-off-by: Julian Stecklina --- drivers/gpu/drm/i915/gvt/gvt.h | 32 +--- drivers/gpu/drm/i915/gvt/kvmgt.c | 287 +++ 2 files changed, 184 insertions(+), 135

[PATCH 3/3] drm/i915/gvt: remove unused vblank_done completion

2020-01-06 Thread Julian Stecklina
This variable is used nowhere, so remove it. Cc: Zhenyu Wang Cc: zhiyuan...@intel.com Cc: hang.y...@intel.com Signed-off-by: Julian Stecklina --- drivers/gpu/drm/i915/gvt/gvt.h | 2 -- drivers/gpu/drm/i915/gvt/kvmgt.c | 2 -- 2 files changed, 4 deletions(-) diff --git a/drivers/gpu/drm

Re: [PATCH 1/3] drm/i915/gvt: fix file paths in documentation

2020-01-08 Thread Julian Stecklina
On Tue, 2020-01-07 at 10:06 +0800, Zhenyu Wang wrote: > On 2020.01.06 16:06:20 +0200, Julian Stecklina wrote: > > The documentation had some stale paths to i915 graphics virtualization > > code. Fix them to point to existing files. > > > > Cc: Zhenyu Wang > >

Re: [PATCH 2/3] drm/i915/gvt: make gvt oblivious of kvmgt data structures

2020-01-08 Thread Julian Stecklina
On Wed, 2020-01-08 at 12:24 +0200, Jani Nikula wrote: > On Mon, 06 Jan 2020, Julian Stecklina > wrote: [...] > > + /* Hypervisor-specific device state. */ > > + void *vdev; > > I have no clue about the relative merits of the patch, but you can use > the actual

[RFC PATCH 1/4] drm/i915/gvt: make gvt oblivious of kvmgt data structures

2020-01-09 Thread Julian Stecklina
mediator itself. This is a first step. Cc: Zhenyu Wang Signed-off-by: Julian Stecklina --- drivers/gpu/drm/i915/gvt/gvt.h | 32 +--- drivers/gpu/drm/i915/gvt/kvmgt.c | 287 +++ 2 files changed, 184 insertions(+), 135 deletions(-) diff --git a/drivers/gpu/drm/i915/gvt

[RFC PATCH 3/4] drm/i915/gvt: define a public interface to gvt

2020-01-09 Thread Julian Stecklina
g Signed-off-by: Julian Stecklina --- drivers/gpu/drm/i915/gvt/Makefile | 2 +- drivers/gpu/drm/i915/gvt/debug.h | 2 +- drivers/gpu/drm/i915/gvt/display.c| 26 + drivers/gpu/drm/i915/gvt/display.h| 27 - drivers/gpu/drm/i915/gvt/gtt.h| 2 - drivers/gpu/dr

[RFC PATCH 4/4] drm/i915/gvt: move public gvt headers out into global include

2020-01-09 Thread Julian Stecklina
Now that the GVT interface to hypervisors does not depend on i915/GVT internals anymore, we can move the headers to the global include/. This makes out-of-tree modules for hypervisor integration possible. Cc: Zhenyu Wang Signed-off-by: Julian Stecklina --- drivers/gpu/drm/i915/gvt/gvt.h

[RFC PATCH 2/4] drm/i915/gvt: remove unused vblank_done completion

2020-01-09 Thread Julian Stecklina
This variable is used nowhere, so remove it. Cc: Zhenyu Wang Signed-off-by: Julian Stecklina --- drivers/gpu/drm/i915/gvt/gvt.h | 2 -- drivers/gpu/drm/i915/gvt/kvmgt.c | 2 -- 2 files changed, 4 deletions(-) diff --git a/drivers/gpu/drm/i915/gvt/gvt.h b/drivers/gpu/drm/i915/gvt/gvt.h

[RFC PATCH 0/4] Support for out-of-tree hypervisor modules in i915/gvt

2020-01-09 Thread Julian Stecklina
. At the same time, it creates at least a bit of a barrier to including more i915 internals into kvmgt, which is nice in itself. The first two patches are pretty much general cleanup and could be merged without the rest. Any feedback is welcome. Julian Stecklina (4): drm/i915/gvt: make gvt

[PATCH v2 RESEND] drm/i915/gvt: make gvt oblivious of kvmgt data structures

2020-02-17 Thread Julian Stecklina
mediator itself. This is a first step. v2: - rebased onto gvt-staging (no conflicts) Signed-off-by: Julian Stecklina Acked-by: Zhenyu Wang --- drivers/gpu/drm/i915/gvt/gvt.h | 32 +--- drivers/gpu/drm/i915/gvt/kvmgt.c | 287 +++ 2 files changed, 184 insertions(+), 135

Re: [PATCH v2 RESEND] drm/i915/gvt: make gvt oblivious of kvmgt data structures

2020-02-19 Thread Julian Stecklina
On Tue, 2020-02-18 at 16:50 +0800, Zhenyu Wang wrote: > Looks this needs some backmerge first to apply, I'll include this > for -next pull later. I usually base these patches on gvt-staging. If there is some other branch to rebase them onto to make your life easier, just point me to it. > Thanks

Re: [RFC PATCH 4/4] drm/i915/gvt: move public gvt headers out into global include

2020-01-17 Thread Julian Stecklina
Hi Greg, On Thu, 2020-01-16 at 15:23 +0100, Greg KH wrote: > On Thu, Jan 16, 2020 at 03:13:01PM +0100, Julian Stecklina wrote: > > Hi Greg, Christoph, > > > > On Wed, 2020-01-15 at 16:22 +0100, Greg KH wrote: > > > On Thu, Jan 09, 2020 at 07:13:57PM +0200, Julia

Re: [RFC PATCH 4/4] drm/i915/gvt: move public gvt headers out into global include

2020-01-17 Thread Julian Stecklina
Hi Greg, Christoph, On Wed, 2020-01-15 at 16:22 +0100, Greg KH wrote: > On Thu, Jan 09, 2020 at 07:13:57PM +0200, Julian Stecklina wrote: > > Now that the GVT interface to hypervisors does not depend on i915/GVT > > internals anymore, we can move the headers to the global include/

[PATCH] drm/i915/gvt: make gvt oblivious of kvmgt data structures

2020-01-21 Thread Julian Stecklina
mediator itself. This is a first step. v2: - rebased onto gvt-staging (no conflicts) Signed-off-by: Julian Stecklina Acked-by: Zhenyu Wang --- drivers/gpu/drm/i915/gvt/gvt.h | 32 +--- drivers/gpu/drm/i915/gvt/kvmgt.c | 287 +++ 2 files changed, 184 insertions(+), 135

Re: [RFC PATCH 1/4] drm/i915/gvt: make gvt oblivious of kvmgt data structures

2020-01-21 Thread Julian Stecklina
On Mon, 2020-01-20 at 14:33 +0800, Zhenyu Wang wrote: > hmm, I failed to apply this one, could you refresh against gvt-staging branch > > on https://github.com/intel/gvt-linux? Done. I've sent out the rebased (and re-tested) patch. Julian ___ dri-devel

[PATCH] drm/i915/gvt: print actionable error message when gm runs out

2020-06-04 Thread Julian Stecklina
: Zhenyu Wang Signed-off-by: Julian Stecklina --- drivers/gpu/drm/i915/gvt/aperture_gm.c | 9 ++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/i915/gvt/aperture_gm.c b/drivers/gpu/drm/i915/gvt/aperture_gm.c index 0d6d598713082..5c5c8e871dae2 100644 --- a

Re: [PATCH] drm/i915/gvt: print actionable error message when gm runs out

2020-06-07 Thread Julian Stecklina
On Fri, 2020-06-05 at 12:54 +0800, Zhenyu Wang wrote: > On 2020.06.03 14:33:21 +0200, Julian Stecklina wrote: > > + gvt_err("vgpu%d: failed to allocate %s gm space from host\n", > > + vgpu->id, high_gm ? "high" : "low"); &