From mboxrd@z Thu Jan 1 00:00:00 1970 From: Daniel Vetter Subject: Re: [PATCH 5/5] drm/i915: debugfs entries for [e]LLC Date: Thu, 4 Jul 2013 20:14:41 +0200 Message-ID: <20130704181441.GG18285@phenom.ffwll.local> References: <1372960927-1112-1-git-send-email-ben@bwidawsk.net> <1372960927-1112-5-git-send-email-ben@bwidawsk.net> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail-ea0-f182.google.com (mail-ea0-f182.google.com [209.85.215.182]) by gabe.freedesktop.org (Postfix) with ESMTP id 3876AE5EE1 for ; Thu, 4 Jul 2013 11:14:42 -0700 (PDT) Received: by mail-ea0-f182.google.com with SMTP id d10so982956eaj.27 for ; Thu, 04 Jul 2013 11:14:41 -0700 (PDT) Content-Disposition: inline In-Reply-To: <1372960927-1112-5-git-send-email-ben@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 List-Id: intel-gfx@lists.freedesktop.org On Thu, Jul 04, 2013 at 11:02:07AM -0700, Ben Widawsky wrote: > To make users life a little easier figuring out what they have on their > system. > > Ideally, I'd really like to report LLC size, but it turned out to be a > bit of a pain. Maybe I'll revisit it in the future. > > Signed-off-by: Ben Widawsky I think a getparam for eLLC would be neat, so that usespace can use it to tune working set sizes. -Daniel > --- > drivers/gpu/drm/i915/i915_debugfs.c | 14 ++++++++++++++ > 1 file changed, 14 insertions(+) > > diff --git a/drivers/gpu/drm/i915/i915_debugfs.c b/drivers/gpu/drm/i915/i915_debugfs.c > index 3e36756..b75d0a6 100644 > --- a/drivers/gpu/drm/i915/i915_debugfs.c > +++ b/drivers/gpu/drm/i915/i915_debugfs.c > @@ -1941,6 +1941,19 @@ static int i915_dpio_info(struct seq_file *m, void *data) > return 0; > } > > +static int i915_llc(struct seq_file *m, void *data) > +{ > + struct drm_info_node *node = (struct drm_info_node *) m->private; > + struct drm_device *dev = node->minor->dev; > + struct drm_i915_private *dev_priv = dev->dev_private; > + > + /* Size calculation for LLC is a bit of a pain. Ignore for now. */ > + seq_printf(m, "LLC: %s\n", yesno(HAS_LLC(dev))); > + seq_printf(m, "eLLC: %zuMB\n", dev_priv->ellc_size); > + > + return 0; > +} > + > static int > i915_wedged_get(void *data, u64 *val) > { > @@ -2370,6 +2383,7 @@ static struct drm_info_list i915_debugfs_list[] = { > {"i915_swizzle_info", i915_swizzle_info, 0}, > {"i915_ppgtt_info", i915_ppgtt_info, 0}, > {"i915_dpio", i915_dpio_info, 0}, > + {"i915_llc", i915_llc, 0}, > }; > #define I915_DEBUGFS_ENTRIES ARRAY_SIZE(i915_debugfs_list) > > -- > 1.8.3 > > _______________________________________________ > Intel-gfx mailing list > Intel-gfx@lists.freedesktop.org > http://lists.freedesktop.org/mailman/listinfo/intel-gfx -- Daniel Vetter Software Engineer, Intel Corporation +41 (0) 79 365 57 48 - http://blog.ffwll.ch