Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Mon, 15 Apr 2002 18:14:43 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Mon, 15 Apr 2002 18:14:43 -0400 Received: from anchor-post-32.mail.demon.net ([194.217.242.90]:54023 "EHLO anchor-post-32.mail.demon.net") by vger.kernel.org with ESMTP id ; Mon, 15 Apr 2002 18:14:32 -0400 Date: Mon, 15 Apr 2002 23:14:20 +0100 To: linux-kernel@vger.kernel.org Cc: benh@kernel.crashing.org, ajoshi@unixbox.com Subject: [PATCH] radeonfb ... again Message-ID: <20020415221420.GA12057@berserk.demon.co.uk> Mail-Followup-To: linux-kernel@vger.kernel.org, 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 More "radeonfb" patch, still against 2.4.19-pre2. * Remove palette hacks for soft cursor by copying "revc" method. * Added "nostretch" option to disable stretching on DFPs. * Fast console switch (don't change PLL unless we have to). * Added module options. * Other fixes and cleanups. 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 Thu Apr 11 23:57:10 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 Sun Apr 14 19:18:16 2002 @@ -22,6 +22,13 @@ * * Special thanks to ATI DevRel team for their hardware donations. * + * 2002-04-xx 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. Made "ypan" work. Don't reload PLL + * unless pixel clock changes. Soft cursor improvements. + * Add module options. Various other fixes / cleanups. + * Peter Horton */ @@ -44,6 +51,7 @@ #include #include #include +#include #include #if defined(__powerpc__) @@ -73,18 +81,22 @@ #include