From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ben Widawsky Subject: Re: [PATCH] drm/i915: Fix list corruption in vma_unbind Date: Thu, 29 Aug 2013 16:21:39 -0700 Message-ID: <20130829232139.GA1022@bwidawsk.net> References: <1377798631-9362-1-git-send-email-daniel.vetter@ffwll.ch> <20130829185738.GJ4726@nuc-i3427.alporthouse.com> <20130829210427.GA8633@phenom.ffwll.local> <20130829211924.GL4726@nuc-i3427.alporthouse.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail.bwidawsk.net (bwidawsk.net [166.78.191.112]) by gabe.freedesktop.org (Postfix) with ESMTP id 2E9DCE5D08 for ; Thu, 29 Aug 2013 16:21:45 -0700 (PDT) Content-Disposition: inline In-Reply-To: <20130829211924.GL4726@nuc-i3427.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 , Daniel Vetter , Daniel Vetter , Intel Graphics Development List-Id: intel-gfx@lists.freedesktop.org On Thu, Aug 29, 2013 at 10:19:24PM +0100, Chris Wilson wrote: > On Thu, Aug 29, 2013 at 11:06:24PM +0200, Daniel Vetter wrote: > > On Thu, Aug 29, 2013 at 07:57:38PM +0100, Chris Wilson wrote: > > > On Thu, Aug 29, 2013 at 07:50:31PM +0200, Daniel Vetter wrote: > > > > The saga around the breadcrumb vmas used by execbuf continues ... > > > > > > > > This time around we've managed to unconditionally move the object to > > > > the unbound list on the last vma unbind even though it might never > > > > have been on either the bound or unbound list. Hilarity ensued. > > > > > > > > Chris Wilson tracked this one down but compared to his patches I've > > > > simply opted to completely separate the unbound case for not-yet bound > > > > vmas. Otherwise we imo end up with semantically hard to parse checks > > > > around the list_move_tail(global_list, ...). > > > > > > > > This is exercised by the new swapping variants of > > > > igt/tests/gem_evict_everything. > > > > > > > > Cc: Chris Wilson > > > > Cc: Ben Widawsky > > > > Bugzilla: https://bugs.freedesktop.org/attachment.cgi?id=84818 > > > > Signed-off-by: Daniel Vetter > > > > > > Reviewed-by: Chris Wilson > > > > Merged, but I've dropped the paragraph about the igt tests again - I just > > can't hit the bug any more :( Also I've fixed the bugzilla link, it > > pointed at an attachment instead of the bug. > > It fixed the tests for me, just got a whole new trace when using GL. > -Chris > > -- > Chris Wilson, Intel Open Source Technology Centre I'm not really sure why the assertion I added blew up :/ Tested-by: Ben Widawsky -- Ben Widawsky, Intel Open Source Technology Center