Subject: Re: agp error: pci_mem_find: void region: can't map aperture
To: Duncan McEwan <duncan@mcs.vuw.ac.nz>
From: Nicolas Joly <njoly@pasteur.fr>
List: port-i386
Date: 10/31/2002 10:34:22
On Thu, Oct 31, 2002 at 03:00:39PM +1300, Duncan McEwan wrote:
> Hi,
> 
> I'm trying to install NetBSD 1.6I (but most recently I've tried with a 1.6J
> kernel from a few days ago, with no change) on a Dell Latitude C400 laptop.
> 
> The system installs and boots fine, but I am unable to get XFree86 4.2.1
> working.  I get the error messages
> 
>   (EE) GARTInit: Unable to open /dev/agpgart (Device not configured)
>   ...
>   Symbol xf86InterpretEDID from module /usr/X11R6/lib/modules/libvbe.a is
>   unresolved!
>   Symbol XAAInit from module /usr/X11R6/lib/modules/drivers/i810_drv.o is
>   unresolved!
>   Symbol XAAInit from module /usr/X11R6/lib/modules/drivers/i810_drv.o is
>   unresolved!
>   ...
>   Fatal server error:
>   Caught signal 11.  Server aborting

I got the same on my Dell Inspiron 2600 laptop which has an i830M too.

> The full XFree86 log is at http://www.mcs.vuw.ac.nz/~duncan/XFree86.0.log if
> anyone cares to look.
> 
> I'm not sure whether the unresolved symbols are related, but I
> figured I'd see if fixing the agp problem made them go away...
> 
> Dmesg tells me the following:
> 
>   NetBSD 1.6J (GENERIC_LAPTOP) #0: Tue Oct 29 15:19:43 NZDT 2002
>       mark@dellc64h2.mcs.vuw.ac.nz:/mnt/SAVE/build.obj/sys/arch/i386/compile/ \
>       GENERIC_LAPTOP
>   ...
>   agp0 at pchb0pci_mem_find: void region
>   : can't map aperture
>   vga1 at pci0 dev 2 function 0: Intel 82830MP Integrated Video (rev. 0x03)
>   ...

NetBSD has no agp support for i830 chipset.
I'm currently trying to make it work :

[...]
pchb0: Intel 82830MP CPU to I/O Bridge 1 (rev. 0x04)
agp0 at pchb0: aperture at 0xe8000000, size 0x8000000
vga1 at pci0 dev 2 function 0: Intel 82830MP Integrated Video (rev. 0x04)
[...]

> Again, full dmesg output is at http://www.mcs.vuw.ac.nz/~duncan/dmesg.out
> 
> A search of google gave various hits on making c400's work with Linux or
> FreeBSD, but nothing that appeared directly relevant to the problems I am
> seeing, and nothing useful about what might cause this "void region" error
> message.  So any suggestions from list readers would be appreciated...
> 
> Also, if the agp error is not the cause of the unresolved symbol
> errors suggestions there would be appreciated as well.  (My full
> XF86config file is at http://www.mcs.vuw.ac.nz/~duncan/XF86Config

Try to add the following lines to the `Module' section in your config
file :

        Load  "xaa"
        Load  "ddc"


I already tried it on my laptop, but with no luck :

njoly@calamity [~]> tail -20 /var/log/XFree86.0.log
(==) I810(0): Depth 8, (==) framebuffer bpp 8
(==) I810(0): RGB weight 888
(==) I810(0): Default visual is PseudoColor
(WW) I810(0): remove MTRR a0000 - c0000
(WW) I810(0): set MTRR f0000 - 100000
(WW) I810(0): Bad V_BIOS checksum
(II) I810(0): Primary V_BIOS segment is: 0xc000
(--) I810(0): Chipset: "i830"
(--) I810(0): Linear framebuffer at 0xE8000000
(--) I810(0): IO registers at addr 0xE0000000
(II) I810(0): detected 1024K stolen memory.
(II) I810(0): I810CheckAvailableMemory: 208896k available
(==) I810(0): Will alloc AGP framebuffer: 8192 kByte
(==) I810(0): Using gamma correction (1.0, 1.0, 1.0)
(II) I810(0): Currently active displays on Pipe A:
(II) I810(0):     LFP (Local Flat Panel) child device
(II) Loading sub module "vbe"
(II) LoadModule: "vbe"
(II) Loading /usr/X11R6/lib/modules/libvbe.a
(II) Module vbe: vendor="The XFree86 Project"
        compiled for 4.2.1, module version = 1.0.0
        ABI class: XFree86 Video Driver, version 0.5

Fatal server error:
Caught signal 11.  Server aborting

-- 
Nicolas Joly

Biological Software and Databanks.
Pasteur Institute, Paris.