From mboxrd@z Thu Jan 1 00:00:00 1970 From: Daniel Vetter Subject: Re: [PATCH 2/2] drm/i915: Correct the bit number for the MI_FLUSH_ENABLE. Date: Wed, 25 Jan 2012 11:41:16 +0100 Message-ID: <20120125104116.GE3896@phenom.ffwll.local> References: <1326999006-15100-1-git-send-email-eric@anholt.net> <1326999006-15100-2-git-send-email-eric@anholt.net> <20120121163613.GE3821@phenom.ffwll.local> <87vco0cwxy.fsf@eliezer.anholt.net> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail-we0-f177.google.com (mail-we0-f177.google.com [74.125.82.177]) by gabe.freedesktop.org (Postfix) with ESMTP id C7AB89E791 for ; Wed, 25 Jan 2012 02:41:16 -0800 (PST) Received: by wera10 with SMTP id a10so1231152wer.36 for ; Wed, 25 Jan 2012 02:41:15 -0800 (PST) In-Reply-To: Content-Disposition: inline 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: Chris Wilson Cc: intel-gfx@lists.freedesktop.org List-Id: intel-gfx@lists.freedesktop.org On Wed, Jan 25, 2012 at 09:57:58AM +0000, Chris Wilson wrote: > On Tue, 24 Jan 2012 18:55:53 -0800, Eric Anholt wrote: > > On Sat, 21 Jan 2012 17:36:13 +0100, Daniel Vetter wrote: > > > On Thu, Jan 19, 2012 at 10:50:06AM -0800, Eric Anholt wrote: > > > > Older specs claimed this was bit 11, but newer specs and the actual > > > > simulator code say it was bit 12. Regardless, we don't use MI_FLUSH, > > > > or try to enable it any more. > > > > > > > > Signed-off-by: Eric Anholt > > > > > > I'd like to amend this with the following (on this patch instead of the > > > other, so that ppl actually can find it with git blame): > > > > > > "Furthermore actually setting bit12 results in gpu hangs both on snb and > > > ivb. Ben Widawsky discovered a ppt that claims that both bit12 and bit11 > > > must be set, but that doesn't help either. And last but not least, > > > MI_FLUSH seems to work regardless of the setting of these bits." > > > > I haven't seen bit12 hanging snb/ivb -- I only knew of it hanging ilk > > (since it doesn't exist there). On my snb, running xvideo so that > > MI_FLUSHes are generated by the userland (I think -- I haven't caught > > them in cat i915_batchbuffers | intel_dump_decode -), with > > intel_reg_read 0x209c saying 0x1240, things are going fine. Also with > > 0x209c saying 0x240 (the result of this patch). > > The SNB Xv path, that is the code called by Gen6DisplayVideoTexture, > never used MI_FLUSH. Ok, I've quickly tested this with intel_reg_write and installing older userspace. Doesn't seem to blow up. -Daniel -- Daniel Vetter Mail: daniel@ffwll.ch Mobile: +41 (0)79 365 57 48