From: Ben Widawsky Subject: Re: =?utf-8?q?=5BPATCH=5D_drm/i915=3A_PIPE=5FCONTROL_TLB_?= =?utf-8?q?invalidation_fix?= Date: Sun, 05 Aug 2012 18:33:25 -0700 Message-ID: <6ab9644b13a64ccc497fa923f4c7d663@bwidawsk.net> References: <1343346523-25255-1-git-send-email-ben@bwidawsk.net> <20120727051736.GA5392@phenom.ffwll.local> <20120727105714.752514a0@stallone.kumite> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit Return-path: Received: from shiva.chad-versace.us (209-20-75-48.static.cloud-ips.com [209.20.75.48]) by gabe.freedesktop.org (Postfix) with ESMTP id 4DC6E9E747 for ; Sun, 5 Aug 2012 18:33:31 -0700 (PDT) In-Reply-To: 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: Daniel Vetter Cc: intel-gfx@lists.freedesktop.org List-Id: intel-gfx@lists.freedesktop.org On 2012-08-05 11:32, Daniel Vetter wrote: > On Fri, Jul 27, 2012 at 7:57 PM, Ben Widawsky > wrote: >> On Fri, 27 Jul 2012 07:17:36 +0200 >> Daniel Vetter wrote: >> >>> On Thu, Jul 26, 2012 at 04:48:43PM -0700, Ben Widawsky wrote: >>> > The IVB simulator really doesn't like a TLB invalidate with no >>> > post-sync operation, in fact it blows up in an assertion failure. >>> > The documentation states that we must issue the TLB invalidate >>> with >>> > a CS stall: "Also Requires stall bit ([20] of DW1) set." This >>> patch >>> > doesn't comply with the docs, but we're able to satisfy the >>> > simulator with this very small change, and I think simulator has >>> > historically trumped docs. >>> > >>> > Note, I don't think this belongs in stable as our TLB >>> invalidation >>> > should be correct since we use the global invalidation per batch. >>> > Using TLB invalidation is itself only a requirement of HW >>> contexts. >>> > >>> > Signed-off-by: Ben Widawsky >>> >>> I have another patch from Chris that kills the non-zero post-sync >>> op >>> workaround for ivb ... So I guess we can't do this this easily. >>> -Daniel >> >> Rethink this. The need to emit the TLB invalidation as the simulator >> dictates essentially means we cannot remove the workaround as >> Chris' patch does. > > Afaik that "tlb needs a non-zero post-sync op" just means that we > need > to have a non-zero post-sync op in the pipe_control cmd with the tlb > set. Whereas the gen6 wa dictatest that we need a nonzero postsync op > _before_ the pipe_control that sets the render flush bit. So I'm > still > playing the dense here and don't see the connection (besides that we > can abuse the w/a nonzero postsync op to also make the tlb flush > happy). > > So can't we just set add w/a nonzeor postsync op for gen7 to make the > simulator happy? > -Daniel That is certainly a possibility. I'll double check the bspec or simulator before I submit anything though. I'd like to make sure this doesn't break some other rule. For some reason I was under the assumption that we couldn't just emit a post sync op without several workarounds even on gen7... -- Ben Widawsky, Intel Open Source Technology Center