From mboxrd@z Thu Jan 1 00:00:00 1970 From: Chris Wilson Subject: Re: Regression since 53984635a659e360f206a81ada4ae813152d72f1 (drm/i915: use the complete gtt) Date: Tue, 09 Nov 2010 18:56:40 +0000 Message-ID: References: <1289326968.2289.4.camel@pcjc2lap> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by gabe.freedesktop.org (Postfix) with ESMTP id 089BA9E769 for ; Tue, 9 Nov 2010 10:56:43 -0800 (PST) In-Reply-To: <1289326968.2289.4.camel@pcjc2lap> 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: Peter Clifton , "intel-gfx@lists.freedesktop.org" List-Id: intel-gfx@lists.freedesktop.org On Tue, 09 Nov 2010 18:22:48 +0000, Peter Clifton wrote: > Since the above commit, my GL app will crash after a period of sustained > graphics activity. It appears to use quite a lot of small BOs for > uploading changed VBO data with glBufferSubData, and I don't think these > are being purged until the GTT is full. > > For some reason, with gtt size != mappable size, the GPU will hang after > a while. I had thought that we were missing a guard page from > mappable_size, but subtracting a PAGE_SIZE did not help. Only resetting > gtt_size to mappable_size (still subtracting a guard page) helped. > > Adding some instrumentation shows: > > Prealloc size 33550336, gtt size 2147479552, mappable size 268435456 /sys/kernel/debug/dri/0/i915_gem_objects > This is an GM45 on a HP 6730b laptop. > > Any hints as to where to look now? > > Are things being put into unmappable GTT space when they need to be > mappable? This is the likely suspect. Check /sys/kernel/debug/dri/0/i915_error_state. Do you have a test case that I can run? I've been beating upon this using i945, pnv, q35 and g45 for quite some time and found it to be stable (for my uses at least). -Chris -- Chris Wilson, Intel Open Source Technology Centre