Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 17 Jul 2002 20:40:09 -0400
From:      Garance A Drosihn <drosih@rpi.edu>
To:        current@FreeBSD.org
Subject:   Problem with agpgart on current, XFree86-4, Matrox G400 video
Message-ID:  <p0511172fb95bb1c7d9ae@[128.113.24.47]>

next in thread | raw e-mail | index | archive | help
I just thought I'd mention a little problem I ran into, because I had
not seen anyone else mention it.  It might be specific to my PC
hardware, and actually it was pretty simple to solve once I took
the time to look into it.  I don't know that anything needs to be
done about any of this, but perhaps this message will help someone
else who stumbles into the same situation as I did.

I have a Matrox G400 Dual Head 32mb AGP card running on a dual
Pentium III system, and I have been using XFree86-4 on my system for
testing -current.  This worked fine for months, and I still have a
snapshot of -current from about April 23 where it works fine.
Sometime after that (probably mid-May), I did a buildworld and I
started to consistently get the following errors when XDM starts:

Timecounter "PIIX"  frequency 3579545 Hz
Timecounter "PIIX"  frequency 3579545 Hz
Timecounter "PIIX"  frequency 3579545 Hz
Timecounter "PIIX"  frequency 3579545 Hz
Timecounter "PIIX"  frequency 3579545 Hz
Timecounter "PIIX"  frequency 3579545 Hz
Timecounter "PIIX"  frequency 3579545 Hz
drm0: <Matrox G400/G450 (AGP)> mem 
0xe0800000-0xe0ffffff,0xe1000000-0xe1003fff,0
xe2000000-0xe3ffffff irq 10 at device 0.0 on pci1
error: [drm:mga_init] *ERROR* Cannot initialize the agpgart module.
device_probe_and_attach: drm0 attach returned 12

XDM generally did still seem to come up okay, although occasionally
the system would panic right at that initial XDM startup.  While I
tried a few things to fix this (including various buildworlds over
time), I didn't really worry about it too much because I could always
fall back to my April 23rd snapshot of -current.

Today I finally looked into this situation, and I ended up at:

http://www.FreeBSD.org/doc/en_US.ISO8859-1/books/handbook/x-config.html

which mentioned:
     To use agpgart, the agp.ko kernel loadable module needs to
     be loaded into the kernel with  kldload(8). This can be done
     automatically with the loader(8) at boot time. Simply add
     this line to /boot/loader.conf:
                agp_load="YES"

I added that line, rebooted, and now XFree86-4 has no problem
initializing agpgart when XDM starts up.  I do not know why I
started to need that line in /boot/loader.conf, when I had never
actually needed it before (and I've never had 'device agp' in my
kernel).  But, I'm happy enough to have finally tracked down what
the issue was.

That web page is geared more towards 4.x releases, as it also talks
about needing to do a MAKEDEV for the device.  I did see the man
page for the agpgart module, but it didn't mention anything about
this loader.conf option.  I don't know if it should, but I just
wanted to say "well, at least I did look around some"...

I do have X built with "WITH_MATROX_GXX_DRIVER=YES" defined, but I
didn't start doing that until *after* this problem came up.

-- 
Garance Alistair Drosehn            =   gad@gilead.netel.rpi.edu
Senior Systems Programmer           or  gad@freebsd.org
Rensselaer Polytechnic Institute    or  drosih@rpi.edu

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?p0511172fb95bb1c7d9ae>