From mboxrd@z Thu Jan 1 00:00:00 1970 From: Chris Wilson Subject: Re: [PATCH 3/4] drm/i915: unpin pages at unbind Date: Fri, 31 May 2013 19:46:16 +0100 Message-ID: <20130531184616.GD11399@cantiga.alporthouse.com> References: <1370024928-3553-1-git-send-email-ben@bwidawsk.net> <1370024928-3553-3-git-send-email-ben@bwidawsk.net> 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 4BDA3E5CE2 for ; Fri, 31 May 2013 11:46:19 -0700 (PDT) Content-Disposition: inline In-Reply-To: <1370024928-3553-3-git-send-email-ben@bwidawsk.net> 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: Ben Widawsky Cc: Intel GFX List-Id: intel-gfx@lists.freedesktop.org On Fri, May 31, 2013 at 11:28:47AM -0700, Ben Widawsky wrote: > If we properly keep track of the pages_pin_count, then when we later add > multiple address spaces, the put_pages doesn't need any special checks > to be able to perform it's job. > > CC: Chris Wilson > Signed-off-by: Ben Widawsky Like. Since we don't expose the pages_pin_count to the user (unlike the regular pin_count & pin_ioctl), then we should never have to perform a cleanup in free_object(). Though as you have seen, we obviously need to let this patch soak for a bit in case we missed some. Reviewed-by: Chris Wilson -Chris -- Chris Wilson, Intel Open Source Technology Centre