From: Daniel Vetter Subject: Re: [PATCH] drm/i915: Don't prefault the entire obj if the vma is smaller Date: Tue, 17 Jun 2014 23:26:14 +0200 Message-ID: <20140617212614.GT5821@phenom.ffwll.local> References: <1403028180-4005-1-git-send-email-ville.syrjala@linux.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Return-path: Received: from mail-wg0-f47.google.com (mail-wg0-f47.google.com [74.125.82.47]) by gabe.freedesktop.org (Postfix) with ESMTP id 989C16E741 for ; Tue, 17 Jun 2014 14:26:21 -0700 (PDT) Received: by mail-wg0-f47.google.com with SMTP id k14so7762906wgh.30 for ; Tue, 17 Jun 2014 14:26:20 -0700 (PDT) Content-Disposition: inline In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" To: "Syrjala, Ville" Cc: intel-gfx List-Id: intel-gfx@lists.freedesktop.org On Tue, Jun 17, 2014 at 09:03:28PM +0200, Daniel Vetter wrote: > On Tue, Jun 17, 2014 at 8:03 PM, wrote: > > From: Ville Syrj=E4l=E4 > > > > Take the minimum of the object size and the vma size and prefault > > only that much. Avoids a SIGBUS when mmapping only a portion of the > > object. > > > > Prefaulting was introduced here: > > commit b90b91d87038f6b257b40a02b42ed4f9705e06f0 > > Author: Chris Wilson > > Date: Tue Jun 10 12:14:40 2014 +0100 > > > > drm/i915: Prefault the entire object on first page fault > > > > Cc: Chris Wilson > > Signed-off-by: Ville Syrj=E4l=E4 > = > Do we have an igt for this? Well, written one since trivial to do and merged the patch. Thanks. -Daniel -- = Daniel Vetter Software Engineer, Intel Corporation +41 (0) 79 365 57 48 - http://blog.ffwll.ch