From: Chris Wilson Subject: Re: [PATCH] drm/i915: fix the racy object accounting Date: Wed, 24 Jul 2013 23:01:08 +0100 Message-ID: <20130724220108.GA559@cantiga.alporthouse.com> References: <20130724170914.GC882@cantiga.alporthouse.com> <1374698423-29287-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 fireflyinternet.com (s16502780.onlinehome-server.info [87.106.93.118]) by gabe.freedesktop.org (Postfix) with ESMTP id DD196E5E16 for ; Wed, 24 Jul 2013 15:01:15 -0700 (PDT) Content-Disposition: inline In-Reply-To: <1374698423-29287-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: Daniel Vetter Cc: Intel Graphics Development List-Id: intel-gfx@lists.freedesktop.org On Wed, Jul 24, 2013 at 10:40:23PM +0200, Daniel Vetter wrote: > Just use a spinlock to protect them. > > v2: Rebase onto the new object create refcount fix patch. > > v3: Don't kill dev_priv->mm.object_memory as requested by Chris and > hence just use a spinlock instead of atomic_t. > > Cc: Chris Wilson > Signed-off-by: Daniel Vetter Sadly, I have no better answer to my desire have my cake and eat it. Reviewed-by: Chris Wilson Now, I guess to pester Ben to make sure there is adequate^Wsuperficial per-vma, per-ctx, per-file accounting. -Chris -- Chris Wilson, Intel Open Source Technology Centre