[MPlayer-matrox] Weird problem with a G400 - shows only junk through mga_vid

Mikko Nahkola mnahkola at elisanet.fi
Sat Aug 27 21:49:14 CEST 2005


Hello,

I seem to be having problems with this thing. It just doesn't work 
despite claiming to - no errors or even warnings, that is. It's just 
that the output is all junk. 

For example, running mga_vid_test, I get a multicoloured flickering 
rectangle (looks like TV static, sort of) instead of green in 1), and it 
doesn't change at all going to 2) and 3). Trying to play real video, 
similar results. X and text console work just fine, and come back 
properly after trying the video thing too.

Should the mga_vid_base address be the same as something that lspci 
reports? If so, how do I make them be same, they aren't now..? I can't 
seem to make the module take any arguments (the Linux 2.4 way doesn't 
work anymore or something?)...

This is with Linux 2.6.12 (Gentoo, both vanilla and Gentoo's own kernel 
sources tried, both with udev and without fbcon). Card is MGA G400 
AGP, lspci says:

0000:01:00.0 VGA compatible controller: Matrox Graphics, Inc. MGA G400 AGP (rev 04) (prog-if 00 [VGA])
        Subsystem: Matrox Graphics, Inc. Millennium G400 16Mb SDRAM
        Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B-
        Status: Cap+ 66Mhz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR-
        Latency: 64 (4000ns min, 8000ns max), cache line size 08
        Interrupt: pin A routed to IRQ 9
        Region 0: Memory at cc000000 (32-bit, prefetchable) [size=cfae0000]
        Region 1: Memory at cfafc000 (32-bit, non-prefetchable) [size=16K]
        Region 2: Memory at cf000000 (32-bit, non-prefetchable) [size=8M]
        Expansion ROM at 00010000 [disabled]
        Capabilities: [dc] Power Management version 2
                Flags: PMEClk- DSI+ D1- D2- AuxCurrent=0mA PME(D0-,D1-,D2-,D3hot-,D3cold-)
                Status: D0 PME-Enable- DSel=0 DScale=0 PME-
        Capabilities: [f0] AGP version 2.0
                Status: RQ=32 Iso- ArqSz=0 Cal=0 SBA+ ITACoh- GART64- HTrans- 64bit- FW- AGP3- Rate=x1,x2
                Command: RQ=32 ArqSz=0 Cal=0 SBA+ AGP+ GART64- 64bit- FW- Rate=x1


Any ideas about where to look next? Disabling udev looks a bit hairy on 
Gentoo but what about the console framebuffer layer, should I try with 
that enabled? I have tried with and without X running already, that 
didn't change anything (there's "VideoRam 8192" in the X config.)

I do seem to get sane (and correct) output with SDL, it's just too slow 
- this is an AMD K6-2 450MHz ... and there are cache lines for only 128M 
of RAM so that's what it has. But I got the impression that it "should" 
be just about fast enough (barely) for watching DVDs with mga_vid, 
properly optimized..?



-- 
Mikko Nahkola <mnahkola at elisanet.fi>




More information about the MPlayer-matrox mailing list