Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 26 Sep 2004 22:47:19 -0400
From:      Owen Becker <owen@safeasmilk.net>
To:        freebsd-amd64@freebsd.org
Subject:   G400 and mga_hal
Message-ID:  <41577F37.8010204@safeasmilk.net>

next in thread | raw e-mail | index | archive | help
My current project is to get my G400 working with two monitors. I'm using
5.3 Beta 6 amd64 with the options "agp" and "mgadrm" compiled into the 
kernel.
When I start X (latest x.org from ports) it gripes about missing 
mga_hal. Is the mga_hal
driver supported with FreeBSD amd64? Thanks in advance.

Attached is my dmesg and xorg.conf:

Copyright (c) 1992-2004 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
        The Regents of the University of California. All rights reserved.
FreeBSD 5.3-BETA6 #7: Sun Sep 26 21:20:48 EDT 2004
    root@kamala.safeasmilk.net:/usr/src/sys/amd64/compile/KAMALA
Timecounter "i8254" frequency 1193182 Hz quality 0
CPU: AMD Athlon(tm) 64 Processor 3200+ (1999.95-MHz K8-class CPU)
  Origin = "AuthenticAMD"  Id = 0xf48  Stepping = 8
  
Features=0x78bfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,MMX,FXSR,SSE,SSE2>
  AMD Features=0xe0500800<SYSCALL,NX,MMX+,LM,3DNow+,3DNow>
real memory  = 536805376 (511 MB)
avail memory = 510140416 (486 MB)
ACPI APIC Table: <VIAK8  AWRDACPI>
ioapic0 <Version 0.3> irqs 0-23 on motherboard
acpi0: <VIAK8 AWRDACPI> on motherboard
acpi0: Power Button (fixed)
Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000
acpi_timer0: <24-bit timer at 3.579545MHz> port 0x4008-0x400b on acpi0
cpu0: <ACPI CPU> on acpi0
acpi_button0: <Power Button> on acpi0
pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0
pci0: <ACPI PCI bus> on pcib0
agp0: <VIA 8385 host to PCI bridge> mem 0xd0000000-0xd7ffffff at device 
0.0 on pci0
pcib1: <PCI-PCI bridge> at device 1.0 on pci0
pci1: <PCI bus> on pcib1
drm0: <Matrox G400/G450 (AGP)> mem 
0xdb000000-0xdb7fffff,0xda000000-0xda003fff,0xd8000000-0xd9ffffff irq 16 
at device 0.0 on pci1
info: [drm] AGP at 0xd0000000 128MB
info: [drm] Initialized mga 3.1.0 20021029 on minor 0
dc0: <ADMtek AN985 10/100BaseTX> port 0x9000-0x90ff mem 
0xde000000-0xde0003ff irq 18 at device 10.0 on pci0
miibus0: <MII bus> on dc0
ukphy0: <Generic IEEE 802.3u media interface> on miibus0
ukphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
dc0: Ethernet address: 00:04:5a:7f:e3:81
dc0: [GIANT-LOCKED]
pcm0: <Creative EMU10K1> port 0x9400-0x941f irq 19 at device 11.0 on pci0
pcm0: <Cirrus Logic CS4297A AC97 Codec>
atapci0: <VIA 6420 SATA150 controller> port 
0xb000-0xb0ff,0xac00-0xac0f,0xa800-0xa803,0xa400-0xa407,0xa000-0xa003,0x9c00-0x9c07 
irq 20 at device 15.0 on pci0
ata2: channel #0 on atapci0
ata3: channel #1 on atapci0
atapci1: <VIA 8237 UDMA133 controller> port 
0xb400-0xb40f,0x376,0x170-0x177,0x3f6,0x1f0-0x1f7 at device 15.1 on pci0
ata0: channel #0 on atapci1
ata1: channel #1 on atapci1
uhci0: <VIA 83C572 USB controller> port 0xb800-0xb81f irq 21 at device 
16.0 on pci0
uhci0: [GIANT-LOCKED]
usb0: <VIA 83C572 USB controller> on uhci0
usb0: USB revision 1.0
uhub0: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
uhci1: <VIA 83C572 USB controller> port 0xbc00-0xbc1f irq 21 at device 
16.1 on pci0
uhci1: [GIANT-LOCKED]
usb1: <VIA 83C572 USB controller> on uhci1
usb1: USB revision 1.0
uhub1: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub1: 2 ports with 2 removable, self powered
uhci2: <VIA 83C572 USB controller> port 0xc000-0xc01f irq 21 at device 
16.2 on pci0
uhci2: [GIANT-LOCKED]
usb2: <VIA 83C572 USB controller> on uhci2
usb2: USB revision 1.0
uhub2: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub2: 2 ports with 2 removable, self powered
uhci3: <VIA 83C572 USB controller> port 0xc400-0xc41f irq 21 at device 
16.3 on pci0
uhci3: [GIANT-LOCKED]
usb3: <VIA 83C572 USB controller> on uhci3
usb3: USB revision 1.0
uhub3: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub3: 2 ports with 2 removable, self powered
ums0: Logitech USB-PS/2 Trackball, rev 1.00/2.00, addr 2, iclass 3/1
ums0: 3 buttons and Z dir.
ulpt0: hp deskjet 3320, rev 2.00/1.00, addr 3, iclass 7/1
ulpt0: using bi-directional mode
pci0: <serial bus, USB> at device 16.4 (no driver attached)
isab0: <PCI-ISA bridge> at device 17.0 on pci0
isa0: <ISA bus> on isab0
rl0: <RealTek 8139 10/100BaseTX> port 0xc800-0xc8ff mem 
0xde002000-0xde0020ff irq 18 at device 19.0 on pci0
miibus1: <MII bus> on rl0
rlphy0: <RealTek internal media interface> on miibus1
rlphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
rl0: Ethernet address: 00:0d:61:12:70:e5
atkbdc0: <Keyboard controller (i8042)> port 0x64,0x60 irq 1 on acpi0
atkbd0: <AT Keyboard> flags 0x1 irq 1 on atkbdc0
kbd0 at atkbd0
atkbd0: [GIANT-LOCKED]
orm0: <ISA Option ROMs> at iomem 0xc8000-0xcbfff,0xc0000-0xc7fff on isa0
sc0: <System console> at flags 0x100 on isa0
sc0: VGA <16 virtual consoles, flags=0x300>
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
Timecounter "TSC" frequency 1999950545 Hz quality 800
Timecounters tick every 0.976 msec
ad0: 76318MB <WDC WD800JB-00CRA1/17.07W17> [155058/16/63] at ata0-master 
UDMA100
ad1: 38165MB <WDC WD400BB-75AUA1/18.20D18> [77542/16/63] at ata0-slave 
UDMA100
ATAPI_RESET time = 1500us
ATAPI_RESET time = 20us
ata1-slave: WARNING - SETFEATURES SET TRANSFER MODE no interrupt but 
good status
ata1-slave: WARNING - SETFEATURES SET TRANSFER MODE no interrupt but 
good status
acd0: DVDR <_NEC DVD_RW ND-1300A/1.06> at ata1-master UDMA33
acd1: CDRW <LITE-ON LTR-52327S/QS04> at ata1-slave UDMA33
ad4: 76319MB <WDC WD800JD-00HKA0/13.03G13> [155061/16/63] at ata2-master 
SATA150
ad6: 76319MB <WDC WD800JD-00HKA0/13.03G13> [155061/16/63] at ata3-master 
SATA150
cd0 at ata1 bus 0 target 0 lun 0
cd0: <_NEC DVD_RW ND-1300A 1.06> Removable CD-ROM SCSI-0 device
cd0: 33.000MB/s transfers
cd0: cd present [17668 x 2048 byte records]
cd1 at ata1 bus 0 target 1 lun 0
cd1: <LITE-ON LTR-52327S QS04> Removable CD-ROM SCSI-0 device
cd1: 33.000MB/s transfers
cd1: Attempt to query device size failed: NOT READY, Medium not present
Mounting root from ufs:/dev/ad1s1a



Section "ServerLayout"
        Identifier     "X.org Configured"
        Screen "Screen 0" 0 0
        Screen "Screen 1" LeftOf "Screen 0"
        InputDevice "Mouse0" "CorePointer"
        InputDevice "Keyboard0" "CoreKeyboard"
        Option "Xinerama"
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/TTF/"
        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  "dri"
        Load  "dbe"
        Load  "record"
        Load  "xtrap"
        Load  "speedo"
        Load  "type1"
        Load  "freetype"
EndSection

Section "InputDevice"
        Identifier  "Keyboard0"
        Driver      "keyboard"
        Option      "XkbOptions" "ctrl:nocaps"
EndSection

Section "InputDevice"
        Identifier  "Mouse0"
        Driver      "mouse"
        Option      "Protocol" "auto"
        Option      "Device" "/dev/sysmouse"
        Option      "ZAxisMapping" "4 5"
EndSection

Section "Monitor"
        Identifier   "Monitor0"
        VendorName   "DEL"
        ModelName    "DELL P991"
        HorizSync    60 - 120
        VertRefresh  50 - 120
        Option      "DPMS"
EndSection

Section "Monitor"
        Identifier   "Monitor1"
        VendorName   "Monitor Vendor"
        ModelName    "Monitor Model"
        HorizSync     60-120
        VertRefresh   50-120
        Modeline "1024x768" 94.50 1024 1072 1168 1376 768  777  780  816 
+hsync +vsync
EndSection

Section "Device"
        Identifier  "G400_1"
        Driver      "mga"
        VendorName  "Matrox Graphics, Inc."
        Option      "Agp" "1"
        BusID       "PCI:1:0:0"
        Screen 0
EndSection

Section "Device"
        Identifier  "G400_2"
        Driver      "mga"
        VendorName  "Matrox Graphics, Inc."
        Option      "Agp" "1"
        BusID       "PCI:1:0:0"
        Screen 1
EndSection

Section "Screen"
        Identifier "Screen0"
        Device     "G400_1"
        Monitor    "Monitor0"
        DefaultDepth 16
        SubSection "Display"
                Viewport   0 0
                Depth     16
                Modes     "1024x768"
        EndSubSection
EndSection

Section "Screen"
        Identifier "Screen1"
        Device     "G400_2"
        Monitor    "Monitor1"
        DefaultDepth 16
        SubSection "Display"
                Viewport   0 0
                Depth     16
                Modes     "1024x768"
        EndSubSection
EndSection




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