From: Zhenyu Wang Subject: Re: patches for occlusion query fix on sandybridge Date: Wed, 15 Dec 2010 09:29:40 +0800 Message-ID: <20101215012940.GE27927@zhen-devel.sh.intel.com> References: <1292302562-5800-1-git-send-email-zhenyuw@linux.intel.com> <20101214181322.GB13645@viiv.ffwll.ch> Reply-To: Zhenyu Wang Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0358190914==" Return-path: Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by gabe.freedesktop.org (Postfix) with ESMTP id ABCCC9E75E for ; Tue, 14 Dec 2010 17:29:42 -0800 (PST) In-Reply-To: <20101214181322.GB13645@viiv.ffwll.ch> 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 Cc: intel-gfx@lists.freedesktop.org List-Id: intel-gfx@lists.freedesktop.org --===============0358190914== Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="9crTWz/Z+Zyzu20v" Content-Disposition: inline --9crTWz/Z+Zyzu20v Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 2010.12.14 19:13:22 +0100, Daniel Vetter wrote: > On Tue, Dec 14, 2010 at 12:55:59PM +0800, Zhenyu Wang wrote: > > It appears Sandybridge PIPE_CONTROL write out buffer need > > to be set as cached, currently LLC cached, in order to read > > back correct counter. Otherwise I can always be possible to > > get corrupted 64-bit PS_DEPTH_COUNT from PIPE_CONTROL write. > >=20 > > So below patches try to add new flag during bo create with > > cacheable type, to be sure that GTT entry's cache bits would > > be setup for that. > >=20 > > This fixes occlusion query piglit test and mesa demos on my > > sandybridge. Note that below patches don't include necessary > > component version check changes. >=20 > General comment on the introduction of a new flag for bo creation: >=20 > If I'm not mistaken, all the query objects are relocated as read_domain = =3D > I915_GEM_DOMAIN_INSTRUCTION, write_domain =3D I915_GEM_DOMAIN_INSTRUCTION, > i.e. we already have an api for userspace to tell us that a PIPE_CONTROL > command will write to this buffer. Why can't we use that one and remap > the bo with the correct caching flags on execbuf time (on gen6)? True, that's the other way I thought about. >=20 > I simply fear that introducing a hacky ad-hoc abi complicates matters when > we introduce real llc/mlc caching for general stuff. Especially since > there's seems to be an existing thing already available. I'm still > fighting the fallout from the incoherent multiple rings introduction and I > just don't want to repeat such a goof-up. >=20 yeah, it's quick hack. I would take the way to fix caching instead. thanks. --=20 Open Source Technology Center, Intel ltd. $gpg --keyserver wwwkeys.pgp.net --recv-keys 4D781827 --9crTWz/Z+Zyzu20v Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iEYEARECAAYFAk0IGgQACgkQsQQaM014GCfPjQCfQC1KVn5g2yk9o55iAO6ZqYns +HAAn1pvjk299xjQV3dI0atcBBsbjgDK =aXnC -----END PGP SIGNATURE----- --9crTWz/Z+Zyzu20v-- --===============0358190914== 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 --===============0358190914==--