From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ben Widawsky Subject: Re: [PATCH 19/29] drm/i915: turn bound_ggtt checks to bound_any Date: Sat, 3 Aug 2013 15:26:53 -0700 Message-ID: <20130803222653.GC28218@bwidawsk.net> References: <1375315222-4785-1-git-send-email-ben@bwidawsk.net> <1375315222-4785-20-git-send-email-ben@bwidawsk.net> <20130803110335.GE4878@cantiga.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 C80DAE63D0 for ; Sat, 3 Aug 2013 15:26:56 -0700 (PDT) Content-Disposition: inline In-Reply-To: <20130803110335.GE4878@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 List-Id: intel-gfx@lists.freedesktop.org On Sat, Aug 03, 2013 at 12:03:35PM +0100, Chris Wilson wrote: > On Wed, Jul 31, 2013 at 05:00:12PM -0700, Ben Widawsky wrote: > > In some places, we want to know if an object is bound in any address > > space, and not just the global GTT. This often applies when there is a > > single global resource (object, pages, etc.) > > > > function | reason > > -------------------------------------------------- > > i915_gem_object_is_inactive | global object > > i915_gem_object_put_pages | object's pages > > 915_gem_object_unpin | global object > > i915_gem_execbuffer_unreserve_object | temporary until we plumb vma > > pread/pread | object's domain > > Most of these we want to operate on ggtt, so this change looks confused > at best. > -Chris > And at worst? I guess I should have explained it a bit differently - yes the operations may very well be on the global GTT, but for the given reason (in the table), we need to make sure we unbind (or assert the object isn't bound) in another address space first. Possibly I've misunderstood what you'd like me to do however. -- Ben Widawsky, Intel Open Source Technology Center