From: Daniel Vetter Subject: Re: [PATCH] drm/i915: fix up the relocate_entry refactoring Date: Tue, 3 Sep 2013 10:13:03 +0200 Message-ID: <20130903081303.GE5767@phenom.ffwll.local> References: <1378148283-4559-1-git-send-email-daniel.vetter@ffwll.ch> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail-ea0-f180.google.com (mail-ea0-f180.google.com [209.85.215.180]) by gabe.freedesktop.org (Postfix) with ESMTP id C7C2FE68DE for ; Tue, 3 Sep 2013 01:12:49 -0700 (PDT) Received: by mail-ea0-f180.google.com with SMTP id h10so2831368eaj.11 for ; Tue, 03 Sep 2013 01:12:48 -0700 (PDT) Content-Disposition: inline In-Reply-To: <1378148283-4559-1-git-send-email-daniel.vetter@ffwll.ch> 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: Intel Graphics Development Cc: Daniel Vetter List-Id: intel-gfx@lists.freedesktop.org On Mon, Sep 02, 2013 at 08:58:03PM +0200, Daniel Vetter wrote: > Somehow we've lost the error handling in the patch split-up between > the internal and external patch. This regression has been introduced > in > > commit 5032d871f7d300aee10c309ea004eb4f851553fe > Author: Rafael Barbalho > Date: Wed Aug 21 17:10:51 2013 +0100 > > drm/i915: Cleaning up the relocate entry function This bug is exercised by igt/gem_reloc_vs_gpu/interruptible. I've smashed the patch onto dinq meanwhile. -Daniel > > Cc: Rafael Barbalho > Signed-off-by: Daniel Vetter > --- > drivers/gpu/drm/i915/i915_gem_execbuffer.c | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/drivers/gpu/drm/i915/i915_gem_execbuffer.c b/drivers/gpu/drm/i915/i915_gem_execbuffer.c > index ea4bacb..e519f9f 100644 > --- a/drivers/gpu/drm/i915/i915_gem_execbuffer.c > +++ b/drivers/gpu/drm/i915/i915_gem_execbuffer.c > @@ -349,6 +349,9 @@ i915_gem_execbuffer_relocate_entry(struct drm_i915_gem_object *obj, > else > ret = relocate_entry_gtt(obj, reloc); > > + if (ret) > + return ret; > + > /* and update the user's relocation entry */ > reloc->presumed_offset = target_offset; > > -- > 1.8.4.rc3 > -- Daniel Vetter Software Engineer, Intel Corporation +41 (0) 79 365 57 48 - http://blog.ffwll.ch