From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ben Widawsky Subject: Re: [PATCH 6/8] drm/i915: Add bind/unbind object functions to VM Date: Fri, 30 Aug 2013 20:40:36 -0700 Message-ID: <20130831034036.GD1088@bwidawsk.net> References: <1377906241-8463-1-git-send-email-benjamin.widawsky@intel.com> <1377906241-8463-7-git-send-email-benjamin.widawsky@intel.com> <20130831001255.GU4726@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 1E71EE60EE for ; Fri, 30 Aug 2013 20:40:42 -0700 (PDT) Content-Disposition: inline In-Reply-To: <20130831001255.GU4726@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 , Ben Widawsky , Intel GFX List-Id: intel-gfx@lists.freedesktop.org On Sat, Aug 31, 2013 at 01:12:55AM +0100, Chris Wilson wrote: > On Fri, Aug 30, 2013 at 04:43:59PM -0700, Ben Widawsky wrote: > > From: Ben Widawsky > > > > As we plumb the code with more VM information, it has become more > > obvious that the easiest way to deal with bind and unbind is to simply > > put the function pointers in the vm, and let those choose the correct > > way to handle the page table updates. This change allows many places in > > the code to simply be vm->bind, and not have to worry about > > distinguishing PPGTT vs GGTT. > > > > Notice that this patch has no impact on functionality. I've decided to > > save the actual change until the next patch because I think it's easier > > to review that way. I'm happy to squash the two, or let Daniel do it on > > merge. > > > > v2: > > Make ggtt handle the quirky aliasing ppgtt > > Add flags to bind object to support above > > Don't ever call bind/unbind directly for PPGTT until we have real, full > > PPGTT (use NULLs to assert this) > > Make sure we rebind the ggtt if there already is a ggtt binding. This > > happens on set cache levels > > Use VMA for bind/unbind (Daniel, Ben) > > > > Signed-off-by: Ben Widawsky > > You like pokkadot paint for its inconsistency? Other than interesting > alternation of styles, I see nothing wrong with the logic. > -Chris > To what are you referring? I'm probably more than willing to change whatever displeases you. -- Ben Widawsky, Intel Open Source Technology Center