From: Ben Widawsky Subject: Re: [PATCH 1/2] drm/i915: Created a sized object error dump Date: Sun, 24 Feb 2013 09:31:26 -0800 Message-ID: <20130224173125.GA11621@bwidawsk.net> References: <1361669410-1569-1-git-send-email-ben@bwidawsk.net> <20130224092505.GA7951@cantiga.alporthouse.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from shiva.localdomain (209-20-75-48.static.cloud-ips.com [209.20.75.48]) by gabe.freedesktop.org (Postfix) with ESMTP id 37B19E5C54 for ; Sun, 24 Feb 2013 09:29:38 -0800 (PST) Content-Disposition: inline In-Reply-To: <20130224092505.GA7951@cantiga.alporthouse.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: Chris Wilson , intel-gfx@lists.freedesktop.org List-Id: intel-gfx@lists.freedesktop.org On Sun, Feb 24, 2013 at 09:25:32AM +0000, Chris Wilson wrote: > On Sat, Feb 23, 2013 at 05:30:09PM -0800, Ben Widawsky wrote: > > Signed-off-by: Ben Widawsky > > --- > > drivers/gpu/drm/i915/i915_irq.c | 18 +++++++++++------- > > 1 file changed, 11 insertions(+), 7 deletions(-) > > > > diff --git a/drivers/gpu/drm/i915/i915_irq.c b/drivers/gpu/drm/i915/i915_irq.c > > index 29037e0..ebaf558 100644 > > --- a/drivers/gpu/drm/i915/i915_irq.c > > +++ b/drivers/gpu/drm/i915/i915_irq.c > > @@ -952,24 +952,25 @@ static void i915_get_extra_instdone(struct drm_device *dev, > > > > #ifdef CONFIG_DEBUG_FS > > static struct drm_i915_error_object * > > -i915_error_object_create(struct drm_i915_private *dev_priv, > > - struct drm_i915_gem_object *src) > > +i915_error_object_create_sized(struct drm_i915_private *dev_priv, > > + struct drm_i915_gem_object *src, > > + int num_pages) > > { > > struct drm_i915_error_object *dst; > > - int i, count; > > + int i; > > u32 reloc_offset; > > > > if (src == NULL || src->pages == NULL) > > return NULL; > > > > - count = src->base.size / PAGE_SIZE; > > + num_pages = src->base.size / PAGE_SIZE; > > Probably didn't mean to overwrite your new parameter with the old value. Sorry, thanks. This was not in the version of the patch I tested. -- Ben Widawsky, Intel Open Source Technology Center