From: Ben Widawsky Subject: Re: [PATCH 3/3] drm/i915: Use PIPE_CONTROL for flushing on gen6+. Date: Thu, 6 Oct 2011 12:01:05 -0700 Message-ID: <20111006190105.GB6002@bolo_yeung.jf.intel.com> References: <1317708160-1761-1-git-send-email-kenneth@whitecape.org> <1317708160-1761-3-git-send-email-kenneth@whitecape.org> <20111005155713.6e2f0c6c@bwidawsk.net> <87zkhf2avg.fsf@eliezer.anholt.net> <20111006051523.GA8097@cloud01> <87hb3myp8t.fsf@eliezer.anholt.net> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1259420407==" Return-path: Received: from cloud01.chad-versace.us (184-106-247-128.static.cloud-ips.com [184.106.247.128]) by gabe.freedesktop.org (Postfix) with ESMTP id 744EFA0CA3 for ; Thu, 6 Oct 2011 12:02:06 -0700 (PDT) In-Reply-To: <87hb3myp8t.fsf@eliezer.anholt.net> 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: Eric Anholt Cc: intel-gfx@lists.freedesktop.org List-Id: intel-gfx@lists.freedesktop.org --===============1259420407== Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="k1lZvvs/B4yU6o8G" Content-Disposition: inline --k1lZvvs/B4yU6o8G Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Oct 06, 2011 at 11:00:18AM -0700, Eric Anholt wrote: > On Thu, 6 Oct 2011 05:15:23 +0000, Ben Widawsky wrote: > Non-text part: multipart/signed > > On Wed, Oct 05, 2011 at 05:59:31PM -0700, Eric Anholt wrote: > > > On Wed, 5 Oct 2011 15:57:13 -0700, Ben Widawsky wr= ote: > > > > I think we also want a TLB invalidate here, bit 18. This requires = another > > > > workaround before issuing this flush: We need 2 Store Data Commands= (such as > > > > MI_STORE_DATA_IMM or MI_STORE_DATA_INDEX) before sending PIPE_CONTR= OL w/ stall > > > > (20) and TLB inv bit (18) set > > >=20 > > > From the docs for GFX_MODE: > > >=20 > > > "This field controls the invalidation if the TLB cache inside the > > > hardware. When enabled this bit limits the invalidation of the T= LB > > > only to batch buffer boundaries or to pipe_control commands which > > > have the TLB invalidation bit set. If disabled, the TLB caches a= re > > > flushed for every full flush of the pipeline" > > >=20 > > > We're already getting TLB invalidate at batchbuffer boundaries > > > (actually, even more: every pipeline stall, since that bit is 0 on my > > > hardware). What would we need this new flush for? > >=20 > > Does this only mean after each batchbuffer (MI_BATCH_BUFFER_END) or also > > before actually jumping to the location at MI_BATCH_BUFFER_START? If so, > > what happens when we map or unmap, in between batches? Won't the TLBs > > need to be flushed in between? >=20 > Are you talking about for GTT mapped access? TLBs for those are flushed > at PTE update. >=20 > > Also, wouldn't it be nice for the kernel to flush TLBs without having to > > submit a batch (no specific use case in mind for this)?=20 >=20 > Why would it be nice? We know when we need them flushed for our needs, > there's that table that tells when the hardware flushes them, and the > two appear to add up to "don't do anything else" to me. >=20 Ok, we drop the patch. I *do* think it doesn't hurt, and it will make things just work if we ever change the GFX_MODE bit, but we can always re add this later as well. I don't understand the pipeline flushing well enough to push it any further. Ben --k1lZvvs/B4yU6o8G Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) iQEcBAEBAgAGBQJOjfrxAAoJEL9nTIiJEj0pC1YH/1Cj2fUIR4PoNVY0TvbPPSKH 9XMFFpPkddu86kWryTdFBb2x6fqYTkSAiODTC4opJIlc6/ZjizBbnLUBcyRowD0n NaTkbsG9BZpxKK8p94/GjhhShsiHbicyY/Yxj4XnaIjXO/YbolSzWGtkKkuiKSlC UPpJOcpnNq6yNKaifUwJZB5rEgDQ5ldh1DovDdfdcN0iD89eirTUdOGBj9gjZcPP FGZvsFkN1rPvpuM8yMR88rgcnKxoXfOO/5A9K2Ugs8NcH/pPEQDW/UK0U7OIxC4h S92AnbPV9sYUS4J9aq7s74tQdghpJotf8tjHZpwxsHO5RVjl08T3UW6M79RoiGA= =xJRS -----END PGP SIGNATURE----- --k1lZvvs/B4yU6o8G-- --===============1259420407== 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 --===============1259420407==--