From: Zhenyu Wang Subject: Re: [intel-gfx][PATCH 2/2] drm/i915: Add a new ring buffer on Sandybridge Date: Fri, 3 Sep 2010 14:00:24 +0800 Message-ID: <20100903060024.GG22908@zhen-devel.sh.intel.com> References: <1283435214-5659-1-git-send-email-haihao.xiang@intel.com> <20100902145619.GA3471@viiv.ffwll.ch> <1283479057.8070.146.camel@xhh-ctg32> Reply-To: Zhenyu Wang Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============2037137533==" Return-path: Received: from mga03.intel.com (mga03.intel.com [143.182.124.21]) by gabe.freedesktop.org (Postfix) with ESMTP id 50F2A9E773 for ; Thu, 2 Sep 2010 23:00:26 -0700 (PDT) In-Reply-To: <1283479057.8070.146.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 --===============2037137533== Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="rMWmSaSbD7nr+du9" Content-Disposition: inline --rMWmSaSbD7nr+du9 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 2010.09.03 09:57:37 +0800, Xiang, Haihao wrote: > >=20 > > If I'm not completely mistaken, all these ringbuffer register have the > > same offsets over a common base: 0x02000 for the render ring, 0x04000 f= or > > bsd on gen5, 0x12000 for bsd on gen6. > Some registers (e.g. HSW_PGA) don't follow this rule. which you can explicitly note it in ring struct. > Even if the register follows the above rule, we can not expect to use > the same function to access this register. E.g. Setting TAIL for this > new ring buffer must follow a special sequence on Sandybridge. >=20 you only need to handle it specially in ring advance function. I'd like to only leave ring specific functions as - ring cache flush - ring new request - ring seqno state - ring irq handling others are so common for all rings. --=20 Open Source Technology Center, Intel ltd. $gpg --keyserver wwwkeys.pgp.net --recv-keys 4D781827 --rMWmSaSbD7nr+du9 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) iEYEARECAAYFAkyAjvgACgkQsQQaM014GCd+gwCfbS0z3J1rFvS4kubg5aywkIKw 0DIAnRn7o6MPYD0k5QZA50GS0ImIx1Vd =Y/I1 -----END PGP SIGNATURE----- --rMWmSaSbD7nr+du9-- --===============2037137533== 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 --===============2037137533==--