From mboxrd@z Thu Jan 1 00:00:00 1970 From: Daniel Vetter Subject: Re: [PATCH] drm/i915: Fix context size calculation on SNB/IVB/VLV Date: Thu, 22 Aug 2013 22:16:34 +0200 Message-ID: <20130822201634.GP26909@phenom.ffwll.local> References: <1377188593-6881-1-git-send-email-ville.syrjala@linux.intel.com> <20130822190530.GD7181@bwidawsk.net> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Return-path: Received: from mail-ee0-f44.google.com (mail-ee0-f44.google.com [74.125.83.44]) by gabe.freedesktop.org (Postfix) with ESMTP id 2AD09E5DEE for ; Thu, 22 Aug 2013 13:16:24 -0700 (PDT) Received: by mail-ee0-f44.google.com with SMTP id b47so1169694eek.3 for ; Thu, 22 Aug 2013 13:16:23 -0700 (PDT) Content-Disposition: inline In-Reply-To: <20130822190530.GD7181@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 12:05:31PM -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. > > = > > As a result of correctly interpreting CXT_SIZE, the IVB context > > size is reduced from three pages to two, while SNB context size > > remains at two pages. > > = > > Signed-off-by: Ville Syrj=E4l=E4 > Acked-by: Ben Widawsky Queued for -next, thanks for the patch. -Daniel -- = Daniel Vetter Software Engineer, Intel Corporation +41 (0) 79 365 57 48 - http://blog.ffwll.ch