From: Zhenyu Wang Subject: Re: implement 'wait' instruction Date: Fri, 2 Jul 2010 16:01:20 +0800 Message-ID: <20100702080120.GD18446@zhen-devel.sh.intel.com> References: <20100629030409.GG10521@zhen-devel.sh.intel.com> <87bparhwr0.fsf@pollan.anholt.net> Reply-To: Zhenyu Wang Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1862101625==" Return-path: Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by gabe.freedesktop.org (Postfix) with ESMTP id 19FF49E7C8 for ; Fri, 2 Jul 2010 01:01:22 -0700 (PDT) In-Reply-To: <87bparhwr0.fsf@pollan.anholt.net> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Mime-version: 1.0 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: Eric Anholt Cc: intel-gfx List-Id: intel-gfx@lists.freedesktop.org --===============1862101625== Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="vni90+aGYgRvsTuO" Content-Disposition: inline --vni90+aGYgRvsTuO Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 2010.07.01 11:39:47 -0700, Eric Anholt wrote: > On Tue, 29 Jun 2010 11:04:09 +0800, Zhenyu Wang = wrote: > >=20 > > 'Wait' instruction allows EU to stop and wait notification > > register state clear to continue the execution. And we can > > clear the notifications through MMIO, so we can track EU > > execution step by step. > >=20 > > I use below patch for implement 'wait' in mesa, and attach > > 'intel_eu_cont.c' program to kick EU to continue. This is > > useful in debugging sandybridge for me. >=20 > Interesting. So are you able to get any more information out besides > "somebody is waiting"? Inspect register state, instruction pointer, > anything? No yet, I believe something else like snapshot debug should be used for that, but some experiment gave me nothing. 'wait' is just handy for me to track thread execution process. > I can see how just getting "somebody is waiting" would be useful, > though, so I'd be happy to see these patches land. ok, I'll push them later. thanks. --=20 Open Source Technology Center, Intel ltd. $gpg --keyserver wwwkeys.pgp.net --recv-keys 4D781827 --vni90+aGYgRvsTuO 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) iEYEARECAAYFAkwtnNAACgkQsQQaM014GCekZgCgkUI2aAZsiqakXTlEqg544WhV jtgAnRAE+Eh7ZI89+ODqpbWnvKhDC9rE =CjDG -----END PGP SIGNATURE----- --vni90+aGYgRvsTuO-- --===============1862101625== 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 --===============1862101625==--