From: Zhenyu Wang Subject: Re: [PATCH] drm/i915/kvmgt: Fix compilation error Date: Fri, 13 Jul 2018 09:36:38 +0800 Message-ID: <20180713013638.GA9558@zhen-hp.sh.intel.com> References: <20180712155330.32055-1-michal.winiarski@intel.com> Reply-To: Zhenyu Wang Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0720722041==" Return-path: In-Reply-To: <20180712155330.32055-1-michal.winiarski@intel.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" To: Micha?? Winiarski Cc: intel-gfx@lists.freedesktop.org, intel-gvt-dev@lists.freedesktop.org List-Id: intel-gfx@lists.freedesktop.org --===============0720722041== Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="LQksG6bCIzRHxTLp" Content-Disposition: inline --LQksG6bCIzRHxTLp Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 2018.07.12 17:53:30 +0200, Micha?? Winiarski wrote: > gvt_pin_guest_page extracted some of the gvt_dma_map_page functionality: > commit 79e542f5af79 ("drm/i915/kvmgt: Support setting dma map for huge pa= ges") >=20 > And yet, part of it was reintroduced in: > commit 39b4cbadb9a9 ("drm/i915/kvmgt: Check the pfn got from vfio_pin_pag= es") >=20 > Causing kvmgt part to no longer build. Let's remove it. > yeah, this change is correct. I found it too when merging against upstreams for gvt staging tree, not caught by conflict though. Once we backmerge upstream gvt requires this fix. Acked-by: Zhenyu Wang Thanks! > Reported-by: Tomasz Lis > Signed-off-by: Micha?? Winiarski > Cc: Changbin Du > Cc: Zhenyu Wang > --- > drivers/gpu/drm/i915/gvt/kvmgt.c | 6 ------ > 1 file changed, 6 deletions(-) >=20 > diff --git a/drivers/gpu/drm/i915/gvt/kvmgt.c b/drivers/gpu/drm/i915/gvt/= kvmgt.c > index 718ab307a500..4d2f53ae9f0f 100644 > --- a/drivers/gpu/drm/i915/gvt/kvmgt.c > +++ b/drivers/gpu/drm/i915/gvt/kvmgt.c > @@ -185,12 +185,6 @@ static int gvt_dma_map_page(struct intel_vgpu *vgpu,= unsigned long gfn, > if (ret) > return ret; > =20 > - if (!pfn_valid(pfn)) { > - gvt_vgpu_err("pfn 0x%lx is not mem backed\n", pfn); > - vfio_unpin_pages(mdev_dev(vgpu->vdev.mdev), &gfn, 1); > - return -EINVAL; > - } > - > /* Setup DMA mapping. */ > *dma_addr =3D dma_map_page(dev, page, 0, size, PCI_DMA_BIDIRECTIONAL); > ret =3D dma_mapping_error(dev, *dma_addr); > --=20 > 2.17.1 >=20 --=20 Open Source Technology Center, Intel ltd. $gpg --keyserver wwwkeys.pgp.net --recv-keys 4D781827 --LQksG6bCIzRHxTLp Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EARECAB0WIQTXuabgHDW6LPt9CICxBBozTXgYJwUCW0gCJgAKCRCxBBozTXgY JwRNAJ99LRhfVynmkNNvuN97x+RksfAZHACfZK6k1Yq5jYuULzwiA/s30SU7Xm4= =Z8gx -----END PGP SIGNATURE----- --LQksG6bCIzRHxTLp-- --===============0720722041== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KSW50ZWwtZ2Z4 IG1haWxpbmcgbGlzdApJbnRlbC1nZnhAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vaW50ZWwtZ2Z4Cg== --===============0720722041==--