From: Eric Anholt Subject: Re: [PATCH 1/6] RFCish: write only mappings (aka non-blocking) Date: Tue, 20 Sep 2011 10:17:25 -0700 Message-ID: <87y5xjxhei.fsf@eliezer.anholt.net> References: <1316492706-31081-1-git-send-email-ben@bwidawsk.net> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0010503811==" Return-path: In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: intel-gfx-bounces+gcfxdi-intel-gfx=m.gmane.org@lists.freedesktop.org Errors-To: intel-gfx-bounces+gcfxdi-intel-gfx=m.gmane.org@lists.freedesktop.org To: Daniel Vetter , Ben Widawsky Cc: intel-gfx@lists.freedesktop.org List-Id: intel-gfx@lists.freedesktop.org --===============0010503811== Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" --=-=-= Content-Transfer-Encoding: quoted-printable On Tue, 20 Sep 2011 13:06:43 +0200, Daniel Vetter wrote: > - Why do we need any patches for gtt non-blocking mmaps? I've re-read our > code, and afaics we're only calling wait_rendering from gem_fault if > obj->gtt_space =3D=3D NULL. I.e. there's no way the gpu is currently us= ing > the data and hence no way for us to block on it. I think the only thing > needed is a small libdrm batch to enable non-blocking gtt mmaps >=20 > void drm_intel_enable_non_blocking_gtt_mmap(obj) >=20 > which sets a bit somewhere and moves the obj (once) into the gtt domain. > And a corresponding change in gtt_mmap to disable the set_domain call. > This only works as long as no one else access the object from the cpu > domain, but afaics we'll use non-blocking mmaps only for unshared > buffers, so that should be fine. >=20 > I might also just be dense and not see the issue ... This was what I was looking for. Ben was concerned that while warming up towards steady state, the page faults for new pages of the giant vertex buffer (for example) would end up blocking in the fault handler. I really have a hard time caring about that case. --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) iEYEARECAAYFAk54yqUACgkQHUdvYGzw6vf6FQCgluAUaRO1OpJbAvcjWLKuCTuA 0GEAnA62NtDagVGL/MTn+lHAqjmxjFXs =51h2 -----END PGP SIGNATURE----- --=-=-=-- --===============0010503811== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Intel-gfx mailing list Intel-gfx@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/intel-gfx --===============0010503811==--