Subject: Re: x.org not working on intel-chip because of agpgart?
To: jefreytag@nikaforce.com <jefreytag@nikaforce.com>
From: Joseph A. Dacuma <jadacuma@ched.gov.ph>
List: netbsd-users
Date: 11/23/2007 03:41:17
> 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:
> (somebody has an idea for a workaround? This is a real showstopper for me
> as graphics just look ugly in vesa.)
>
> (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.
>
>

Hello Mr. Jefreytag!

This laptop has been running on NetBSD 3 for the longest time. It produces
the same message on my dmesg outuput but runs ok with X :).

-----dmesg snip ----

agp0 at pchb0: detected 8060k stolen memory
agp0: aperture at 0xe0000000, size 0x8000000
Intel 82855GM GMCH Memory Controller (miscellaneous system, revision 0x02)
at pci0 dev 0 function 1 not configured
Intel 82855GM GMCH Configuration Process (miscellaneous system, revision
0x02) at pci0 dev 0 function 3 not configured
vga1 at pci0 dev 2 function 0: Intel 82855GM GMCH Integrated Graphics
Device (rev. 0x02)
wsdisplay0 at vga1 kbdmux 1: console (80x25, vt100 emulation)
wsmux1: connecting to wsdisplay0
Intel 82855GM GMCH Integrated Graphics Device (miscellaneous display,
revision 0x02) at pci0 dev 2 function 1 not configured
uhci0 at pci0 dev 29 function 0: Intel 82801DB USB UHCI Controller (rev.
0x01)

----- end dmesg snip -------


Logs for my XFree86:

XFree86 Version 4.5.0
Release Date: 16 March 2005
X Protocol Version 11, Revision 0
Build Operating System:NetBSD/i386 3.1_STABLE - The NetBSD Foundation, Inc.

----snip----

(--) PCI:*(0:2:0) Intel Corp. 82852/855GM Integrated Graphics Device rev
2, Mem @ 0xe0000000/27, 0xd0000000/19, I/O @ 0x1800/3
(--) PCI: (0:2:1) Intel Corp. 82852/855GM Integrated Graphics Device rev
2, Mem @ 0xe8000000/27, 0xd0080000/19
(II) Addressable bus resource ranges are
        [0] -1  0       0x00000000 - 0xffffffff (0x0) MX[B]
        [1] -1  0       0x00000000 - 0x0000ffff (0x10000) IX[B]

----snip----

(==) RandR enabled
(II) Initializing built-in extension MIT-SHM
(II) Initializing built-in extension XInputExtension
(II) Initializing built-in extension XTEST
(II) Initializing built-in extension XKEYBOARD
(II) Initializing built-in extension LBX
(II) Initializing built-in extension XC-APPGROUP
(II) Initializing built-in extension SECURITY
(II) Initializing built-in extension XINERAMA
(II) Initializing built-in extension XFree86-Bigfont
(II) Initializing built-in extension RENDER
(II) Initializing built-in extension RANDR
(**) Option "Protocol" "wsmouse"
(**) Mouse0: Protocol: wsmouse
(**) Option "CorePointer"
(**) Mouse0: Core Pointer
(**) Option "Device" "/dev/wsmouse"
(==) Mouse0: Emulate3Buttons, Emulate3Timeout: 50
(==) Mouse0: Buttons: 3
(II) Keyboard "Keyboard0" handled by legacy driver
(II) XINPUT: Adding extended input device "Mouse0" (type: MOUSE)
GetModeLine - scrn: 0 clock: 75169
GetModeLine - hdsp: 1024 hbeg: 1080 hend: 1184 httl: 1344
              vdsp: 768 vbeg: 769 vend: 772 vttl: 799 flags: 0

----- end XFree log snip -------


It may not be the case with _device not configured_ message. Try checking
your kernel configuration and look for the agp entry if its included or
enabled.

Regards,

Joseph