Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Tue, 10 Dec 2002 17:23:45 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Tue, 10 Dec 2002 17:23:44 -0500 Received: from dp.samba.org ([66.70.73.150]:60839 "EHLO lists.samba.org") by vger.kernel.org with ESMTP id ; Tue, 10 Dec 2002 17:23:38 -0500 From: Paul Mackerras MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15862.27438.787187.93003@argo.ozlabs.ibm.com> Date: Wed, 11 Dec 2002 09:31:10 +1100 To: James Simmons Cc: linux-kernel@vger.kernel.org, linux-fbdev-devel@lists.sourceforge.net Subject: atyfb in 2.5.51 X-Mailer: VM 7.07 under Emacs 20.7.2 Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 4450 Lines: 129 I tried 2.5.51 on my G3 powerbook (laptop), which has a Rage LT Pro video chip (ID 0x4c49 or LI). With the patch below, atyfb compiles and seems to mostly work. However, I didn't see any penguin on boot. Instead the top inch or so of the screen was just black. X seems to be running just fine. I have 'Option "UseFBDev"' in my /etc/X11/XF86Config-4. What doesn't work is changing VTs from X to a text console. If I press ctrl-alt-F1, for instance, the colormap changes but I don't see anything get redrawn. The screen looks just like what I had in X but with the altered colormap. If I then press alt-F7, it switches back to X and X redraws the screen properly and restores its colormap. The other worrying thing is that on two occasions now the machine has oopsed in free_block(), called from reap_timer_fnc(), because it has dereferenced a bogus pointer value. When I look at the memory that it read the pointer from, it looks like a console screen buffer, that is, the bytes are alternately 0x07 and ascii characters that look like a login prompt. This happened when waking the machine up from sleep and when exiting X. It sounds to me like you are freeing a console screen buffer and then continuing to use it. The patch below also takes out the CONFIG_NVRAM stuff since it doesn't work and I don't believe anyone has ever used it. I have also tried aty128fb with some local patches to get it to compile for my G4 powerbook. It also doesn't draw the penguin, and it oopses when X starts, for some reason. Regards, Paul. diff -urN linux-2.5/drivers/video/aty/atyfb_base.c pmac-2.5/drivers/video/aty/atyfb_base.c --- linux-2.5/drivers/video/aty/atyfb_base.c 2002-12-10 15:29:52.000000000 +1100 +++ pmac-2.5/drivers/video/aty/atyfb_base.c 2002-12-11 09:16:11.000000000 +1100 @@ -70,7 +70,7 @@ #ifdef __powerpc__ #include -#include