From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Anholt Subject: Re: [PATCH] drm/i915: Remove bogus test for a present execbuffer Date: Mon, 19 Nov 2012 08:42:59 -0800 Message-ID: <874nkllf1o.fsf@eliezer.anholt.net> References: <1353339042-23076-1-git-send-email-chris@chris-wilson.co.uk> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0844030792==" Return-path: In-Reply-To: <1353339042-23076-1-git-send-email-chris@chris-wilson.co.uk> 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: Chris Wilson , intel-gfx@lists.freedesktop.org List-Id: intel-gfx@lists.freedesktop.org --===============0844030792== Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" --=-=-= Content-Type: text/plain Chris Wilson writes: > The intention of checking obj->gtt_offset!=0 is to verify that the > target object was listed in the execbuffer and had been bound into the > GTT. This is guarranteed by the earlier rearrangement to split the > execbuffer operation into reserve and relocation phases and then > verified by the check that the target handle had been processed during > the reservation phase. > > However, the actual checking of obj->gtt_offset==0 is bogus as we can > indeed reference an object at offset 0. For instance, the framebuffer > installed by the BIOS often resides at offset 0 - causing EINVAL as we > legimately try to render using the stolen fb. We've never triggered this check in practice, as far as I know, so I'm happy to see it go. Reviewed-by: Eric Anholt --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) iEYEARECAAYFAlCqYZMACgkQHUdvYGzw6ve3EwCeMBSr9bEOcbyL515LRU8Hq2an B4YAnAsoE/3yFR1wrJ9VH0SGq/0eN0OZ =DKAD -----END PGP SIGNATURE----- --=-=-=-- --===============0844030792== 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 --===============0844030792==--