From mboxrd@z Thu Jan 1 00:00:00 1970 From: Peter Clifton Subject: Regression since 53984635a659e360f206a81ada4ae813152d72f1 (drm/i915: use the complete gtt) Date: Tue, 09 Nov 2010 18:22:48 +0000 Message-ID: <1289326968.2289.4.camel@pcjc2lap> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from ppsw-52.csi.cam.ac.uk (ppsw-52.csi.cam.ac.uk [131.111.8.152]) by gabe.freedesktop.org (Postfix) with ESMTP id C0C539E769 for ; Tue, 9 Nov 2010 10:22:51 -0800 (PST) Received: from client-86-31-82-85.midd.adsl.virginmedia.com ([86.31.82.85]:17988 helo=[192.168.1.2]) by ppsw-52.csi.cam.ac.uk (smtp.hermes.cam.ac.uk [131.111.8.159]:465) with esmtpsa (LOGIN:pcjc2) (SSLv3:DHE-RSA-CAMELLIA256-SHA:256) id 1PFsqI-0007gD-Dq (Exim 4.72) for intel-gfx@lists.freedesktop.org (return-path ); Tue, 09 Nov 2010 18:22:50 +0000 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: "intel-gfx@lists.freedesktop.org" List-Id: intel-gfx@lists.freedesktop.org commit 53984635a659e360f206a81ada4ae813152d72f1 Author: Daniel Vetter Date: Wed Sep 22 23:44:24 2010 +0200 drm/i915: use the complete gtt At least the part that's currently enabled by the BIOS. Signed-off-by: Daniel Vetter Signed-off-by: Chris Wilson 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 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? Is purging all my purgable BOs taking too long and causing a HANG to be declared? (NB: Hang still occurs if I increase hangcheck timer to over a second). Best regards, -- Peter Clifton Electrical Engineering Division, Engineering Department, University of Cambridge, 9, JJ Thomson Avenue, Cambridge CB3 0FA Tel: +44 (0)7729 980173 - (No signal in the lab!) Tel: +44 (0)1223 748328 - (Shared lab phone, ask for me)