From mboxrd@z Thu Jan 1 00:00:00 1970 From: Daniel Vetter Subject: Re: [PATCH 6/6] drm/i915: Add a param for eLLC size Date: Tue, 16 Jul 2013 08:10:32 +0200 Message-ID: <20130716061032.GH5784@phenom.ffwll.local> References: <1372960927-1112-5-git-send-email-ben@bwidawsk.net> <1372963664-7136-1-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-f174.google.com (mail-ea0-f174.google.com [209.85.215.174]) by gabe.freedesktop.org (Postfix) with ESMTP id 14013E5BF7 for ; Mon, 15 Jul 2013 23:10:31 -0700 (PDT) Received: by mail-ea0-f174.google.com with SMTP id o10so122927eaj.33 for ; Mon, 15 Jul 2013 23:10:31 -0700 (PDT) Content-Disposition: inline In-Reply-To: <1372963664-7136-1-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:47:44AM -0700, Ben Widawsky wrote: > Signed-off-by: Ben Widawsky Ok, I've slurped the entire series into dinq, with the exception of this patch - I'm waiting for the jury to figure out whether we can do this in userspace with cpuid or not. If not I think the commit message should be amended with that information and then I'll merge it. -Daniel > --- > drivers/gpu/drm/i915/i915_dma.c | 3 +++ > include/uapi/drm/i915_drm.h | 1 + > 2 files changed, 4 insertions(+) > > diff --git a/drivers/gpu/drm/i915/i915_dma.c b/drivers/gpu/drm/i915/i915_dma.c > index 7eda8ab..435fc4a 100644 > --- a/drivers/gpu/drm/i915/i915_dma.c > +++ b/drivers/gpu/drm/i915/i915_dma.c > @@ -1000,6 +1000,9 @@ static int i915_getparam(struct drm_device *dev, void *data, > case I915_PARAM_HAS_EXEC_HANDLE_LUT: > value = 1; > break; > + case I915_PARAM_ELLC_SIZE: > + value = dev_priv->ellc_size; > + break; > default: > DRM_DEBUG("Unknown parameter %d\n", param->param); > return -EINVAL; > diff --git a/include/uapi/drm/i915_drm.h b/include/uapi/drm/i915_drm.h > index 923ed7f..56bb327 100644 > --- a/include/uapi/drm/i915_drm.h > +++ b/include/uapi/drm/i915_drm.h > @@ -310,6 +310,7 @@ typedef struct drm_i915_irq_wait { > #define I915_PARAM_HAS_PINNED_BATCHES 24 > #define I915_PARAM_HAS_EXEC_NO_RELOC 25 > #define I915_PARAM_HAS_EXEC_HANDLE_LUT 26 > +#define I915_PARAM_ELLC_SIZE 27 > > typedef struct drm_i915_getparam { > int param; > -- > 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