From: Zhenyu Wang Subject: Re: [Inter-gfx][PATCH][v3 3/4] drm/i915: add set_tail hook in struct intel_ring_buffer Date: Thu, 16 Sep 2010 13:37:49 +0800 Message-ID: <20100916053749.GP9765@zhen-devel.sh.intel.com> References: <1284604993-2810-1-git-send-email-haihao.xiang@intel.com> <1284604993-2810-3-git-send-email-haihao.xiang@intel.com> <20100916042121.GN9765@zhen-devel.sh.intel.com> <1284613829.24494.24.camel@xhh-ctg32> Reply-To: Zhenyu Wang Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1278244447==" Return-path: Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by gabe.freedesktop.org (Postfix) with ESMTP id 782EE9ED70 for ; Wed, 15 Sep 2010 22:37:51 -0700 (PDT) In-Reply-To: <1284613829.24494.24.camel@xhh-ctg32> 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: "Xiang, Haihao" Cc: "intel-gfx@lists.freedesktop.org" List-Id: intel-gfx@lists.freedesktop.org --===============1278244447== Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="qyHYMwAXsHLOQihY" Content-Disposition: inline --qyHYMwAXsHLOQihY Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 2010.09.16 13:10:29 +0800, Xiang, Haihao wrote: > > Or can't that be done in init function by using advance_ring? > advance_ring uses ring->tail to set TAIL register, i965_reset() also > invokes ring->init() to re-init ring buffer, how to guarantee ring->tail > is 0? BTW advance_ring can be implemented as set_tail(dev, ring->tail). >=20 oh, that's bad, not only just for render ring, but ring tail should always be inited correctly, not just in static variable.. --=20 Open Source Technology Center, Intel ltd. $gpg --keyserver wwwkeys.pgp.net --recv-keys 4D781827 --qyHYMwAXsHLOQihY 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) iEYEARECAAYFAkyRrS0ACgkQsQQaM014GCfnxQCePmzgAcir0DzQJKomUd2R4IlD 790AmgPIy6TOzOVdC7AZDpDN7799rvo2 =96an -----END PGP SIGNATURE----- --qyHYMwAXsHLOQihY-- --===============1278244447== 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 --===============1278244447==--