Subject: kern/23860: no agp(4) support for 82845G/GL without integrated video device
To: None <gnats-bugs@gnats.netbsd.org>
From: None <njoly@pasteur.fr>
List: netbsd-bugs
Date: 12/23/2003 18:14:53
>Number: 23860
>Category: kern
>Synopsis: no agp(4) support for 82845G/GL without integrated video device
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: kern-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Tue Dec 23 17:15:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator: Nicolas Joly
>Release: NetBSD 1.6ZG (-current)
>Organization:
Institut Pasteur
>Environment:
System: NetBSD cluster3.sis.pasteur.fr 1.6ZG NetBSD 1.6ZG (GENERIC) #8: Tue Dec 23 16:21:32 CET 2003 njoly@hal.sis.pasteur.fr:/local/src/NetBSD/obj/i386/sys/arch/i386/compile/GENERIC i386
Architecture: i386
Machine: i386
>Description:
NetBSD has partial agp(4) support for 82845G/GL. It works fine if the
corresponding intergrated 82845G graphics device is present, but support
is missing otherwise :
[...]
pchb0 at pci0 dev 0 function 0
pchb0: Intel 82845G/GL DRAM Controller / Host-Hub I/F Bridge (rev. 0x03)
agp0 at pchb0: can't find internal VGA device config space
ppb0 at pci0 dev 1 function 0: Intel 82845G/GL Host-to-AGP Bridge (rev. 0x03)
pci1 at ppb0 bus 1
pci1: i/o space, memory space enabled
[...]
vga1 at pci1 dev 0 function 0: ATI Technologies product 0x5446 (rev. 0x00)
wsdisplay0 at vga1 kbdmux 1: console (80x25, vt100 emulation)
wsmux1: connecting to wsdisplay0
>How-To-Repeat:
>Fix:
Apply the following patch, and check agp messages:
[...]
pchb0 at pci0 dev 0 function 0
pchb0: Intel 82845G/GL DRAM Controller / Host-Hub I/F Bridge (rev. 0x03)
agp0 at pchb0: using generic initialization for Intel AGP
agp0: aperture at 0xf8000000, size 0x4000000
ppb0 at pci0 dev 1 function 0: Intel 82845G/GL Host-to-AGP Bridge (rev. 0x03)
pci1 at ppb0 bus 1
pci1: i/o space, memory space enabled
[...]
The sample code provided in agp(4) man page give good results :
root@cluster3 [tmp/agp]# ./chkagp
version: 0.0
id: 25608086
mode: 1f000217
base: f8000000
size: 64M
total mem: 112640
system mem: 112640
used mem: 0
alloc key 0, paddr 0
used mem now: 64
agp test successful
Index: agp_i810.c
===================================================================
RCS file: /cvsroot/src/sys/dev/pci/agp_i810.c,v
retrieving revision 1.20
diff -u -r1.20 agp_i810.c
--- agp_i810.c 2003/09/07 15:40:57 1.20
+++ agp_i810.c 2003/12/23 16:10:31
@@ -147,6 +147,7 @@
switch (PCI_PRODUCT(pa->pa_id)) {
case PCI_PRODUCT_INTEL_82840_HB:
case PCI_PRODUCT_INTEL_82865_HB:
+ case PCI_PRODUCT_INTEL_82845G_DRAM:
return agp_intel_attach(parent, self, aux);
}
#endif
>Release-Note:
>Audit-Trail:
>Unformatted: