From: Eric Anholt Subject: Re: [PATCH 3/3] drm/i915: Use PIPE_CONTROL for flushing on gen6+. Date: Thu, 06 Oct 2011 11:00:18 -0700 Message-ID: <87hb3myp8t.fsf@eliezer.anholt.net> 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> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1689171697==" Return-path: In-Reply-To: <20111006051523.GA8097@cloud01> 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: Ben Widawsky Cc: intel-gfx@lists.freedesktop.org List-Id: intel-gfx@lists.freedesktop.org --===============1689171697== Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" --=-=-= Content-Transfer-Encoding: quoted-printable 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 wrot= e: > > > I think we also want a TLB invalidate here, bit 18. This requires an= other > > > 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_CONTROL= 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 TLB > > only to batch buffer boundaries or to pipe_control commands which > > have the TLB invalidation bit set. If disabled, the TLB caches are > > 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? Are you talking about for GTT mapped access? TLBs for those are flushed at PTE update. > 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 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. --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) iEYEARECAAYFAk6N7LIACgkQHUdvYGzw6vc5ogCfYbkF5t5cmkpyBim23uGYOs/Q ooUAmgOfOYF+Sfb4VJ3/yvOTw2vS4d4t =nzgD -----END PGP SIGNATURE----- --=-=-=-- --===============1689171697== 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 --===============1689171697==--