Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Tue, 9 Apr 2002 20:13:13 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Tue, 9 Apr 2002 20:13:12 -0400 Received: from anchor-post-35.mail.demon.net ([194.217.242.93]:24850 "EHLO anchor-post-35.mail.demon.net") by vger.kernel.org with ESMTP id ; Tue, 9 Apr 2002 20:13:05 -0400 Date: Wed, 10 Apr 2002 01:12:49 +0100 To: linux-kernel@vger.kernel.org Cc: phorton@bitbox.co.uk, benh@kernel.crashing.org, ajoshi@unixbox.com Subject: [PATCH] Radeon frame buffer driver Message-ID: <20020410001249.GA2010@berserk.demon.co.uk> Mail-Followup-To: linux-kernel@vger.kernel.org, phorton@bitbox.co.uk, benh@kernel.crashing.org, ajoshi@unixbox.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.3.28i From: Peter Horton Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Another installment of the Radeon frame buffer driver patch (still against 2.4.19-pre2). * All colour modes > 8bpp are now DIRECTCOLOR (Geert inspired). * Driver now uses 'ypan' to speed up scrolling even further. * Fix CRTC pitch to match accelerator pitch (800x600x256 works again). Driver seems okay now, plays nicely with X etc. etc. Please test if you can P. diff -ur linux-2.4.19-pre2/drivers/video/radeon.h linux.pdh/drivers/video/radeon.h --- linux-2.4.19-pre2/drivers/video/radeon.h Sat Apr 6 16:34:27 2002 +++ linux.pdh/drivers/video/radeon.h Tue Apr 9 06:40:43 2002 @@ -379,6 +379,7 @@ #define SC_TOP_LEFT 0x16EC #define SC_BOTTOM_RIGHT 0x16F0 #define SRC_SC_BOTTOM_RIGHT 0x16F4 +#define RB2D_DSTCACHE_MODE 0x3428 #define RB2D_DSTCACHE_CTLSTAT 0x342C #define LVDS_GEN_CNTL 0x02d0 #define LVDS_PLL_CNTL 0x02d4 @@ -395,6 +396,7 @@ #define RADEON_BIOS_6_SCRATCH 0x0028 #define RADEON_BIOS_7_SCRATCH 0x002c +#define HDP_SOFT_RESET (1 << 26) #define CLK_PIN_CNTL 0x0001 #define PPLL_CNTL 0x0002 diff -ur linux-2.4.19-pre2/drivers/video/radeonfb.c linux.pdh/drivers/video/radeonfb.c --- linux-2.4.19-pre2/drivers/video/radeonfb.c Sat Apr 6 16:34:27 2002 +++ linux.pdh/drivers/video/radeonfb.c Wed Apr 10 00:07:53 2002 @@ -22,6 +22,13 @@ * * Special thanks to ATI DevRel team for their hardware donations. * + * 2002-04-02 Added MTRR support. Fixed 8bpp acceleration. Added + * acceleration for 16/32bpp. Applied fix from XFree86 + * for hard crash on accelerator reset. Fixed up the + * colour stuff. Peter Horton + * 2002-04-10 Make ypan work. More colour fixes, all modes >8bpp + * now DIRECTCOLOR. Match up CRTC and accelerator + * pitch. */ @@ -44,6 +51,7 @@ #include #include #include +#include #include #if defined(__powerpc__) @@ -73,18 +81,22 @@ #include