From: Alan Cox Subject: Semantics of the 'dumb' interface Date: Thu, 2 Jun 2011 19:37:01 +0100 Message-ID: <20110602193701.08884f98@lxorguk.ukuu.org.uk> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from www.etchedpixels.co.uk (earthlight.etchedpixels.co.uk [81.2.110.250]) by gabe.freedesktop.org (Postfix) with ESMTP id 2DD199E7DB for ; Thu, 2 Jun 2011 11:35:05 -0700 (PDT) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by www.etchedpixels.co.uk (8.14.4/8.14.4) with ESMTP id p52Ib1Rv006796 for ; Thu, 2 Jun 2011 19:37:02 +0100 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: dri-devel-bounces+sf-dri-devel=m.gmane.org@lists.freedesktop.org Errors-To: dri-devel-bounces+sf-dri-devel=m.gmane.org@lists.freedesktop.org To: dri-devel@lists.freedesktop.org List-Id: dri-devel@lists.freedesktop.org I have GEM allocation working on the GMA 500 and I can scribble in a framebuffer (minus an odd 'last page' bug which is an off by one somewhere I imagine) and display it with nice modetest stripes. If I kill the program however it all goes kerblam drm_release calls into fb_release which duely destroys the user frame buffer. This drops the gem object reference and we start to release all the resources but it blows up because the GEM object is still pinned in the GTT as it's still being used as scanout. Where I'm a bit lost right now is understanding what is supposed to happen at this point, and how the scanout is supposed to have ended up cleaned up and reset to the system frame buffer beforehand thus unpinning the scanout from the GTT. Alan