From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jim Hague Subject: Re: New API and X option UseFBDev Date: Wed, 10 Sep 2003 10:52:15 +0100 (BST) Sender: linux-fbdev-devel-admin@lists.sourceforge.net Message-ID: References: Mime-Version: 1.0 Content-Transfer-Encoding: 8bit Return-path: Received: from sc8-sf-mx1-b.sourceforge.net ([10.3.1.11] helo=sc8-sf-mx1.sourceforge.net) by sc8-sf-list1.sourceforge.net with esmtp (Cipher TLSv1:DES-CBC3-SHA:168) (Exim 3.31-VA-mm2 #1 (Debian)) id 19x1e8-0001cF-00 for ; Wed, 10 Sep 2003 02:52:20 -0700 Received: from mta07-svc.ntlworld.com ([62.253.162.47]) by sc8-sf-mx1.sourceforge.net with esmtp (Exim 4.22) id 19x1e7-0007NH-Q7 for linux-fbdev-devel@lists.sourceforge.net; Wed, 10 Sep 2003 02:52:20 -0700 In-Reply-To: Errors-To: linux-fbdev-devel-admin@lists.sourceforge.net List-Help: List-Post: List-Subscribe: , List-Id: List-Unsubscribe: , List-Archive: Content-Type: text/plain; charset="us-ascii" To: Sven Luther Cc: linux-fbdev-devel@lists.sourceforge.net On 09-Sep-2003 Jim Hague wrote: > On 09-Sep-2003 Sven Luther wrote: >> (--) GLINT(0): Linear framebuffer at 0xCE800000 >> (--) GLINT(0): MMIO registers at 0xCFFE0000 >> (EE) GLINT(0): mmap mmio: Invalid argument >> (EE) GLINT(0): mmap mmio: Invalid argument >> >> means that the linear framebuffer and mmio registers, values given to >> you by pm2fb, are correct (but check this fact with lspci). OK, found the problem. I've been following tdfxfb.c and had copied it in setting var->accel_flags = FB_ACCELF_TEXT. Having accel_flags at anything other than 0 stops the mmap() from working. On my 2.4 setup, accel_flags looks like it ought to be set to FB_ACCELF_TEXT but isn't. So mmap() works. -- Jim Hague - jim.hague@acm.org Never trust a computer you can't lift. ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf