From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Du, Changbin" Subject: Re: [PATCH] drm/i915: Add interface to reserve fence registers for vGPU Date: Thu, 31 Aug 2017 11:21:02 +0800 Message-ID: <20170831032101.GA7935@intel.com> References: <1504083261-13136-1-git-send-email-changbin.du@intel.com> <150408523885.916.14973316317495497931@mail.alporthouse.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0916832037==" Return-path: In-Reply-To: <150408523885.916.14973316317495497931@mail.alporthouse.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" To: Chris Wilson Cc: intel-gfx@lists.freedesktop.org, intel-gvt-dev@lists.freedesktop.org List-Id: intel-gfx@lists.freedesktop.org --===============0916832037== Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="J2SCkAp4GZ/dPZZf" Content-Disposition: inline --J2SCkAp4GZ/dPZZf Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi chris, On Wed, Aug 30, 2017 at 10:27:18AM +0100, Chris Wilson wrote: > Quoting changbin.du@intel.com (2017-08-30 09:54:21) > > This patch added two new api to the fence management code: > > - i915_reserve_one_fence() will try to find a free fence from fence_li= st > > and force-remove vma if need. > > - i915_giveback_reserved_fence() reclaim a reserved fence after vGPU h= as > > finished. >=20 > Symmetry: reserve_fence, unreserve_fence. > ok, I will rename the functions. > We need a safeguard here so that the host is able to always able allocate > to allocate a fence for the display engine. (That requirement should be > quite soft for modern hw, nevertheless it should be in the design to > prevent overuse from leading to an unusable system.) > -Chris Yes, agree. Is there any other components always need a fence ready? otherw= ise, I will add a safeguard to ensure at least 1 fence register remained for hos= t. --=20 Thanks, Changbin Du --J2SCkAp4GZ/dPZZf Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQEcBAEBAgAGBQJZp4CdAAoJEAanuZwLnPNUzoAH/07718Nojwqa3h6Nrr9nNzMS 3//n819G73pRhIJeAsIYo9paa1C02SWYjZiaWXpkOnPNrYuqdXx1WFNi0ULBFLzq 2UGUoFKdCUk3KZUJVGAxvHApUNWio/7sqylq0CYTeKhMrboMfmhoIhOwiHFWSedZ uJ8xJp7PY4mQqtm5b+1GP497Rnv93QLxc2Va3m/UQMLAW6b0CpfTur4M0EBv7V8y fQuxNAMM4f2+/WuVsph9GWEgzsEX2oU3CNh0Sp43CD3xz83NnxTw9kXg4qkpkmxx psiW83Tt8RcmPsoYulqtQagiiDAgKBVuAbxWvZnbBJxfcxn+/quoviXR3Lq+zAs= =nbMt -----END PGP SIGNATURE----- --J2SCkAp4GZ/dPZZf-- --===============0916832037== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KSW50ZWwtZ2Z4 IG1haWxpbmcgbGlzdApJbnRlbC1nZnhAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vaW50ZWwtZ2Z4Cg== --===============0916832037==--