Problem with Matrox MGA G450

2008-09-05 Thread Guillermo Bernaldo de Quiros Maraver Pedroche
Hi guys, i have added one Matrox G450 in OpenBSD, 
and have enabled mgadrm in the GENERIC file, i build
and install, and, when try to launch X, get the next
error: 


xauth:  creating new authority file /root/.serverauth.27834


X.Org X Server 1.4.2
Release Date: 11 June 2008
X Protocol Version 11, Revision 0
Build Operating System: OpenBSD 4.4 amd64 
Current Operating System: OpenBSD rasputin.debugg.org 4.4 GENERIC#0 amd64
Build Date: 02 September 2008  03:39:02PM
 
Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
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/Xorg.0.log, Time: Fri Sep  5 09:59:25 2008
(==) Using config file: /etc/X11/xorg.conf
(II) Module ddc already built-in
(II) Module i2c already built-in
(II) Module ramdac already built-in
(EE) MGA(0): failed to create server context
(EE) MGA(0): [drm] DRIScreenInit failed.  Disabling DRI.
(EE) AIGLX error: drmOpenOnce failed (Operation not permitted)
(EE) AIGLX: reverting to software rendering
The XKEYBOARD keymap compiler (xkbcomp) reports:
 Warning:  Type ONE_LEVEL has 1 levels, but RALT has 2 symbols
   Ignoring extra symbols
Errors from xkbcomp are not fatal to the X server

Fatal server error:
Caught signal 11.  Server aborting

X connection to :0.0 broken (explicit kill or server shutdown).

anyone have idea about why i'm getting this errors?
the matrox, works fine without mgadrm, but, i need 
3D for development and, for not install linux...

Thanks to all.
Next my dmesg:

OpenBSD 4.4-current (GENERIC) #0: Fri Sep  5 09:48:47 CEST 2008
[EMAIL PROTECTED]:/usr/src/sys/arch/amd64/compile/GENERIC
real mem = 2134134784 (2035MB)
avail mem = 2072264704 (1976MB)
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.3 @ 0xf0100 (37 entries)
bios0: vendor Award Software International, Inc. version F8 date 08/03/2004
bios0: Gigabyte Technology Co., Ltd. K8T800-8237
acpi0 at bios0: rev 0
acpi0: tables DSDT FACP APIC
acpi0: wakeup devices USB0(S3) USB1(S3) USB2(S3) USB6(S3) USB7(S3) USB8(S3) 
USB9(S3) UAR1(S5) LPT1(S5) ECP1(S5) PCI0(S5)
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpiprt0 at acpi0: bus 0 (PCI0)
acpicpu0 at acpi0: PSS
acpibtn0 at acpi0: PWRB
cpu0 at mainbus0: (uniprocessor)
cpu0: AMD Athlon(tm) 64 Processor 3400+, 2412.37 MHz
cpu0: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,NXE,MMXX,LONG,3DNOW2,3DNOW
cpu0: 64KB 64b/line 2-way I-cache, 64KB 64b/line 2-way D-cache, 512KB 64b/line 
16-way L2 cache
cpu0: ITLB 32 4KB entries fully associative, 8 4MB entries fully associative
cpu0: DTLB 32 4KB entries fully associative, 8 4MB entries fully associative
cpu0: AMD errata 86, 89, 97, 104 present, BIOS upgrade may be required
cpu0: Cool'n'Quiet K8 2412 MHz: speeds: 2400 2200 2000 1800 1000 MHz
pci0 at mainbus0 bus 0: configuration mode 1
pchb0 at pci0 dev 0 function 0 VIA K8HTB Host rev 0x01
ppb0 at pci0 dev 1 function 0 VIA K8HTB AGP rev 0x00
pci1 at ppb0 bus 1
vga1 at pci1 dev 0 function 0 Matrox MGA G400/G450 AGP rev 0x85
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
agp at vga1 not configured
mgadrm0 at vga1 Matrox G400/G450 (AGP)(0):couldn't find agp
Creative Labs SoundBlaster Audigy LS rev 0x00 at pci0 dev 12 function 0 not 
configured
pciide0 at pci0 dev 15 function 0 VIA VT6420 SATA rev 0x80: DMA
pciide0: using irq 11 for native-PCI interrupt
pciide1 at pci0 dev 15 function 1 VIA VT82C571 IDE rev 0x06: ATA133, channel 
0 configured to compatibility, channel 1 configured to compatibility
wd0 at pciide1 channel 0 drive 0: ST3160021A
wd0: 16-sector PIO, LBA48, 152626MB, 312579695 sectors
wd1 at pciide1 channel 0 drive 1: ST3160021A
wd1: 16-sector PIO, LBA48, 152626MB, 312579695 sectors
wd0(pciide1:0:0): using PIO mode 4, Ultra-DMA mode 5
wd1(pciide1:0:1): using PIO mode 4, Ultra-DMA mode 5
atapiscsi0 at pciide1 channel 1 drive 0
scsibus0 at atapiscsi0: 2 targets, initiator 7
cd0 at scsibus0 targ 0 lun 0: HL-DT-ST, DVDRAM GSA-H12N, UL01 ATAPI 5/cdrom 
removable
cd0(pciide1:1:0): using PIO mode 4, Ultra-DMA mode 4
uhci0 at pci0 dev 16 function 0 VIA VT83C572 USB rev 0x81: irq 10
uhci1 at pci0 dev 16 function 1 VIA VT83C572 USB rev 0x81: irq 10
uhci2 at pci0 dev 16 function 2 VIA VT83C572 USB rev 0x81: irq 5
uhci3 at pci0 dev 16 function 3 VIA VT83C572 USB rev 0x81: irq 5
ehci0 at pci0 dev 16 function 4 VIA VT6202 USB rev 0x86: irq 11
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 VIA EHCI root hub rev 2.00/1.00 addr 1
viapm0 at pci0 dev 17 function 0 VIA VT8237 ISA rev 0x00
iic0 at viapm0
iic0: addr 0x4e 01=02 02=10 03=72 05=80 06=0f 0a=ff 0e=e0 0f=ff 3e=80 48=80 
4a=80 4e=80 fe=80 words 00=00ff 01=02ff 02=10ff 03=72ff 04=00ff 05=80ff 06=0fff 

Re: Problem with Matrox MGA G450

2008-09-05 Thread Landry Breuil
On Fri, Sep 5, 2008 at 10:03 AM, Guillermo Bernaldo de Quiros Maraver
Pedroche [EMAIL PROTECTED] wrote:
 Hi guys, i have added one Matrox G450 in OpenBSD,
 and have enabled mgadrm in the GENERIC file, i build
 and install, and, when try to launch X, get the next
 error:

if you were really following -current development and oga@'s work,
you'll know that currently only inteldrm and radeondrm works.

Landry



Re: Problem with Matrox MGA G450

2008-09-05 Thread Guillermo Bernaldo de Quiros Maraver Pedroche
Ohh, ok, thanks for all, and sorry.

On Fri, Sep 05, 2008 at 10:18:28AM +0200, Landry Breuil wrote:
 On Fri, Sep 5, 2008 at 10:03 AM, Guillermo Bernaldo de Quiros Maraver
 Pedroche [EMAIL PROTECTED] wrote:
  Hi guys, i have added one Matrox G450 in OpenBSD,
  and have enabled mgadrm in the GENERIC file, i build
  and install, and, when try to launch X, get the next
  error:
 
 if you were really following -current development and oga@'s work,
 you'll know that currently only inteldrm and radeondrm works.
 
 Landry

-- 
Guillermo Bernaldo de QuirC3s Maraver Pedroche.



Re: Problem with Matrox MGA G450

2008-09-05 Thread Guillermo Bernaldo de Quiros Maraver Pedroche
Yes, the same problem with agp: 
agp at vga1 not configured
Thanks.

On Fri, Sep 05, 2008 at 10:21:32AM +0200, Julian Leyh wrote:
 Guillermo Bernaldo de Quiros Maraver Pedroche wrote:
  xauth:  creating new authority file /root/.serverauth.27834

 you shouldn't use root..

 Guillermo Bernaldo de Quiros Maraver Pedroche wrote:
 ppb0 at pci0 dev 1 function 0 VIA K8HTB AGP rev 0x00
 pci1 at ppb0 bus 1
 vga1 at pci1 dev 0 function 0 Matrox MGA G400/G450 AGP rev 0x85
 wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
 wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
 agp at vga1 not configured
 mgadrm0 at vga1 Matrox G400/G450 (AGP)(0):couldn't find agp

 Seems you have a problem with your agp...

 Does it look the same without mgadrm? Or if you boot a i386 kernel?

-- 
Guillermo Bernaldo de QuirC3s Maraver Pedroche.



Re: Problem with Matrox MGA G450

2008-09-05 Thread Julian Leyh

Guillermo Bernaldo de Quiros Maraver Pedroche wrote:
 xauth:  creating new authority file /root/.serverauth.27834

you shouldn't use root..

Guillermo Bernaldo de Quiros Maraver Pedroche wrote:

ppb0 at pci0 dev 1 function 0 VIA K8HTB AGP rev 0x00
pci1 at ppb0 bus 1
vga1 at pci1 dev 0 function 0 Matrox MGA G400/G450 AGP rev 0x85
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
agp at vga1 not configured
mgadrm0 at vga1 Matrox G400/G450 (AGP)(0):couldn't find agp


Seems you have a problem with your agp...

Does it look the same without mgadrm? Or if you boot a i386 kernel?



Re: Problem with Matrox MGA G450

2008-09-05 Thread Owain Ainsworth
On Fri, Sep 05, 2008 at 10:03:11AM +0200, Guillermo Bernaldo de Quiros Maraver 
Pedroche wrote:
 Hi guys, i have added one Matrox G450 in OpenBSD, 
 and have enabled mgadrm in the GENERIC file, i build
 and install, and, when try to launch X, get the next
 error: 

mgadrm is not enabled due to lack of testing.

For the record:

radeondrm and inteldrm are relatively stable (radeondrm has known issues
on two laptop IGP cards that I don't have and thus have difficulty
fixing). the others should work (I know ragedrm works, for example), but
haven't have much testing. If you want to try them, do so, contact me in
private, not on the list.

 
 Fatal server error:
 Caught signal 11.  Server aborting

Normally i'd ask you to help me debug this. However:
 
 pci0 at mainbus0 bus 0: configuration mode 1
 pchb0 at pci0 dev 0 function 0 VIA K8HTB Host rev 0x01
 ppb0 at pci0 dev 1 function 0 VIA K8HTB AGP rev 0x00
 pci1 at ppb0 bus 1
 vga1 at pci1 dev 0 function 0 Matrox MGA G400/G450 AGP rev 0x85
 wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
 wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
 agp at vga1 not configured
 mgadrm0 at vga1 Matrox G400/G450 (AGP)(0):couldn't find agp

That means it's broken anyway.

I do have an agp driver for that chipset, it's not commited since it
will conflict with iommu on amd64 since iommu uses the agp aperture.
We need to sort that out first.

If you want to play with it anyway, contact me off list. Then we'll see
if there are any other bugs in there.

-0-
-- 
Hoare's Law of Large Problems:
Inside every large problem is a small problem struggling to get out.