From mboxrd@z Thu Jan 1 00:00:00 1970 From: Daniel Vetter Subject: Re: [PATCH 1/5] drm/i915: Release the mmap offset when purging a buffer Date: Fri, 23 Mar 2012 11:06:01 +0100 Message-ID: <20120323100601.GC4087@phenom.ffwll.local> References: <1330118022-5701-1-git-send-email-chris@chris-wilson.co.uk> <1330118022-5701-2-git-send-email-chris@chris-wilson.co.uk> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail-we0-f177.google.com (mail-we0-f177.google.com [74.125.82.177]) by gabe.freedesktop.org (Postfix) with ESMTP id 13B8EA0FF4 for ; Fri, 23 Mar 2012 03:05:17 -0700 (PDT) Received: by werp11 with SMTP id p11so3080226wer.36 for ; Fri, 23 Mar 2012 03:05:17 -0700 (PDT) Content-Disposition: inline In-Reply-To: <1330118022-5701-2-git-send-email-chris@chris-wilson.co.uk> 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 Cc: intel-gfx@lists.freedesktop.org List-Id: intel-gfx@lists.freedesktop.org On Fri, Feb 24, 2012 at 09:13:38PM +0000, Chris Wilson wrote: > If we discard a buffer due to memory pressure, also release its alloted > mmap address space. As it may be sometime before userspace wakes up > and notices that it has buffers to purge from its cache, we may waste > valuable address space on unusable objects for a period of time. > > Signed-off-by: Chris Wilson Queued for -next, thanks for the patch. -Daniel -- Daniel Vetter Mail: daniel@ffwll.ch Mobile: +41 (0)79 365 57 48