Re: [Intel-gfx] [PATCH] drm/i915/gvt: return the actual aperture size under gvt environment

2017-04-14 Thread Li, Weinan Z
-gvt-...@lists.freedesktop.org > Subject: Re: [Intel-gfx] [PATCH] drm/i915/gvt: return the actual aperture size > under gvt environment > > On to, 2017-04-13 at 01:01 +, Li, Weinan Z wrote: > > > > > > -Original Message- > > > From: Joonas Lahtinen

Re: [Intel-gfx] [PATCH] drm/i915/gvt: return the actual aperture size under gvt environment

2017-04-13 Thread Joonas Lahtinen
Z > > <weinan.z...@intel.com> > > Cc: intel-gfx@lists.freedesktop.org; intel-gvt-...@lists.freedesktop.org > > Subject: Re: [Intel-gfx] [PATCH] drm/i915/gvt: return the actual aperture > > size > > under gvt environment > > > > On ke, 2017-04-12 at 09

Re: [Intel-gfx] [PATCH] drm/i915/gvt: return the actual aperture size under gvt environment

2017-04-12 Thread Li, Weinan Z
-gvt-...@lists.freedesktop.org > Subject: Re: [Intel-gfx] [PATCH] drm/i915/gvt: return the actual aperture size > under gvt environment > > On ke, 2017-04-12 at 09:53 +0100, Chris Wilson wrote: > > On Wed, Apr 12, 2017 at 04:36:57PM +0800, Weinan Li wrote: > > > > &g

Re: [Intel-gfx] [PATCH] drm/i915/gvt: return the actual aperture size under gvt environment

2017-04-12 Thread Joonas Lahtinen
On ke, 2017-04-12 at 09:53 +0100, Chris Wilson wrote: > On Wed, Apr 12, 2017 at 04:36:57PM +0800, Weinan Li wrote: > > > > I915_GEM_GET_APERTURE ioctl is used to probe aperture size from userspace. > > Some applications like OpenCL use this information to know how much GM > > resource can it use.

Re: [Intel-gfx] [PATCH] drm/i915/gvt: return the actual aperture size under gvt environment

2017-04-12 Thread Chris Wilson
On Wed, Apr 12, 2017 at 04:36:57PM +0800, Weinan Li wrote: > I915_GEM_GET_APERTURE ioctl is used to probe aperture size from userspace. > Some applications like OpenCL use this information to know how much GM > resource can it use. That's a userspace bug. > In gvt environment, each vm only use

[Intel-gfx] [PATCH] drm/i915/gvt: return the actual aperture size under gvt environment

2017-04-12 Thread Weinan Li
I915_GEM_GET_APERTURE ioctl is used to probe aperture size from userspace. Some applications like OpenCL use this information to know how much GM resource can it use. In gvt environment, each vm only use the ballooned part of aperture, so we should return the actual aperture size exclude the