From: Damien Lespiau Subject: [PATCH 07/10] drm/i915: We implement WaFlushOpOnCSStall Date: Fri, 7 Jun 2013 17:41:13 +0100 Message-ID: <1370623276-16993-8-git-send-email-damien.lespiau@intel.com> References: <1370623276-16993-1-git-send-email-damien.lespiau@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mga14.intel.com (mga14.intel.com [143.182.124.37]) by gabe.freedesktop.org (Postfix) with ESMTP id 291C1E6845 for ; Fri, 7 Jun 2013 09:41:29 -0700 (PDT) In-Reply-To: <1370623276-16993-1-git-send-email-damien.lespiau@intel.com> 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-gfx@lists.freedesktop.org List-Id: intel-gfx@lists.freedesktop.org Signed-off-by: Damien Lespiau --- drivers/gpu/drm/i915/intel_ringbuffer.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/gpu/drm/i915/intel_ringbuffer.c b/drivers/gpu/drm/i915/intel_ringbuffer.c index ce14594..009e616 100644 --- a/drivers/gpu/drm/i915/intel_ringbuffer.c +++ b/drivers/gpu/drm/i915/intel_ringbuffer.c @@ -171,6 +171,8 @@ gen4_render_ring_flush(struct intel_ring_buffer *ring, * Post-sync nonzero is what triggered this second workaround, so we * can't use that one either. Notify enable is IRQs, which aren't * really our business. That leaves only stall at scoreboard. + * + * WaFlushOpOnCSStall:ivb */ static int intel_emit_post_sync_nonzero_flush(struct intel_ring_buffer *ring) @@ -296,6 +298,7 @@ gen7_render_ring_flush(struct intel_ring_buffer *ring, * Workaround: 4th PIPE_CONTROL command (except the ones with only * read-cache invalidate bits set) must have the CS_STALL bit set. We * don't try to be clever and just set it unconditionally. + * WaFlushOpOnCSStall:ivb,hsw,vlv */ flags |= PIPE_CONTROL_CS_STALL; -- 1.8.1.4