From mboxrd@z Thu Jan 1 00:00:00 1970 From: Zhenyu Wang Subject: Re: [PATCH 19/21] drm/i915: disable platform support for vGPU huge gtt pages Date: Sat, 23 Sep 2017 02:12:20 +0800 Message-ID: <20170922181220.gzlj2enevcswnkzk@zhen-hp.sh.intel.com> References: <20170922173252.10137-1-matthew.auld@intel.com> <20170922173252.10137-20-matthew.auld@intel.com> Reply-To: Zhenyu Wang Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1481875868==" Return-path: Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by gabe.freedesktop.org (Postfix) with ESMTPS id 2D6566EA53 for ; Fri, 22 Sep 2017 18:20:21 +0000 (UTC) In-Reply-To: <20170922173252.10137-20-matthew.auld@intel.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" To: Matthew Auld Cc: intel-gfx@lists.freedesktop.org List-Id: intel-gfx@lists.freedesktop.org --===============1481875868== Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="ee3lca37ozh4mpgu" Content-Disposition: inline --ee3lca37ozh4mpgu Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 2017.09.22 18:32:50 +0100, Matthew Auld wrote: > Currently gvt gtt handling doesn't support huge page entries, so disable > for now. >=20 > v2: remove useless 48b PPGTT check >=20 > Suggested-by: Zhenyu Wang > Signed-off-by: Matthew Auld > Cc: Joonas Lahtinen > Cc: Chris Wilson > Cc: Zhenyu Wang > --- > drivers/gpu/drm/i915/i915_gem.c | 8 ++++++++ > 1 file changed, 8 insertions(+) >=20 > diff --git a/drivers/gpu/drm/i915/i915_gem.c b/drivers/gpu/drm/i915/i915_= gem.c > index 750c04002304..f98d8a08167b 100644 > --- a/drivers/gpu/drm/i915/i915_gem.c > +++ b/drivers/gpu/drm/i915/i915_gem.c > @@ -4831,6 +4831,14 @@ int i915_gem_init(struct drm_i915_private *dev_pri= v) > =20 > mutex_lock(&dev_priv->drm.struct_mutex); > =20 > + /* We need to fallback to 4K pages since gvt gtt handling doesn't > + * support huge page entries - we will need to check either hypervisor > + * mm can support huge guest page or just do emulation in gvt. > + */ > + if (intel_vgpu_active(dev_priv)) > + mkwrite_device_info(dev_priv)->page_sizes =3D > + I915_GTT_PAGE_SIZE_4K; > + > dev_priv->mm.unordered_timeline =3D dma_fence_context_alloc(1); > =20 > if (!i915_modparams.enable_execlists) { > --=20 > 2.13.5 >=20 Reviewed-by: Zhenyu Wang thanks --=20 Open Source Technology Center, Intel ltd. $gpg --keyserver wwwkeys.pgp.net --recv-keys 4D781827 --ee3lca37ozh4mpgu Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EARECAB0WIQTXuabgHDW6LPt9CICxBBozTXgYJwUCWcVSgwAKCRCxBBozTXgY J35ZAJ9Ts9lZTAVFUMr/zrulvwiPpQk8UACggaQhRq7uMbtAVdT3XLGQipP/e4I= =d3/n -----END PGP SIGNATURE----- --ee3lca37ozh4mpgu-- --===============1481875868== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KSW50ZWwtZ2Z4 IG1haWxpbmcgbGlzdApJbnRlbC1nZnhAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vaW50ZWwtZ2Z4Cg== --===============1481875868==--