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

2017-05-09 Thread Li, Weinan Z
> -Original Message- > From: Joonas Lahtinen [mailto:joonas.lahti...@linux.intel.com] > Sent: Tuesday, May 9, 2017 8:36 PM > To: Li, Weinan Z ; intel-gfx@lists.freedesktop.org; > intel- > gvt-...@lists.freedesktop.org > Cc: Chris Wilson >

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

2017-05-09 Thread Joonas Lahtinen
On ti, 2017-05-09 at 03:10 +, Li, Weinan Z wrote: > > > > @@ -242,6 +242,9 @@ int intel_vgt_balloon(struct drm_i915_private > > > > *dev_priv) > > > >   goto err; > > > >   } > > > > > > > > + for (i = 0; i < ARRAY_SIZE(bl_info.space); i++) > > > > +

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

2017-05-08 Thread Li, Weinan Z
Thanks Chris. > -Original Message- > From: Chris Wilson [mailto:ch...@chris-wilson.co.uk] > Sent: Monday, May 8, 2017 8:11 PM > To: Joonas Lahtinen > Cc: Li, Weinan Z ; intel-gfx@lists.freedesktop.org; > intel- >

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

2017-05-08 Thread Li, Weinan Z
Thanks Joonas. > -Original Message- > From: Joonas Lahtinen [mailto:joonas.lahti...@linux.intel.com] > Sent: Monday, May 8, 2017 6:19 PM > To: Li, Weinan Z ; intel-gfx@lists.freedesktop.org; > intel- > gvt-...@lists.freedesktop.org > Cc: Chris Wilson

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

2017-05-08 Thread Chris Wilson
On Mon, May 08, 2017 at 01:18:38PM +0300, Joonas Lahtinen wrote: > On ma, 2017-05-08 at 02:49 +, Li, Weinan Z wrote: > > Hi Joonas/Chris, do you have any comments? > > I've asked OCL team for this patch, they also agree to use available > > aperture size > > for max allocation buffer

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

2017-05-08 Thread Joonas Lahtinen
On ma, 2017-05-08 at 02:49 +, Li, Weinan Z wrote: > Hi Joonas/Chris, do you have any comments? > I've asked OCL team for this patch, they also agree to use available aperture > size > for max allocation buffer definition, code confirmation ongoing. The patch title should be corrected to

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

2017-05-07 Thread Li, Weinan Z
Hi Joonas/Chris, do you have any comments? I've asked OCL team for this patch, they also agree to use available aperture size for max allocation buffer definition, code confirmation ongoing. > -Original Message- > From: Li, Weinan Z > Sent: Wednesday, May 3, 2017 8:51 AM > To:

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

2017-05-02 Thread Weinan Li
I915_GEM_GET_APERTURE ioctl is used to probe aperture size from userspace. In gvt environment, each vm only use the ballooned part of aperture, so we should return the actual available aperture size exclude the reserved part by balloon. v2: add 'reserved' in struct i915_address_space to record