Subject: port-amd64/37421: x.org will not start with intel-graphics because of agpgart-problem
To: None <port-amd64-maintainer@netbsd.org, gnats-admin@netbsd.org,>
From: None <jeff@gmx.fr>
List: netbsd-bugs
Date: 11/22/2007 13:50:00
>Number:         37421
>Category:       port-amd64
>Synopsis:       x.org will not start with intel-graphics because of agpgart-problem
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    port-amd64-maintainer
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Nov 22 13:50:00 +0000 2007
>Originator:     Jeff Freytag
>Release:        NetBSD 4.0 RC4/amd64
>Organization:
>Environment:
NetBSD tedeum 4.0_RC4 NetBSD 4.0_RC4 (MY) #0: Thu Nov 22 03:55:19 CET 207 root@tedeum:/usr/src/sys/arch/amd64/compile/MYMP amd64
>Description:
I have install the modular xorg-server on my system (MSI 262 Notebook, i945-chipset, 2GB RAM, Intel Core 2 Duo 7200) to make use of the intel-driver. But trying to use this driver instead of vesa results in the following message (here taken from the logfile) and a not at all working x.org:

(EE) GARTInit: Unable to open /dev/agpgart (Device not configured)
(WW) intel(0): /dev/agpgart is either not available, or no memory is available
for allocation.  Using pre-allocated memory only.
(==) intel(0): VideoRam: 7932 KB
(WW) intel(0): remove MTRR feb80000 - fec00000
(WW) intel(0): remove MTRR feb40000 - feb80000
(EE) intel(0): [dri] I830CheckDRIAvailable failed: glx not loaded
(II) intel(0): Allocating 306 scanlines for pixmap cache
(EE) intel(0): Failed to allocate framebuffer. Is your VideoRAM set too low?
(EE) intel(0): Couldn't allocate video memory

Fatal server error:
AddScreen/ScreenInit failed for driver 0


Maybe this is related to this dmesg-output:
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 82945GM/PM/GMS Host Bridge (rev. 0x03)
vga0 at pci0 dev 2 function 0: Intel 82945GM/PM/GMS Integrated Graphics Device (rev. 0x03)
wsdisplay0 at vga0 kbdmux 1: console (80x25, vt100 emulation), using wskbd0
wsmux1: connecting to wsdisplay0
Intel 82945GM/PM/GMS Integrated Graphics Device (miscellaneous display, revision 0x03) at pci0 dev 2 function 1 not configured


There exists a /dev/agpgart-file on my system. Debianlinux, just to mention that there must be an open-source solution to the problem, is running perfectly on this notebook.
>How-To-Repeat:

>Fix:
To be able to use x.org at all, just use the vesa-driver.