Subject: losing with i815, NetBSD 1.6-stable, current xsrc
To: None <port-i386@netbsd.org>
From: Greg Troxel <gdt@ir.bbn.com>
List: port-i386
Date: 01/27/2003 14:23:14
I'm guessing that AGP/i810 makes this i386 specific....

I have a Dell desktop with i810/i815 graphics, and am trying to get X
working.  I built xsrc today after from cvs updating from anoncvs.
The kernel and userland are from netbsd-1-6 on 2002-11-20.

I get this in XFree86.0.log:

  (WW) I810(0): xf86BindGARTMemory: binding of gart memory with key 15
	  at offset 0x0 failed (Cannot allocate memory)

and this in dmesg

  agp_i810_bind_memory: PGTBL_CTL is 0x0 - fixing

I see various key values on different runs.  The above message seems
to be Xserver brokenness, and present even on 'working' setups, or so
it seems from sys/dev/pci/agp_i810.c

I have agp0 and agpgart in /dev (I think the /dev/agp is spurious).

crw-r--r--  1 root  wheel   0, 82 Jan 27 12:36 /dev/agp
crw-r--r--  1 root  wheel  82,  0 Jan 27 12:36 /dev/agp0
crw-r--r--  1 root  wheel  82,  1 Jan 27 12:36 /dev/agp1
lrwx------  1 root  wheel       4 Jan 27 12:36 /dev/agpgart -> agp0

From reading sys/dev/pci/agp.c:agp_generic_bind_memory, it seems there
are seveal ways to get ENOMEM, and they don't all have printfs; I
haven't tried adding any yet. I do have shm in the kernel, and ipcs -a
shows nothing in use.

I don't understand why the return ENOMEM here isn't 'continue;'; it
seems the idea is to try to allocate smaller chunks if 8 pages doesn't work.

	for (contigpages = 8; contigpages > 0; contigpages >>= 1) {
		nseg = (mem->am_size / (contigpages * PAGE_SIZE)) + 1;
		segs = malloc(nseg * sizeof *segs, M_AGP, M_WAITOK);
		if (segs == NULL)
			return ENOMEM;


Possibly related: I notice that on login the default limits seem
small.  In particular, data seg size of 131072 seems odd on a machine
with 0.5GB of RAM; I see the same value on a machine with 0.75GB	
	core file size        (blocks, -c) unlimited
	data seg size         (kbytes, -d) 131072
	file size             (blocks, -f) unlimited
	max locked memory     (kbytes, -l) 168794
	max memory size       (kbytes, -m) 506384
	open files                    (-n) 64
	pipe size          (512 bytes, -p) 1
	stack size            (kbytes, -s) 4336
	cpu time             (seconds, -t) unlimited
	max user processes            (-u) 100
	virtual memory        (kbytes, -v) 135408

Any clues would be appreciated.

    Greg


Here's all of dmesg, XFree86.0.log, and my config file.

NetBSD 1.6_STABLE (QUISTCVS) #18: Mon Dec 16 18:51:57 EST 2002
    gdt@ir.bbn.com:/usr/home/gdt/FOO-current/netbsd/src/sys/arch/i386/compile/FOOCVS
cpu0: Intel Pentium III (Coppermine) (686-class), 930.35 MHz
cpu0: I-cache 16 KB 32b/line 4-way, D-cache 16 KB 32b/line 2-way
cpu0: L2 cache 256 KB 32b/line 8-way
cpu0: features 383f9ff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR>
cpu0: features 383f9ff<PGE,MCA,CMOV,FGPAT,PSE36,MMX>
cpu0: features 383f9ff<FXSR,SSE>
total memory = 509 MB
avail memory = 468 MB
using 6144 buffers containing 26196 KB of memory
BIOS32 rev. 0 found at 0xffe90
mainbus0 (root)
pci0 at mainbus0 bus 0: configuration mode 1
pci0: i/o space, memory space enabled, rd/line, rd/mult, wr/inv ok
pchb0 at pci0 dev 0 function 0
pchb0: Intel 82815 Hub (rev. 0x02)
agp0 at pchb0: aperture at 0xf8000000, size 0x4000000
vga1 at pci0 dev 2 function 0: Intel 82815 Graphics (rev. 0x02)
wsdisplay0 at vga1 kbdmux 1: console (80x25, vt100 emulation)
wsmux1: connecting to wsdisplay0
ppb0 at pci0 dev 30 function 0: Intel 82801BA Hub-to-PCI Bridge (rev. 0x02)
pci1 at ppb0 bus 1
pci1: i/o space, memory space enabled
ex0 at pci1 dev 7 function 0: 3Com 3c905B-TX 10/100 Ethernet (rev. 0x30)
ex0: interrupting at irq 9
ex0: MAC address 
exphy0 at ex0 phy 24: 3Com internal media interface
exphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
ahc0 at pci1 dev 8 function 0
ahc0: interrupting at irq 10
ahc0: aic7860 Single Channel A, SCSI Id=7, 3/255 SCBs
scsibus0 at ahc0: 8 targets, 8 luns per target
ex1 at pci1 dev 12 function 0: 3Com 3c905C-TX 10/100 Ethernet with mngmt (rev. 0x78)
ex1: interrupting at irq 11
ex1: MAC address 
exphy1 at ex1 phy 24: 3Com internal media interface
exphy1: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
pcib0 at pci0 dev 31 function 0
pcib0: Intel 82801BA LPC Interface Bridge (rev. 0x02)
pciide0 at pci0 dev 31 function 1: Intel 82801BA IDE Controller (ICH2) (rev. 0x02)
pciide0: bus-master DMA support present
pciide0: primary channel wired to compatibility mode
wd0 at pciide0 channel 0 drive 0: <WDC WD400BB-75AUA1>
wd0: drive supports 16-sector PIO transfers, LBA addressing
wd0: 38166 MB, 16383 cyl, 16 head, 63 sec, 512 bytes/sect x 78165360 sectors
wd0: 32-bit data port
wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 5 (Ultra/100)
pciide0: primary channel interrupting at irq 14
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 5 (Ultra/100) (using DMA data transfers)
pciide0: secondary channel wired to compatibility mode
atapibus0 at pciide0 channel 1: 2 targets
cd0 at atapibus0 drive 0: <ASUS    CRW-2410A, , 1.0> type 5 cdrom removable
cd0: 32-bit data port
cd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 2 (Ultra/33)
pciide0: secondary channel interrupting at irq 15
cd0(pciide0:1:0): using PIO mode 4, Ultra-DMA mode 2 (Ultra/33) (using DMA data transfers)
uhci0 at pci0 dev 31 function 2: Intel 82801BA USB Controller (rev. 0x02)
uhci0: interrupting at irq 11
usb0 at uhci0: USB revision 1.0
uhub0 at usb0
uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
Intel 82801BA SMBus Controller (SMBus serial bus, revision 0x02) at pci0 dev 31 function 3 not configured
uhci1 at pci0 dev 31 function 4: Intel 82801BA USB Controller (rev. 0x02)
uhci1: interrupting at irq 11
usb1 at uhci1: USB revision 1.0
uhub1 at usb1
uhub1: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub1: 2 ports with 2 removable, self powered
Intel 82801BA AC-97 Audio Controller (audio multimedia, revision 0x02) at pci0 dev 31 function 5 not configured
isa0 at pcib0
com0 at isa0 port 0x3f8-0x3ff irq 4: ns16550a, working fifo
com1 at isa0 port 0x2f8-0x2ff irq 3: ns16550a, working fifo
pckbc0 at isa0 port 0x60-0x64
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard, using wsdisplay0
pms0 at pckbc0 (aux slot)
pckbc0: using irq 12 for aux slot
wsmouse0 at pms0 mux 0
lpt0 at isa0 port 0x378-0x37b irq 7
pcppi0 at isa0 port 0x61
sysbeep0 at pcppi0
isapnp0 at isa0 port 0x279: ISA Plug 'n Play device support
npx0 at isa0 port 0xf0-0xff: using exception 16
fdc0 at isa0 port 0x3f0-0x3f7 irq 6 drq 2
fd0 at fdc0 drive 0: 1.44MB, 80 cyl, 2 head, 18 sec
isapnp0: no ISA Plug 'n Play devices found
biomask ed65 netmask ef65 ttymask ffe7
scsibus0: waiting 2 seconds for devices to settle...
sd0 at scsibus0 target 2 lun 0: <IBM, DDRS-39130, S92A> SCSI2 0/direct fixed
sd0: 8715 MB, 8387 cyl, 10 head, 212 sec, 512 bytes/sect x 17850000 sectors
sd0: sync (100.0ns offset 15), 8-bit (10.000MB/s) transfers, tagged queueing
st0 at scsibus0 target 3 lun 0: <SEAGATE, DAT    04106-XXX, 7550> SCSI2 1/sequential removable
st0: density code 37, 512-byte blocks, write-enabled
st0: sync (100.0ns offset 15), 8-bit (10.000MB/s) transfers
Kernelized RAIDframe activated
IPsec: Initialized Security Association Processing.
boot device: wd0
root on wd0a dumps on wd0b
root file system type: ffs
IP Filter: v3.4.29 initialized.  Default = block all, Logging = enabled
wsdisplay0: screen 1 added (80x25, vt100 emulation)
wsdisplay0: screen 2 added (80x25, vt100 emulation)
wsdisplay0: screen 3 added (80x25, vt100 emulation)
wsdisplay0: screen 4 added (80x25, vt100 emulation)
agp_i810_bind_memory: PGTBL_CTL is 0x0 - fixing
agp_i810_bind_memory: PGTBL_CTL is 0x0 - fixing
agp_i810_bind_memory: PGTBL_CTL is 0x0 - fixing
agp_i810_bind_memory: PGTBL_CTL is 0x0 - fixing
agp_i810_bind_memory: PGTBL_CTL is 0x0 - fixing
agp_i810_bind_memory: PGTBL_CTL is 0x0 - fixing
agp_i810_bind_memory: PGTBL_CTL is 0x0 - fixing
agp_i810_bind_memory: PGTBL_CTL is 0x0 - fixing
agp_i810_bind_memory: PGTBL_CTL is 0x0 - fixing
agp_i810_bind_memory: PGTBL_CTL is 0x0 - fixing
agp_i810_bind_memory: PGTBL_CTL is 0x0 - fixing
agp_i810_bind_memory: PGTBL_CTL is 0x0 - fixing
agp_i810_bind_memory: PGTBL_CTL is 0x0 - fixing
agp_i810_bind_memory: PGTBL_CTL is 0x0 - fixing
agp_i810_bind_memory: PGTBL_CTL is 0x0 - fixing
agp_i810_bind_memory: PGTBL_CTL is 0x0 - fixing


XFree86 Version 4.2.1 / X Window System
(protocol Version 11, revision 0, vendor release 6600)
Release Date: 3 September 2002
	If the server is older than 6-12 months, or if your card is
	newer than the above date, look for a newer version before
	reporting problems.  (See http://www.XFree86.Org/)
Build Operating System: NetBSD/i386 1.6_STABLE [ELF] The NetBSD Foundation, Inc.
Module Loader present
Markers: (--) probed, (**) from config file, (==) default setting,
         (++) from command line, (!!) notice, (II) informational,
         (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/XFree86.0.log", Time: Mon Jan 27 12:38:13 2003
(==) Using config file: "/etc/X11/XF86Config"
(==) ServerLayout "XFree86 Configured"
(**) |-->Screen "Screen0" (0)
(**) |   |-->Monitor "Monitor0"
(**) |   |-->Device "Card0"
(**) |-->Input Device "Mouse0"
(**) |-->Input Device "Keyboard0"
(==) Keyboard: CustomKeycode disabled
(**) FontPath set to "/usr/X11R6/lib/X11/fonts/misc/,/usr/X11R6/lib/X11/fonts/Speedo/,/usr/X11R6/lib/X11/fonts/Type1/,/usr/X11R6/lib/X11/fonts/CID/,/usr/X11R6/lib/X11/fonts/75dpi/,/usr/X11R6/lib/X11/fonts/100dpi/"
(**) RgbPath set to "/usr/X11R6/lib/X11/rgb"
(**) ModulePath set to "/usr/X11R6/lib/modules"
(--) Using pcvt driver (version 3.32)
(II) Module ABI versions:
	XFree86 ANSI C Emulation: 0.1
	XFree86 Video Driver: 0.5
	XFree86 XInput driver : 0.3
	XFree86 Server Extension : 0.1
	XFree86 Font Renderer : 0.3
(II) Loader running on netbsd
(II) LoadModule: "bitmap"
(II) Loading /usr/X11R6/lib/modules/fonts/libbitmap.a
(II) Module bitmap: vendor="The XFree86 Project"
	compiled for 4.2.1, module version = 1.0.0
	Module class: XFree86 Font Renderer
	ABI class: XFree86 Font Renderer, version 0.3
(II) Loading font Bitmap
(II) LoadModule: "pcidata"
(II) Loading /usr/X11R6/lib/modules/libpcidata.a
(II) Module pcidata: vendor="The XFree86 Project"
	compiled for 4.2.1, module version = 0.1.0
	ABI class: XFree86 Video Driver, version 0.5
(II) PCI: Probing config type using method 1
(II) PCI: Config type is 1
(II) PCI: stages = 0x03, oldVal1 = 0x00000000, mode1Res1 = 0x80000000
(II) PCI: PCI scan (all values are in hex)
(II) PCI: 00:00:0: chip 8086,1130 card 1028,00be rev 02 class 06,00,00 hdr 00
(II) PCI: 00:02:0: chip 8086,1132 card 1028,00be rev 02 class 03,00,00 hdr 00
(II) PCI: 00:1e:0: chip 8086,244e card 0000,0000 rev 02 class 06,04,00 hdr 01
(II) PCI: 00:1f:0: chip 8086,2440 card 0000,0000 rev 02 class 06,01,00 hdr 80
(II) PCI: 00:1f:1: chip 8086,244b card 0000,0000 rev 02 class 01,01,80 hdr 00
(II) PCI: 00:1f:2: chip 8086,2442 card 0000,0000 rev 02 class 0c,03,00 hdr 00
(II) PCI: 00:1f:3: chip 8086,2443 card 0000,0000 rev 02 class 0c,05,00 hdr 00
(II) PCI: 00:1f:4: chip 8086,2444 card 0000,0000 rev 02 class 0c,03,00 hdr 00
(II) PCI: 00:1f:5: chip 8086,2445 card 1028,00be rev 02 class 04,01,00 hdr 00
(II) PCI: 01:07:0: chip 10b7,9055 card 10b7,9055 rev 30 class 02,00,00 hdr 00
(II) PCI: 01:08:0: chip 9004,6178 card 0000,0000 rev 01 class 01,00,00 hdr 00
(II) PCI: 01:0c:0: chip 10b7,9200 card 1028,00be rev 78 class 02,00,00 hdr 00
(II) PCI: End of PCI scan
(II) LoadModule: "scanpci"
(II) Loading /usr/X11R6/lib/modules/libscanpci.a
(II) Module scanpci: vendor="The XFree86 Project"
	compiled for 4.2.1, module version = 0.1.0
	ABI class: XFree86 Video Driver, version 0.5
(II) UnloadModule: "scanpci"
(II) Unloading /usr/X11R6/lib/modules/libscanpci.a
(II) Host-to-PCI bridge:
(II) PCI-to-ISA bridge:
(II) PCI-to-PCI bridge:
(II) Bus 0: bridge is at (0:0:0), (-1,0,0), BCTRL: 0x08 (VGA_EN is set)
(II) Bus 0 I/O range:
	[0] -1	0x00000000 - 0x0000ffff (0x10000) IX[B]
(II) Bus 0 non-prefetchable memory range:
	[0] -1	0x00000000 - 0xffffffff (0x0) MX[B]
(II) Bus 0 prefetchable memory range:
	[0] -1	0x00000000 - 0xffffffff (0x0) MX[B]
(II) Bus 1: bridge is at (0:30:0), (0,1,1), BCTRL: 0x06 (VGA_EN is cleared)
(II) Bus 1 I/O range:
	[0] -1	0x0000e000 - 0x0000e0ff (0x100) IX[B]
	[1] -1	0x0000e400 - 0x0000e4ff (0x100) IX[B]
	[2] -1	0x0000e800 - 0x0000e8ff (0x100) IX[B]
	[3] -1	0x0000ec00 - 0x0000ecff (0x100) IX[B]
(II) Bus 1 non-prefetchable memory range:
	[0] -1	0xfd000000 - 0xfeffffff (0x2000000) MX[B]
(II) Bus 1 prefetchable memory range:
(II) Bus -1: bridge is at (0:31:0), (0,-1,0), BCTRL: 0x08 (VGA_EN is set)
(II) Bus -1 I/O range:
(II) Bus -1 non-prefetchable memory range:
(II) Bus -1 prefetchable memory range:
(--) PCI:*(0:2:0) Intel i815 rev 2, Mem @ 0xf8000000/26, 0xff000000/19
(II) Addressable bus resource ranges are
	[0] -1	0x00000000 - 0xffffffff (0x0) MX[B]
	[1] -1	0x00000000 - 0x0000ffff (0x10000) IX[B]
(II) OS-reported resource ranges:
	[0] -1	0xffe00000 - 0xffffffff (0x200000) MX[B](B)
	[1] -1	0x00100000 - 0x3fffffff (0x3ff00000) MX[B]E(B)
	[2] -1	0x000f0000 - 0x000fffff (0x10000) MX[B]
	[3] -1	0x000c0000 - 0x000effff (0x30000) MX[B]
	[4] -1	0x00000000 - 0x0009ffff (0xa0000) MX[B]
	[5] -1	0x0000ffff - 0x0000ffff (0x1) IX[B]
	[6] -1	0x00000000 - 0x000000ff (0x100) IX[B]
(II) Active PCI resource ranges:
	[0] -1	0xfdfff800 - 0xfdffffff (0x800) MX[B]E
	[1] -1	0xfdffe000 - 0xfdffffff (0x2000) MX[B]E
	[2] -1	0xfdfffc00 - 0xfdffffff (0x400) MX[B]E
	[3] -1	0xff000000 - 0xff07ffff (0x80000) MX[B](B)
	[4] -1	0xf8000000 - 0xfbffffff (0x4000000) MX[B](B)
	[5] -1	0x0000ec00 - 0x0000ecff (0x100) IX[B]E
	[6] -1	0x0000e800 - 0x0000e8ff (0x100) IX[B]E
	[7] -1	0x0000ec80 - 0x0000ecff (0x80) IX[B]E
	[8] -1	0x0000dc40 - 0x0000dc7f (0x40) IX[B]E
	[9] -1	0x0000d800 - 0x0000d8ff (0x100) IX[B]E
	[10] -1	0x0000ff60 - 0x0000ff7f (0x20) IX[B]E
	[11] -1	0x0000dcd0 - 0x0000dcdf (0x10) IX[B]E
	[12] -1	0x0000ff80 - 0x0000ffff (0x80) IX[B]E
	[13] -1	0x0000ffa0 - 0x0000ffbf (0x20) IX[B]E
(II) PCI Memory resource overlap reduced 0xfdfff800 from 0xfdffffff to 0xfdfffbff
(II) PCI I/O resource overlap reduced 0x0000ec00 from 0x0000ecff to 0x0000ec7f
(II) PCI Memory resource overlap reduced 0xfdffe000 from 0xfdffffff to 0xfdffefff
(II) PCI I/O resource overlap reduced 0x0000ff80 from 0x0000ffff to 0x0000ff9f
(II) Active PCI resource ranges after removing overlaps:
	[0] -1	0xfdfff800 - 0xfdfffbff (0x400) MX[B]E
	[1] -1	0xfdffe000 - 0xfdffefff (0x1000) MX[B]E
	[2] -1	0xfdfffc00 - 0xfdffffff (0x400) MX[B]E
	[3] -1	0xff000000 - 0xff07ffff (0x80000) MX[B](B)
	[4] -1	0xf8000000 - 0xfbffffff (0x4000000) MX[B](B)
	[5] -1	0x0000ec00 - 0x0000ec7f (0x80) IX[B]E
	[6] -1	0x0000e800 - 0x0000e8ff (0x100) IX[B]E
	[7] -1	0x0000ec80 - 0x0000ecff (0x80) IX[B]E
	[8] -1	0x0000dc40 - 0x0000dc7f (0x40) IX[B]E
	[9] -1	0x0000d800 - 0x0000d8ff (0x100) IX[B]E
	[10] -1	0x0000ff60 - 0x0000ff7f (0x20) IX[B]E
	[11] -1	0x0000dcd0 - 0x0000dcdf (0x10) IX[B]E
	[12] -1	0x0000ff80 - 0x0000ff9f (0x20) IX[B]E
	[13] -1	0x0000ffa0 - 0x0000ffbf (0x20) IX[B]E
(II) OS-reported resource ranges after removing overlaps with PCI:
	[0] -1	0xffe00000 - 0xffffffff (0x200000) MX[B](B)
	[1] -1	0x00100000 - 0x3fffffff (0x3ff00000) MX[B]E(B)
	[2] -1	0x000f0000 - 0x000fffff (0x10000) MX[B]
	[3] -1	0x000c0000 - 0x000effff (0x30000) MX[B]
	[4] -1	0x00000000 - 0x0009ffff (0xa0000) MX[B]
	[5] -1	0x0000ffff - 0x0000ffff (0x1) IX[B]
	[6] -1	0x00000000 - 0x000000ff (0x100) IX[B]
(II) All system resource ranges:
	[0] -1	0xffe00000 - 0xffffffff (0x200000) MX[B](B)
	[1] -1	0x00100000 - 0x3fffffff (0x3ff00000) MX[B]E(B)
	[2] -1	0x000f0000 - 0x000fffff (0x10000) MX[B]
	[3] -1	0x000c0000 - 0x000effff (0x30000) MX[B]
	[4] -1	0x00000000 - 0x0009ffff (0xa0000) MX[B]
	[5] -1	0xfdfff800 - 0xfdfffbff (0x400) MX[B]E
	[6] -1	0xfdffe000 - 0xfdffefff (0x1000) MX[B]E
	[7] -1	0xfdfffc00 - 0xfdffffff (0x400) MX[B]E
	[8] -1	0xff000000 - 0xff07ffff (0x80000) MX[B](B)
	[9] -1	0xf8000000 - 0xfbffffff (0x4000000) MX[B](B)
	[10] -1	0x0000ffff - 0x0000ffff (0x1) IX[B]
	[11] -1	0x00000000 - 0x000000ff (0x100) IX[B]
	[12] -1	0x0000ec00 - 0x0000ec7f (0x80) IX[B]E
	[13] -1	0x0000e800 - 0x0000e8ff (0x100) IX[B]E
	[14] -1	0x0000ec80 - 0x0000ecff (0x80) IX[B]E
	[15] -1	0x0000dc40 - 0x0000dc7f (0x40) IX[B]E
	[16] -1	0x0000d800 - 0x0000d8ff (0x100) IX[B]E
	[17] -1	0x0000ff60 - 0x0000ff7f (0x20) IX[B]E
	[18] -1	0x0000dcd0 - 0x0000dcdf (0x10) IX[B]E
	[19] -1	0x0000ff80 - 0x0000ff9f (0x20) IX[B]E
	[20] -1	0x0000ffa0 - 0x0000ffbf (0x20) IX[B]E
(II) LoadModule: "extmod"
(II) Loading /usr/X11R6/lib/modules/extensions/libextmod.a
(II) Module extmod: vendor="The XFree86 Project"
	compiled for 4.2.1, module version = 1.0.0
	Module class: XFree86 Server Extension
	ABI class: XFree86 Server Extension, version 0.1
(II) Loading extension SHAPE
(II) Loading extension MIT-SUNDRY-NONSTANDARD
(II) Loading extension BIG-REQUESTS
(II) Loading extension SYNC
(II) Loading extension MIT-SCREEN-SAVER
(II) Loading extension XC-MISC
(II) Loading extension XFree86-VidModeExtension
(II) Loading extension XFree86-Misc
(II) Loading extension XFree86-DGA
(II) Loading extension DPMS
(II) Loading extension FontCache
(II) Loading extension TOG-CUP
(II) Loading extension Extended-Visual-Information
(II) Loading extension XVideo
(II) Loading extension XVideo-MotionCompensation
(II) LoadModule: "glx"
(II) Loading /usr/X11R6/lib/modules/extensions/libglx.a
(II) Module glx: vendor="The XFree86 Project"
	compiled for 4.2.1, module version = 1.0.0
	ABI class: XFree86 Server Extension, version 0.1
(II) Loading sub module "GLcore"
(II) LoadModule: "GLcore"
(II) Loading /usr/X11R6/lib/modules/extensions/libGLcore.a
(II) Module GLcore: vendor="The XFree86 Project"
	compiled for 4.2.1, module version = 1.0.0
	ABI class: XFree86 Server Extension, version 0.1
(II) Loading extension GLX
(II) LoadModule: "dbe"
(II) Loading /usr/X11R6/lib/modules/extensions/libdbe.a
(II) Module dbe: vendor="The XFree86 Project"
	compiled for 4.2.1, module version = 1.0.0
	Module class: XFree86 Server Extension
	ABI class: XFree86 Server Extension, version 0.1
(II) Loading extension DOUBLE-BUFFER
(II) LoadModule: "record"
(II) Loading /usr/X11R6/lib/modules/extensions/librecord.a
(II) Module record: vendor="The XFree86 Project"
	compiled for 4.2.1, module version = 1.13.0
	Module class: XFree86 Server Extension
	ABI class: XFree86 Server Extension, version 0.1
(II) Loading extension RECORD
(II) LoadModule: "xtrap"
(II) Loading /usr/X11R6/lib/modules/extensions/libxtrap.a
(II) Module xtrap: vendor="The XFree86 Project"
	compiled for 4.2.1, module version = 1.0.0
	Module class: XFree86 Server Extension
	ABI class: XFree86 Server Extension, version 0.1
(II) Loading extension DEC-XTRAP
(II) LoadModule: "speedo"
(II) Loading /usr/X11R6/lib/modules/fonts/libspeedo.a
(II) Module speedo: vendor="The XFree86 Project"
	compiled for 4.2.1, module version = 1.0.1
	Module class: XFree86 Font Renderer
	ABI class: XFree86 Font Renderer, version 0.3
(II) Loading font Speedo
(II) LoadModule: "type1"
(II) Loading /usr/X11R6/lib/modules/fonts/libtype1.a
(II) Module type1: vendor="The XFree86 Project"
	compiled for 4.2.1, module version = 1.0.1
	Module class: XFree86 Font Renderer
	ABI class: XFree86 Font Renderer, version 0.3
(II) Loading font Type1
(II) Loading font CID
(II) LoadModule: "i810"
(II) Loading /usr/X11R6/lib/modules/drivers/i810_drv.o
(II) Module i810: vendor="The XFree86 Project"
	compiled for 4.2.1, module version = 1.1.0
	Module class: XFree86 Video Driver
	ABI class: XFree86 Video Driver, version 0.5
(II) LoadModule: "mouse"
(II) Loading /usr/X11R6/lib/modules/input/mouse_drv.o
(II) Module mouse: vendor="The XFree86 Project"
	compiled for 4.2.1, module version = 1.0.0
	Module class: XFree86 XInput Driver
	ABI class: XFree86 XInput driver, version 0.3
(II) I810: Driver for Intel i810 chipset: i810, i810-dc100, i810e, i815,
	i830M
(II) Primary Device is: PCI 00:02:0
(--) Chipset i815 found
(II) resource ranges after xf86ClaimFixedResources() call:
	[0] -1	0xffe00000 - 0xffffffff (0x200000) MX[B](B)
	[1] -1	0x00100000 - 0x3fffffff (0x3ff00000) MX[B]E(B)
	[2] -1	0x000f0000 - 0x000fffff (0x10000) MX[B]
	[3] -1	0x000c0000 - 0x000effff (0x30000) MX[B]
	[4] -1	0x00000000 - 0x0009ffff (0xa0000) MX[B]
	[5] -1	0xfdfff800 - 0xfdfffbff (0x400) MX[B]E
	[6] -1	0xfdffe000 - 0xfdffefff (0x1000) MX[B]E
	[7] -1	0xfdfffc00 - 0xfdffffff (0x400) MX[B]E
	[8] -1	0xff000000 - 0xff07ffff (0x80000) MX[B](B)
	[9] -1	0xf8000000 - 0xfbffffff (0x4000000) MX[B](B)
	[10] -1	0x0000ffff - 0x0000ffff (0x1) IX[B]
	[11] -1	0x00000000 - 0x000000ff (0x100) IX[B]
	[12] -1	0x0000ec00 - 0x0000ec7f (0x80) IX[B]E
	[13] -1	0x0000e800 - 0x0000e8ff (0x100) IX[B]E
	[14] -1	0x0000ec80 - 0x0000ecff (0x80) IX[B]E
	[15] -1	0x0000dc40 - 0x0000dc7f (0x40) IX[B]E
	[16] -1	0x0000d800 - 0x0000d8ff (0x100) IX[B]E
	[17] -1	0x0000ff60 - 0x0000ff7f (0x20) IX[B]E
	[18] -1	0x0000dcd0 - 0x0000dcdf (0x10) IX[B]E
	[19] -1	0x0000ff80 - 0x0000ff9f (0x20) IX[B]E
	[20] -1	0x0000ffa0 - 0x0000ffbf (0x20) IX[B]E
(II) resource ranges after probing:
	[0] -1	0xffe00000 - 0xffffffff (0x200000) MX[B](B)
	[1] -1	0x00100000 - 0x3fffffff (0x3ff00000) MX[B]E(B)
	[2] -1	0x000f0000 - 0x000fffff (0x10000) MX[B]
	[3] -1	0x000c0000 - 0x000effff (0x30000) MX[B]
	[4] -1	0x00000000 - 0x0009ffff (0xa0000) MX[B]
	[5] -1	0xfdfff800 - 0xfdfffbff (0x400) MX[B]E
	[6] -1	0xfdffe000 - 0xfdffefff (0x1000) MX[B]E
	[7] -1	0xfdfffc00 - 0xfdffffff (0x400) MX[B]E
	[8] -1	0xff000000 - 0xff07ffff (0x80000) MX[B](B)
	[9] -1	0xf8000000 - 0xfbffffff (0x4000000) MX[B](B)
	[10] 0	0x000a0000 - 0x000affff (0x10000) MS[B]
	[11] 0	0x000b0000 - 0x000b7fff (0x8000) MS[B]
	[12] 0	0x000b8000 - 0x000bffff (0x8000) MS[B]
	[13] -1	0x0000ffff - 0x0000ffff (0x1) IX[B]
	[14] -1	0x00000000 - 0x000000ff (0x100) IX[B]
	[15] -1	0x0000ec00 - 0x0000ec7f (0x80) IX[B]E
	[16] -1	0x0000e800 - 0x0000e8ff (0x100) IX[B]E
	[17] -1	0x0000ec80 - 0x0000ecff (0x80) IX[B]E
	[18] -1	0x0000dc40 - 0x0000dc7f (0x40) IX[B]E
	[19] -1	0x0000d800 - 0x0000d8ff (0x100) IX[B]E
	[20] -1	0x0000ff60 - 0x0000ff7f (0x20) IX[B]E
	[21] -1	0x0000dcd0 - 0x0000dcdf (0x10) IX[B]E
	[22] -1	0x0000ff80 - 0x0000ff9f (0x20) IX[B]E
	[23] -1	0x0000ffa0 - 0x0000ffbf (0x20) IX[B]E
	[24] 0	0x000003b0 - 0x000003bb (0xc) IS[B]
	[25] 0	0x000003c0 - 0x000003df (0x20) IS[B]
(II) Setting vga for screen 0.
(II) Loading sub module "vgahw"
(II) LoadModule: "vgahw"
(II) Loading /usr/X11R6/lib/modules/libvgahw.a
(II) Module vgahw: vendor="The XFree86 Project"
	compiled for 4.2.1, module version = 0.1.0
	ABI class: XFree86 Video Driver, version 0.5
(**) I810(0): Depth 24, (--) framebuffer bpp 24
(==) I810(0): RGB weight 888
(==) I810(0): Default visual is TrueColor
(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
(II) Loading sub module "int10"
(II) LoadModule: "int10"
(II) Loading /usr/X11R6/lib/modules/libint10.a
(II) Module int10: vendor="The XFree86 Project"
	compiled for 4.2.1, module version = 1.0.0
	ABI class: XFree86 Video Driver, version 0.5
(II) I810(0): initializing int10
(WW) I810(0): remove MTRR a0000 - c0000
(WW) I810(0): set MTRR f0000 - 100000
(II) I810(0): Primary V_BIOS segment is: 0xc000
(II) I810(0): VESA BIOS detected
(II) I810(0): VESA VBE Version 3.0
(II) I810(0): VESA VBE Total Mem: 1024 kB
(II) I810(0): VESA VBE OEM: Intel(R) 815 Chipset Video BIOS
(II) I810(0): VESA VBE OEM Software Rev: 4.1
(II) I810(0): VESA VBE OEM Vendor: Intel Corporation
(II) I810(0): VESA VBE OEM Product: Intel(R) 815 Chipset
(II) I810(0): VESA VBE OEM Product Rev: Hardware Version 0.0
(II) Loading sub module "ddc"
(II) LoadModule: "ddc"
(II) Loading /usr/X11R6/lib/modules/libddc.a
(II) Module ddc: vendor="The XFree86 Project"
	compiled for 4.2.1, module version = 1.0.0
	ABI class: XFree86 Video Driver, version 0.5
(II) I810(0): VESA VBE DDC not supported
(--) I810(0): Chipset: "i815"
(--) I810(0): Linear framebuffer at 0xF8000000
(--) I810(0): IO registers at addr 0xFF000000
(II) I810(0): I810CheckAvailableMemory: 327680k available
(==) I810(0): Will alloc AGP framebuffer: 8192 kByte
(==) I810(0): Using gamma correction (1.0, 1.0, 1.0)
(II) I810(0): Monitor0: Using hsync range of 31.50-82.00 kHz
(II) I810(0): Monitor0: Using vrefresh range of 60.00-80.00 Hz
(II) I810(0): Clock range:  12.00 to 136.00 MHz
(II) I810(0): Not using default mode "640x350" (vrefresh out of range)
(II) I810(0): Not using default mode "320x175" (bad mode clock/interlace/doublescan)
(II) I810(0): Not using default mode "640x400" (vrefresh out of range)
(II) I810(0): Not using default mode "320x200" (bad mode clock/interlace/doublescan)
(II) I810(0): Not using default mode "720x400" (vrefresh out of range)
(II) I810(0): Not using default mode "360x200" (bad mode clock/interlace/doublescan)
(II) I810(0): Not using default mode "320x240" (bad mode clock/interlace/doublescan)
(II) I810(0): Not using default mode "320x240" (bad mode clock/interlace/doublescan)
(II) I810(0): Not using default mode "320x240" (bad mode clock/interlace/doublescan)
(II) I810(0): Not using default mode "640x480" (vrefresh out of range)
(II) I810(0): Not using default mode "320x240" (bad mode clock/interlace/doublescan)
(II) I810(0): Not using default mode "800x600" (vrefresh out of range)
(II) I810(0): Not using default mode "400x300" (bad mode clock/interlace/doublescan)
(II) I810(0): Not using default mode "400x300" (bad mode clock/interlace/doublescan)
(II) I810(0): Not using default mode "400x300" (bad mode clock/interlace/doublescan)
(II) I810(0): Not using default mode "400x300" (bad mode clock/interlace/doublescan)
(II) I810(0): Not using default mode "800x600" (vrefresh out of range)
(II) I810(0): Not using default mode "400x300" (bad mode clock/interlace/doublescan)
(II) I810(0): Not using default mode "1024x768" (unknown reason)
(II) I810(0): Not using default mode "512x384" (bad mode clock/interlace/doublescan)
(II) I810(0): Not using default mode "512x384" (bad mode clock/interlace/doublescan)
(II) I810(0): Not using default mode "512x384" (bad mode clock/interlace/doublescan)
(II) I810(0): Not using default mode "512x384" (bad mode clock/interlace/doublescan)
(II) I810(0): Not using default mode "1024x768" (vrefresh out of range)
(II) I810(0): Not using default mode "512x384" (bad mode clock/interlace/doublescan)
(II) I810(0): Not using default mode "576x432" (bad mode clock/interlace/doublescan)
(II) I810(0): Not using default mode "640x480" (bad mode clock/interlace/doublescan)
(II) I810(0): Not using default mode "1280x960" (bad mode clock/interlace/doublescan)
(II) I810(0): Not using default mode "640x480" (bad mode clock/interlace/doublescan)
(II) I810(0): Not using default mode "640x512" (bad mode clock/interlace/doublescan)
(II) I810(0): Not using default mode "640x512" (bad mode clock/interlace/doublescan)
(II) I810(0): Not using default mode "1280x1024" (bad mode clock/interlace/doublescan)
(II) I810(0): Not using default mode "640x512" (bad mode clock/interlace/doublescan)
(II) I810(0): Not using default mode "1600x1200" (bad mode clock/interlace/doublescan)
(II) I810(0): Not using default mode "800x600" (bad mode clock/interlace/doublescan)
(II) I810(0): Not using default mode "1600x1200" (bad mode clock/interlace/doublescan)
(II) I810(0): Not using default mode "800x600" (bad mode clock/interlace/doublescan)
(II) I810(0): Not using default mode "1600x1200" (bad mode clock/interlace/doublescan)
(II) I810(0): Not using default mode "800x600" (bad mode clock/interlace/doublescan)
(II) I810(0): Not using default mode "1600x1200" (bad mode clock/interlace/doublescan)
(II) I810(0): Not using default mode "800x600" (bad mode clock/interlace/doublescan)
(II) I810(0): Not using default mode "1600x1200" (bad mode clock/interlace/doublescan)
(II) I810(0): Not using default mode "800x600" (bad mode clock/interlace/doublescan)
(II) I810(0): Not using default mode "1792x1344" (width requires unsupported line pitch)
(II) I810(0): Not using default mode "896x672" (bad mode clock/interlace/doublescan)
(II) I810(0): Not using default mode "1792x1344" (width requires unsupported line pitch)
(II) I810(0): Not using default mode "896x672" (bad mode clock/interlace/doublescan)
(II) I810(0): Not using default mode "1856x1392" (width requires unsupported line pitch)
(II) I810(0): Not using default mode "928x696" (bad mode clock/interlace/doublescan)
(II) I810(0): Not using default mode "1856x1392" (width requires unsupported line pitch)
(II) I810(0): Not using default mode "928x696" (bad mode clock/interlace/doublescan)
(II) I810(0): Not using default mode "1920x1440" (width requires unsupported line pitch)
(II) I810(0): Not using default mode "960x720" (bad mode clock/interlace/doublescan)
(II) I810(0): Not using default mode "1920x1440" (width requires unsupported line pitch)
(II) I810(0): Not using default mode "960x720" (bad mode clock/interlace/doublescan)
(II) I810(0): Not using default mode "700x525" (bad mode clock/interlace/doublescan)
(II) I810(0): Not using default mode "1400x1050" (bad mode clock/interlace/doublescan)
(II) I810(0): Not using default mode "700x525" (bad mode clock/interlace/doublescan)
(II) I810(0): Not using default mode "800x512" (bad mode clock/interlace/doublescan)
(--) I810(0): Virtual size is 1280x1024 (pitch 1280)
(**) I810(0): Default mode "1280x1024": 135.0 MHz, 80.0 kHz, 75.0 Hz
(II) I810(0): Modeline "1280x1024"  135.00  1280 1296 1440 1688  1024 1025 1028 1066 +hsync +vsync
(==) I810(0): DPI set to (75, 75)
(II) Loading sub module "fb"
(II) LoadModule: "fb"
(II) Loading /usr/X11R6/lib/modules/libfb.a
(II) Module fb: vendor="The XFree86 Project"
	compiled for 4.2.1, module version = 1.0.0
	ABI class: XFree86 ANSI C Emulation, version 0.1
(II) Loading sub module "xaa"
(II) LoadModule: "xaa"
(II) Loading /usr/X11R6/lib/modules/libxaa.a
(II) Module xaa: vendor="The XFree86 Project"
	compiled for 4.2.1, module version = 1.0.0
	ABI class: XFree86 Video Driver, version 0.5
(II) Loading sub module "ramdac"
(II) LoadModule: "ramdac"
(II) Loading /usr/X11R6/lib/modules/libramdac.a
(II) Module ramdac: vendor="The XFree86 Project"
	compiled for 4.2.1, module version = 0.1.0
	ABI class: XFree86 Video Driver, version 0.5
(II) I810(0): XvMC is Disabled: use XvMCSurfaces config option to enable.
(==) Depth 24 pixmap format is 32 bpp
(II) do I need RAC?  No, I don't.
(II) resource ranges after preInit:
	[0] 0	0xff000000 - 0xff07ffff (0x80000) MS[B]
	[1] 0	0xf8000000 - 0xfbffffff (0x4000000) MS[B]
	[2] -1	0xffe00000 - 0xffffffff (0x200000) MX[B](B)
	[3] -1	0x00100000 - 0x3fffffff (0x3ff00000) MX[B]E(B)
	[4] -1	0x000f0000 - 0x000fffff (0x10000) MX[B]
	[5] -1	0x000c0000 - 0x000effff (0x30000) MX[B]
	[6] -1	0x00000000 - 0x0009ffff (0xa0000) MX[B]
	[7] -1	0xfdfff800 - 0xfdfffbff (0x400) MX[B]E
	[8] -1	0xfdffe000 - 0xfdffefff (0x1000) MX[B]E
	[9] -1	0xfdfffc00 - 0xfdffffff (0x400) MX[B]E
	[10] -1	0xff000000 - 0xff07ffff (0x80000) MX[B](B)
	[11] -1	0xf8000000 - 0xfbffffff (0x4000000) MX[B](B)
	[12] 0	0x000a0000 - 0x000affff (0x10000) MS[B](OprD)
	[13] 0	0x000b0000 - 0x000b7fff (0x8000) MS[B](OprD)
	[14] 0	0x000b8000 - 0x000bffff (0x8000) MS[B](OprD)
	[15] -1	0x0000ffff - 0x0000ffff (0x1) IX[B]
	[16] -1	0x00000000 - 0x000000ff (0x100) IX[B]
	[17] -1	0x0000ec00 - 0x0000ec7f (0x80) IX[B]E
	[18] -1	0x0000e800 - 0x0000e8ff (0x100) IX[B]E
	[19] -1	0x0000ec80 - 0x0000ecff (0x80) IX[B]E
	[20] -1	0x0000dc40 - 0x0000dc7f (0x40) IX[B]E
	[21] -1	0x0000d800 - 0x0000d8ff (0x100) IX[B]E
	[22] -1	0x0000ff60 - 0x0000ff7f (0x20) IX[B]E
	[23] -1	0x0000dcd0 - 0x0000dcdf (0x10) IX[B]E
	[24] -1	0x0000ff80 - 0x0000ff9f (0x20) IX[B]E
	[25] -1	0x0000ffa0 - 0x0000ffbf (0x20) IX[B]E
	[26] 0	0x000003b0 - 0x000003bb (0xc) IS[B](OprU)
	[27] 0	0x000003c0 - 0x000003df (0x20) IS[B](OprU)
(WW) I810(0): xf86BindGARTMemory: binding of gart memory with key 15
	at offset 0x0 failed (Cannot allocate memory)

Fatal server error:
AddScreen/ScreenInit failed for driver 0


When reporting a problem related to a server crash, please send
the full server output, not just the last messages.
This can be found in the log file "/var/log/XFree86.0.log".
Please report problems to xfree86@xfree86.org.


Section "ServerLayout"
	Identifier     "XFree86 Configured"
	Screen      0  "Screen0" 0 0
	InputDevice    "Mouse0" "CorePointer"
	InputDevice    "Keyboard0" "CoreKeyboard"
EndSection

Section "Files"
	RgbPath      "/usr/X11R6/lib/X11/rgb"
	ModulePath   "/usr/X11R6/lib/modules"
	FontPath     "/usr/X11R6/lib/X11/fonts/misc/"
	FontPath     "/usr/X11R6/lib/X11/fonts/Speedo/"
	FontPath     "/usr/X11R6/lib/X11/fonts/Type1/"
	FontPath     "/usr/X11R6/lib/X11/fonts/CID/"
	FontPath     "/usr/X11R6/lib/X11/fonts/75dpi/"
	FontPath     "/usr/X11R6/lib/X11/fonts/100dpi/"
EndSection

Section "Module"
	Load  "extmod"
	Load  "glx"
	Load  "dbe"
	Load  "record"
	Load  "xtrap"
	Load  "speedo"
	Load  "type1"
EndSection

Section "InputDevice"
	Identifier  "Keyboard0"
	Driver      "keyboard"
EndSection

Section "InputDevice"
	Identifier  "Mouse0"
	Driver      "mouse"
	Option	    "Protocol" "wsmouse"
	Option	    "Device" "/dev/wsmouse0"
EndSection

Section "Monitor"
	Identifier   "Monitor0"
	VendorName   "Monitor Vendor"
	ModelName    "Monitor Model"
	HorizSync    31.5 - 82.0
	VertRefresh  60 - 80

#Modeline "1280x1024"  135.00  1280 1328 1440 1688  1024 1025 1028 1066 +hsync +vsync

EndSection

Section "Device"
        ### Available Driver options are:-
        ### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
        ### <string>: "String", <freq>: "<f> Hz/kHz/MHz"
        ### [arg]: arg optional
        #Option     "accel"              	# [<bool>]
        #Option     "crt_screen"         	# [<bool>]
        #Option     "composite_sync"     	# [<bool>]
        #Option     "hw_cursor"          	# [<bool>]
        #Option     "linear"             	# [<bool>]
        #Option     "mmio_cache"         	# [<bool>]
        #Option     "probe_clocks"       	# [<bool>]
        #Option     "reference_clock"    	# <freq>
        #Option     "shadow_fb"          	# [<bool>]
        #Option     "sw_cursor"          	# [<bool>]
	Identifier  "Card0"
	Driver      "i810"
	VendorName  "Intel"
	BoardName   "i815"
	BusID       "PCI:0:2:0"
EndSection

Section "Screen"
	Identifier "Screen0"
	Device     "Card0"
	Monitor    "Monitor0"
	DefaultDepth 24
	SubSection "Display"
		Depth     24
		Modes	  "1280x1024"
	EndSubSection
EndSection