All of lore.kernel.org
 help / color / mirror / Atom feed
* Re:[PATCH] [2.4] AGP Support for VIA KT400
@ 2002-11-26 13:41 Nicolas Mailhot
  2002-11-26 20:28 ` Nicolas Mailhot
  0 siblings, 1 reply; 2+ messages in thread
From: Nicolas Mailhot @ 2002-11-26 13:41 UTC (permalink / raw)
  To: ldelgass; +Cc: linux-kernel, marcelo, alan, jw

[-- Attachment #1: Type: text/plain, Size: 1424 bytes --]

> Hello,
> 
> Here is a small patch to support agp for the VIA KT400
northbridge.  It's
> against 2.4.20-rc3 and is based on Nicolas Mailhot's patch
for 2.5 which
> was included in 2.5.49.  It adds the PCI id and registers
the VIA generic
> setup routine for the chipset.  I've tested it successfully
on a Gigabyte
> GA-7VAXP (KT400) with a Radeon 7500 using DRI and various GL
apps/games.  
> If this has already been submitted, just ignore it -- but I
hadn't seen a
> patch for 2.4 appear on lkml or the BitKeeper site yet.
> 
> Nicolas' patch for 2.5 on lkml:
>
http://marc.theaimsgroup.com/?l=linux-kernel&m=103786946803970&w=2
> 
> Bugzilla entry for 2.5 is here:
> http://bugme.osdl.org/show_bug.cgi?id=14

In fact I've been cleaning up a bit the 2.4 version before
submitting it -- the entries for other VIA chips are a bit
more convoluted and I suspect the first patch is not as
complete as it should be. In fact I think I'll post a 2.5
followup soon.

Please do not apply the first patch and use this one instead.
I didn't tested it myself (not enough time) but Johannes
Winkelmann reports it as ok. It's pretty straightforward
anyway, just id lists all over the place.

Best regards,

-- 
Nicolas Mailhot

Accédez au courrier électronique de La Poste : www.laposte.net ;
3615 LAPOSTENET (0,13 €/mn) ; tél : 08 92 68 13 50 (0,34€/mn)"


[-- Attachment #2: kt400-2.4.patch --]
[-- Type: application/octet-stream, Size: 4529 bytes --]

diff -uNr linux-2.4.20-rc3.orig/drivers/char/agp/agpgart_be.c linux-2.4.20-rc3/drivers/char/agp/agpgart_be.c
--- linux-2.4.20-rc3.orig/drivers/char/agp/agpgart_be.c	2002-11-25 21:28:12.000000000 +0100
+++ linux-2.4.20-rc3/drivers/char/agp/agpgart_be.c	2002-11-25 21:44:22.000000000 +0100
@@ -4714,6 +4714,12 @@
 		"Via",
 		"Apollo Pro KT266",
 		via_generic_setup },
+        { PCI_DEVICE_ID_VIA_8377_0,
+		PCI_VENDOR_ID_VIA,
+		VIA_APOLLO_KT400,
+		"Via",
+		"Apollo Pro KT400",
+		via_generic_setup },
 	{ 0,
 		PCI_VENDOR_ID_VIA,
 		VIA_GENERIC,
diff -uNr linux-2.4.20-rc3.orig/drivers/char/drm/drm_agpsupport.h linux-2.4.20-rc3/drivers/char/drm/drm_agpsupport.h
--- linux-2.4.20-rc3.orig/drivers/char/drm/drm_agpsupport.h	2002-11-25 21:28:12.000000000 +0100
+++ linux-2.4.20-rc3/drivers/char/drm/drm_agpsupport.h	2002-11-25 21:43:59.000000000 +0100
@@ -279,6 +279,8 @@
 			break;
 		case VIA_APOLLO_KT133:	head->chipset = "VIA Apollo KT133";
 			break;
+		case VIA_APOLLO_KT400:  head->chipset = "VIA Apollo KT400";
+			break;
 		case VIA_APOLLO_PRO: 	head->chipset = "VIA Apollo Pro";
 			break;
 
diff -uNr linux-2.4.20-rc3.orig/drivers/char/drm-4.0/agpsupport.c linux-2.4.20-rc3/drivers/char/drm-4.0/agpsupport.c
--- linux-2.4.20-rc3.orig/drivers/char/drm-4.0/agpsupport.c	2002-02-25 20:37:57.000000000 +0100
+++ linux-2.4.20-rc3/drivers/char/drm-4.0/agpsupport.c	2002-11-25 21:44:53.000000000 +0100
@@ -275,6 +275,8 @@
 			break;
 		case VIA_APOLLO_KT133:	head->chipset = "VIA Apollo KT133"; 
 			break;
+		case VIA_APOLLO_KT400:  head->chipset = "VIA Apollo KT400";
+			break;
 #endif
 
 		case VIA_APOLLO_PRO: 	head->chipset = "VIA Apollo Pro";
diff -uNr linux-2.4.20-rc3.orig/drivers/pci/pci.ids linux-2.4.20-rc3/drivers/pci/pci.ids
--- linux-2.4.20-rc3.orig/drivers/pci/pci.ids	2002-11-25 21:28:15.000000000 +0100
+++ linux-2.4.20-rc3/drivers/pci/pci.ids	2002-11-25 23:25:53.000000000 +0100
@@ -582,6 +582,7 @@
 	6003  CS 4614/22/24 [CrystalClear SoundFusion Audio Accelerator]
 		1013 4280  Crystal SoundFusion PCI Audio Accelerator
 		1681 0050  Hercules Game Theater XP
+		1681 a011  Hercules Fortissimo III 7.1
 	6004  CS 4614/22/24 [CrystalClear SoundFusion Audio Accelerator]
 	6005  Crystal CS4281 PCI Audio
 		1013 4281  Crystal CS4281 PCI Audio
@@ -2678,6 +2679,7 @@
 	0505  VT82C505
 	0561  VT82C561
 	0571  VT82C586B PIPC Bus Master IDE
+		1458 5002 GA-7VAX Mainboard
 	0576  VT82C576 3V [Apollo Master]
 	0585  VT82C585VP [Apollo VP1/VPX]
 	0586  VT82C586/A/B PCI-to-ISA [Apollo VP]
@@ -2726,6 +2728,7 @@
 		1462 3091  MS-6309 Onboard Audio
 		15dd 7609  Onboard Audio
 	3059  VT8233 AC97 Audio Controller
+		1458 a002  GA-7VAX Onboard Audio (Realtek ALC650) 
 	3065  VT6102 [Rhine-II]
 		1186 1400  DFE-530TX rev A
 		1186 1401  DFE-530TX rev B
@@ -2739,6 +2742,7 @@
 	3102  VT8662 Host Bridge
 	3103  VT8615 Host Bridge
 	3104  USB 2.0
+		1458 5004  GA-7VAX Mainboard
 	3109  VT8233C PCI to ISA Bridge
 	3112  VT8361 [KLE133] Host Bridge
 	3128  VT8753 [P4X266 AGP]
@@ -2747,6 +2751,9 @@
 	3148  P4M266 Host Bridge
 	3156  P/KN266 Host Bridge
 	3177  VT8233A ISA Bridge
+		1458 5001 GA-7VAX Mainboard
+	3189  VT8377 [KT400 AGP] Host Bridge
+		1458 5000 GA-7VAX Mainboard
 	5030  VT82C596 ACPI [Apollo PRO]
 	6100  VT85C100A [Rhine II]
 	8231  VT8231 [PCI-to-ISA Bridge]
@@ -2767,6 +2774,7 @@
 	b102  VT8362 AGP Bridge
 	b103  VT8615 AGP Bridge
 	b112  VT8361 [KLE133] AGP Bridge
+	b168  VT8235 PCI Bridge
 1107  Stratus Computers
 	0576  VIA VT82C570MV [Apollo] (Wrong vendor ID!)
 1108  Proteon, Inc.
diff -uNr linux-2.4.20-rc3.orig/include/linux/pci_ids.h linux-2.4.20-rc3/include/linux/pci_ids.h
--- linux-2.4.20-rc3.orig/include/linux/pci_ids.h	2002-11-25 21:28:23.000000000 +0100
+++ linux-2.4.20-rc3/include/linux/pci_ids.h	2002-11-25 23:32:26.000000000 +0100
@@ -986,7 +986,8 @@
 #define PCI_DEVICE_ID_VIA_8233C_0	0x3109
 #define PCI_DEVICE_ID_VIA_8361		0x3112
 #define PCI_DEVICE_ID_VIA_8233A		0x3147
+#define PCI_DEVICE_ID_VIA_8377_0	0x3189
 #define PCI_DEVICE_ID_VIA_86C100A	0x6100
 #define PCI_DEVICE_ID_VIA_8231		0x8231
 #define PCI_DEVICE_ID_VIA_8231_4	0x8235
--- linux-2.4.20-rc3/include/linux/agp_backend.h.orig	2002-11-26 10:09:09.000000000 +0100
+++ linux-2.4.20-rc3/include/linux/agp_backend.h	2002-11-26 10:09:40.000000000 +0100
@@ -60,6 +60,7 @@
 	VIA_APOLLO_PRO,
 	VIA_APOLLO_KX133,
 	VIA_APOLLO_KT133,
+	VIA_APOLLO_KT400,
 	SIS_GENERIC,
 	AMD_GENERIC,
 	AMD_IRONGATE,

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2002-11-26 20:21 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-11-26 13:41 Re:[PATCH] [2.4] AGP Support for VIA KT400 Nicolas Mailhot
2002-11-26 20:28 ` Nicolas Mailhot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.