From mboxrd@z Thu Jan 1 00:00:00 1970 From: Chris Wilson Subject: Re: [PATCH] drm/i915: "Flush Me Harder" required on gen6+ Date: Thu, 28 Jun 2012 10:37:07 +0100 Message-ID: <1340876273_97159@CP5-2952> References: <1340869722-1738-1-git-send-email-daniel.vetter@ffwll.ch> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from fireflyinternet.com (smtp.fireflyinternet.com [109.228.6.236]) by gabe.freedesktop.org (Postfix) with ESMTP id EBC1E9E759 for ; Thu, 28 Jun 2012 02:38:01 -0700 (PDT) In-Reply-To: <1340869722-1738-1-git-send-email-daniel.vetter@ffwll.ch> 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: Intel Graphics Development Cc: Daniel Vetter List-Id: intel-gfx@lists.freedesktop.org On Thu, 28 Jun 2012 09:48:42 +0200, Daniel Vetter wrote: > The prep to remove the flushing list in > > commit cc889e0f6ce6a63c62db17d702ecfed86d58083f > Author: Daniel Vetter > Date: Wed Jun 13 20:45:19 2012 +0200 > > drm/i915: disable flushing_list/gpu_write_list > > causes quite some decent regressions. We can fix this by setting the > CS_STALL bit to ensure that the following seqno write happens only > after the cache flush has completed. But only do that when the caller > actually wants the flush (and not also when we invalidate caches > before starting the next batch). > > I've looked through all our ancient scrolls about gen6+ pipe control > workarounds, and this seems to be indeed a legal combination: We're > allowed to set the CS_STALL bit when we flush the render cache (which > we do). > > While yelling at this code, also pass back the return value from > intel_emit_post_sync_nonzero_flush properly. > > v2: Instead of emitting more pipe controls, set the CS_STALL bit on > the write flush as suggested by Chris Wilson. It seems to work, too. > > Cc: Eric Anholt > Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=51436 > Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=51429 > Tested-by: Lu Hua > Signed-Off-by: Daniel Vetter Tested-by: Chris Wilson Reviewed-by: Chris Wilson -Chris -- Chris Wilson, Intel Open Source Technology Centre