From mboxrd@z Thu Jan 1 00:00:00 1970 From: Chris Wilson Subject: Re: [drm:i915_gem_mmap_gtt_ioctl] *ERROR* Attempting to mmap a purgeable buffer Date: Wed, 20 Oct 2010 10:15:34 +0100 Message-ID: References: <1287565640.7548.2.camel@zwerg> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by gabe.freedesktop.org (Postfix) with ESMTP id F0B889E8D2 for ; Wed, 20 Oct 2010 02:15:37 -0700 (PDT) In-Reply-To: <1287565640.7548.2.camel@zwerg> 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: Alexey Fisher , "intel-gfx@lists.freedesktop.org" List-Id: intel-gfx@lists.freedesktop.org On Wed, 20 Oct 2010 11:07:20 +0200, Alexey Fisher wrote: > Hallo all, > > I get fallowing error in my log: > [ 6657.465805] [drm:i915_gem_mmap_gtt_ioctl] *ERROR* Attempting to mmap > a purgeable buffer > [ 6657.465851] [drm:i915_gem_mmap_gtt_ioctl] *ERROR* Attempting to mmap > a purgeable buffer > [ 6657.465907] [drm:i915_gem_mmap_gtt_ioctl] *ERROR* Attempting to mmap > a purgeable buffer > > das it mean any thing for you? do i need to bisect it? > I use current 2.6.36-rc8-01141-ga5ffe0a from intel drm next. It's warning that userspace is breaking the rules and trying to use a buffer it has declared no longer in use. The challenge is to find the scenario that is triggering this *userspace* bug. Currently, purgeable is usually only set on the userspace bo cache, so this means that we are continuing to use a freed buffer. Disabling (or marking the cache as NO_ACCESS) and valgrinding would be a useful step. Or just kill the userspace cache and implement a kernel uncached page cache... Less code, more performance, everyone is happy... -Chris -- Chris Wilson, Intel Open Source Technology Centre