From mboxrd@z Thu Jan 1 00:00:00 1970 From: Daniel Vetter Subject: Re: [PATCH v3] drm/i915: Don't allow ring tail to reach the same cacheline as head Date: Mon, 3 Dec 2012 18:31:54 +0100 Message-ID: <20121203173154.GN4384@phenom.ffwll.local> References: <1354553012-31964-1-git-send-email-ville.syrjala@linux.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Return-path: Received: from mail-ee0-f49.google.com (mail-ee0-f49.google.com [74.125.83.49]) by gabe.freedesktop.org (Postfix) with ESMTP id 1E2EAE626D for ; Mon, 3 Dec 2012 09:30:27 -0800 (PST) Received: by mail-ee0-f49.google.com with SMTP id c4so1754805eek.36 for ; Mon, 03 Dec 2012 09:30:27 -0800 (PST) Content-Disposition: inline In-Reply-To: <1354553012-31964-1-git-send-email-ville.syrjala@linux.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: ville.syrjala@linux.intel.com Cc: intel-gfx@lists.freedesktop.org List-Id: intel-gfx@lists.freedesktop.org On Mon, Dec 03, 2012 at 06:43:32PM +0200, ville.syrjala@linux.intel.com wro= te: > From: Ville Syrj=E4l=E4 > = > From BSpec: > "If the Ring Buffer Head Pointer and the Tail Pointer are on the same > cacheline, the Head Pointer must not be greater than the Tail > Pointer." > = > The easiest way to enforce this is to reduce the reported ring space. > = > References: > Gen2 BSpec "1. Programming Environment" / 1.4.4.6 "Ring Buffer Use" > Gen3 BSpec "vol1c Memory Interface Functions" / 2.3.4.5 "Ring Buffer Use" > Gen4+ BSpec "vol1c Memory Interface and Command Stream" / 5.3.4.5 "Ring B= uffer Use" > = > v2: Include the exact BSpec references in the description > = > v3: s/64/I915_RING_FREE_SPACE, and add the BSpec information to the code > = > Signed-off-by: Ville Syrj=E4l=E4 > Reviewed-by: Chris Wilson Picked up for -fixes, thanks for the patch. -Daniel -- = Daniel Vetter Software Engineer, Intel Corporation +41 (0) 79 365 57 48 - http://blog.ffwll.ch