From: Daniel Vetter Subject: Re: [PATCH] drm/i915: drop duplicate ggtt vma list add in setup_global_gtt Date: Wed, 13 Nov 2013 01:06:06 +0100 Message-ID: <20131113000606.GG9395@phenom.ffwll.local> References: <1384296788-887-1-git-send-email-jbarnes@virtuousgeek.org> <20131112235808.GA19148@nuc-i3427.alporthouse.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail-ee0-f49.google.com (mail-ee0-f49.google.com [74.125.83.49]) by gabe.freedesktop.org (Postfix) with ESMTP id D062AFA443 for ; Tue, 12 Nov 2013 16:05:34 -0800 (PST) Received: by mail-ee0-f49.google.com with SMTP id b15so2172481eek.36 for ; Tue, 12 Nov 2013 16:05:33 -0800 (PST) Content-Disposition: inline In-Reply-To: <20131112235808.GA19148@nuc-i3427.alporthouse.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: intel-gfx-bounces@lists.freedesktop.org Errors-To: intel-gfx-bounces@lists.freedesktop.org To: Chris Wilson , Jesse Barnes , intel-gfx@lists.freedesktop.org List-Id: intel-gfx@lists.freedesktop.org On Tue, Nov 12, 2013 at 11:58:08PM +0000, Chris Wilson wrote: > On Tue, Nov 12, 2013 at 02:53:08PM -0800, Jesse Barnes wrote: > > Preallocated, stolen objects will already be added to this list when we > > first create them. > > That had me scratching my head a bit trying to work out where and why > stolen objects were explicitly adding themselves to the obj->vma_list. > > "Preallocated objects will already have been added to the vma_list when > creating their ggtt vma entry, and coincidentally also marked as holding > a ggtt mapping. Repeating the vma_list manipulation when setting up the > ggtt after preallocation is a recipe for an unhappy kernel." Agreed. > > > > > Signed-off-by: Jesse Barnes > Reviewed-by: Chris Wilson Queued for -next, thanks for the patch. -Daniel -- Daniel Vetter Software Engineer, Intel Corporation +41 (0) 79 365 57 48 - http://blog.ffwll.ch