Subject: port-i386/27863: AGP unsupported when using an external VGA card on i815 chipsets
To: None <gnats-bugs@gnats.NetBSD.org>
From: None <pino@dohd.org>
List: netbsd-bugs
Date: 11/04/2004 11:01:45
>Number:         27863
>Category:       port-i386
>Synopsis:       AGP unsupported when using an external VGA card on i815 chipsets
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    port-i386-maintainer
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Nov 04 10:02:00 UTC 2004
>Closed-Date:
>Last-Modified:
>Originator:     
>Release:        NetBSD 2.99.10
>Organization:
	
>Environment:
	
	
System: NetBSD atlas.ipv6.stack.nl 2.99.10 NetBSD 2.99.10 (ATLAS) #4: Thu Nov 4 10:47:40 CET 2004 martijnb@atlas.ipv6.stack.nl:/usr/src/sys/arch/i386/compile/ATLAS i386
Architecture: i386
Machine: i386
>Description:
	When using an external video card (instead of the on-chip i740 clone)
on an i815-based board, AGP is not supported:

NetBSD 2.99.10 (ATLAS) #1: Fri Oct 29 13:40:58 CEST 2004
	martijnb@atlas.ipv6.stack.nl:/usr/src/sys/arch/i386/compile/ATLAS
total memory = 447 MB
avail memory = 432 MB
BIOS32 rev. 0 found at 0xe7300
mainbus0 (root)
cpu0 at mainbus0: (uniprocessor)
cpu0: Intel Pentium III (686-class), 731.00 MHz, id 0x686
[...]
pchb0 at pci0 dev 0 function 0
pchb0: Intel 82815 Hub (rev. 0x02)
pchb0: random number generator enabled
agp0 at pchb0: can't find internal VGA device config space
ppb0 at pci0 dev 1 function 0: Intel 82815 AGP (rev. 0x02)
pci1 at ppb0 bus 1
pci1: i/o space, memory space enabled
vga1 at pci1 dev 0 function 0: ATI Technologies Radeon 9200SE (rev. 0x01)

Applying the attached patch fixes this - I think ;)

NetBSD 2.99.10 (ATLAS) #4: Thu Nov  4 10:47:40 CET 2004
	martijnb@atlas.ipv6.stack.nl:/usr/src/sys/arch/i386/compile/ATLAS
total memory = 447 MB
avail memory = 432 MB
BIOS32 rev. 0 found at 0xe7300
mainbus0 (root)
cpu0 at mainbus0: (uniprocessor)
cpu0: Intel Pentium III (686-class), 731.00 MHz, id 0x686
[...]
pchb0 at pci0 dev 0 function 0
pchb0: Intel 82815 Hub (rev. 0x02)
pchb0: random number generator enabled
agp0 at pchb0: using generic initialization for Intel AGP
agp0: aperture at 0x4c000000, size 0x2400000
ppb0 at pci0 dev 1 function 0: Intel 82815 AGP (rev. 0x02)
pci1 at ppb0 bus 1
pci1: i/o space, memory space enabled
vga1 at pci1 dev 0 function 0: ATI Technologies Radeon 9200SE (rev. 0x01)
>How-To-Repeat:
	Observation
>Fix:
	Apply the following patch:

--- sys/dev/pci/agp_i810.c.org	2004-11-04 10:12:35.000000000 +0100
+++ sys/dev/pci/agp_i810.c	2004-11-04 10:47:09.000000000 +0100
@@ -148,6 +148,7 @@
 		case PCI_PRODUCT_INTEL_82840_HB:
 		case PCI_PRODUCT_INTEL_82865_HB:
 		case PCI_PRODUCT_INTEL_82845G_DRAM:
+		case PCI_PRODUCT_INTEL_82815_FULL_HUB:
 			return agp_intel_attach(parent, self, aux);
 		}
 #endif
>Release-Note:
>Audit-Trail:
>Unformatted: