From: Jesse Barnes Subject: [PATCH 3/9] drm/i915: add a HSW scratch location for flush commands Date: Wed, 19 Sep 2012 13:28:57 -0700 Message-ID: <1348086543-24427-3-git-send-email-jbarnes@virtuousgeek.org> References: <1348086543-24427-1-git-send-email-jbarnes@virtuousgeek.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from oproxy8-pub.bluehost.com (oproxy8-pub.bluehost.com [69.89.22.20]) by gabe.freedesktop.org (Postfix) with SMTP id E7CA4A0A9E for ; Wed, 19 Sep 2012 13:29:08 -0700 (PDT) In-Reply-To: <1348086543-24427-1-git-send-email-jbarnes@virtuousgeek.org> 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 Some commands and workarounds require stores to occur to function correctly, so add some scratch space to the HWS page to accommodate them. Signed-off-by: Jesse Barnes --- drivers/gpu/drm/i915/intel_ringbuffer.h | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/i915/intel_ringbuffer.h b/drivers/gpu/drm/i915/intel_ringbuffer.h index 2ea7a31..ef85742 100644 --- a/drivers/gpu/drm/i915/intel_ringbuffer.h +++ b/drivers/gpu/drm/i915/intel_ringbuffer.h @@ -181,6 +181,7 @@ intel_read_status_page(struct intel_ring_buffer *ring, * The area from dword 0x20 to 0x3ff is available for driver usage. */ #define I915_GEM_HWS_INDEX 0x20 +#define I915_GEM_SCRATCH_INDEX 0x28 /* Some commands need a scratch store */ void intel_cleanup_ring_buffer(struct intel_ring_buffer *ring); -- 1.7.9.5