From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ville =?iso-8859-1?Q?Syrj=E4l=E4?= Subject: Re: [PATCH] drm/i915: Fix context size calculation on SNB/IVB/VLV Date: Fri, 23 Aug 2013 12:54:26 +0300 Message-ID: <20130823095426.GG29682@intel.com> References: <1377188593-6881-1-git-send-email-ville.syrjala@linux.intel.com> <20130822183054.GB7181@bwidawsk.net> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Return-path: Received: from mga14.intel.com (mga14.intel.com [143.182.124.37]) by gabe.freedesktop.org (Postfix) with ESMTP id 1E55BE60FA for ; Fri, 23 Aug 2013 02:54:30 -0700 (PDT) Content-Disposition: inline In-Reply-To: <20130822183054.GB7181@bwidawsk.net> 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: Ben Widawsky Cc: intel-gfx@lists.freedesktop.org List-Id: intel-gfx@lists.freedesktop.org On Thu, Aug 22, 2013 at 11:30:55AM -0700, Ben Widawsky wrote: > On Thu, Aug 22, 2013 at 07:23:13PM +0300, ville.syrjala@linux.intel.com w= rote: > > From: Ville Syrj=E4l=E4 > > = > > All the different context sizes reported in the CXT_SIZE register > > aren't meant to be simply added together. > > = > > While BSpec is somewhat unclear on the topic of the actual context > > size, empirical tests have now revealed the truth. So let's add a > > big fat comment to remind people how it all works. > = > By the way. I've done some digging. I believe (75% certain) pre-HSW, > every context save writes the entire data. So if you wanted to set some > pattern and see what HW actually overwrites, it should be doable. HSW+ > though we can't do that. So I did this test on SNB and IVB and it confirms my earlier findings. This experiment also showed that while SNB leaves room for the ring context, it doesn't actually write to it. -- = Ville Syrj=E4l=E4 Intel OTC