From: Chris Wilson Subject: Re: [PATCH 0/6] Page faults to help user space debug Date: Fri, 28 Jun 2013 23:39:53 +0100 Message-ID: <20130628223953.GA5210@cantiga.alporthouse.com> References: <1372458217-2053-1-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 58FE5E5BFE for ; Fri, 28 Jun 2013 15:40:01 -0700 (PDT) Content-Disposition: inline In-Reply-To: <1372458217-2053-1-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: Paul Berry , Intel GFX List-Id: intel-gfx@lists.freedesktop.org On Fri, Jun 28, 2013 at 03:23:31PM -0700, Ben Widawsky wrote: > This series originated from the request from Paul, "can you enable page > faults"? After some though and discussion, we came up with 3 debug features to > implement: The issue lies in that the CS and EU units like to prefetch 128 bytes and will cross page boundaries. Userspace is rather lax in providing the extra page (or preventing the read past the end of its bo) and so without adding a sentinel page behind every bo you quickly generate false positives. (Unless you also run a fixed userspace). If you are prepared to fix userspace, tweaking the kernel not to install scratch pages everywhere is trivial. -Chris -- Chris Wilson, Intel Open Source Technology Centre